-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.css
147 lines (136 loc) · 2.86 KB
/
global.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
html {
font-size: 13px;
}
body {
font-family: 'Inter', sans-serif;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("fonts/Inter-Regular.woff2?v=3.9") format("woff2");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("fonts/Inter-Italic.woff2?v=3.9") format("woff2");
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("fonts/Inter-Bold.woff2?v=3.9") format("woff2");
}
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url("fonts/MaterialIcons-Regular.woff2") format('woff2')
}
/*
https://google.github.io/material-design-icons/
*/
.mdi {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 1.5rem;
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
.mdi-36px {
font-size: 36px; /* Preferred icon size */
}
.pointer {
cursor: pointer;
}
@media screen {
.page {
box-sizing: border-box;
background: rgba(255,255,255,0.9);
margin: 20px;
box-shadow: 0px 0px 30px 0px #888;
}
}
@media print {
* {
-webkit-print-color-adjust: exact;
}
.page {
page-break-after: always;
page-break-inside: avoid;
margin: 0;
}
.no-print, .no-print * {
display: none !important;
}
}
@page {
margin: 0;
}
.page {
line-height: 1.5;
font-weight: normal;
font-family: "Inter";
color: #333;
position: relative;
padding: 10mm 25mm 10mm 25mm;
display: block;
}
/*
Da *named pages*, also z.B. @page a3landscape noch nicht von Chrome
unterstützt werden, gilt vorerst die Standard-Einstellung von A4 Portrait.
Um andere Formate zu erzeugen, muss die Größe in den svelte-Koponenten
als setup-Einstellung hinterlegt werden. Oder man verwendet ein besonderes CSS
mit der anderen Einstellung.
Dazu bitte ein @import 'nicht_a4_portrait.css' verwenden. Svelte ignoriert sonst
die in den <style> tags hinterlegten @... Anweisungen.
Link: https://www.w3.org/TR/css3-page/#using-named-pages
*/
.page[size="A4"][orientation="portrait"] {
/* page: a4portrait; */
width: 210mm;
height: 296.8mm;
}
/* @page a4portrait {
margin: 0;
size: A4 portrait;
} */
.page[size="A4"][orientation="landscape"] {
/* page: a4landscape; */
width: 296.8mm;
height: 209mm;
}
/* @page a4landscape {
margin: 0;
size: A4 landscape;
} */
.grid {
display: grid;
grid-gap: 0;
gap: 0;
grid-template-columns: auto;
grid-template-rows: auto 1fr auto;
grid-template-areas: "header" "main" "footer";
}
.header {
grid-area: header;
}
.main {
grid-area: main;
}
.grid-footer {
grid-area: footer;
align-self: end;
}