Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.

Commit 272989b

Browse files
committed
further consolidate styles for navbar; remove padding on first item in navbar brand
1 parent c708bae commit 272989b

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

src/css/header.css

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ body {
2323

2424
.navbar-brand {
2525
display: flex;
26+
padding-left: 1rem;
2627
}
2728

2829
.navbar-brand .navbar-item:first-child,
2930
.navbar-brand .navbar-item:first-child a {
31+
align-self: center;
32+
padding: 0;
3033
color: var(--navbar-font-color);
3134
font-size: calc(22 / var(--rem-base) * 1rem);
3235
}
@@ -94,11 +97,18 @@ body {
9497
}
9598

9699
.navbar-item .icon {
97-
width: 1.1rem;
98-
height: 1.1rem;
100+
width: 1.25rem;
101+
height: 1.25rem;
99102
display: block;
100103
}
101104

105+
.navbar-item .icon img,
106+
.navbar-item .icon svg {
107+
fill: currentColor;
108+
width: inherit;
109+
height: inherit;
110+
}
111+
102112
.navbar-link {
103113
padding-right: 2.5em;
104114
}
@@ -211,18 +221,14 @@ body {
211221
}
212222

213223
.navbar-end > a.navbar-item:hover,
214-
.navbar-end .navbar-link:hover {
224+
.navbar-end .navbar-link:hover,
225+
.navbar-end .navbar-item.has-dropdown:hover .navbar-link {
215226
background: var(--navbar_hover-background);
216227
color: var(--navbar-font-color);
217228
}
218229

219230
.navbar-end .navbar-link::after {
220-
border-color: var(--navbar-font-color);
221-
}
222-
223-
.navbar-item.has-dropdown:hover .navbar-link {
224-
background: var(--navbar_hover-background);
225-
color: var(--navbar-font-color);
231+
border-color: currentColor;
226232
}
227233

228234
.navbar-dropdown {
@@ -238,18 +244,14 @@ body {
238244
}
239245

240246
.navbar-dropdown .navbar-item {
241-
padding: 0.5rem 1rem;
247+
padding: 0.5rem 3rem 0.5rem 1rem;
242248
white-space: nowrap;
243249
}
244250

245251
.navbar-dropdown .navbar-item:last-child {
246252
border-radius: inherit;
247253
}
248254

249-
.navbar-dropdown a.navbar-item {
250-
padding-right: 3rem;
251-
}
252-
253255
.navbar-dropdown.is-right {
254256
left: auto;
255257
right: 0;

0 commit comments

Comments
 (0)