Skip to content

Commit f3d9223

Browse files
committed
fix: Nav formatting for blog post and menu.
1 parent d665598 commit f3d9223

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

_sass/_layout.scss

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,81 @@
11
/**
22
* Site header
33
*/
4+
#header {
5+
display: flex;
6+
align-items: center;
7+
justify-content: space-between;
8+
border-bottom: 1px solid $grey-color-light;
9+
min-height: 56px;
10+
padding: 0 $spacing-unit;
11+
position: relative;
12+
13+
#logo {
14+
font-size: 26px;
15+
font-weight: 400;
16+
letter-spacing: -1px;
17+
margin: 0;
18+
19+
a {
20+
color: $grey-color-dark;
21+
&:hover { text-decoration: none; }
22+
23+
span {
24+
font-weight: 700;
25+
}
26+
}
27+
}
28+
29+
#nav {
30+
ul {
31+
list-style: none;
32+
margin: 0;
33+
padding: 0;
34+
display: flex;
35+
align-items: center;
36+
gap: 4px;
37+
38+
li {
39+
a {
40+
display: block;
41+
padding: 8px 12px;
42+
color: $text-color;
43+
font-size: 14px;
44+
45+
&:hover {
46+
text-decoration: none;
47+
color: $brand-color;
48+
}
49+
}
50+
51+
a.button.special {
52+
background-color: $brand-color;
53+
color: #fff;
54+
border-radius: 4px;
55+
padding: 8px 16px;
56+
57+
&:hover {
58+
background-color: darken($brand-color, 10%);
59+
}
60+
}
61+
}
62+
}
63+
64+
@include media-query($on-palm) {
65+
ul {
66+
flex-direction: column;
67+
align-items: flex-end;
68+
}
69+
}
70+
}
71+
72+
@include media-query($on-palm) {
73+
flex-direction: column;
74+
align-items: flex-start;
75+
padding: $spacing-unit / 2;
76+
}
77+
}
78+
479
.site-header {
580
border-top: 5px solid $grey-color-dark;
681
border-bottom: 1px solid $grey-color-light;

0 commit comments

Comments
 (0)