general.less 5.89 KB
Newer Older
1
2
/* Default Font */

3
body {
4
    font-family: Arimo, Liberation Sans, sans-serif;
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
}

/* Main Containers */

html,
body,
.content-wrapper {
    width: 100%;
}

html {
    min-height: 100%;
    height: auto;
    display: flex;
}

body {
    flex-grow: 1;
    background-image: inherit;
    background-color: @body-background-color;
    background-attachment: fixed;
    min-height: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
38
39
    align-items: center;
    margin-top: 50px;
40
41
42
43
44
45
    padding: 0px 8px;
    overflow: hidden;
    main {
        width: 100%;
        max-width: 1000px;
    }
46
47
}

48
49
50
51
52
53
54
55
56
.first-last-child-margin-fix() {
    &:first-child {
        margin-top: 0px;
    }
    &:last-child {
        margin-bottom: 0px;
    }
}

57
58
59
60
61
.navbar,
#navbar-static-pages {
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
}

62
/* General font sizing */
63

64
65
@default-font-size: 15px;
h1 {
Karl Hasselbring's avatar
Karl Hasselbring committed
66
    font-size: (@default-font-size * 1.6);
67
68
    .first-last-child-margin-fix;
}
69

70
h2 {
Karl Hasselbring's avatar
Karl Hasselbring committed
71
    font-size: (@default-font-size * 1.4);
72
73
    .first-last-child-margin-fix;
}
74

75
h3 {
Karl Hasselbring's avatar
Karl Hasselbring committed
76
    font-size: (@default-font-size * 1.2);
77
78
    .first-last-child-margin-fix;
}
79

80
81
82
83
p {
    font-size: @default-font-size;
    .first-last-child-margin-fix;
}
84

85
body {
86
87
88
89
90
    font-size: @default-font-size;
    .first-last-child-margin-fix;
}

.page-title {
Karl Hasselbring's avatar
Karl Hasselbring committed
91
    font-size: (@default-font-size * 3);
92
93
94
95
96
97
    text-align: center;
}

.page-subtitle {
    font-size: @default-font-size;
    text-align: center;
98
99
}

100
101
102
a {
    font-size: 100%;
}
103

104
105
/* Logo */

106
.logo {
Karl Hasselbring's avatar
Karl Hasselbring committed
107
    color: @metager-orange;
108
    font-family: Arimo, Liberation Sans, sans-serif;
109
    font-style: italic;
110
    font-weight: bold;
111
    white-space: nowrap;
112
113
}

114
115
#startpage-logo {
    .logo;
116
117
    display: flex;
    justify-content: center;
118
119
    margin: 0px 0px 45px 0px;
    white-space: nowrap;
120
121
    text-align: center;
    &>a {
122
        .logo;
123
        display: block;
124
        width: fit-content;
125
        text-decoration: none;
126
127
128
129
        font-size: 75px;
        @media(max-width: @screen-xs-max) {
            font-size: 50px;
        }
130
131
132
    }
}

133
134
135
136
#subpage-logo {
    padding: 5px 0;
    a h1 {
        .logo;
137
        font-size: 30px;
138
        margin: 0;
139
140
141
142
143
144
145
    }
}

/* Links that look like text */

.mutelink {
    &,
146
    &:hover,
147
    &:active,
148
    &:focus,
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
    &:visited {
        color: inherit;
    }
}

/* Summary Elements */

summary {
    cursor: pointer;
    &::-webkit-details-marker {
        display: none;
    }
    &::-moz-details-marker {
        display: none;
    }
    &::-ms-details-marker {
        display: none;
    }
    &::-o-details-marker {
        display: none;
    }
    &::details-marker {
        display: none;
    }
173
174
175
    &:focus {
        outline: none;
    }
176
177
}

178
179
180
181
182
/* Tooltips 
 * 
 * Für alle Elemente mit einem "data-tooltip"-Attribut wird ein 
 * Tooltip mit entsprechendem Inhalt unterhalb des Elements angezeigt
 */
183

184
*[data-tooltip] {
185
    position: relative;
186
187
188
189
190
    &:hover {
        &:after {
            opacity: 1;
        }
    }
191
192
193
194
195
    &:after {
        content: attr(data-tooltip);
        position: absolute;
        top: 100%;
        left: 0;
196
        z-index: 1;
197
198
199
200
201
202
203
204
205
206
207
208
        color: black;
        background-color: white;
        border: 2px solid @metager-orange;
        border-radius: 6px;
        padding: 3px 8px;
        width: 200px;
        white-space: pre-wrap;
        font-size: 15px;
        font-weight: normal;
        text-decoration: none;
        text-align: center;
        pointer-events: none;
209
        opacity: 0;
210
        transition: opacity 0.3s ease;
211
        text-transform: initial; // Resets specific styles
212
    }
213
214
    &.hide-tooltip-on-resultpage:after {
        /* Auf kleinen Bildschirmen wird der Tooltip nicht angezeigt */
215
216
217
218
        @media (max-width: 700px) {
            display: none;
        }
    }
219
220
221
222
223
224
225
226
    &.delayed:after {
        transition-delay: 0.5s;
    }
    &.delayed-soft:after {
        transition-delay: 0.2s;
    }
    &.delayed-strong:after {
        transition-delay: 1s;
227
    }
228
229
}

230
231
/* For Containers that are supposed to split their content up into two columns */

232
233
234
235
236
.two-col {
    >* {
        width: 50%;
        margin: 0;
        float: left;
237
238
239
        @media (max-width: @screen-xs-max) {
            width: 100%;
        }
Karl Hasselbring's avatar
Karl Hasselbring committed
240
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
241
}
242
243
244

/* Links */

245
// Internal, but design differs from other pages
246
247
248
.inlink {
    &:after {
        display: inline-block;
249
        font: normal normal normal 14px/1 'Font Awesome 5 Free';
250
251
252
        font-size: inherit;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
253
        content: "\f35d";
254
255
256
    }
}

257
// External
258
259
260
.outlink {
    &:after {
        display: inline-block;
261
        font: normal normal normal 14px/1 'Font Awesome 5 Free';
262
263
264
        font-size: inherit;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
265
        content: "\f35d";
266
    }
267
268
269
270
271
272
273
274
275
276
}

/* Little helpers */

.bold {
    font-weight: bold;
}

.noprint {
    @media print {
Karl Hasselbring's avatar
Karl Hasselbring committed
277
        display: none !important;
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
    }
}

.newpage {
    page-break-after: always;
}

.disabled,
.disabled * {
    color: #aaa !important;
    cursor: not-allowed !important;
}

.overflow-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

Karl Hasselbring's avatar
Karl Hasselbring committed
297
298
299
300
301
302
/* Button */

button {
    border: none;
    background-color: transparent;
}
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319

/* Unsorted */

// Currently in use for the plugin modal
.modal-content {
    border-radius: 0;
    -webkit-box-shadow: 1px 1px 3px 1px @modal-content-box-shadow-color;
    -moz-box-shadow: 1px 1px 3px 1px @modal-content-box-shadow-color;
    box-shadow: 1px 1px 3px 1px @modal-content-box-shadow-color;
}

label a {
    color: inherit;
    &:hover {
        text-decoration: none;
        color: inherit;
    }
320
321
322
323
}

li.nodot {
    list-style-type: none;
324
325
326
327
328
}

// Used on labels which initiate visual change (e.g. open-sidebar-button)
.navigation-element {
    cursor: pointer;
329
}
330
331
332
333
334

// For Elements where newlines should actually be displayed
.wrap {
    white-space: pre-wrap;
}