-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
128 lines (127 loc) · 2.53 KB
/
style.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
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
.navbar{
width: 100%;
position: relative;
}
label{
display: block;
position: fixed;
top: -20px;
left: 0px;
width: 100%;
height: 40px;
cursor: pointer;
}
label input{
appearance: none;
}
label .logo_menu{
position: relative;
display: block;
width: 40px;
height: 100%;
margin: 20px;
background: #c7c7c7;
border-radius: 10px;
}
label .logo_menu::before{
content: "\f0c9";
font-family: "Font Awesome 6 Free";
font-weight: 600;
font-size: 1.2em;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
label input:checked ~ .logo_menu::before{
content: "\f00d";
}
label input:checked ~ .navigation{
min-height: 100vh;
}
.navigation {
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
width: 100%;
height: 0;
margin-top: -85px;
transition: 0.5s;
}
.navigation ul {
position: relative;
}
.navigation ul li{
text-align: center;
list-style: none;
}
.navigation ul li a{
text-decoration: none;
color: #333;
font-size: 3em;
padding: 5px 20px;
font-weight: 700;
transition: 0.5s;
}
.navigation ul:hover li a{
color: #0002;
}
.navigation ul li:hover a{
color: #000;
background: rgba(255, 255, 255, 0.7);
border-radius: 20px;
}
.navigation ul li a::before{
content: '';
position: absolute;
top: 50%;
left: 40%;
transform: translate(-50%, -50%);
display: flex;
justify-content: center;
align-items: center;
font-size: 5em;
color: rgba(0, 0, 0, 0.1);
z-index: -1;
border-radius: 50%;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 500px;
opacity: 0;
transition: letter-spacing 0.5s, left 0.3s;
}
.navigation ul li a:hover::before{
content: attr(data-text);
opacity: 1;
letter-spacing: 10px;
left: 50%;
width: 2800px;
height: 2800px;
}
.navigation ul li:nth-child(1) a::before{
background-color: rgb(238, 189, 97);
}
.navigation ul li:nth-child(2) a::before{
background-color: rgb(21, 157, 241);
}
.navigation ul li:nth-child(3) a::before{
background-color: rgb(221, 255, 0);
}
.navigation ul li:nth-child(4) a::before{
background-color: rgb(50, 230, 47);
}
.navigation ul li:nth-child(5) a::before{
background-color: rgb(235, 71, 71);
}