-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathNavbar.css
More file actions
146 lines (144 loc) · 2.68 KB
/
Navbar.css
File metadata and controls
146 lines (144 loc) · 2.68 KB
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
140
141
142
143
144
145
146
nav {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px 20px;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
background-color: rgba(255, 255, 255, 0.9);
z-index: 100;
}
nav .logo img {
display: inline-block;
width: 210px;
height: 65px;
}
nav .logo img:hover {
scale: 1.1;
}
nav .hamberger {
display: none;
}
nav .hamberger div {
height: 3px;
width: 20px;
background-color: #063ab9;
margin: 3px;
}
nav .nav-links {
display: flex;
justify-content: space-between;
gap: 40px;
}
nav .nav-links a {
position: relative;
font-size: 1.2rem;
font-weight: 400;
color: #000000;
transition: all 0.3s ease-in-out;
}
nav .nav-links a:hover {
color: #063ab9;
font-weight: 500;
scale: 1.1;
}
nav .nav-links a::after {
content: "";
position: absolute;
left: 0px;
bottom: -3px;
height: 3px;
width: 100%;
background-color: #063ab9;
transform-origin: right;
transform: scaleX(0);
transition: transform 1s;
}
nav .nav-links a:hover::after {
transform: scaleX(1);
transform-origin: left;
}
nav .nav-links a.activepage {
color: #063ab9;
}
nav .nav-links a.activepage::after {
transform: scaleX(1);
}
nav .nav-buttons {
display: flex;
gap: 10px;
}
@media screen and (max-width: 950px) {
nav {
padding: 5px 5px;
}
nav .logo img {
display: inline-block;
width: 200px;
height: 60px;
}
nav .nav-links {
gap: 20px;
}
nav .nav-links a {
font-size: 1rem;
}
nav .nav-buttons {
gap: 5px;
}
nav .nav-buttons button {
font-size: 0.85rem;
padding: 10px 10px;
}
}
@media screen and (max-width: 700px) {
nav .hamberger {
display: block;
z-index: 100;
cursor: pointer;
}
nav .logo img {
width: 150px;
height: 50px;
}
nav .nav-links {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 60vh;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 50px;
background-color: rgba(255, 255, 255, 0.9);
transition: transform 0.5s ease-in-out;
transform: translateX(-100%);
}
nav .activenavlinks {
transform: translateX(0%);
}
nav .nav-buttons {
position: fixed;
top: 60vh;
left: 0;
width: 100%;
height: 20vh;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 20px;
background-color: rgba(255, 255, 255, 0.9);
transition: transform 0.5s ease-in-out;
transform: translateX(-100%);
}
nav .activenavbuttons {
transform: translateX(0%);
}
}/*# sourceMappingURL=Navbar.css.map */