librarian update
[wolnelektury.git] / src / wolnelektury / static / scss / main / header.scss
1 $header_bg: #191919;
2 $small_logo: .9;
3
4 header#main {
5   @include size(line-height, 20px); /* Make links easier to click when wrapped. */
6   background-color: $header_bg;
7   color: #bbb;
8   position: relative;
9
10   /*text-align: center;*/
11
12   @media screen and (min-width: 1024px) {
13     width: 975px;
14     margin: auto;
15   }
16
17   a {
18     color: #17CFDB;
19   }
20
21   #logo {
22     display: block;
23     margin: auto;
24
25     @include size(width, 173px);
26     @include size(height, 94px);
27
28     img {
29       @include size(width, $small_logo * 173px);
30       @include size(height, $small_logo * 94px);
31       margin-top: (1 - $small_logo) * 94px / 2;
32       margin-left: (1 - $small_logo) * 173px / 2;
33
34       @media screen and (min-width: 768px) {
35         @include size(width, 173px);
36         @include size(height, 94px);
37         margin-top: 0;
38         margin-left: 0;
39       }
40     }
41
42     @media screen and (min-width: 1024px) {
43       margin-left: 0;
44     }
45   }
46
47   #tagline {
48     display: none;
49     position: absolute;
50     @include size(top, 3px);
51     @include size(left, 255px);
52     @include size(font-size, 13px);
53
54     @media screen and (min-width: 1024px) {
55       display: block;
56     }
57   }
58
59   #lang-menu {
60     display: block;
61     position: absolute;
62     top: 0;
63     right: 0;
64
65     @include mono;
66
67     #lang-button {
68       display: block;
69
70       @include size(font-size, 10px);
71       @include size(line-height, 17px);
72       @include size(padding-left, 25px);
73       @include size(padding-right, 20px);
74       @include size(padding-top, 16px);
75       @include size(padding-bottom, 16px);
76
77       .label {
78         &:after {
79           @include size(padding-left, 10px);
80           content: url("/static/img/arrow-gray.png");
81           vertical-align: top;
82         }
83       }
84
85       .lang-flag {
86         @include size(font-size, 13px);
87         @include size(line-height, 15px);
88       }
89     }
90
91     #lang-menu-items {
92       z-index: 9999;
93
94       button {
95         @include mono;
96         display: none;
97         background: #f7f7f7;
98         color: #6f6f6f;
99         cursor: pointer;
100         width: 100%;
101         margin: 0;
102         @include size(padding, 10px 0);
103
104         @media screen and (min-width: 62.5em) {
105           @include size(padding, 5px 0);
106         }
107
108         border-width: 0;
109         @include size(border-bottom, 1px solid #ddd);
110
111         @include size(font-size, 13px);
112
113         &.active {
114           color: #000;
115         }
116       }
117     }
118
119     &:hover, &.hover {
120       #lang-menu-items {
121         position: absolute;
122         padding: 0;
123         right: 0;
124         width: 100%;
125         button {
126           display: block;
127         }
128       }
129     }
130
131   }
132
133   #main-menu-toggle {
134     position: absolute;
135     left: 0;
136     top: 0;
137   }
138
139   /*#user-info {
140     margin-top: 0;
141     @include size(margin-left, 5px);
142     @include size(margin-right, 5px);
143     padding-top: 0;
144     @include mono;
145     @include size(font-size, 10px);
146     position: relative;
147
148     @media screen and (min-width: 24em) {
149       @include size(padding-top, 15px);
150       @include size(margin-left, 180px);
151       text-align: right;
152     }
153     @media screen and (min-width: 62.5em) {
154       position: absolute;
155       top: 0;
156       right: 0;
157       @include size(margin-left, 0);
158       @include size(margin-right, 0);
159     }
160
161     !* We want submenu on far left on small screens. *!
162     .hidden-box-wrapper {
163       position: static;
164       @media screen and (min-width: 24em) {
165         position: relative;
166       }
167     }
168
169     #user-menu {
170       display: none;
171
172       text-align: left;
173       line-height: 1.6em;
174       left: 0;
175       right: 0;
176       top: 2em;
177
178       @media screen and (min-width: 15em) {
179         right: auto;
180         width: 15em;
181       }
182
183       a {
184         color: #0D7E85;
185       }
186     }
187   }*/
188
189   form#search-area {
190     position: relative;
191     clear: both;
192     @include size(height, 45px);
193     background: #444444;
194     color: white;
195
196     @media screen and (min-width: 1024px) {
197       position: absolute;
198       @include size(top, 49px);
199       @include size(left, 240px);
200       @include size(right, 0);
201     }
202
203     #search-field {
204       position: absolute;
205       @include size(top, 5px);
206       @include size(left, 5px);
207       @include size(right, 113px);
208
209       label {
210         @include hidden-label;
211       }
212       input#search {
213         z-index: 200;
214         position: relative;
215         @include size(height, 33px);
216         width: 100%;
217         padding: 0;
218         @include size(padding-left, 13px);
219         @include size(line-height, 32.5px);
220
221         border: none;
222         @include size(border-radius, 5px);
223         @include box-shadow(0 0 6.5px #444444 inset);
224
225         font-family: Georgia;
226         @include size(font-size, 13px);
227         background-color: white;
228         color: black;
229
230         /* styling search placeholder */
231         &::placeholder {
232           font-family: Georgia;
233           font-style: italic;
234           color: #767676;
235         }
236         &::-webkit-input-placeholder {
237           font-family: Georgia;
238           font-style: italic;
239           color: #767676;
240         }
241         &::-moz-placeholder {
242           font-family: Georgia;
243           font-style: italic;
244           color: #767676;
245         }
246       }
247     }
248     button {
249       display: inline-block;
250       position: absolute;
251       top: 0;
252       right: 0;
253       @include size(height, 45px);
254       @include size(width, 94px);
255       margin: 0;
256       padding: 0;
257
258       border: none;
259
260       @include mono;
261       @include size(font-size, 11px);
262       background: #018189;
263       color: white;
264     }
265   }
266 }
267
268 @media screen and (min-width: 1024px) {
269   #whole-header {
270     height: 94px + 49px;
271   }
272
273   #header-wrapper {
274     position: relative;
275     background-color: $header_bg;
276   }
277 }