1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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
|
.header {
background: $header-background;
a {
font-weight: map-get($base, font-weight);
text-decoration: none !important;
@include link-colors($header-text-color, $main-color-1);
}
.main {
@include flexbox();
@include media-breakpoint-down(md) {
@include flex-direction(column);
}
}
}
.header--dark {
@extend .text--dark;
background: rgba(#000, .15);
.navigation__item--active {
&::after {
@include split-line(bottom, 4px, $text-color-theme-dark);
}
}
}
.header--light {
@extend .text--light;
background: rgba(#fff, .15);
.navigation__item--active {
&::after {
@include split-line(bottom, 4px, $text-color-theme-light);
}
}
}
.header__title {
@include menu(3, 0);
@include align-items(center);
@include flex-wrap(nowrap);
@include flex(1);
height: map-get($layout, header-height);
margin-right: map-get($spacers, 3);
white-space: nowrap;
@include media-breakpoint-down(md) {
height: auto;
margin-right: 0;
}
& > .header__brand {
@include flex(1);
@include media-breakpoint-down(md) {
height: map-get($layout, header-height-sm);
}
}
& > .search-button {
display: none;
margin-left: map-get($spacers, 2);
@include media-breakpoint-down(md) {
@include flexbox();
}
}
}
.header__brand {
@include flexbox();
@include align-items(center);
& > svg {
width: map-get($base, font-size-h4) * 1.6;
height: map-get($base, font-size-h4) * 1.6;
margin-right: map-get($spacers, 3);
vertical-align: middle;
@include media-breakpoint-down(md) {
width: map-get($base, font-size-h4) * 1.2;
height: map-get($base, font-size-h4) * 1.2;
}
}
& > a {
display: inline-block;
font-size: map-get($base, font-size-h4);
@include media-breakpoint-down(md) {
font-size: map-get($base, font-size-h4-small);
}
}
}
.navigation {
@include overflow(auto, "x");
& > ul {
height: map-get($layout, header-height);
padding-bottom: 0;
margin: 0;
@include media-breakpoint-down(md) {
padding-bottom: 4px;
margin: -4px 0 0 0;
}
@include menu(3, 2, nowrap);
@include align-items(center);
@include media-breakpoint-down(md) {
height: auto;
}
.search-button {
@include media-breakpoint-down(md) {
display: none;
}
}
}
}
.navigation__item {
&::after {
display: block;
margin-bottom: -4px;
content: "";
@include split-line(bottom, 4px, transparent);
}
}
.navigation__item--active {
a {
@include link-colors($main-color-1, $main-color-1);
}
&::after {
@include split-line(bottom, 4px, $main-color-1);
}
}
|