xref: /template/sprintdoc/css/base.less (revision 77d4a15da5e0a27bce5062019398f1c8e39ad6e1)
1/**
2 * This file provides the basic vars and reset styles.
3 *
4 * @author Jana Deutschlaender <deutschlaender@cosmocode.de>
5 */
6
7/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
8/* global vars */
9/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
10
11
12/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
13/* fonts */
14@line-height-default: 125%;
15@line-height-big: 135%;
16@line-height-bigger: 140%;
17
18
19/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
20/* breakpoints */
21@break-min-xxs: 480;
22@break-max-xxs: (@break-min-xxs - 1);
23
24@break-min-xs: 768;
25@break-max-xs: (@break-min-xs - 1);
26
27@break-min-sm: 992;
28@break-max-sm: (@break-min-xs - 1);
29
30@break-min-md: 1024;
31@break-max-md: (@break-min-md - 1);
32
33@break-min-lg: 1200;
34@break-max-lg: (@break-min-lg - 1);
35
36@break-min-xlg: 1440;
37@break-max-xlg: (@break-min-xlg - 1);
38
39@break-min-xxlg: 1600;
40@break-max-xxlg: (@break-min-xlg - 1);
41
42
43/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
44/* media queries for breakpoints */
45
46@screen_min-xxs: ~"only screen and (min-width: " ~"@{break-min-xxs}px)";
47@screen_max-xxs: ~"only screen and (max-width: " ~"@{break-max-xxs}px)";
48
49@screen_min-xs: ~"only screen and (min-width: " ~"@{break-min-xs}px)";
50@screen_max-xs: ~"only screen and (max-width: " ~"@{break-max-xs}px)";
51
52@screen_min-sm: ~"only screen and (min-width: " ~"@{break-min-sm}px)";
53@screen_max-sm: ~"only screen and (max-width: " ~"@{break-max-sm}px)";
54
55@screen_min-md: ~"only screen and (min-width: " ~"@{break-min-md}px)";
56@screen_max-md: ~"only screen and (max-width: " ~"@{break-max-md}px)";
57@screen_only-md: ~"only screen and (min-width: 800px) and (max-width: " ~"@{break-max-md}px)";
58
59@screen_min-lg: ~"only screen and (min-width: " ~"@{break-min-lg}px)";
60@screen_max-lg: ~"only screen and (max-width: " ~"@{break-max-lg}px)";
61
62@screen_min-xlg: ~"only screen and (min-width: " ~"@{break-min-xlg}px)";
63@screen_max-xlg: ~"only screen and (max-width: " ~"@{break-max-xlg}px)";
64
65@screen_min-xxlg: ~"only screen and (min-width: " ~"@{break-min-xxlg}px)";
66@screen_max-xxlg: ~"only screen and (max-width: " ~"@{break-max-xxlg}px)";
67
68
69/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
70/* col width */
71@c12:               100%;
72@c11:               91.66666667%;
73@c10:               83.33333333%;
74@c9:                75%;
75@c8:                66.66666667%;
76@c7:                58.33333333%;
77@c6:                50%;
78@c5:                41.66666667%;
79@c4:                33.33333333%;
80@c3:                25%;
81@c2:                16.66666667%;
82@c1:                8.33333333%;
83
84@grid-columns:      12;
85
86/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
87/* margin / padding */
88@margin-big:        2.5rem;
89
90@border-radius:     __default_border_radius__;
91
92
93
94@color-border:      __border__;
95@color-nav:         __nav_menu_color__;
96@color-nav-hover:   __nav_menu_hover_color__;
97@color-nav-hover-bg:__nav_menu_hover_bg__;
98
99@color-link:        __existing__;
100
101@height-context-bar: 50px;
102
103/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
104/* all media */
105/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
106html, body{
107    font-size: 100.1%;
108    .reset();
109}
110
111header, .nav-direct{
112    .elementsReset();
113}
114
115
116
117div, span, object,
118h1, h2, h3, h4, h5, h6, p, blockquote,
119a, abbr, em,acronym, img, strong,
120dl, dt, dd, ol, ul, li,
121fieldset, form, label, legend,
122table, caption, tbody, tfoot, thead, tr, th, td,
123input, select, option, textarea, button{
124    font-size: 1rem; line-height: 100%;
125}
126
127
128ol, ul{ list-style: none outside none; }
129blockquote, q{ quotes: none; }
130acronym{ cursor: help; border-bottom: dotted 1px #333; }
131
132*:focus{ outline: 0; }
133
134table{ border-collapse: collapse; border-spacing: 0; empty-cells: show; caption-side: top; }
135caption, th, td{ text-align: left; vertical-align: top; }
136
137img{ display: block; float: none; border: none 0; line-height: @line-height-default; }
138
139*, div, nav, header{
140    box-sizing: border-box;
141}
142
143header, footer, .container, .row, nav, nav > ul{
144    &::before, &::after{
145        display: table;
146        content: "  ";
147        clear: both;
148    }
149}
150
151
152
153.sr-out {
154    .sr-out();
155}
156
157.sr-only {
158    .sr-only();
159}
160
161.structure, .none, .mobile-only {
162    display: none;
163}
164
165.mobile-only {
166    display: none;
167
168    @media @screen_max-xs {
169        display: inline-block;
170    }
171}
172
173.mobile-hide {
174    display: inline-block;
175
176    @media @screen_max-xs {
177        display: none;
178    }
179}
180
181
182
183/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
184/* screen only */
185/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
186
187@media screen{
188
189    html {
190        -ms-text-size-adjust: 100%;
191        -webkit-text-size-adjust: 100%;
192    }
193
194    article, aside, details, figcaption, figure, footer, header,
195    main, menu, nav, section, summary {
196        display: block;
197    }
198
199    audio, canvas, progress, video {
200        display: inline-block;
201        vertical-align: baseline;
202    }
203
204    audio:not([controls]) {
205        display: none;
206        height: 0;
207    }
208
209    [hidden],
210    template {
211        display: none;
212    }
213
214    a:active,
215    a:hover {
216        outline: 0;
217    }
218
219    abbr[title] {
220        border-bottom: 1px dotted;
221    }
222
223    small {
224        font-size: 80%;
225    }
226
227    sub,
228    sup {
229        font-size: 75%;
230        line-height: 0;
231        position: relative;
232        vertical-align: baseline;
233    }
234
235    sup {
236        top: -0.5em;
237    }
238
239    sub {
240        bottom: -0.25em;
241    }
242
243    svg:not(:root) {
244        overflow: hidden;
245    }
246
247    hr {
248        box-sizing: content-box;
249        height: 0;
250    }
251    pre {
252        overflow: auto;
253    }
254    code,
255    kbd,
256    pre,
257    samp {
258        font-family: monospace, monospace;
259        font-size: 1em;
260    }
261
262    button,
263    input,
264    optgroup,
265    select,
266    textarea {
267        color: inherit;
268        font: inherit;
269        margin: 0;
270    }
271    button {
272        overflow: visible;
273    }
274
275    button,
276    select {
277        text-transform: none;
278    }
279
280    input[type="checkbox"],
281    input[type="radio"] {
282        box-sizing: border-box;
283        padding: 0;
284    }
285
286    input[type="number"]::-webkit-inner-spin-button,
287    input[type="number"]::-webkit-outer-spin-button {
288        height: auto;
289    }
290
291    input[type="search"] {
292        -webkit-appearance: textfield;
293        box-sizing: content-box;
294    }
295
296    input[type="search"]::-webkit-search-cancel-button,
297    input[type="search"]::-webkit-search-decoration {
298        -webkit-appearance: none;
299    }
300    legend {
301        border: 0;
302        padding: 0;
303    }
304    textarea {
305        overflow: auto;
306    }
307    table {
308        border-collapse: collapse;
309        border-spacing: 0;
310    }
311
312    td,
313    th {
314        padding: 0;
315    }
316
317    html, body, div, span, applet, object, iframe,
318    h1, h2, h3, h4, h5, h6, p, blockquote,
319    a, abbr, acronym, address, big, cite, del, dfn, em, img, ins, kbd, q, s, samp,
320    small, strike, strong, sub, sup, tt, var,
321    b, u, i, center,
322    dl, dt, dd, ol, ul, li,
323    fieldset, form, label, legend,
324    table, caption, tbody, tfoot, thead, tr, th, td,
325    article, aside, canvas, details, embed,
326    figure, figcaption, footer, header,
327    menu, nav, output, ruby, section, summary,
328    time, mark, audio, video {
329        font-family: __font_family_screen__;
330        color: @ini_text;
331    }
332
333}
334
335/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
336/* print only */
337/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
338@media print{
339    body{
340        font-size: 12pt;
341    }
342}
343