xref: /template/sprintdoc/css/area_header.less (revision b3aa151af476d317b6ae1192643feec22bad29c1)
1/**
2 * This file provides the design styles for the page header.
3 *
4 * @author Jana Deutschlaender <deutschlaender@cosmocode.de>
5 */
6
7
8#dokuwiki__header {
9    @header-font-opacity: 1;
10
11    @media @screen_max-xs {
12        min-height: 120px;
13    }
14
15
16/* + + +  wiki logo  + + + */
17    @media @screen_min-md {
18        .logo {
19            padding: 1rem 0 .3rem;
20
21            img {
22                height: 4.6rem;
23                width: auto;
24                border-style: solid;
25                border-color: transparent;
26                border-width: 2px 0;
27            }
28
29            a:hover,
30            a:focus,
31            a:active {
32                img {
33                    border-width: 0;
34                }
35            }
36        }
37    }
38
39    @media @screen_max-md {
40        .logo {
41            display: table-cell;
42
43            .mobile-only {
44                margin: .8rem 1rem .6rem 0;
45            }
46        }
47    }
48
49
50/* + + + + +  DESKTOP  -  wiki title + claim  + + + + + */
51    .main-title.desktop-only {
52        @media @screen_min-md {
53            display: table-cell;
54            vertical-align: middle;
55        }
56
57        @media @screen_max-md {
58            display: block;
59        }
60
61        p.title {
62            @media @screen_max-md {
63                display: none;
64            }
65        }
66
67        p.claim {
68            @media @screen_max-md {
69                display: block;
70                padding-bottom: 1rem;
71            }
72
73            @media @screen_max-xs {
74                padding-right: (@toggle-size + @headericons-margin-xxs);
75            }
76        }
77    }
78
79
80/* + + + + +  MOBILE  -  wiki title wrapper  + + + + + */
81    .main-title:not([class*="desktop-only"]) {
82        @media @screen_max-md {
83            display: table-cell;
84            vertical-align: middle;
85        }
86
87        @media @screen_max-xs {
88            padding-right: (@toggle-size + @headericons-margin-xxs);
89        }
90    }
91
92
93/* + + +  wiki title  + + + */
94    p.title {
95        background-color: @ini_background_site;
96        opacity: @header-font-opacity;
97        color: @ini_text_webframe;
98        line-height: @line-height-default;
99        margin-bottom: .5rem;
100
101        @media @screen_min-md {
102            font-size: @font-size-big;
103        }
104
105        @media @screen_max-md {
106            font-size: (@font-size-default + .25);
107            padding-top: .5rem;
108            padding-left: 1rem;
109        }
110    }
111
112
113/* + + + + +  DESKTOP  -  wiki claim, logo, title wrapper  + + + + + */
114    @media @screen_min-md {
115        div.claim {
116            display: table-cell;
117            height: 100%;
118            vertical-align: middle;
119        }
120    }
121
122
123/* + + +  wiki claim  + + + */
124    p.claim {
125        opacity: @header-font-opacity;
126        color: @ini_text_webframe;
127        font-size: @font-size-default;
128        margin-bottom: 0;
129
130        @media @screen_max-md {
131            padding-top: .5rem;
132        }
133    }
134
135
136/* + + +  mobile nav togglelink  + + + */
137    .menu-togglelink {
138        position: relative;
139        z-index: 1;
140        margin: @headericons-margin-xxs -(@very-small-spacing) 0 0;
141
142        a {
143            .fontello();
144            .icon-menu();
145            .btn-hover();
146
147            display: block;
148            min-height: @toggle-size;
149            min-width: @toggle-size;
150            box-sizing: border-box;
151            border: 1px solid @ini_border;
152            border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius
153            font-size: 1rem;
154            text-align: center;
155            text-decoration: none;
156            line-height: 1;
157
158            &::before {
159                font-size: 1.5rem;
160                margin: .1rem 0 0;
161            }
162        }
163    }
164
165
166/* + + + + +  with magic matcher  + + + + + */
167    &.has-magicmatcher {
168        .logo {
169            @media @screen_min-md {
170                padding-top: 3rem;
171            }
172        }
173
174        .main-title.desktop-only {
175            @media @screen_min-md {
176                vertical-align: bottom;
177                padding-top: @height-context-bar;
178                padding-bottom: 1rem;
179            }
180
181            p.title {
182                @media @screen_min-md {
183                    margin-right: 16rem;
184                }
185            }
186
187            p.claim {
188                @media @screen_max-md {
189                    display: block;
190                    padding-bottom: 1rem;
191                }
192            }
193        }
194    }
195}
196