From d366a7fed19d15fb9a9c2f01c8b7898810cf7094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Vr=C3=A1til?= <daniel.vratil@kdab.com> Date: Fri, 11 Mar 2016 14:02:19 +0100 Subject: [PATCH 53/74] Add CSS style for the new invitations layout --- messageviewer/viewer/csshelperbase.cpp | 64 +++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/messageviewer/viewer/csshelperbase.cpp b/messageviewer/viewer/csshelperbase.cpp index 75b9245e08..8e6e06c4c2 100644 --- a/messageviewer/viewer/csshelperbase.cpp +++ b/messageviewer/viewer/csshelperbase.cpp @@ -358,6 +358,67 @@ QString CSSHelperBase::screenCssDefinitions( const CSSHelperBase * helper, bool quoteCSS += QLatin1String("}\n\n"); } + // CSS definititons for invitations + QString invitationCSS = QString::fromLatin1( + "#invitation {" + " font-size: %1px !important;" + "}").arg(bodyFontSize); + invitationCSS += QLatin1String( + "#invitation h2 {\n" + " margin: 5px 0 0 0 !important;\n" + "}\n" + "#invitation table {\n" + " line-height: 140% !important;\n" + //" font-size: 120% !important;\n" + " border-spacing: 0 !important;\n" + "}\n" + "#invitation td {\n" + " vertical-align: top !important;\n" + " padding: 10px 5px 0 0 !important;\n" + "}\n" + "#invitation small {\n" + " color: #555 !important;\n" + "}\n" + "#invitation hr {\n" + " border: 1px solid #678db2 !important;\n" + "}\n" + "#invitation .button{\n" + " display: inline-block !important;\n" + " font-weight: bold !important;\n" + " padding: 4px 8px !important;\n" + " margin-bottom: 4px !important;\n" + " border: 1px solid #dedede !important;\n" + " border-radius: 3px !important;\n" + " background: #f5f5f5 !important;\n" + " vertical-align: middle !important;\n" + "}\n" + "#invitation .button:hover{\n" + " border-color: #bebebe !important;\n" + "}\n" + "#invitation a.button {\n" + " color: #555 !important;\n" + "}\n" + "#invitation .button img{\n" + " vertical-align: middle !important;\n" + " padding-right: 3px !important;\n" + "}\n" + "#invitation .leftColumn {\n" + " color: #555 !important;\n" + " font-weight: bold !important;\n" + "}\n" + "#invitation .summary img {\n" + " padding-right: 10px !important;\n" + " width: 48px !important;\n" + " vertical-align: middle !important;\n" + "}\n" + "#invitation .firstrow td {\n" + " line-height: 175% !important;\n" + "}\n" + ".floatleft {\n" + " float: left !important;\n" + "}\n" + ); + return QString::fromLatin1( "body {\n" " font-family: \"%1\" ! important;\n" @@ -548,7 +609,8 @@ QString CSSHelperBase::screenCssDefinitions( const CSSHelperBase * helper, bool pal.color( QPalette::Foreground ).name(), pal.color( QPalette::Background ).name() ) .arg( pal.color( QPalette::Mid ).name() ) - + quoteCSS; + + quoteCSS + + invitationCSS; } QString CSSHelperBase::commonCssDefinitions() const { -- 2.14.1