-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.css
More file actions
139 lines (121 loc) · 2.18 KB
/
app.css
File metadata and controls
139 lines (121 loc) · 2.18 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
@import url("https://fonts.googleapis.com/css2?family=Marcellus&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Marcellus", serif;
}
nav {
width: 320px;
height: fit-content;
max-height: calc(100vh - 60px);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 30px;
padding: 0 !important;
border-radius: 8px;
box-shadow: 0 0 30px -5px rgba(0, 0, 0, 0.2);
background: transparent !important;
overflow-y: auto;
overflow-x: hidden;
transition: all 0.3s ease;
scrollbar-color: #333 transparent;
scrollbar-width: thin;
}
nav::-webkit-scrollbar-track {
background: transparent;
}
nav::-webkit-scrollbar {
width: 8px;
}
nav::-webkit-scrollbar-thumb {
background: #333;
border-radius: 10px;
border: 2px solid transparent;
}
nav::-webkit-scrollbar-thumb:hover {background-color: #000}
.mm {
margin: 0;
position: relative;
width: 100%;
--mmHeight: 0;
height: var(--mmHeight);
border: 1px solid #ccc;
border-radius: 8px;
overflow: hidden;
transition: all 0.3s ease;
}
.menu-level {
position: absolute;
top: 0;
left: 0;
width: 100%;
background: white;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.active-menu {
opacity: 1;
visibility: visible;
}
.level-1 {
transform: translateX(0);
}
.menu-level:not(.level-1) {
transform: translateX(100%);
}
.menu-level ul {
list-style: none;
padding: 0;
margin: 0;
}
.menu-level li + li {
border-top: 1px solid #ccc;
}
.menu-level li {
font-family: "Marcellus", serif;
font-size: 14px;
padding: 5px 10px;
}
.menu-level button {
font-family: "Marcellus", serif;
font-size: 16px;
cursor: pointer;
width: 100%;
padding: 10px;
border: none;
background: none;
text-align: left;
}
.menu-header {
display: flex;
align-items: center;
justify-content: flex-end;
background: #333;
color: #fff;
border-bottom: 1px solid #ccc;
padding: 10px;
position: relative;
z-index: 1;
}
.menu-header .back-button {
color: #ccc;
font-weight: bold;
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
background: none;
border: none;
margin-right: 10px;
z-index: 2;
}
.menu-header .menu-title {
font-weight: bold;
pointer-events: none;
}