Do not show letter background on the web.
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 29 Jan 2007 10:41:42 +0000 (10:41 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 29 Jan 2007 10:41:42 +0000 (10:41 +0000)
Fix body margin on mail clients which support html body

git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1424 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs/css/ax.css
htdocs/css/nl.css
templates/axletter/letter.tpl
templates/newsletter/nl.tpl

index 32f1058..560c205 100644 (file)
  ***************************************************************************/
 
 
-div.ax_mail {
+div.ax_background {
     margin : 0;
     padding : 1em 0;
     background-color: #ddd;
     color: #000;
 }
 
-div.ax_text {
+div.ax_mail {
     margin : auto;
     width : 72ex;
     font-family : "Georgia", "Times New Roman", serif;
index e70c210..b1347a2 100644 (file)
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************/
 
-div.nl {
+div.nl_background {
     margin : 0;
     padding : 1em 0;
     background-color: #ddd;
     color: #000;
 }
 
-div.nl_text {
+div.nl {
     margin : auto;
     width : 72ex;
     font-family : "Verdana", "Arial", "Helvetica", sans-serif;
index d592e07..32fcea5 100644 (file)
@@ -57,15 +57,18 @@ ne plus recevoir : [https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}]
   <head>  
     <title>Lettre d'information de l'AX</title>
     <style type="text/css">
+      {literal}
+      body      { background-color: #ddd; color: #000; }
+      {/literal}
     <!--
       {$am->css()}
     -->
     </style>
   </head>
   <body>
+    <div class="ax_background">
 {/if}
     <div class='ax_mail'>
-    <div class='ax_text'>
       <div class="title">{$am->title()}</div>
       <div class="intro">{$am->head($prenom, $nom, $sexe, 'html')|smarty:nodefaults}</div>
       <div class="body">{$am->body('html')|smarty:nodefaults}</div>
@@ -78,8 +81,8 @@ ne plus recevoir : [https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}]
         <a href="https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}">ne plus recevoir</a>]
       </div>
     </div>
-    </div>
 {if $is_mail}
+    </div>
   </body>
 </html>
 {/if}
index 7e9bff2..34c5052 100644 (file)
@@ -75,15 +75,18 @@ ne plus recevoir : [https://www.polytechnique.org/nl/out]
   <head>  
     <title>Lettre mensuelle de Polytechnique.org</title>
     <style type="text/css">
+      {literal}
+      body      { background-color: #ddd; color: #000; }
+      {/literal}
     <!--
       {$nl->css()}
     -->
     </style>
   </head>
   <body>
+    <div class='nl_background'>
 {/if}
     <div class='nl'>
-    <div class='nl_text'>
       <div class="title">{$nl->title()}</div>
       <div class="intro">{$nl->head($prenom, $nom, $sexe, 'html')|smarty:nodefaults}</div>
       <a id="top_lnk"></a>
@@ -114,8 +117,8 @@ ne plus recevoir : [https://www.polytechnique.org/nl/out]
          <a href="https://www.polytechnique.org/nl/out">ne plus recevoir</a>]
       </div>
       </div>
-    </div>
 {if $is_mail}
+    </div>
   </body>
 </html>
 {/if}