xref: /template/sprintdoc/css/base_structure.less (revision b965719e3cd981e2881d6c9ab8dda77ec0a6a86d)
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}
22
23@media @screen_min-xs {
24}
25
26@media @screen_min-sm {
27    .make-grid(sm);
28}
29
30@media @screen_min-md {
31    .make-grid(md);
32}
33
34@media @screen_min-lg {
35    .make-grid(lg);
36}
37
38@media @screen_min-xlg {
39    html {
40        font-size: 120%;
41    }
42}
43
44@media @screen_min-xxlg {
45    html {
46        //font-size: 135%;
47    }
48}
49
50/* + + + + +  z-indeces  + + + + + */
51@media @screen_min-md {
52    .nav-direct p {
53        z-index: 1000;
54    }
55
56    .top-header {
57        z-index: 900;
58    }
59
60    .tools .row > .col-xs-12 {
61        z-index: 1;
62    }
63
64    .header .row > .col-xs-12 {
65        z-index: 2;
66    }
67
68    .content .row > .col-xs-12 {
69        z-index: 3;
70    }
71
72    .top-header {
73        position: absolute;
74        top: 0;
75        left: 0;
76        width: 100%;
77    }
78
79    .header,
80    .tools {
81        .row {
82            position: relative;
83
84            > .col-xs-12 {
85                width: 23%;
86                box-sizing: border-box;
87            }
88        }
89    }
90
91    .header {
92        .row > .col-xs-12 {
93            position: relative;
94            height: 150px;
95            min-height: 6rem;
96        }
97    }
98
99    .tools {
100        .row > .col-xs-12 {
101            position: absolute;
102        }
103    }
104
105    .content {
106        .row > .col-xs-12 {
107            position: relative;
108            width: 100%;
109            background-color: #fff;
110        }
111    }
112
113    .claim {
114        .logo {
115            position: absolute;
116            bottom: 1em;
117            overflow: visible;
118
119            img {
120                height: 60px;
121                width: auto;
122                border-style: solid;
123                border-color: transparent;
124                border-width: 0 2px;
125            }
126
127            a:hover,
128            a:focus,
129            a:active {
130                img {
131                    border-width: 0;
132                }
133            }
134        }
135    }
136
137    .showSidebar {
138        .content {
139            .row > .col-xs-12 {
140                width: 73%;
141                float: right;
142            }
143        }
144
145        .claim {
146            .logo {
147                position: absolute;
148                bottom: 0;
149                height: 1px;
150                width: 100%; // fo IE
151                overflow: visible;
152            }
153
154            .logo img {
155                max-width: 100%;
156                height: auto;
157            }
158        }
159    }
160
161    .main-sidebar {
162        &.search {
163            > img {
164                width: 100%;
165                height: auto;
166            }
167        }
168    }
169}
170
171@media @screen_max-md {
172    .container {
173        margin: 0 2.5rem 0 1.25rem;
174    }
175
176    #dokuwiki__usertools {
177        margin-top: 0;
178        max-width: 75%;
179        position: absolute;
180        top: 0;
181    }
182
183    .content {
184        position: relative;
185
186        #dokuwiki__pagetools {
187            top: 0;
188        }
189
190        .row > .col-xs-12 #dokuwiki__content::before {
191            display: none;
192        }
193    }
194
195    #dokuwiki__header {
196        .logo {
197            width: 200px;
198            max-width: 33%;
199            margin: .8rem 0;
200        }
201    }
202
203    .tools {
204        .main-sidebar {
205            display: none;
206        }
207    }
208}
209