cleaning up news template

workspace
Brendan Howell 5 years ago
parent 356e98884d
commit 1d7b99b52f

@ -7,7 +7,7 @@
@media print { @media print {
@page { @page {
size: A4; size: A4;
margin: 1cm; margin: 0.5cm 1cm 1cm 1cm;
} }
} }
html { html {
@ -43,8 +43,8 @@
} }
#edition { #edition {
font-family: "Cormorant SC"; font-family: "Cormorant SC";
border-top: 2px solid black; border-top: 1px solid black;
border-bottom: 2px solid black; border-bottom: 1px solid black;
padding: 5px; padding: 5px;
clear: both; clear: both;
font-weight: 400; font-weight: 400;
@ -100,7 +100,6 @@
} }
.mail .mailsender { .mail .mailsender {
width: 25%; width: 25%;
word-break: break-all;
} }
.mail .mailsubject { .mail .mailsubject {
width: 50%; width: 50%;
@ -143,15 +142,15 @@
<div id="columnspacer"> </div> <div id="columnspacer"> </div>
<div id="columns"> <div id="columns">
% for entry in news: % for entry in news:
<div class="entry"> <div class="entry">
% if entry.img != " ": % if entry.img != " ":
<img src="${entry.img}" alt="img" /> <img src="${entry.img}" alt="img" />
% endif % endif
<div class="title">${entry.title}</div> <div class="title">${entry.title}</div>
<div class="source">${entry.source}</div> <div class="source">${entry.source}</div>
<div class="summary">${entry.summary}</div> <div class="summary">${entry.summary}</div>
<div class="barcode">${entry.svg}</div> <div class="barcode">${entry.svg}</div>
</div> </div>
% endfor % endfor
</div> </div>
% if len(inbox) > 0: % if len(inbox) > 0:

Loading…
Cancel
Save