-
Notifications
You must be signed in to change notification settings - Fork 1
/
nav.css
134 lines (107 loc) · 2.08 KB
/
nav.css
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
* {
margin: 0;
padding: 0;
border: 0;
outline: 0;
list-style: none;
text-decoration: none;
font-family: 'Montserrat', sans-serif;
}
nav {
display: flex;
justify-content: space-between;
padding: 0 15%;
height: 75px;
line-height: 75px;
background: rgb(44, 42, 42);
}
nav .navbar-brand {
color: #ffffff;
font-size: 28px;
font-weight: 500;
letter-spacing: .5px;
}
nav .nav-list {
display: flex;
}
nav .nav-list .nav-item {
cursor: pointer;
height: 100%;
padding: 0 30px;
transition: .4s;
}
nav .nav-list .nav-item:hover {
background: #c5a559;
}
nav .nav-list .nav-link {
color: #f1f1f1;
font-size: 18px;
font-weight: 500;
}
@media (max-width: 935px) {
nav {
padding: 0 2rem;
}
nav .nav-list .nav-item {
padding: 0 20px;
}
}
@media (max-width: 675px) {
nav .nav-list {
display: grid;
position: absolute;
background: #4b4a4a;
width: 100%;
top: 75px;
left: 0;
text-align: right;
transform: translateY(-100%);
z-index: -1;
transition: .6s;
}
nav .nav-list .nav-item {
padding-left: 35px;
}
nav .navbar-toggler {
display: grid !important;
}
nav .nav-list .nav-item:hover {
background: #c5a559;
}
}
nav .navbar-toggler {
display: none;
height: min-content;
margin: 18px -10px 0 0;
cursor: pointer;
}
nav .navbar-toggler .bar {
width: 40px;
height: 5px;
margin-bottom: 10px;
background: #ffffff;
border-radius: 10%;
transition: .4s;
}
input {
display: none;
}
input:checked ~ nav .nav-list {
transform: translateY(0);
}
input:checked ~ nav .navbar-toggler {
margin-top: 35px;
}
input:checked ~ nav .navbar-toggler .bar:nth-child(1) {
position: absolute;
transform: rotate(45deg);
}
input:checked ~ nav .navbar-toggler .bar:nth-child(2) {
display: none;
}
input:checked ~ nav .navbar-toggler .bar:nth-child(3) {
transform: rotate(-45deg);
}
a{
color: #ffffff;
}