-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_navigation.scss
97 lines (83 loc) · 1.22 KB
/
_navigation.scss
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
.nav-container {
z-index: 5;
position: sticky;
top: 0;
left: 0;
width: 100%;
border-top: .5em solid $p-d;
background-color: $p;
color: $white;
> .wrap {
@include wrap;
display: flex;
position: relative;
align-items: center;
}
}
.site-title {
flex: 0 0 auto;
padding: .75em .5em;
h1 {
margin-bottom: 0;
font-size: rfs(1rem);
}
}
@include media('<=portrait') {
.site-title {
flex: 1 1 auto;
}
}
.site-navigation {
display: flex;
flex: 1 1 auto;
align-items: center;
padding-left: $spacer;
background-color: $p;
a {
display: block;
flex: 1 1 auto;
padding: .75em .5em;
color: inherit;
line-height: 1.1;
text-align: center;
text-decoration: none;
&.current,
&:hover {
background-color: $p-d;
}
}
}
@include media('<=portrait') {
.site-navigation {
display: none;
position: absolute;
top: 100%;
left: 0;
width: 100%;
padding-left: 0;
.menu-open & {
display: block;
}
}
}
.toggle-nav-menu {
display: none;
flex: 0 0 auto;
color: $white;
svg,
span {
display: inline-block;
vertical-align: middle;
}
svg {
fill: $white;
width: 1em;
height: 1em;
margin-right: .25em;
}
}
@include media('<=portrait') {
.toggle-nav-menu {
display: block;
}
}