Skip to content

Commit e479fda

Browse files
committed
Update header styles and base layout
1 parent b34b22b commit e479fda

File tree

2 files changed

+55
-22
lines changed

2 files changed

+55
-22
lines changed

_includes/layouts/base.njk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@
170170

171171
{% if isReducedMenuPage %}
172172

173+
<li class="{% if page.url == homeLink %}current{% endif %}">
174+
<a href="{{ homeLink }}">{{ strings.sections.home | localize }}</a>
175+
</li>
176+
173177
<li class="{% if page.url.startsWith(prefix ~ '/partners/') %}current{% endif %}">
174178
<a href="{{ partnersLink }}">{{ strings.pages.partners | localize }}</a>
175179
</li>

_scss/_header.scss

Lines changed: 51 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,47 @@
1010
font-weight: weights.$bold;
1111
padding: 0 calc(0px + 25 * ((100vw - 300px) / 1300)) 0 calc(0px + 25 * ((100vw - 300px) / 1300));
1212
}
13+
1314
.header ul {
1415
margin: 0;
1516
padding: 0;
1617
list-style: none;
1718
overflow: hidden;
1819
}
20+
1921
.header li a {
2022
display: block;
2123
padding: 15px 20px;
2224
text-decoration: none;
2325
text-align: center;
2426
color: colors.$text-primary;
2527
}
26-
.header li.current > a {
28+
29+
.header li.current>a {
2730
background-color: transparent;
2831
color: inherit;
2932
}
33+
3034
.header li a:hover {
3135
background-color: colors.$background-accent;
3236
}
33-
.header li.current > a:hover {
37+
38+
.header li.current>a:hover {
3439
background-color: colors.$background-accent;
3540
}
41+
3642
.header li.menu-item-reduced-padding a {
3743
padding: 15px 10px;
3844
}
45+
3946
.header li.menu-item-language a {
4047
font-size: 14px;
4148
line-height: 24px;
4249
padding: 3px 10px;
4350
position: relative;
4451
}
45-
.header li.menu-item-language a > .line {
52+
53+
.header li.menu-item-language a>.line {
4654
position: absolute;
4755
top: 27px;
4856
left: 0;
@@ -53,22 +61,26 @@
5361
max-width: 25px;
5462
margin: 0 auto;
5563
}
64+
5665
.header .vzg-logo {
5766
float: left;
5867
padding: 10px 5px 0px 15px;
5968
height: 48px;
6069
text-decoration: none;
6170
}
62-
.vzg-logo > img {
71+
72+
.vzg-logo>img {
6373
height: 28px;
6474
}
75+
6576
.header .coli-conc-logo-small {
6677
float: left;
6778
text-decoration: none;
68-
padding: 5px 0 0 10px;
69-
height: 55px;
79+
padding: 15px 0 0 10px;
80+
height: 85px;
7081
}
71-
.header .coli-conc-logo-small > img {
82+
83+
.header .coli-conc-logo-small>img {
7284
height: 100%;
7385
}
7486

@@ -87,6 +99,7 @@
8799
position: relative;
88100
user-select: none;
89101
}
102+
90103
/* middle line */
91104
.header .menu-icon .navicon {
92105
background: colors.$primary;
@@ -96,6 +109,7 @@
96109
position: relative;
97110
transition: background .2s ease-out;
98111
}
112+
99113
/* top + bottom line */
100114
.header .menu-icon .navicon:before,
101115
.header .menu-icon .navicon:after {
@@ -107,9 +121,11 @@
107121
position: absolute;
108122
transition: all .2s ease-out;
109123
}
124+
110125
.header .menu-icon .navicon:before {
111126
top: 5px;
112127
}
128+
113129
.header .menu-icon .navicon:after {
114130
top: -5px;
115131
}
@@ -118,22 +134,27 @@
118134
.header #menu-button {
119135
display: none;
120136
}
121-
.header #menu-button:checked ~ .menu {
137+
138+
.header #menu-button:checked~.menu {
122139
max-height: 320px;
123140
}
141+
124142
/* hides middle line when checked (i.e. clicked) */
125-
.header #menu-button:checked ~ .menu-icon .navicon {
143+
.header #menu-button:checked~.menu-icon .navicon {
126144
background: transparent;
127145
}
146+
128147
/* rotates top + bottom lines when checked */
129-
.header #menu-button:checked ~ .menu-icon .navicon:before {
148+
.header #menu-button:checked~.menu-icon .navicon:before {
130149
transform: rotate(-45deg);
131150
}
132-
.header #menu-button:checked ~ .menu-icon .navicon:after {
151+
152+
.header #menu-button:checked~.menu-icon .navicon:after {
133153
transform: rotate(45deg);
134154
}
135-
.header #menu-button:checked ~ .menu-icon:not(.steps) .navicon:before,
136-
.header #menu-button:checked ~ .menu-icon:not(.steps) .navicon:after {
155+
156+
.header #menu-button:checked~.menu-icon:not(.steps) .navicon:before,
157+
.header #menu-button:checked~.menu-icon:not(.steps) .navicon:after {
137158
top: 0;
138159
}
139160

@@ -146,51 +167,59 @@
146167
.header {
147168
padding-bottom: 30px;
148169
}
149-
.header ul, .menu-icon {
170+
171+
.header ul,
172+
.menu-icon {
150173
margin-top: 10px;
151174
}
175+
152176
.header ul {
153177
overflow: visible;
154178
}
179+
155180
.header li {
156181
float: left;
157182
}
183+
158184
.header .menu {
159185
clear: none;
160186
float: right;
161187
max-height: none;
162188
}
189+
163190
.header .menu-icon {
164191
display: none;
165192
}
166-
.header .coli-conc-logo-small {
167-
padding: 10px 0 0 0;
168-
height: 70px;
169-
}
193+
170194
// Dropdown menu
171195
.dropdown {
172196
position: relative;
173197
}
198+
174199
.dropdown:hover .dropdown-menu {
175200
display: block;
176201
box-shadow: 0 5px 5px colors.$background-accent;
177202
}
203+
178204
.dropdown .dropdown-menu {
179205
position: absolute;
180206
top: 100%;
181207
left: 0;
182208
margin: 0;
183209
min-width: 100%;
184210
}
185-
.dropdown-menu > div {
211+
212+
.dropdown-menu>div {
186213
position: relative;
187214
z-index: 1000;
188215
background-color: colors.$background-accent;
189216
}
190-
.dropdown-menu > div > a {
217+
218+
.dropdown-menu>div>a {
191219
text-align: left;
192220
}
193-
.vzg-logo > img {
221+
222+
.vzg-logo>img {
194223
margin-top: 12px;
195224
}
196-
}
225+
}

0 commit comments

Comments
 (0)