-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobile_menu.css
171 lines (163 loc) · 3.48 KB
/
mobile_menu.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/*|==========================|MOBILE_MENU|==========================|*/
.mobile_menu{
position:fixed;
z-index: 6;
width:100%;
height:100%;
display: none;
transition: 0.5s;
transform: translate(100%,0);
}
.back_button{
width:30%;
text-align: center;
display:flex;
justify-content: center;
align-items: center;
font-size:50px;
color: var(--highlight_color_4);
}
.mobile_menu_toolbar{
border-bottom-left-radius: 30px;
border-top-left-radius: 30px;
border-left: 10px solid var(--highlight_color_3);
z-index: 2;
overflow: auto;
margin-left:auto;
width:70%;
height:100%;
display: flex;
flex-direction: column;
align-content: center;
justify-content:flex-start;
background-color: rgb(23, 23, 23);
box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.5);
}
.slide_in_class{
animation-name: slide_in_animation;
animation-duration: 1s;
animation-fill-mode: forwards;
}
@keyframes slide_in_animation{
0%{
background-color: rgba(0, 0, 0, 0);
backdrop-filter: blur(0px);
}
20%{
transform: translate(0,0);
backdrop-filter: blur(5px);
background-color: rgba(0, 0, 0, 0);
}
60%{
transform: translate(0,0);
background-color: rgba(0, 0, 0, 0.47);
backdrop-filter: blur(12px);
}
100%{
transform: translate(0,0);
background-color: rgba(0, 0, 0, 0.47);
backdrop-filter: blur(12px);
}
}
.slide_out_class{
animation-name: slide_out_animation;
animation-duration: 1s;
animation-fill-mode: forwards;
}
@keyframes slide_out_animation{
0%{
background-color: rgba(0, 0, 0, 0);
transform: translate(0,0);
backdrop-filter: blur(0px);
}
20%{
transform: translate(100%,0);
}
100%{
background-color: rgba(0, 0, 0, 0);
transform: translate(100%,0);
backdrop-filter: blur(0px);
}
}
.logo{
width:70px;
margin: 0 auto;
margin-top:50px;
}
.mobile_nav_title{
color: #ffffff;
font-family: 'Montserrat Alternates', sans-serif;
margin:0;
font-size: 25px;
text-align: center;
cursor:default;
}
.mobile_menu ul{
padding:0;
display: block;
list-style:none;
text-align: center;
}
.mobile_menu a{
font-size:25px;
color: white;
text-decoration:none;
font-family: 'Montserrat Alternates',sans-serif;
user-select: none;
}
.mobile_menu li{
border-bottom-left-radius: 30px;
border-top-left-radius: 30px;
background-color: rgba(51, 51, 51, 0.36);
margin: 25px 0;
margin-left:10px;
box-shadow: 10px 10px 10px black;
}
.mobile_menu li:hover{
box-shadow: 10px 10px 10px rgba(8, 8, 8, 0.5);
transform: scale(0.98);
}
.burger_menu {
margin-top: 10px;
margin-right: 30px;
border-radius: 10px;
z-index: 3;
width: 70px;
display: none;
flex-direction: column;
cursor: pointer;
align-items: center;
}
.visible{
display:flex;
}
.invisible{
display:none;
}
.burger-menu:active + .mobile_menu{
display:flex;
}
.bar {
box-shadow: 0px 0px 0px 3px #000000;
border-radius: 50px;
margin: 0 auto;
width: 76%;
height: 4px;
background-color: var(--highlight_color_4);
margin: 7px 0;
}
.title img{
width:60px;
margin-right:10px;
}
@media (max-width:967px) {
.burger_menu{
display:flex;
}
.hero{
display: flex;
justify-content: center;
align-content: center;
align-items: center;
}
}