-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_nav.scss
133 lines (110 loc) · 1.99 KB
/
_nav.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/*
NAV
*/
.site-title, .nav--cross, .nav--primary {
@include outer-container();
padding: $gutter/2;
@include media($xl) {
padding: $gutter 0;
}
}
@include media($md) {
.nav__site-title,
.nav--cross .nav__list {
@include span-columns(6);
}
.nav--cross .nav__site-title {
float: left;
}
.nav--cross .nav__list {
text-align: right;
float: right;
margin-right: 0;
}
.nav__item--withrightpadding {
padding-right: $gutter;
}
}
.nav--cross .nav__list {
font-size: modular-scale(-1);
line-height: 24px;
@include media($sm) {
font-size: modular-scale(0);
}
}
.nav__list {
list-style-type: none;
margin: 0;
}
.nav--cross .nav__link:link,
.nav--cross .nav__link:visited,
.nav--primary .nav__link:link,
.nav--primary .nav__link:visited {
color: $primary;
text-decoration: none;
}
.nav__item {
font-family: "Graphik Web", sans-serif;
display: inline-block;
vertical-align: top;
margin-right: $gutter/4;
}
.nav__item--withseparator:after {
content: "|";
display: inline-block;
padding-left: $gutter/4;
color: $background;
}
.nav__item--icon {
float: right;
line-height: 20px;
}
.nav__item--last {
margin-right: 0;
}
.nav__item--active {
font-weight: 800;
}
.nav__link:hover,
.nav__link:active {
text-decoration: underline !important;
color: $primary;
}
.nav__link--about {
@include hide-text;
display: block;
width: 20px;
height: 20px;
background: url(/uploads/about.svg);
background-size: cover;
}
.nav__icon {
fill: $primary;
width: 20px;
height: 20px;
}
.nav--page {
clear: both;
@include row;
margin: 0 $gutter;
}
.nav--page .nav__item {
display: block;
@include pad;
@include span-columns(6);
background: $accent;
color: $background;
text-decoration: none;
margin-top: 75px;
}
.nav--page .nav__item--next {
text-align: right;
}
@include media($md) {
.nav--cross .nav__list {
font-size: modular-scale(-1);
}
.nav--primary .nav__list {
font-size: modular-scale(1);
}
}