xref: /template/sprintdoc/css/base_structure.less (revision 2a1910a3bcc883b2cab5868bb07ad49cec2ea895)
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: 100%; //16px
23    }
24}
25
26@media @screen_min-xs {
27    html {
28        font-size: 100%; //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    }
44}
45
46@media @screen_min-lg {
47    .make-grid(lg);
48    html {
49        font-size: 87.5%; //14px
50    }
51}
52
53@media @screen_min-xlg {
54    html {
55        font-size: 93.75%; //15px
56    }
57}
58
59@media @screen_min-xxlg {
60    html {
61        font-size: 100%; //16px
62    }
63}
64
65/* + + + + +  z-indices  + + + + + */
66@media screen {
67    .nav-direct p {
68        z-index: 1000; // keyboard-navigation overlays always on top
69    }
70
71    .top-header {
72        z-index: 2; // put MagicMatcher-Dropdowns above .content and metabox-tabs
73    }
74
75    #dokuwiki__aside div.nav a {
76        &:hover, &:focus, &:active {
77            z-index: 100; // show label/link above content on hover etc.
78        }
79    }
80
81    .qc-output {
82        z-index: 1; // put qc-output above meta-box
83    }
84
85    #spr__meta-box {
86        z-index: 10; // put meta-box above positioned content-elements such as aggregations, edit-buttons
87        ul.meta-tabs > li.active {
88            z-index: 1; // put the active tab above the meta-content in .tab-pane.active
89        }
90    }
91
92    nav#dokuwiki__pagetools {
93        z-index: 100; // put labels of the pagetools above content on hover etc.
94    }
95
96    #dokuwiki__detail .img-link a::before {
97        z-index: 2; // put 'view original file'-overlay above image
98    }
99
100    /* plug-in do_tasks */
101    .plugin__do_usertasks_list {
102        z-index: 200; // put tasks-list above pagetools
103    }
104
105    /* plug-in editable */
106    #dokuwiki__content.main-content div.editbutton_table {
107        z-index: 1; // for IE
108    }
109
110    /* plug-in tabinclude */
111    div#dwpl-ti-container li.dwpl-ti-tab div.selected {
112        z-index: 1; // put .slected tab above div.dwpl-ti-content-box
113    }
114}
115
116@media @screen_min-md {
117    .wide-content .search.main-sidebar p.toggleSearch {
118        z-index: 1; // put search-toggle-button above #dw__search
119    }
120}
121
122@media @screen_max-md {
123    body.show-mobile-sidebar #dokuwiki__aside {
124            z-index: 200; // mobile sidebar above all except nav-direct
125    }
126}
127/* + + + + +  end of z-indices  + + + + + */
128
129@media @screen_min-md {
130
131    .content .row > .col-xs-12 {
132        border-radius: 0 @ini_default_border_radius @fix_border-radius @fix_border-radius; // @ini_default_border_radius vs. @fix_border-radius
133    }
134
135    .top-header {
136        position: absolute;
137        top: 0;
138        left: 0;
139        width: 100%;
140    }
141
142    .header,
143    .tools {
144        .row {
145            position: relative;
146
147            > .col-xs-12 {
148                width: @ini_sidebar_width;
149                box-sizing: border-box;
150            }
151        }
152    }
153
154    .header {
155        .row > .col-xs-12 {
156            position: relative;
157            height: 150px;
158            min-height: 6rem;
159            display: table;
160
161            + .col-xs-12 {
162                float: right;
163                width: @ini_site_width;
164                box-sizing: border-box;
165            }
166        }
167    }
168
169    /* + + + + +  layout option compact  + + + + + */
170    .header-compact {
171        .header {
172            .row > .col-xs-12 {
173                height: auto;
174                min-height: fit-content;
175                z-index: 3;
176            }
177        }
178    }
179
180    .tools {
181        .row > .col-xs-12 {
182            position: absolute;
183        }
184    }
185
186    .content {
187        .row > .col-xs-12 {
188            position: relative;
189            width: 100%;
190            background-color: #fff;
191        }
192    }
193
194    .showSidebar {
195        .content {
196            .row > .col-xs-12 {
197                width: @ini_site_width;
198                float: right;
199            }
200        }
201    }
202
203    .wide-content {
204        .content {
205            .row > .col-xs-12 {
206                width: auto;
207                float: none;
208            }
209        }
210
211        &.showSidebar {
212            .content {
213                .row > .col-xs-12 {
214                    margin-left: @toggle-showsidebar_width;
215                }
216            }
217        }
218    }
219
220    .main-sidebar {
221        &.search {
222            > img {
223                width: 100%;
224                height: auto;
225            }
226        }
227    }
228}
229
230
231@media @screen_md-lg {
232    .wide-content.showSidebar {
233        .content {
234            .row > .col-xs-12 {
235                margin-left: 2.3rem;
236            }
237        }
238    }
239}
240
241
242@media @screen_max-md {
243    .container {
244        margin: 0 1.25rem;
245    }
246
247    .content {
248        position: relative;
249
250        #dokuwiki__pagetools {
251            top: 0;
252        }
253
254        .row > .col-xs-12 #dokuwiki__content::before {
255            display: none;
256        }
257    }
258
259    .tools {
260        .main-sidebar {
261            display: none;
262        }
263    }
264}
265
266@media @screen_max-xxs {
267    @mobileMargin: 4px;
268
269    .container {
270        margin: 0 @mobileMargin;
271    }
272
273    body.show-mobile-sidebar #dokuwiki__aside {
274        left: @mobileMargin;
275    }
276
277    #dokuwiki__footer {
278        .main-footer {
279            > * {
280                padding-left: 2rem;
281                padding-right: 2rem;
282            }
283        }
284    }
285}
286