xref: /template/sprintdoc/css/base_structure.less (revision 40201e9c65aca443253a21405448c397ef9f4698)
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        .logo {
134            /*position: absolute;
135            bottom: 1em;
136            overflow: visible;*/
137            padding: 1rem 0 .3rem;
138
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    }
159
160    .showSidebar {
161        .content {
162            .row > .col-xs-12 {
163                width: 73%;
164                float: right;
165            }
166        }
167    }
168
169    .wide-content{
170        .logo{ }
171        .content {
172            .row > .col-xs-12 {
173                width: auto;
174                float: none;
175            }
176        }
177        &.showSidebar{
178            .content {
179                .row > .col-xs-12 {
180                    margin-left: @toggle-showsidebar_width;
181                }
182            }
183        }
184
185    }
186
187    .main-sidebar {
188        &.search {
189            > img {
190                width: 100%;
191                height: auto;
192            }
193        }
194    }
195}
196
197@media @screen_max-md {
198    .container {
199        margin: 0 1.25rem;
200    }
201
202    #dokuwiki__usertools {
203        margin-top: 0;
204        max-width: 75%;
205        position: absolute;
206        top: 0;
207        margin-right: 0;
208        right: 1.25rem;
209    }
210
211    .content {
212        position: relative;
213
214        #dokuwiki__pagetools {
215            top: 0;
216        }
217
218        .row > .col-xs-12 #dokuwiki__content::before {
219            display: none;
220        }
221    }
222
223    #dokuwiki__header {
224        .logo {
225            /*width: 200px;
226            max-width: 33%;
227            margin: .8rem 0;*/
228        }
229    }
230
231    .tools {
232        .main-sidebar {
233            display: none;
234        }
235    }
236}
237
238@media @screen_max-md{
239    .claim{
240        min-height: 3rem;
241        .logo{
242            .mobile-only{
243                margin: .8rem 1rem .6rem 0;
244            }
245        }
246    }
247}
248
249@media @screen_max-xxs{
250    @mobileMargin: 4px;
251    .container{
252        margin: 0 @mobileMargin;
253    }
254    body.show-mobile-sidebar #dokuwiki__aside{
255        left: @mobileMargin;
256    }
257    #dokuwiki__usertools{
258        right: @mobileMargin;
259    }
260    #dokuwiki__footer{
261        .main-footer{
262            > *{
263                padding-left: 2rem;
264                padding-right: 2rem;
265            }
266
267        }
268    }
269    .page-footer{
270
271    }
272
273}
274
275