-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathnavbar.css
113 lines (93 loc) · 1.8 KB
/
navbar.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.logo-img {
width: 50px;
height: 50px;
}
.nav-tags {
list-style: none;
font-family: 'Abel';
color: white;
cursor: pointer;
font-size: 20px;
}
.navbar {
min-height: 50px;
display: flex;
justify-content: space-evenly;
align-items: center;
padding: 0 3px;
background: #272121;
height: 75px;
}
.nav-tags {
list-style: none;
font-size:1.5rem;
}
.nav-tags:hover {
/* color: linear-gradient(to left top, #E20203, #F87A3D); */
color: #E20203;
}
.navbar {
min-height: 100px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 24px;
}
.nav-content {
display: flex;
justify-content: space-evenly;
align-items: center;
gap: 60px
}
.hamburger {
visibility: hidden;
cursor: pointer;
position: absolute;
}
.bar {
display: block;
width: 25px;
height: 3px;
margin: 5px auto;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
background-color: #fff;
}
@media (max-width: 768px) {
.hamburger {
position: relative;
visibility: visible;
}
.hamburger.active .bar:nth-child(2) {
opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}
.nav-content {
position: fixed;
left: -100%;
/* changed from 70px to 80px to make HC logo visible -Srijan*/
top: 80px;
gap: 0;
flex-direction: column;
transition: 0.3s;
text-align: center;
width: 100%;
background: #272121;
}
.nav-tags {
margin: 16px 0;
}
.nav-content.active {
left: 0;
}
}