general.less 5.35 KB
Newer Older
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
/* Default Font */

* {
    font-family: Liberation Sans, sans-serif;
}


/* 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;
39
40
    align-items: center;
    margin-top: 50px;
41
42
43
44
45
46
    padding: 0px 8px;
    overflow: hidden;
    main {
        width: 100%;
        max-width: 1000px;
    }
47
48
}

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

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

63

64
/* General font sizing */
65

66
67
68
69
70
@default-font-size: 15px;
h1 {
    font-size: @default-font-size * 1.6;
    .first-last-child-margin-fix;
}
71

72
73
74
75
h2 {
    font-size: @default-font-size * 1.4;
    .first-last-child-margin-fix;
}
76

77
78
79
80
h3 {
    font-size: @default-font-size * 1.2;
    .first-last-child-margin-fix;
}
81

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

87
88
89
90
91
92
93
94
95
96
97
98
99
* {
    font-size: @default-font-size;
    .first-last-child-margin-fix;
}

.page-title {
    font-size: @default-font-size * 3;
    text-align: center;
}

.page-subtitle {
    font-size: @default-font-size;
    text-align: center;
100
101
102
103
104
}


/* Logo */

105
.logo {
106
    color: rgb(255, 128, 0);
107
108
    font-family: Liberation Sans, sans-serif;
    font-style: italic;
109
    font-weight: bold;
110
    white-space: nowrap;
111
112
}

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

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


/* Links that look like text */

.mutelink {
    &,
143
    &:hover,
144
    &:active,
145
    &:focus,
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
    &: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;
    }
171
172
173
    &:focus {
        outline: none;
    }
174
175
176
}


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

183
184
185
186
187
188
189
*[data-tooltip] {
    &:hover {
        position: relative;
        &:after {
            opacity: 1;
        }
    }
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
    &:after {
        content: attr(data-tooltip);
        position: absolute;
        top: 100%;
        left: 0;
        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;
207
208
209
        opacity: 0;
        transition: opacity 0.5s ease;
    }
210
211
    &.hide-tooltip-on-resultpage:after {
        /* Auf kleinen Bildschirmen wird der Tooltip nicht angezeigt */
212
213
214
215
        @media (max-width: 700px) {
            display: none;
        }
    }
216
217
218
219
220
221
222
223
    &.delayed:after {
        transition-delay: 0.5s;
    }
    &.delayed-soft:after {
        transition-delay: 0.2s;
    }
    &.delayed-strong:after {
        transition-delay: 1s;
224
    }
225
226
}

227
228
229

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

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

Karl Hasselbring's avatar
Karl Hasselbring committed
241

242
243
/* Links */

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

256
// External
257
258
259
260
261
262
263
264
265
.outlink {
    &:after {
        display: inline-block;
        font: normal normal normal 14px/1 FontAwesome;
        font-size: inherit;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
        content: "\f08e";
    }
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
}


/* Little helpers */

.bold {
    font-weight: bold;
}

.noprint {
    @media print {
        display: none!important;
    }
}

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

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

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


/* 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;
    }
314
}