Forráskód Böngészése

Rolle linux_updates
- css des Mail-Templates angepasst

erdo_king 7 éve
szülő
commit
d62aa2eef7
1 módosított fájl, 40 hozzáadás és 22 törlés
  1. 40 22
      roles/linux_updates/templates/mail_body.j2

+ 40 - 22
roles/linux_updates/templates/mail_body.j2

@@ -1,46 +1,69 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 <html xmlns="http://www.w3.org/1999/xhtml"> 
 <head> 
-<title></title> 
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" /> 
-<meta name="viewport" content="width=600" /> 
+    <title></title> 
+    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" /> 
+    <meta name="viewport" content="width=600" /> 
 
-<style>
+    <style>
+        /* Tabelle */
         table {
           border: 1px solid #CCCCCC;
           width: 100%;
           text-align: left;
+          padding:1px 2px;
+          margin:15px;
         }
-        table td, table th {
-        #  padding: 3px 3px;
+        /* Tabellen header */
+        table thead {
+          background: #CFCFCF;
+          border-bottom: 2px solid #444444;
+          font-size: 13px;
         }
+        table thead th {
+          font-weight: bold;
+          color: #003399;
+        }
+        /* Tabellen body */
         table tbody td {
-          font-size: 13px;
+          font-size: 11px;
           font-weight: bold;
           color: #666666;
         }
+        /* erste Spalte (odd) -> #LOG: */
+        table td:nth-child(odd) {
+          width: 80pt;
+        }
+        /* zweite Spalte (even) */
         table td:nth-child(even) {
           font-weight: normal;
         }
-        table thead {
+        /* Sonderklasse "header" */
+        table.header tbody {
           background: #CFCFCF;
-          border-bottom: 2px solid #444444;
-        }
-        table thead th {
-          font-weight: bold;
-          color: #003399;
         }
-        table.header thead th {
+        table.header thead {
           background: #FFFFFF;
-        }                                                 }
-        table.header tbody td {
+        }
+        .header tbody td{
+          width: auto;
+        }
+        /* doppelte deklaration notwenig, ich versteh nur nicht warum ... */                                                 }
+        table.header tbody {
+          background: #CFCFCF;
+        }
+        .header tbody  {
           background: #CFCFCF;
+          display: block;
         }
+
+        /* Überschriften */
         h1 {
           font-size: 15pt;
           font-weight: bold;
           color:#666666;
           padding-left: 4px;
+          margin: 0;
         }
         h2 {
           font-size: 10pt;
@@ -48,12 +71,7 @@
           border-bottom: 1px solid #CCCCCC;
           margin-top: 15px;
         }
-        h1 {
-          font-size: 15pt;
-          font-weight: bold;
-          color:#666666;
-        }
-        </style>
+    </style>
 </head>