-
Notifications
You must be signed in to change notification settings - Fork 1
/
style2.css
120 lines (101 loc) · 1.79 KB
/
style2.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
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
font-family: 'Prosto One', cursive;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
min-height: 8vh;
background-color: rgb(21, 89, 148);
margin: auto;
}
.logo {
border-radius: 25%;
width: 200px;
padding: auto;
margin: 30px;
}
.nav-links {
display: flex;
justify-content: space-between;
width: 40%;
padding: 10px;
margin-right: 20px;
}
.nav-links li {
list-style: none;
}
a {
position: relative;
text-decoration: none;
color: white;
font-size: 15px;
padding: 0 10px;
}
a::after{
content:"";
position: absolute;
background-color: crimson;
height: 3px;
width: 0;
left: 0;
bottom: -10px;
transition: 0.5s;
}
a:hover{
color: rgb(189, 45, 64);
}
a:hover:after{
width: 100%;
}
.menu-btn {
display: none;
cursor: pointer;
}
.menu-btn div {
width: 50px;
height: 5px;
border-radius: 20px;
margin: 6px;
background-color: white;
}
@media screen and (max-width:900px) {
body {
overflow-x: hidden;
}
.nav-links {
position: absolute;
right: 0px;
height: 92vh;
top: 15vh;
background-color: rgb(21, 89, 148);
display: flex;
flex-direction: column;
align-items: center;
width: 40%;
transform: translateX(200%);
transition: 0.5s ease-in;
}
.nav-links li {
opacity: 0;
}
.menu-btn {
display: block;
}
@keyframes navLinkFade {
from {
opacity: 0;
transform: translateX(50px);
}
to {
opacity: 1;
transform: translateX(0px);
}
}
}
.nav-active {
transform: translateX(15%);
}