Skip to content

Commit 54c3ecf

Browse files
committed
use brand font for site title and adjust size and position
1 parent e543abb commit 54c3ecf

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/css/header.css

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,33 @@ body {
3232
.navbar-brand {
3333
display: flex;
3434
height: var(--navbar-height);
35+
padding-left: 1rem;
36+
}
37+
38+
.navbar-brand .navbar-item {
3539
padding: 0;
3640
}
3741

3842
.navbar-brand img {
3943
height: calc(0.6 * var(--navbar-height));
4044
}
4145

42-
.navbar-brand .navbar-item {
46+
.navbar-start .navbar-item:first-child {
47+
font-family: "Comfortaa", sans-serif;
48+
font-size: calc(20 / var(--rem-base) * 1rem);
49+
line-height: 1;
50+
position: relative;
51+
top: 2.5%; /* compensate for built-in line height in font */
52+
letter-spacing: -0.01em;
4353
padding: 0;
44-
margin-left: 1rem;
54+
margin: 0 1rem;
55+
align-self: center;
4556
}
4657

47-
.navbar-start .navbar-item + .navbar-item {
58+
.navbar-start .navbar-item:last-child {
4859
flex-grow: 1;
4960
justify-content: flex-end;
61+
padding-left: 0;
5062
}
5163

5264
#search {

0 commit comments

Comments
 (0)