xref: /template/sprintdoc/css/base_structure.less (revision 8ed4f142b7684c19aa65534d8b517156d22ab862)
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: 81.25%; //13px
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-indeces  + + + + + */
66@media @screen_min-md {
67    .nav-direct p {
68        z-index: 1000;
69    }
70
71    .top-header {
72        z-index: 900;
73    }
74
75    .tools .row > .col-xs-12 {
76        z-index: 1;
77    }
78
79    .header .row > .col-xs-12 {
80        z-index: 2;
81    }
82
83    .content .row > .col-xs-12 {
84        z-index: 3;
85    }
86
87    .top-header {
88        position: absolute;
89        top: 0;
90        left: 0;
91        width: 100%;
92    }
93
94    .header,
95    .tools {
96        .row {
97            position: relative;
98
99            > .col-xs-12 {
100                width: 23%;
101                box-sizing: border-box;
102            }
103        }
104    }
105
106    .header {
107        .row > .col-xs-12 {
108            position: relative;
109            height: 150px;
110            min-height: 6rem;
111            display: table;
112        }
113    }
114
115    .tools {
116        .row > .col-xs-12 {
117            position: absolute;
118        }
119    }
120
121    .content {
122        .row > .col-xs-12 {
123            position: relative;
124            width: 100%;
125            background-color: #fff;
126        }
127    }
128
129    .claim {
130        display: table-cell;
131        height: 100%;
132        vertical-align: middle;
133
134        .logo {
135            /*position: absolute;
136            bottom: 1em;
137            overflow: visible;*/
138            padding: 1rem 0 .3rem;
139
140            img {
141                height: 4.6rem;
142                width: auto;
143                border-style: solid;
144                border-color: transparent;
145                border-width: 2px 0;
146            }
147
148            a:hover,
149            a:focus,
150            a:active {
151                img {
152                    border-width: 0;
153                }
154            }
155        }
156    }
157
158    .showSidebar {
159        .content {
160            .row > .col-xs-12 {
161                width: 73%;
162                float: right;
163            }
164        }
165    }
166
167    .wide-content {
168        .content {
169            .row > .col-xs-12 {
170                width: auto;
171                float: none;
172            }
173        }
174
175        &.showSidebar {
176            .content {
177                .row > .col-xs-12 {
178                    margin-left: @toggle-showsidebar_width;
179                }
180            }
181        }
182    }
183
184    .main-sidebar {
185        &.search {
186            > img {
187                width: 100%;
188                height: auto;
189            }
190        }
191    }
192}
193
194@media @screen_max-md {
195    .container {
196        margin: 0 1.25rem;
197    }
198
199    #dokuwiki__usertools {
200        margin-top: 0;
201        max-width: 75%;
202        position: absolute;
203        top: 0;
204        margin-right: 0;
205        right: 1.25rem;
206    }
207
208    .content {
209        position: relative;
210
211        #dokuwiki__pagetools {
212            top: 0;
213        }
214
215        .row > .col-xs-12 #dokuwiki__content::before {
216            display: none;
217        }
218    }
219
220    #dokuwiki__header {
221        .logo {
222            /*width: 200px;
223            max-width: 33%;
224            margin: .8rem 0;*/
225        }
226    }
227
228    .tools {
229        .main-sidebar {
230            display: none;
231        }
232    }
233}
234
235@media @screen_max-md {
236    .claim {
237        min-height: 3rem;
238
239        .logo {
240            .mobile-only {
241                margin: .8rem 1rem .6rem 0;
242            }
243        }
244    }
245}
246
247@media @screen_max-xxs {
248    @mobileMargin: 4px;
249
250    .container {
251        margin: 0 @mobileMargin;
252    }
253
254    body.show-mobile-sidebar #dokuwiki__aside {
255        left: @mobileMargin;
256    }
257
258    #dokuwiki__usertools {
259        right: @mobileMargin;
260    }
261
262    #dokuwiki__footer {
263        .main-footer {
264            > * {
265                padding-left: 2rem;
266                padding-right: 2rem;
267            }
268        }
269    }
270}
271