1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
From cab925e9d4769762ea0080d49f392022cd8e78dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sandro=20Knau=C3=9F?= <sknauss@kde.org>
Date: Mon, 25 Jul 2016 12:43:17 +0200
Subject: [PATCH] Do not allow html mail to use css that only should be used in
headers.
---
.../theme/5.2/style.css | 40 +++++++++++-----------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/theme/5.2/style.css b/plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/theme/5.2/style.css
index 60e6597..1dbdf6c 100644
--- a/plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/theme/5.2/style.css
+++ b/plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/theme/5.2/style.css
@@ -2,7 +2,14 @@ body {
margin: 0;
padding: 0;
}
-table.outer {
+div#headerbox {
+ border-radius: 3px;
+ border-bottom: 1px solid rgb(190, 190, 190);
+ color: rgb(100, 100, 100) !important;
+ overflow: auto;
+ padding: 5px 20px;
+}
+div#headerbox table.outer {
display: inline;
position: fixed !important;
top: -1px;
@@ -12,14 +19,7 @@ table.outer {
border: none !important;
table-collapse: collapse;
}
-div#headerbox {
- border-radius: 3px;
- border-bottom: 1px solid rgb(190, 190, 190);
- color: rgb(100, 100, 100) !important;
- overflow: auto;
- padding: 5px 20px;
-}
-div#subject {
+div#headerbox div#subject {
color: rgb(100, 100, 100) !important;
font-size: 22px;
font-weight: normal;
@@ -27,51 +27,51 @@ div#subject {
padding-bottom: 5px;
padding-top: 5px;
}
-div#photo {
+div#headerbox div#photo {
float: left;
margin: 5px;
}
-div.table {
+div#headerbox div.table {
display: table;
padding-right: 12px;
padding-top: 6px;
}
-div.row {
+div#headerbox div.row {
display: table-row;
}
-div.headerleft {
+div#headerbox div.headerleft {
display: table-cell;
padding: 0.1em 1em;
}
-div.headerright {
+div#headerbox div.headerright {
display: table-cell;
font-weight: bold;
padding: 0.1em;
}
-div.headerrightdate {
+div#headerbox div.headerrightdate {
color: rgb(120, 125, 129) !important;
display: table-cell;
font-weight: bold;
padding: 0.1em;
}
-.actiontable {
+div#headerbox .actiontable {
display: table;
width: 100%;
}
-div.actionrowtable {
+div#headerbox div.actionrowtable {
display:table-row;
}
-div.theactioncell {
+div#headerbox div.theactioncell {
display: table-cell;
padding: 0px 2px; /* just some padding, if needed*/
white-space: pre; /* this will avoid line breaks*/
}
-div.theactionbigcell{
+div#headerbox div.theactionbigcell{
display: table-cell;
width: 100%; /* this will shrink other cells */
}
-#kmailContent {
+div#headerbox #kmailContent {
clear: both;
margin-top: 10px;
padding: 20px;
--
2.8.1
|