jekyll-theme-pirati 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -17
- data/_data/menu.yml +53 -0
- data/_includes/candidate_badge.html +6 -15
- data/_includes/footer.html +92 -12
- data/_includes/head.html +24 -25
- data/_includes/header.html +14 -14
- data/_includes/js/main.html +71 -14
- data/_includes/menu.html +43 -51
- data/_includes/people/profile_badge.html +1 -3
- data/_includes/right-bar/bar_cal.html +4 -6
- data/_includes/right-bar/bar_fb.html +3 -3
- data/_includes/right-bar/bar_garant.html +3 -2
- data/_includes/right-bar/bar_people.html +21 -18
- data/_includes/right-bar/bar_person_contact.html +11 -55
- data/_includes/right-bar/rbar.html +3 -3
- data/_layouts/komunalni-volby.html +9 -7
- data/_sass/_base.scss +114 -1
- data/_sass/_settings.scss +1 -1
- data/_sass/components/BasicPage.scss +6 -1
- data/_sass/components/hero.scss +2 -2
- data/_sass/components/icon.scss +5 -1
- data/_sass/components/program.scss +5 -1
- data/_sass/components/top-bar.scss +236 -491
- data/_sass/components/top-sub-nav.scss +1 -1
- data/_sass/objects/media.scss +46 -38
- data/_sass/utilities/utilities.scss +6 -6
- data/assets/css/main.scss +40 -106
- data/assets/js/apps.js +8 -0
- data/assets/js/apps/scroll-top/ScrollTop.vue +83 -0
- data/assets/js/apps/scroll-top/index.js +9 -0
- data/assets/js/apps/site-search/SiteSearch.vue +85 -0
- data/assets/js/apps/site-search/SiteSearchItemTemplate.vue +29 -0
- data/assets/js/apps/site-search/index.js +14 -0
- data/assets/js/index.js +52 -0
- metadata +9 -91
- data/_includes/js/custom.js +0 -245
- data/_includes/js/fb.js +0 -15
- data/_includes/js/piwik.js +0 -11
- data/_includes/js/tw.js +0 -15
- data/_includes/people/item.html +0 -49
- data/_includes/people/list-2col.html +0 -24
- data/_includes/people/list-group.html +0 -12
- data/_includes/title/title_header.html +0 -9
- data/_sass/components/scroll-top.scss +0 -32
- data/_sass/components/welcome-header.scss +0 -188
- data/_sass/foundation/_global.scss +0 -638
- data/_sass/foundation/components/_accordion-menu.scss +0 -32
- data/_sass/foundation/components/_accordion.scss +0 -129
- data/_sass/foundation/components/_badge.scss +0 -55
- data/_sass/foundation/components/_breadcrumbs.scss +0 -95
- data/_sass/foundation/components/_button-group.scss +0 -195
- data/_sass/foundation/components/_button.scss +0 -265
- data/_sass/foundation/components/_callout.scss +0 -105
- data/_sass/foundation/components/_close-button.scss +0 -61
- data/_sass/foundation/components/_drilldown.scss +0 -79
- data/_sass/foundation/components/_dropdown-menu.scss +0 -221
- data/_sass/foundation/components/_dropdown.scss +0 -65
- data/_sass/foundation/components/_flex-video.scss +0 -63
- data/_sass/foundation/components/_flex.scss +0 -28
- data/_sass/foundation/components/_float.scss +0 -27
- data/_sass/foundation/components/_label.scss +0 -55
- data/_sass/foundation/components/_media-object.scss +0 -115
- data/_sass/foundation/components/_menu-icon.scss +0 -9
- data/_sass/foundation/components/_menu.scss +0 -314
- data/_sass/foundation/components/_off-canvas.scss +0 -177
- data/_sass/foundation/components/_orbit.scss +0 -193
- data/_sass/foundation/components/_pagination.scss +0 -162
- data/_sass/foundation/components/_progress-bar.scss +0 -64
- data/_sass/foundation/components/_reveal.scss +0 -172
- data/_sass/foundation/components/_slider.scss +0 -133
- data/_sass/foundation/components/_sticky.scss +0 -38
- data/_sass/foundation/components/_switch.scss +0 -232
- data/_sass/foundation/components/_table.scss +0 -234
- data/_sass/foundation/components/_tabs.scss +0 -165
- data/_sass/foundation/components/_thumbnail.scss +0 -54
- data/_sass/foundation/components/_title-bar.scss +0 -89
- data/_sass/foundation/components/_tooltip.scss +0 -104
- data/_sass/foundation/components/_top-bar.scss +0 -168
- data/_sass/foundation/components/_visibility.scss +0 -132
- data/_sass/foundation/forms/_checkbox.scss +0 -40
- data/_sass/foundation/forms/_error.scss +0 -84
- data/_sass/foundation/forms/_fieldset.scss +0 -54
- data/_sass/foundation/forms/_forms.scss +0 -34
- data/_sass/foundation/forms/_help-text.scss +0 -30
- data/_sass/foundation/forms/_input-group.scss +0 -128
- data/_sass/foundation/forms/_label.scss +0 -48
- data/_sass/foundation/forms/_meter.scss +0 -109
- data/_sass/foundation/forms/_progress.scss +0 -85
- data/_sass/foundation/forms/_range.scss +0 -144
- data/_sass/foundation/forms/_select.scss +0 -67
- data/_sass/foundation/forms/_text.scss +0 -163
- data/_sass/foundation/foundation.scss +0 -102
- data/_sass/foundation/grid/_classes.scss +0 -151
- data/_sass/foundation/grid/_column.scss +0 -126
- data/_sass/foundation/grid/_flex-grid.scss +0 -274
- data/_sass/foundation/grid/_grid.scss +0 -60
- data/_sass/foundation/grid/_gutter.scss +0 -34
- data/_sass/foundation/grid/_layout.scss +0 -51
- data/_sass/foundation/grid/_position.scss +0 -73
- data/_sass/foundation/grid/_row.scss +0 -95
- data/_sass/foundation/grid/_size.scss +0 -24
- data/_sass/foundation/settings/_settings.scss +0 -567
- data/_sass/foundation/typography/_alignment.scss +0 -22
- data/_sass/foundation/typography/_base.scss +0 -443
- data/_sass/foundation/typography/_helpers.scss +0 -77
- data/_sass/foundation/typography/_print.scss +0 -77
- data/_sass/foundation/typography/_typography.scss +0 -28
- data/_sass/foundation/util/_breakpoint.scss +0 -275
- data/_sass/foundation/util/_color.scss +0 -60
- data/_sass/foundation/util/_flex.scss +0 -68
- data/_sass/foundation/util/_mixins.scss +0 -235
- data/_sass/foundation/util/_selector.scss +0 -40
- data/_sass/foundation/util/_unit.scss +0 -90
- data/_sass/foundation/util/_util.scss +0 -11
- data/_sass/foundation/util/_value.scss +0 -107
- data/_sass/jquery-ui.scss +0 -1311
- data/_sass/main.scss +0 -41
- data/_sass/minima.scss +0 -51
- data/_sass/minima/_base.scss +0 -254
- data/_sass/minima/_layout.scss +0 -255
- data/_sass/minima/_syntax-highlighting.scss +0 -71
- data/_sass/scroll-top.scss +0 -31
- data/assets/js/common-libs.min.js +0 -1
- data/assets/js/custom.min.js +0 -1
- data/assets/snippet/profile.html +0 -19
data/_sass/_settings.scss
CHANGED
@@ -366,7 +366,6 @@
|
|
366
366
|
}
|
367
367
|
}
|
368
368
|
|
369
|
-
|
370
369
|
h3 {
|
371
370
|
font-family: "Open Sans",Helvetica,Roboto,Arial,sans-serif;
|
372
371
|
font-weight: bold;
|
@@ -374,6 +373,12 @@
|
|
374
373
|
font-size: 1.3rem;
|
375
374
|
}
|
376
375
|
|
376
|
+
h4 {
|
377
|
+
font-family: "Open Sans",Helvetica,Roboto,Arial,sans-serif;
|
378
|
+
margin-bottom: .25em;
|
379
|
+
font-size: 1.2rem;
|
380
|
+
}
|
381
|
+
|
377
382
|
a {
|
378
383
|
text-decoration: underline;
|
379
384
|
}
|
data/_sass/components/hero.scss
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
.c-hero {
|
2
|
-
background: url('../img/miscellaneous/slider-bg.png');
|
2
|
+
// background: url('../img/miscellaneous/slider-bg.png');
|
3
3
|
background-size: cover;
|
4
4
|
background-position: top center;
|
5
5
|
background-repeat: no-repeat;
|
@@ -28,7 +28,7 @@
|
|
28
28
|
position: absolute;
|
29
29
|
width: 452px;
|
30
30
|
height: 413px;
|
31
|
-
background: url('../img/miscellaneous/header.png');
|
31
|
+
// background: url('../img/miscellaneous/header.png');
|
32
32
|
background-repeat: no-repeat;
|
33
33
|
background-position: right center;
|
34
34
|
}
|
data/_sass/components/icon.scss
CHANGED
@@ -78,6 +78,10 @@ $program-item-ns: '';
|
|
78
78
|
flex-wrap: wrap;
|
79
79
|
}
|
80
80
|
|
81
|
+
.#{$program-item-ns}c-program-candidates__others {
|
82
|
+
width: 100%;
|
83
|
+
}
|
84
|
+
|
81
85
|
.#{$program-item-ns}c-program-candidates__row {
|
82
86
|
display: flex;
|
83
87
|
flex-direction: row;
|
@@ -193,6 +197,6 @@ $program-item-ns: '';
|
|
193
197
|
@include candidate-landscape();
|
194
198
|
}
|
195
199
|
|
196
|
-
.#{$program-item-ns}c-program-candidate-badge.c-program-candidate-badge--leader + .#{$program-item-ns}c-program-
|
200
|
+
.#{$program-item-ns}c-program-candidate-badge.c-program-candidate-badge--leader + .#{$program-item-ns}c-program-candidates__others {
|
197
201
|
margin-top: 1.5rem;
|
198
202
|
}
|
@@ -1,491 +1,236 @@
|
|
1
|
-
.c-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
padding:
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
.
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
}
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
margin-right: -
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
font-size: 1.15rem;
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
.
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
}
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
width: 100%;
|
238
|
-
|
239
|
-
@include breakpoint(medium down) {
|
240
|
-
display: none;
|
241
|
-
|
242
|
-
.responsive-menu-inner {
|
243
|
-
display: table;
|
244
|
-
width: 100%;
|
245
|
-
}
|
246
|
-
|
247
|
-
}
|
248
|
-
|
249
|
-
}
|
250
|
-
|
251
|
-
.c-top-bar .c-top-bar-menu {
|
252
|
-
display: none;
|
253
|
-
|
254
|
-
@include breakpoint(medium down) {
|
255
|
-
display: block;
|
256
|
-
position: absolute;
|
257
|
-
top: 100%;
|
258
|
-
left: 0;
|
259
|
-
right: 0;
|
260
|
-
background: #e1e1e1;
|
261
|
-
|
262
|
-
ul {
|
263
|
-
background: #e1e1e1;
|
264
|
-
}
|
265
|
-
|
266
|
-
box-sizing: border-box;
|
267
|
-
z-index: 10;
|
268
|
-
width: 100%;
|
269
|
-
|
270
|
-
.top-bar-left,
|
271
|
-
.top-bar-right {
|
272
|
-
float: none;
|
273
|
-
}
|
274
|
-
|
275
|
-
.top-bar-header-group{
|
276
|
-
display: table-header-group;
|
277
|
-
}
|
278
|
-
|
279
|
-
.top-bar-footer-group{
|
280
|
-
display: table-footer-group;
|
281
|
-
}
|
282
|
-
|
283
|
-
.dropdown.menu {
|
284
|
-
|
285
|
-
li + li > a::before {
|
286
|
-
content: '';
|
287
|
-
box-sizing: border-box;
|
288
|
-
width: calc(100% - 3.6rem);
|
289
|
-
height: 1px;
|
290
|
-
display: inline-block;
|
291
|
-
position: absolute;
|
292
|
-
top: 0;
|
293
|
-
left: 1.8rem;
|
294
|
-
transform: none;
|
295
|
-
background: #d3d3d3;
|
296
|
-
}
|
297
|
-
}
|
298
|
-
|
299
|
-
.menu li {
|
300
|
-
display: block;
|
301
|
-
}
|
302
|
-
|
303
|
-
.menu a {
|
304
|
-
}
|
305
|
-
|
306
|
-
.menu a {
|
307
|
-
position: relative;
|
308
|
-
color: #343434;
|
309
|
-
text-transform: uppercase;
|
310
|
-
font-size: 1.15rem;
|
311
|
-
transition: color 0.2s;
|
312
|
-
padding: 1rem 1.8rem;
|
313
|
-
|
314
|
-
&:before {
|
315
|
-
content: none;
|
316
|
-
display: block;
|
317
|
-
}
|
318
|
-
|
319
|
-
}
|
320
|
-
|
321
|
-
.menu a:hover,
|
322
|
-
.menu .is-active > a {
|
323
|
-
color: #f3c289;
|
324
|
-
|
325
|
-
&:before {
|
326
|
-
background: #f3c289;
|
327
|
-
}
|
328
|
-
|
329
|
-
&:after {
|
330
|
-
background: transparent;
|
331
|
-
}
|
332
|
-
}
|
333
|
-
|
334
|
-
.dropdown.menu > li.is-dropdown-submenu-parent a:hover:after {
|
335
|
-
background: transparent;
|
336
|
-
}
|
337
|
-
|
338
|
-
.menu li.is-dropdown-submenu-parent > a:after {
|
339
|
-
content: '\f196';
|
340
|
-
position: static;
|
341
|
-
display: inline-block;
|
342
|
-
font-size: 1rem;
|
343
|
-
margin-left: 5px;
|
344
|
-
font-family: 'FontAwesome';
|
345
|
-
border: 0;
|
346
|
-
line-height: 1;
|
347
|
-
height: auto;
|
348
|
-
}
|
349
|
-
|
350
|
-
.menu li.is-dropdown-submenu-parent.is-active > a:after {
|
351
|
-
content: '\f147';
|
352
|
-
}
|
353
|
-
|
354
|
-
.dropdown.menu > li > .is-dropdown-submenu.js-dropdown-active {
|
355
|
-
display: block;
|
356
|
-
position: static;
|
357
|
-
border: 0;
|
358
|
-
margin-left: 1.8rem;
|
359
|
-
margin-right: 1.8rem;
|
360
|
-
padding-top: 0.25rem;
|
361
|
-
padding-bottom: 0.25rem;
|
362
|
-
background: #ececec;
|
363
|
-
border-top: 1px solid #d3d3d3;
|
364
|
-
text-decoration: underline;
|
365
|
-
|
366
|
-
li {
|
367
|
-
padding-left: 0.5rem;
|
368
|
-
}
|
369
|
-
|
370
|
-
a {
|
371
|
-
text-transform: none;
|
372
|
-
padding: 1rem 0.5rem;
|
373
|
-
&:before {
|
374
|
-
visibility: hidden;
|
375
|
-
}
|
376
|
-
}
|
377
|
-
|
378
|
-
}
|
379
|
-
|
380
|
-
.dropdown.menu > li.is-dropdown-submenu-parent > a {
|
381
|
-
padding-right: 1.25rem;
|
382
|
-
}
|
383
|
-
|
384
|
-
.dropdown.menu > li.is-dropdown-submenu-parent > a:before {
|
385
|
-
|
386
|
-
}
|
387
|
-
|
388
|
-
.dropdown.menu > li.opens-right > .is-dropdown-submenu {
|
389
|
-
position: static;
|
390
|
-
background: #ececec;
|
391
|
-
|
392
|
-
a:hover {
|
393
|
-
color: darken(#f3c289, 5%);
|
394
|
-
&:before {
|
395
|
-
content: none;
|
396
|
-
}
|
397
|
-
}
|
398
|
-
|
399
|
-
}
|
400
|
-
|
401
|
-
.dropdown.menu > li.opens-right > .is-dropdown-submenu:before {
|
402
|
-
content: '';
|
403
|
-
position: absolute;
|
404
|
-
top: -8px;
|
405
|
-
left: 50%;
|
406
|
-
transform: translateX(-50%);
|
407
|
-
width: 0;
|
408
|
-
height: 0;
|
409
|
-
border-left: 25px solid transparent;
|
410
|
-
border-right: 25px solid transparent;
|
411
|
-
border-bottom: 15px solid #e1e1e1;
|
412
|
-
}
|
413
|
-
|
414
|
-
}
|
415
|
-
|
416
|
-
}
|
417
|
-
|
418
|
-
|
419
|
-
.c-top-bar {
|
420
|
-
|
421
|
-
.menu.c-top-bar-searchbar.c-top-bar-searchbar--asTitle {
|
422
|
-
display: inline-block;
|
423
|
-
float: left;
|
424
|
-
width: auto;
|
425
|
-
padding: 0;
|
426
|
-
}
|
427
|
-
|
428
|
-
@include breakpoint(large) {
|
429
|
-
.menu.c-top-bar-searchbar.c-top-bar-searchbar--asTitle {
|
430
|
-
display: inline-block;
|
431
|
-
float: right;
|
432
|
-
padding-bottom: 1px;
|
433
|
-
}
|
434
|
-
|
435
|
-
}
|
436
|
-
|
437
|
-
@include breakpoint(large) {
|
438
|
-
.c-top-bar-menu .top-bar-left > .menu > li:first-child a {
|
439
|
-
padding-left: 0rem;
|
440
|
-
|
441
|
-
&:after {
|
442
|
-
left: 0rem;
|
443
|
-
}
|
444
|
-
}
|
445
|
-
}
|
446
|
-
|
447
|
-
@include breakpoint(xlarge) {
|
448
|
-
.c-top-bar-menu .top-bar-left > .menu > li:first-child a {
|
449
|
-
padding-left: 0.65rem;
|
450
|
-
|
451
|
-
&:after {
|
452
|
-
left: 0.65rem;
|
453
|
-
}
|
454
|
-
}
|
455
|
-
}
|
456
|
-
|
457
|
-
@include breakpoint(medium down) {
|
458
|
-
|
459
|
-
.c-top-bar-searchbar.menu {
|
460
|
-
display: table;
|
461
|
-
width: 100%;
|
462
|
-
padding: 20px 1.8rem 10px 1.8rem;
|
463
|
-
}
|
464
|
-
|
465
|
-
.c-top-bar-searchbar.menu li {
|
466
|
-
display: table-cell;
|
467
|
-
height: 40px;
|
468
|
-
background: #fff;
|
469
|
-
}
|
470
|
-
|
471
|
-
.c-top-bar-searchbar input {
|
472
|
-
max-width: none;
|
473
|
-
}
|
474
|
-
|
475
|
-
.c-top-bar-searchbar .c-top-bar-searchbar__submit {
|
476
|
-
width: 40px;
|
477
|
-
|
478
|
-
button {
|
479
|
-
padding: 0em 1em;
|
480
|
-
font-size: 1.1rem;
|
481
|
-
margin-right: 0;
|
482
|
-
}
|
483
|
-
}
|
484
|
-
|
485
|
-
.c-top-bar-searchbar input,
|
486
|
-
.c-top-bar-searchbar button {
|
487
|
-
height: 100%;
|
488
|
-
}
|
489
|
-
}
|
490
|
-
|
491
|
-
}
|
1
|
+
.c-search {
|
2
|
+
display: flex;
|
3
|
+
align-items: center;
|
4
|
+
border-bottom: 1px $medium-gray solid;
|
5
|
+
}
|
6
|
+
|
7
|
+
.c-search__input {
|
8
|
+
border: 0;
|
9
|
+
margin: 0;
|
10
|
+
box-shadow: none;
|
11
|
+
|
12
|
+
&:focus {
|
13
|
+
border: 0;
|
14
|
+
box-shadow: none;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.c-search__confirm {
|
19
|
+
padding: 0em 1em;
|
20
|
+
font-size: 1.1rem;
|
21
|
+
}
|
22
|
+
|
23
|
+
.c-responsive-menu-toggle {
|
24
|
+
display: inline-block;
|
25
|
+
font-size: 1.15rem;
|
26
|
+
border: 1px solid $medium-gray;
|
27
|
+
transition: border .2s;
|
28
|
+
}
|
29
|
+
.c-responsive-menu-toogle__button {
|
30
|
+
display: flex;
|
31
|
+
align-items: center;
|
32
|
+
padding: 0.7rem 1.25rem;
|
33
|
+
}
|
34
|
+
|
35
|
+
.c-responsive-menu-toggle__caption {
|
36
|
+
margin-right: .25rem;
|
37
|
+
text-transform: uppercase;
|
38
|
+
}
|
39
|
+
|
40
|
+
.c-responsive-menu {
|
41
|
+
display: block;
|
42
|
+
padding: .5rem 0;
|
43
|
+
|
44
|
+
@include breakpoint(medium down) {
|
45
|
+
position: absolute;
|
46
|
+
top: 100%;
|
47
|
+
left: 0;
|
48
|
+
z-index: 10;
|
49
|
+
background: $light-gray;
|
50
|
+
|
51
|
+
width: calc(100% + 2.5rem);
|
52
|
+
margin-left: -1.25rem;
|
53
|
+
margin-right: -1.25rem;
|
54
|
+
}
|
55
|
+
|
56
|
+
@include breakpoint(small down) {
|
57
|
+
width: calc(100% + 1.25rem);
|
58
|
+
margin-left: -0.625rem;
|
59
|
+
margin-right: -0.625rem;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
.c-responsive-menu__items {
|
64
|
+
list-style-type: none;
|
65
|
+
margin: 0;
|
66
|
+
}
|
67
|
+
|
68
|
+
.c-responsive-menu__item {
|
69
|
+
display: inline-block;
|
70
|
+
|
71
|
+
@include breakpoint(medium down) {
|
72
|
+
display: block;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
.c-responsive-menu__item a {
|
77
|
+
display: block;
|
78
|
+
position: relative;
|
79
|
+
color: map-get($foundation-palette, dark);
|
80
|
+
text-transform: uppercase;
|
81
|
+
font-size: 1.15rem;
|
82
|
+
transition: color 0.2s;
|
83
|
+
padding: 0.7rem 1.25rem;
|
84
|
+
|
85
|
+
@include breakpoint(medium down) {
|
86
|
+
padding: 1rem 1.8rem;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
// Highlight active item in the menu.
|
91
|
+
.c-responsive-menu__item--active a,
|
92
|
+
.c-responsive-menu__item a:hover, {
|
93
|
+
color: map-get($foundation-palette, warning);
|
94
|
+
}
|
95
|
+
|
96
|
+
// On mobile view, display a divider between items.
|
97
|
+
.c-responsive-menu__item:not(:first-child) a {
|
98
|
+
@include breakpoint(medium down) {
|
99
|
+
&:before {
|
100
|
+
content: '';
|
101
|
+
box-sizing: border-box;
|
102
|
+
width: calc(100% - 3.6rem);
|
103
|
+
height: 1px;
|
104
|
+
display: inline-block;
|
105
|
+
position: absolute;
|
106
|
+
top: 0;
|
107
|
+
left: 1.8rem;
|
108
|
+
transform: none;
|
109
|
+
background: #d3d3d3;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
// On desktop view, display 'underline' block under the menu link.
|
115
|
+
.c-responsive-menu__item a {
|
116
|
+
@include breakpoint(large) {
|
117
|
+
&:after {
|
118
|
+
content: '';
|
119
|
+
display: block;
|
120
|
+
position: absolute;
|
121
|
+
bottom: 0;
|
122
|
+
left: 1rem;
|
123
|
+
right: 1rem;
|
124
|
+
height: 4px;
|
125
|
+
background: transparent;
|
126
|
+
transition: background 0.2s;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
// Highlights underline block when item is active.
|
132
|
+
.c-responsive-menu__item a:hover:after,
|
133
|
+
.c-responsive-menu__item--active a:after {
|
134
|
+
background: map-get($foundation-palette, warning);
|
135
|
+
}
|
136
|
+
|
137
|
+
// Display '/' divider between menu items on desktop view.
|
138
|
+
.c-responsive-menu__item + .c-responsive-menu__item a {
|
139
|
+
@include breakpoint(large) {
|
140
|
+
&:before {
|
141
|
+
content: '/';
|
142
|
+
width: 12px;
|
143
|
+
display: inline-block;
|
144
|
+
position: absolute;
|
145
|
+
top: 0.25rem;
|
146
|
+
left: 0;
|
147
|
+
transform: translateX(-50%);
|
148
|
+
font-size: 1.7rem;
|
149
|
+
color: $medium-gray;
|
150
|
+
border: 0px solid transparent;
|
151
|
+
margin-top: 0;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
.c-top-bar {
|
157
|
+
position: relative;
|
158
|
+
display: flex;
|
159
|
+
align-items: center;
|
160
|
+
|
161
|
+
@include breakpoint(large) {
|
162
|
+
padding: .5rem;
|
163
|
+
}
|
164
|
+
|
165
|
+
@include breakpoint(medium down) {
|
166
|
+
padding: 1.5rem 1rem;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
// Brand goes first.
|
171
|
+
.c-top-bar__brand {
|
172
|
+
order: 1;
|
173
|
+
width: 130px; // a little bit bigger on large screens
|
174
|
+
flex-shrink: 0;
|
175
|
+
display: flex;
|
176
|
+
align-items: center;
|
177
|
+
margin-right: 1.5rem;
|
178
|
+
|
179
|
+
@include breakpoint(medium down) {
|
180
|
+
width: 115px;
|
181
|
+
}
|
182
|
+
|
183
|
+
@include breakpoint(small down) {
|
184
|
+
display: none;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
// Responsive menu is second.
|
189
|
+
.c-top-bar .c-responsive-menu {
|
190
|
+
order: 2;
|
191
|
+
}
|
192
|
+
|
193
|
+
// Search is last.
|
194
|
+
.c-top-bar__search {
|
195
|
+
order: 3;
|
196
|
+
|
197
|
+
@include breakpoint(large) {
|
198
|
+
flex: 1; // search spreads to available space
|
199
|
+
max-width: 200px; // ... but max 200px
|
200
|
+
margin-left: auto;
|
201
|
+
}
|
202
|
+
|
203
|
+
@include breakpoint(medium down) {
|
204
|
+
flex: 1;
|
205
|
+
margin-right: 1.5rem;
|
206
|
+
}
|
207
|
+
|
208
|
+
.c-search {
|
209
|
+
@include breakpoint(large) {
|
210
|
+
margin: 1rem 0;
|
211
|
+
}
|
212
|
+
|
213
|
+
// On large screen, search confirm is at the very right of the container.
|
214
|
+
// @see: order: 3.
|
215
|
+
.c-search__confirm {
|
216
|
+
@include breakpoint(large) {
|
217
|
+
padding-right: 0;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
.c-top-bar .c-responsive-menu-toggle {
|
224
|
+
order: 4;
|
225
|
+
}
|
226
|
+
|
227
|
+
// Divides top bar from the rest of the page.
|
228
|
+
.c-top-bar__divider {
|
229
|
+
display: block;
|
230
|
+
height: 5px;
|
231
|
+
margin-top: -3px;
|
232
|
+
background: $light-gray;
|
233
|
+
position: relative;
|
234
|
+
z-index: 9;
|
235
|
+
}
|
236
|
+
|