xref: /template/sprintdoc/css/base_structure.less (revision 1b899691a7fd2e72c6e2d7d4fa0221eeb1269b05)
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
146
147        .claim {
148            .logo {
149                position: absolute;
150                bottom: 0;
151                height: 1px;
152                width: 100%; // fo IE
153                overflow: visible;
154            }
155
156            .logo img {
157                max-width: 100%;
158                height: auto;
159            }
160        }
161    }
162
163    .wide-content{
164        .content {
165            .row > .col-xs-12{
166                width: auto;
167                float: right;
168            }
169        }
170        &.showSidebar{
171            .content {
172                .row > .col-xs-12 {
173                    margin-left: 2.5rem;
174                }
175            }
176        }
177
178    }
179
180    .main-sidebar {
181        &.search {
182            > img {
183                width: 100%;
184                height: auto;
185            }
186        }
187    }
188}
189
190@media @screen_max-md {
191    .container {
192        margin: 0 2.5rem 0 1.25rem;
193    }
194
195    #dokuwiki__usertools {
196        margin-top: 0;
197        max-width: 75%;
198        position: absolute;
199        top: 0;
200    }
201
202    .content {
203        position: relative;
204
205        #dokuwiki__pagetools {
206            top: 0;
207        }
208
209        .row > .col-xs-12 #dokuwiki__content::before {
210            display: none;
211        }
212    }
213
214    #dokuwiki__header {
215        .logo {
216            width: 200px;
217            max-width: 33%;
218            margin: .8rem 0;
219        }
220    }
221
222    .tools {
223        .main-sidebar {
224            display: none;
225        }
226    }
227}
228