-
Notifications
You must be signed in to change notification settings - Fork 0
/
_navigation.scss
139 lines (115 loc) · 2.31 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
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
134
135
136
137
138
139
.navigation {
@include breakpoint(medium) {
@include flex;
border-top: get-color(accent) solid 4px;
justify-content: space-between;
margin-bottom: 0;
padding: 0 1.6rem;
}
&__wrapper {
background-color: $primary-color;
@include breakpoint(small down) {
height: 100%;
left: -100%;
position: absolute;
top: 0;
transition: 0.5s ease;
width: 320px;
z-index: 10;
&--open {
left: 0;
}
}
@include breakpoint(large) {
background-color: $primary-color;
}
}
&__list {
@include menu-base;
@include menu-direction(horizontal);
@include breakpoint(medium) {
@include menu-direction(horizontal);
align-items: center;
margin-bottom: 0;
width: auto;
}
&.is-active {
background: $extra-light-gray;
padding-left: $global-padding;
@include breakpoint(medium) {
background: $white;
border: $light-gray solid 1px;
left: 0;
margin-left: $global-margin;
position: absolute;
top: 100%;
width: auto;
z-index: 100;
}
}
&--expand {
flex: 2;
}
&--right {
justify-self: right;
margin-left: auto;
.navigation__item {
&:last-child {
.navigation__list {
left: auto;
right: 0;
}
}
}
}
}
&__title {
@extend .navigation__item;
&,
& a {
font-size: 1.5rem;
font-weight: normal !important;
}
}
&__item {
@include breakpoint(medium) {
@include flex;
@include flex-align(left, middle);
}
& > a,
& > li > a {
color: $white !important; // Override default menu styles
font-weight: bold !important; //Override default menu styles
padding: 0.5rem;
text-decoration: none;
width: auto;
@include breakpoint(medium) {
padding: 1rem;
}
&:hover {
text-decoration: underline;
}
}
}
&__button {
&--close {
@extend .close-button;
@include breakpoint(medium) {
display: none;
}
}
&--toggle {
@extend .menu-icon;
}
}
}
.submenu-toggle {
outline: none;
}
.no-js {
.navigation__list {
.navigation__list {
display: none;
}
}
}