xref: /template/sprintdoc/css/base_structure.less (revision 80aedcc551c9b906791dea98c34942c0c11b8c2c)
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; // keyboard-navigation overlays
70    }
71
72    .top-header {
73        z-index: 1; // put MagicMatcher-Dropdowns above .content
74    }
75
76    .content .row > .col-xs-12 {
77        border-radius: 0 @ini_default_border_radius @fix_border-radius @fix_border-radius; // @ini_default_border_radius vs. @fix_border-radius
78    }
79
80    .top-header {
81        position: absolute;
82        top: 0;
83        left: 0;
84        width: 100%;
85    }
86
87    .header,
88    .tools {
89        .row {
90            position: relative;
91
92            > .col-xs-12 {
93                width: @ini_sidebar_width;
94                box-sizing: border-box;
95            }
96        }
97    }
98
99    .header {
100        .row > .col-xs-12 {
101            position: relative;
102            height: 150px;
103            min-height: 6rem;
104            display: table;
105
106            + .col-xs-12 {
107                float: right;
108                width: @ini_site_width;
109                box-sizing: border-box;
110            }
111        }
112    }
113
114    .tools {
115        .row > .col-xs-12 {
116            position: absolute;
117        }
118    }
119
120    .content {
121        .row > .col-xs-12 {
122            position: relative;
123            width: 100%;
124            background-color: #fff;
125        }
126    }
127
128    .showSidebar {
129        .content {
130            .row > .col-xs-12 {
131                width: @ini_site_width;
132                float: right;
133            }
134        }
135    }
136
137    .wide-content {
138        .content {
139            .row > .col-xs-12 {
140                width: auto;
141                float: none;
142            }
143        }
144
145        &.showSidebar {
146            .content {
147                .row > .col-xs-12 {
148                    margin-left: @toggle-showsidebar_width;
149                }
150            }
151        }
152    }
153
154    .main-sidebar {
155        &.search {
156            > img {
157                width: 100%;
158                height: auto;
159            }
160        }
161    }
162}
163
164
165@media @screen_md-lg {
166    .wide-content.showSidebar {
167        .content {
168            .row > .col-xs-12 {
169                margin-left: 2.3rem;
170            }
171        }
172    }
173}
174
175
176@media @screen_max-md {
177    .container {
178        margin: 0 1.25rem;
179    }
180
181    .content {
182        position: relative;
183
184        #dokuwiki__pagetools {
185            top: 0;
186        }
187
188        .row > .col-xs-12 #dokuwiki__content::before {
189            display: none;
190        }
191    }
192
193    .tools {
194        .main-sidebar {
195            display: none;
196        }
197    }
198}
199
200@media @screen_max-xxs {
201    @mobileMargin: 4px;
202
203    .container {
204        margin: 0 @mobileMargin;
205    }
206
207    body.show-mobile-sidebar #dokuwiki__aside {
208        left: @mobileMargin;
209    }
210
211    #dokuwiki__footer {
212        .main-footer {
213            > * {
214                padding-left: 2rem;
215                padding-right: 2rem;
216            }
217        }
218    }
219}
220