-
-
Notifications
You must be signed in to change notification settings - Fork 229
/
Copy pathSiteSubnavigation.scss
103 lines (91 loc) · 2.04 KB
/
SiteSubnavigation.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
98
99
100
101
102
103
.offset-subnavigation {
background-color: $blue-20;
}
.site-subnavigation {
color: $blue-100;
position: relative;
@include sm-only {
&::before {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 1.25rem;
background: linear-gradient(
to right,
$blue-20 15%,
rgba($blue-20, 0)
);
z-index: 1;
}
&::after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 1.25rem;
background: linear-gradient(
to left,
$blue-20 15%,
rgba($blue-20, 0)
);
z-index: 1;
}
}
}
.site-subnavigation-scroll {
display: flex;
align-items: center;
@include sm-only {
overflow-x: scroll;
-webkit-overflow-scrolling: touch;
}
}
.site-subnavigation-links {
flex: 1;
display: flex;
align-items: baseline;
flex-direction: row;
flex-wrap: wrap;
padding: 0;
list-style-type: none;
@include sm-only {
flex-wrap: nowrap;
justify-content: left;
}
li {
color: $blue-100;
padding: 0 6px;
font-size: 14px;
&:first-child {
font-size: inherit;
svg {
vertical-align: middle;
font-size: 10px;
margin-left: 4px;
transform: rotate(180deg);
}
}
}
a {
color: inherit;
text-decoration: none;
display: block;
white-space: nowrap;
padding-top: 12px;
padding-bottom: 12px;
&:hover {
padding-bottom: 9px;
border-bottom: 3px solid $vermillion;
}
}
.highlight a {
font-weight: bold;
}
.current a {
border-bottom: 3px solid $vermillion;
padding-bottom: 9px;
}
}