xref: /template/sprintdoc/css/base_structure.less (revision 86e59cb304c137acc395c9a02b1f451ca255d43b)
1/**
2 * This file provides styles for the general layout structure.
3 *
4 * @author Jana Deutschlaender <deutschlaender@cosmocode.de>
5 */
6
7
8/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
9/* Col Grid */
10/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
11
12.make-grid(xs);
13
14@media screen {
15    .container {
16        margin: 0 @margin-big;
17    }
18}
19
20@media @screen_min-xxs {
21    html {
22        font-size: 114%; //16px
23    }
24}
25
26@media @screen_min-xs {
27    html {
28        font-size: 114%; //16px
29    }
30}
31
32@media @screen_min-sm {
33    .make-grid(sm);
34    html {
35        font-size: 100%; //16px
36    }
37}
38
39@media @screen_min-md {
40    .make-grid(md);
41    html {
42        font-size: 87.5%; //14px
43        //font-size: 81.25%; //13px
44    }
45}
46
47@media @screen_min-lg {
48    .make-grid(lg);
49    html {
50        font-size: 87.5%; //14px
51    }
52}
53
54@media @screen_min-xlg {
55    html {
56        font-size: 93.75%; //15px
57    }
58}
59
60@media @screen_min-xxlg {
61    html {
62        font-size: 100%; //16px
63    }
64}
65
66/* + + + + +  z-indeces  + + + + + */
67@media @screen_min-md {
68    .nav-direct p {
69        z-index: 1000;
70    }
71
72    .top-header {
73        z-index: 900;
74    }
75
76/*  if z-index is needed for .tools col, then use this:
77
78    .tools .row > .col-xs-12 {
79        z-index: 5; // SPR-945 sometimes too small space for suggestionlist
80    }
81
82    .wide-content .tools .row > .col-xs-12 {
83        z-index: 1;
84    }
85*/
86
87    .header .row > .col-xs-12 {
88        z-index: 2;
89    }
90
91    .content .row > .col-xs-12 {
92        z-index: 3;
93        border-radius: 0 @ini_default_border_radius @fix_border-radius @fix_border-radius; // @ini_default_border_radius vs. @fix_border-radius
94    }
95
96    .top-header {
97        position: absolute;
98        top: 0;
99        left: 0;
100        width: 100%;
101    }
102
103    .header,
104    .tools {
105        .row {
106            position: relative;
107
108            > .col-xs-12 {
109                width: @ini_sidebar_width;
110                box-sizing: border-box;
111            }
112        }
113    }
114
115    .header {
116        .row > .col-xs-12 {
117            position: relative;
118            height: 150px;
119            min-height: 6rem;
120            display: table;
121
122            + .col-xs-12 {
123                float: right;
124                width: @ini_site_width;
125                box-sizing: border-box;
126            }
127        }
128    }
129
130    .tools {
131        .row > .col-xs-12 {
132            position: absolute;
133        }
134    }
135
136    .content {
137        .row > .col-xs-12 {
138            position: relative;
139            width: 100%;
140            background-color: #fff;
141        }
142    }
143
144    .showSidebar {
145        .content {
146            .row > .col-xs-12 {
147                width: @ini_site_width;
148                float: right;
149            }
150        }
151    }
152
153    .wide-content {
154        .content {
155            .row > .col-xs-12 {
156                width: auto;
157                float: none;
158            }
159        }
160
161        &.showSidebar {
162            .content {
163                .row > .col-xs-12 {
164                    margin-left: @toggle-showsidebar_width;
165                }
166            }
167        }
168    }
169
170    .main-sidebar {
171        &.search {
172            > img {
173                width: 100%;
174                height: auto;
175            }
176        }
177    }
178}
179
180
181@media @screen_md-lg {
182    .wide-content.showSidebar {
183        .content {
184            .row > .col-xs-12 {
185                margin-left: 2.1rem;
186            }
187        }
188    }
189}
190
191
192@media @screen_max-md {
193    .container {
194        margin: 0 1.25rem;
195    }
196
197    .content {
198        position: relative;
199
200        #dokuwiki__pagetools {
201            top: 0;
202        }
203
204        .row > .col-xs-12 #dokuwiki__content::before {
205            display: none;
206        }
207    }
208
209    .tools {
210        .main-sidebar {
211            display: none;
212        }
213    }
214}
215
216@media @screen_max-xxs {
217    @mobileMargin: 4px;
218
219    .container {
220        margin: 0 @mobileMargin;
221    }
222
223    body.show-mobile-sidebar #dokuwiki__aside {
224        left: @mobileMargin;
225    }
226
227    #dokuwiki__footer {
228        .main-footer {
229            > * {
230                padding-left: 2rem;
231                padding-right: 2rem;
232            }
233        }
234    }
235}
236