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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
@import 'partials/_colors.scss';
html,body {
height: 100vh;
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
font-display: swap;
overflow: hidden;
background-color: $primary;
color: $primary-text;
user-select: none;
}
body {
display: flex;
flex-direction: column;
background-color: $secondary;
position: relative;
}
.backdrop {
background-color: $secondary;
color: $secondary-text;
font-size: 1rem;
.header-bar {
display: flex;
align-items: center;
.menu-icon {
background-image: url("/ressources/menu.png");
background-position: center;
background-repeat: no-repeat;
width: 36px;
height: 36px;
padding: 4px;
margin: 1rem;
display: inline-block;
border: none;
border-radius: 32px;
transition: background-color 100ms ease;
&:hover {
background-color: $secondary-dark;
}
&.open {
background-image: url("/ressources/menu_close.png");
}
}
.header {
margin: 0;
padding: 16px;
text-align: center;
z-index: 2;
flex-grow: 1;
@media (min-width: 450px) {
margin-right: 56px;
}
}
}
.menu-actions {
box-sizing: border-box;
transition: max-height 200ms ease, color 200ms ease, background-color 100ms ease;;
position: relative;
max-height: 16rem;
margin: 0 1rem;
.menu-option {
color: $primary-text;
text-decoration: none;
box-sizing: border-box;
display: inline-block;
font-size: 1.5rem;
width: 100%;
text-align: center;
padding: 1rem;
border: none;
border-radius: 8px;
cursor: pointer;
&:hover {
background-color: $secondary-half-dark;
}
&.active {
background-color: $secondary-dark;
}
}
&.hidden {
max-height: 0;
color: rgba(0,0,0,0);
.menu-option {
color: rgba(0,0,0,0);
background-color: rgba(0,0,0,0) !important;
}
}
}
}
.container {
@keyframes start {
from {top: 100vh;}
to {top: 0;}
}
position: relative;
border: none;
border-radius: 16px 16px 0 0;
min-height: 0;
height: 100%;
box-sizing: border-box;
background-color: white;
margin-top: 8px;
animation-name: start;
animation-duration: 1s;
animation-timing-function: ease;
color: black;
display: flex;
flex-direction: column;
.banner {
z-index: 1;
background-color: white;
border: none;
border-radius: 16px 16px 0 0;
display: flex;
margin: 0;
margin-bottom: 1rem;
padding-top: 1rem;
max-height: 10rem;
flex-direction: row;
flex-wrap: wrap;
transform-origin: top;
transition: max-height 200ms ease, transform 200ms ease, visibility 200ms step-start;
min-height: 3.5rem;
&.hidden {
transform: scaleY(0);
visibility: hidden;
max-height: 0;
transition: max-height 200ms ease, transform 200ms ease, visibility 200ms step-end;
min-height: 0;
}
.banner-text {
align-self: left;
margin: 1rem;
flex-grow: 1;
}
.btn-container{
flex-grow: 1;
text-align: right;
.banner-button {
display: inline-block;
background: none;
color: $secondary-dark;
border: none;
box-shadow: none;
font-size: 1rem;
align-self: right;
text-transform: uppercase;
padding: 16px;
margin: 0;
margin-right: 1rem;
font-family: 'Roboto Condensed', sans-serif;
cursor: pointer;
font-weight: bold;
letter-spacing: 0.125rem;
}
}
hr {
width: 100%;
}
}
.server-listing {
box-sizing: border-box;
background-color: $primary;
color: $primary-text;
min-height: 0;
display: flex;
flex-direction: column;
border-style: none;
border-radius: 8px;
margin: 1rem;
margin-bottom: 2rem;
padding: 0.5rem;
padding-top: 0.25rem;
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12), 0 5px 5px -3px rgba(0, 0, 0, .2);
h1 {
text-align: center;
}
hr {
width: 100%;
}
.server-entries {
overflow-y: auto;
min-height: 0;
}
}
.copyright-container {
box-sizing: border-box;
position: absolute;
width: 100%;
margin: 4px;
bottom: 0;
text-align: center;
}
}
|