xref: /template/writr/css/theme.less (revision 0a061faf71358f054b1487af502591d5fd93663e)
1/* =Theme
2----------------------------------------------- */
3
4/* Body */
5body {
6    overflow-x: hidden;
7    padding: 40px 0 0;
8    width: 100%;
9    background: @ini_text_alt;
10    color: @ini_text;
11    -ms-word-wrap: break-word;
12    word-wrap:     break-word;
13}
14body:after,
15body:before {
16    content: '';
17    display: block;
18    position: fixed;
19    z-index: -1;
20    top: 0;
21    height: 200%;
22}
23body:after {
24    left: 0;
25    width: 300px;
26    background: @ini_theme_color;
27}
28body:before {
29    left: 300px;
30    width: 100px;
31    background: @ini_text_alt;
32}
33
34/* Page */
35#writr__page {
36    z-index: 1;
37    margin: 0;
38    width: (@ini_content_width + 400px);
39}
40#writr__page:before {
41    content: '';
42    display: block;
43    position: fixed;
44    z-index: -1;
45    top: 0;
46    left: 400px;
47    width: @ini_content_width;
48    height: 100%;
49    background: @ini_background;
50}
51
52/* Sidebar */
53.sidebar-area {
54    position: relative;
55    float: left;
56    width: 300px;
57    padding: 0 40px;
58    -webkit-box-sizing: border-box;
59    -moz-box-sizing:    border-box;
60    box-sizing:         border-box;
61}
62#writr__sidebar-toggle {
63    display: none;
64    position: absolute;
65    z-index: 3;
66    top: -40px;
67    left: 0;
68    height: 40px;
69    width: 40px;
70    background: @ini_theme_color_alt;
71    color: @ini_background;
72    line-height: 40px;
73    text-align: center;
74    text-decoration: none;
75}
76#writr__sidebar-toggle:before,
77#writr__sidebar-toggle:after {
78    content: '';
79    display: block;
80    position: absolute;
81    border-top: 40px solid @ini_theme_color_alt;
82    border-right: 40px solid transparent;
83}
84#writr__sidebar-toggle:before {
85    top: 40px;
86}
87#writr__sidebar-toggle:after {
88    top: 0;
89    left: 40px;
90}
91#writr__sidebar-toggle .genericon {
92    margin-top: 5px;
93    height: 40px;
94    width: 40px;
95    font-size: 40px;
96    line-height: 40px;
97    -webkit-transform: rotate(45deg);
98    -moz-transform:    rotate(45deg);
99    -ms-transform:     rotate(45deg);
100    -o-transform:      rotate(45deg);
101    transform:         rotate(45deg);
102}
103#writr__sidebar-toggle.open .genericon {
104    -webkit-transform: rotate(0deg);
105    -moz-transform:    rotate(0deg);
106    -ms-transform:     rotate(0deg);
107    -o-transform:      rotate(0deg);
108    transform:         rotate(0deg);
109}
110
111/* Header */
112.site-header {
113    background: @ini_theme_color;
114    color: @ini_background;
115}
116.site-logo {
117    display: block;
118    margin: 0 0 20px;
119    text-align: center;
120}
121.site-logo img {
122    display: block;
123}
124.site-branding {
125    position: relative;
126    padding: 0;
127    margin: 0 0 20px;
128    border-bottom: 0px solid @ini_theme_color_alt;
129    text-align: center;
130}
131.site-title {
132    padding: 0 0 5px;
133    margin: 0;
134    font-size: 20px;
135    font-weight: bold;
136    text-transform: uppercase;
137}
138.site-title a {
139    display: inline-block;
140    color: @ini_background;
141    text-decoration: none;
142}
143.site-title a:hover {
144    color: @ini_theme_color_alt;
145}
146.site-description {
147    margin: 0 0 20px;
148    color: @ini_background;
149    font-size: 12px;
150    text-transform: uppercase;
151}
152
153/* Primary */
154.content-area {
155    float: right;
156    width: @ini_content_width;
157    height: auto;
158    padding: 0 40px;
159    background: @ini_background;
160    -webkit-box-sizing: border-box;
161    -moz-box-sizing:    border-box;
162    box-sizing:         border-box;
163}
164
165/* Sidebar */
166.widget-area,
167.widget-area a,
168.widget-area h1,
169.widget-area h2,
170.widget-area h3,
171.widget-area h4,
172.widget-area h5,
173.widget-area h6 {
174    color: @ini_background;
175}
176.widget-area a:hover,
177.widget-area a:focus,
178.widget-area a:active {
179    color: @ini_background_neu;
180}
181.widget-area {
182    width: 220px;
183}
184
185/* Footer */
186.site-footer {
187}
188.site-info {
189    padding: 0 0 40px;
190    color: @ini_background;
191    font-size: 12px;
192    text-align: center;
193}
194.site-info a {
195    color: @ini_background;
196    text-decoration: none;
197}
198.site-info a:hover {
199    color: @ini_theme_color_alt;
200}
201.page-footer {
202    font-size: 14px;
203    padding: 20px 40px;
204    margin: 40px -40px 0;
205    width: 100%;
206    background-color: @ini_background_alt;
207}
208
209/* =DokuWiki-specific
210----------------------------------------------- */
211
212/* Breadcrumbs */
213div.breadcrumbs {
214    background-color: @ini_background_alt;
215    margin: 0 0 20px -40px;
216    padding: 15px 40px;
217    position: relative;
218    width: 100%;
219    font-size: 14px;
220
221    a {
222        text-decoration: none;
223    }
224}
225body:not(.mode_show) div.breadcrumbs {
226    display: none;
227}
228
229/* TOC */
230#dw__toc {
231    width: 240px;
232
233    h3 {
234        font-size: 14px;
235        margin-bottom: 0;
236        padding: 10px;
237    }
238    > div {
239        padding: 0 10px 10px;
240    }
241    ul li {
242        font-size: 14px;
243        line-height: inherit;
244    }
245    ul ul {
246        padding-left: 20px;
247    }
248    ul ul ul {
249        padding-left: 15px;
250    }
251    li li {
252        list-style: square;
253        color: lighten(@ini_text, 40%);
254    }
255    a {
256        text-decoration: none;
257    }
258}
259
260/* Section editing */
261.secedit input.button, /* @deprecated since Detritus */
262.secedit button {
263    padding: 5px 10px;
264}
265.dokuwiki div.section_highlight {
266    margin: 0 -40px;
267    padding: 0 20px;
268    border-width: 0 20px;
269}
270
271/* Modal windows */
272.dokuwiki form.search div.ajax_qsearch {
273    left: auto;
274    right: -13.5em;
275    top: -10px;
276}
277.JSpopup {
278    border: 2px solid @ini_background_neu;
279    border-radius: 20px;
280    color: @ini_text;
281    padding: 10px;
282    font-size: 14px;
283}
284
285.mock-layout {
286    background-color: @ini_background;
287    padding: 0;
288    width: auto;
289
290    &::after {
291        width: 40px;
292    }
293    &::before {
294        width: 20px;
295        left: 40px;
296    }
297
298    > div {
299        padding: 20px 20px 20px 80px !important;
300    }
301}
302
303/* Fullscreen media manager */
304.mode_media {
305    .mock-layout;
306
307    #writr__sidebar-toggle,
308    #writr__masthead .site-branding,
309    #writr__masthead .search-form,
310    #writr__site-navigation,
311    #writr__secondary,
312    .breadcrumbs,
313    .page-footer {
314        display: none;
315    }
316    #writr__page,
317    .content-area {
318        width: auto;
319    }
320    .content-area {
321        padding: 0;
322    }
323
324    /* show only logo in sidebar */
325    #writr__sidebar {
326        float: none;
327        padding: 0;
328        width: auto;
329        position: static;
330        .site-header {
331            background-color: transparent;
332            position: absolute;
333            top: 15px;
334            left: 5px;
335        }
336        .site-logo {
337            display: inline-block;
338            img {
339                width: 50px;
340                height: 50px;
341            }
342        }
343    }
344}
345
346/* Popup media manager */
347.media-popup {
348    padding: 0;
349
350    &,
351    &::before,
352    &::after {
353        background-color: @ini_background;
354    }
355
356    #mediamgr__aside > div,
357    #mediamgr__content > div {
358        padding: 5px;
359    }
360
361    #media__tree {
362        li > ul {
363            margin-left: 0;
364        }
365        ul li li {
366            margin-left: 1em;
367        }
368    }
369}
370
371/* Image detail page */
372.detail-page {
373    .mock-layout;
374
375    p.back a .genericon {
376        vertical-align: middle;
377        text-decoration: none;
378        margin: 0 5px 0 -8px;
379    }
380}
381