-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.scss
More file actions
111 lines (91 loc) · 2.04 KB
/
render.scss
File metadata and controls
111 lines (91 loc) · 2.04 KB
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
.arsredovisning-root {
width: 210mm;
height: 100%;
max-height: 297mm;
overflow-x: hidden;
overflow-y: scroll;
background-color: white;
padding: 1.25rem 2rem 2rem;
line-height: 1.2;
@media screen {
border: 1px solid rgb(240, 240, 240);
border-image: none;
box-shadow: 0.25rem 0.25rem 0.3rem #999;
}
}
// Detta är rotelementet i iXBRL:en som skickas till Bolagsverket
.arsredovisning-content {
width: 100%;
font-family: "EB Garamond", serif;
padding: 1.25rem;
line-height: 1.2;
@media screen {
// För att det ska bli snyggt när årsredovisningen visas i Bolagsverkets
// e-tjänst (ej PDF)
max-width: calc(210mm - 4rem);
}
& > *:not(:first-child) {
padding-top: 2rem;
@media screen {
// Matcha marginalen från utskrifter
padding-top: 3rem;
}
}
.page-break {
page-break-after: always;
padding-top: 0;
@media screen {
// Visa linje i Gredor-GUI:t men inte i utskrifter
border-bottom: 1px solid #a0a0a0;
margin: 0 -3.25rem;
background-size: 210mm 297mm;
}
}
:deep(h1) {
font-size: 1.6rem;
font-family: "FreeSans", sans-serif;
font-weight: 700;
}
:deep(h2) {
font-size: 1.35rem;
font-weight: 600;
}
:deep(h3) {
font-size: 1.15rem;
font-weight: 600;
margin-top: 0;
}
:deep(table) {
width: 100%;
tr {
// Fixa problem med oönskade radbrytningar när wkhtmltopdf (renderaren
// som Bolagverket användaren) skriver ut tabeller där td:first-child har
// width: 99%.
page-break-inside: avoid;
}
th h2 {
margin-bottom: 0;
}
th,
td {
border-style: hidden;
text-align: left;
vertical-align: bottom;
padding: 0.25rem 0;
&:first-child {
width: 99%;
}
&:not(:first-child) {
padding-left: 1.25rem;
white-space: nowrap;
}
&.not-container {
min-width: 40px;
}
&.value-container {
text-align: right;
min-width: 106px;
}
}
}
}