/
_nav.scss
85 lines (82 loc) 路 1.22 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
.nav {
@include color($secondaryColor, $white);
}
.nav .wrapper {
@include flex(flex, space-between, center, center);
.navList {
width:20%;
@include flex(flex, space-between, center, center);
}
h1 {
font-size: 30px;
}
.navItem {
margin-right: 20px;
&:last-of-type {
margin-right: 0;
}
}
.navLink {
text-transform: uppercase;
font-size: 25px;
&:focus,
&:hover {
color: $primaryColor;
}
}
}
.hiddenNavList {
display: none;
}
@media (max-width:1260px) {
.nav .wrapper {
h1 {
font-size: 25px;
}
.navLink {
font-size: 20px;
}
}
}
@media (max-width:950px) {
.nav .wrapper .navList {
width: 30%;
}
}
@media (max-width:780px) {
.nav .wrapper {
h1 {
font-size: 25px;
}
.navList {
display: none;
}
}
.hiddenNavList {
@include flex(row,space-between,center,center);
width: 15%;
i {
font-size: 30px;
}
}
}
@media (max-width:550px) {
.hiddenNavList {
i {
font-size: 22px;
}
}
}
@media (max-width:400px) {
.nav .wrapper {
h1 {
font-size: 20px;
}
}
.hiddenNavList {
width: 20%;
i {
font-size: 18px;
}
}
}