forked from mac-and-i/Normbrief-mit-Markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNormbrief DIN 5008.css
executable file
·369 lines (286 loc) · 5.4 KB
/
Normbrief DIN 5008.css
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
/*
Normbrief DIN 5008 mit Markdown
---------------------------------------------------------------
by Wolfgang Reszel for Mac & i (www.mac-and-i.de)
https://github.com/mac-and-i/Normbrief-mit-Markdown/
v1.0.3 from 2014-04-28
*/
/* @group Basis
---------------------------------------------------------------
*/
html {
width: 198mm; /* Üblichen Druckrand abziehen (2*6mm) */
padding: 0;
margin: 0;
}
body, p, td, div {
font: normal 10.5pt/1.4em Avenir,Helvetica,Arial,sans-serif !important;
}
body {
/* 45-6mm 25mm-6mm */
margin: 39mm 14mm 9mm 19mm;
padding: 0;
width: 165mm;
color: #000;
border: none;
background: none;
}
div#wrapper {
height: 100%;
display: inline;
}
#wrapper #contentdiv {
width: 198mm;
padding: 39mm 14mm 9mm 19mm;
}
a {
color:#000;
}
p {
margin: 0 0 1em 0;
}
h1, h2, h3, h4, h5, h6 {
margin: 1.5em 0 0.5em 0;
line-height: 1.2em;
border: none;
}
h4 {
font-size: 115%;
}
h5, h6 {
font-size: 100%;
}
hr {
border: none;
}
body hr:first-child, #wrapper hr:first-child {
display: none;
}
blockquote {
border: 0;
margin: 0;
padding: 0;
color: #000;
}
blockquote+hr+blockquote+hr,
blockquote+hr+blockquote+a+hr,
blockquote+a+hr+blockquote+hr {
clear: both;
}
figure, img {
margin: 0 1em 1em 1em;
display: block;
}
img {
max-width: 100%;
border: none;
}
figure img {
margin: 0;
display: inline;
}
figcaption {
font-size: 90%;
margin-bottom: 0.5em;
}
.poetry pre {
display:block;
font-family:Georgia, Garamond, serif!important;
font-size:110%!important;
font-style:italic;
line-height:1.6em;
margin-left:1em
}
.poetry pre code {
font-family:Georgia, Garamond, serif!important
}
/* @end */
/* @group Kontaktdaten/Briefkopf
---------------------------------------------------------------
*/
blockquote {
width:65mm;
float:right;
margin:0 0 2em 0;
}
blockquote a {
text-decoration: none;
}
blockquote h1 {
font-size: 120%;
margin: 0;
}
blockquote+hr,
blockquote+a+hr {
display: none;
}
/* @end Kontaktdaten/Briefkopf */
/* @group Adressfeld
---------------------------------------------------------------
*/
blockquote+hr+blockquote,
blockquote+a+hr+blockquote {
width:80mm;
float:left;
margin:0;
}
blockquote+hr+blockquote h2,
blockquote+a+hr+blockquote h2 {
height: 10mm;
width: 80mm;
font-weight: normal;
font-size: 80%;
margin:0;
}
/* @end Adressfeld */
/* @group Fließtext
---------------------------------------------------------------
*/
/* 1. Zeile: Datum rechtsbündig */
blockquote+hr+blockquote+hr+blockquote,
blockquote+hr+blockquote+a+hr+blockquote,
blockquote+a+hr+blockquote+hr+blockquote {
float: right;
clear: both;
width: 65mm;
}
blockquote+hr+blockquote+hr+blockquote+*,
blockquote+hr+blockquote+a+hr+blockquote+*,
blockquote+a+hr+blockquote+hr+blockquote+* {
clear:both;
}
/* Betreffzeile */
blockquote+h3 {
font-size: 100%;
margin-bottom: 2em;
}
/* @end Fließtext */
/* @group Unterschrift */
p+blockquote, p+hr+blockquote, img+blockquote, figure+blockquote, ol+blockqoute, ul+blockquote {
float: none;
margin-top: 2em;
line-height: 2em;
}
p+blockquote p+p:last-child, p+hr+blockquote p+p:last-child, img+blockquote p+p:last-child, figure+blockquote p+p:last-child, ol+blockqoute p+p:last-child, ul+blockquote p+p:last-child {
margin-top: 3em;
}
/* @end */
/* @group Fußnoten
---------------------------------------------------------------
*/
.reversefootnote, #footnotes a, a.footnote {
text-decoration: none;
}
.footnotes, #footnotes {
margin-top: 2em;
border-top: 1px solid #888;
padding-top: 1em;
font-size: 80%;
}
.footnotes ol {
margin: 0;
}
.footnotes hr {
display: none;
}
sup, sub, p>a.footnote {
height:0;
line-height:0.8;
vertical-align:super;
font-size:.8em;
}
sub {
vertical-align: sub;
top: -1px;
}
/* @end */
/* @group Listen
---------------------------------------------------------------
*/
dd {
margin-bottom:1em
}
ul {
list-style-type: square;
}
li > p:first-child {
margin:0
}
ul, ol {
padding-left: 1.5em;
}
ul ul,ul ol {
margin-bottom:.4em
}
/* @end Listen */
/* @group Tabellen
---------------------------------------------------------------
*/
caption,col,colgroup,table,tbody,td,tfoot,th,thead,tr {
border-spacing:0
}
table {
border: none;
border-collapse:collapse;
margin: 2em 0;
padding:0;
width: 100%;
}
h1+table, h2+table, h3+table, h4+table {
margin-top: 0;
}
table th:first-child {
width: 50%;
}
table th,table td {
line-height:1.8em;
padding:0 1em;
border: none;
border-bottom:1px solid #888;
border-right:1px solid #888;
}
table th:first-child,table td:first-child,
table th:last-child,table td:last-child {
padding: 0;
}
table th:last-child,table td:last-child {
border-right: none;
}
table tr:last-child td {
border-bottom: 0;
}
table thead {
border-bottom:2px solid #000
}
table tbody {
border-top:1px solid #888
}
table tbody:last-child {
border-top: 2px solid #000;
}
/* @end Tabellen */
/* --------------------------------------------------------------- */
@media print {
img, pre, blockquote, table, figure {
page-break-inside: avoid
}
/* Kommentar für Direktdruck aus der Ulysses-Vorschau entfernen */
/*
body {
margin: 15mm 0 0 0;
zoom: 1.4;
}
*/
#wrapper #contentdiv { /* Fix for nvALT */
margin: -23mm -19mm;
padding: 0;
}
#wrapper #contentdiv * { /* Fix for nvALT */
zoom: 1.22;
}
#wrapper #contentdiv * * { /* Fix for nvALT */
zoom: 1;
}
.reversefootnote,
#wrapper>header { display: none; }
}