Avoid squished-up grey borders around the message on narrow screens
[rails.git] / app / views / layouts / notifier.html.erb
1 <html>
2   <head>
3     <meta charset="UTF-8"></meta>
4   </head>
5   <body style="padding: 0; margin: 0; font-size: 14px; font-family: 'Helvetica Neue', Arial, sans-serif; color: #222">
6     <table style="background-color: #eee; width: 100%">
7       <tr>
8         <td style="text-align: center; padding: 0px 7px">
9           <table style="width: 600px; color: #222; margin-left: auto; margin-right: auto">
10             <tr>
11               <td style="width: 30px; padding: 10px 10px 10px 0px">
12                 <a href="<%= @root_url %>" target="_blank">
13                   <%= image_tag attachments["logo.png"].url, alt: "OpenStreetMap", title: "OpenStreetMap", height: "30", width: "30", border: "0" %>
14                 </a>
15               </td>
16               <td style="width: 550px; padding: 0px; text-align: left">
17                 <a href="<%= @root_url %>" target="_blank" style="text-decoration: none; color: #000">
18                   <h1 style="font-size: 18px; font-weight: 600; margin: 0; text-align: left">OpenStreetMap</h1>
19                 </a>
20               </td>
21             </tr>
22             <tr>
23               <td colspan="2">
24                 <table style="background-color: #fff; color: #222; border: solid 1px #ccc; border-collapse: separate">
25                   <tr>
26                     <td style="text-align: left; padding: 0px 15px 5px 15px">
27                       <%= raw style_message(yield) %>
28                     </td>
29                   </tr>
30                 </table>
31               </td>
32             </tr>
33           </table>
34         </td>
35       </tr>
36       <tr>
37         <td style="text-align: center; font-size: 11px; font-family: 'Helvetica Neue', Arial, sans-serif">
38           <%= yield :footer %>
39           <p style="margin-bottom: 10px">
40             <a href="<%= @root_url %>" target="_blank" style="color: #222">OpenStreetMap</a>
41           </p>
42         </td>
43       </tr>
44     </table>
45   </body>
46 </html>