Spaces:
Running on Zero
Running on Zero
Karl ELHAJAL commited on
Commit ·
c5cc909
1
Parent(s): 54d066b
Revert keyboard visuals to previous synthwave style
Browse files- static/styles.css +17 -89
static/styles.css
CHANGED
|
@@ -196,111 +196,45 @@ body::after {
|
|
| 196 |
|
| 197 |
#keyboard {
|
| 198 |
display: flex;
|
| 199 |
-
position: relative;
|
| 200 |
-
isolation: isolate;
|
| 201 |
justify-content: center;
|
| 202 |
width: 100%;
|
| 203 |
padding: 20px 14px;
|
| 204 |
border-radius: 16px;
|
| 205 |
-
border: 1px solid rgba(62, 244, 255, 0.
|
| 206 |
background:
|
| 207 |
-
|
| 208 |
-
|
| 209 |
box-shadow:
|
| 210 |
-
inset 0 0
|
| 211 |
-
|
| 212 |
-
0 0
|
| 213 |
-
0 0 40px rgba(255, 63, 176, 0.24);
|
| 214 |
user-select: none;
|
| 215 |
touch-action: none;
|
| 216 |
overflow-x: auto;
|
| 217 |
-
overflow-y: hidden;
|
| 218 |
-
}
|
| 219 |
-
|
| 220 |
-
#keyboard::before,
|
| 221 |
-
#keyboard::after {
|
| 222 |
-
content: '';
|
| 223 |
-
position: absolute;
|
| 224 |
-
pointer-events: none;
|
| 225 |
-
z-index: 0;
|
| 226 |
-
}
|
| 227 |
-
|
| 228 |
-
#keyboard::before {
|
| 229 |
-
left: 0;
|
| 230 |
-
right: 0;
|
| 231 |
-
top: 0;
|
| 232 |
-
bottom: 0;
|
| 233 |
-
background:
|
| 234 |
-
repeating-linear-gradient(
|
| 235 |
-
90deg,
|
| 236 |
-
rgba(62, 244, 255, 0.045) 0 1px,
|
| 237 |
-
transparent 1px 46px
|
| 238 |
-
),
|
| 239 |
-
repeating-linear-gradient(
|
| 240 |
-
0deg,
|
| 241 |
-
rgba(255, 63, 176, 0.028) 0 1px,
|
| 242 |
-
transparent 1px 22px
|
| 243 |
-
);
|
| 244 |
-
opacity: 0.65;
|
| 245 |
-
}
|
| 246 |
-
|
| 247 |
-
#keyboard::after {
|
| 248 |
-
left: 0;
|
| 249 |
-
right: 0;
|
| 250 |
-
bottom: 0;
|
| 251 |
-
height: 44px;
|
| 252 |
-
background: linear-gradient(
|
| 253 |
-
180deg,
|
| 254 |
-
rgba(255, 63, 176, 0.08) 0%,
|
| 255 |
-
rgba(139, 64, 255, 0.3) 52%,
|
| 256 |
-
rgba(62, 244, 255, 0.16) 100%
|
| 257 |
-
);
|
| 258 |
-
filter: blur(3px);
|
| 259 |
}
|
| 260 |
|
| 261 |
.key {
|
| 262 |
-
z-index: 1;
|
| 263 |
width: 44px;
|
| 264 |
height: 190px;
|
| 265 |
margin: 0 1px;
|
| 266 |
-
border: 1px solid rgba(255, 63, 176, 0.
|
| 267 |
border-bottom-width: 4px;
|
| 268 |
border-radius: 0 0 11px 11px;
|
| 269 |
-
background:
|
| 270 |
-
linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 213, 255, 0.95) 64%, rgba(233, 180, 255, 0.98)),
|
| 271 |
-
linear-gradient(90deg, rgba(62, 244, 255, 0.12), transparent 40%, rgba(255, 63, 176, 0.13));
|
| 272 |
position: relative;
|
| 273 |
display: flex;
|
| 274 |
align-items: flex-end;
|
| 275 |
justify-content: center;
|
| 276 |
cursor: pointer;
|
| 277 |
-
color: #
|
| 278 |
font-size: 11px;
|
| 279 |
font-weight: 700;
|
| 280 |
-
box-shadow
|
| 281 |
-
0 8px 12px rgba(0, 0, 0, 0.28),
|
| 282 |
-
inset 0 0 10px rgba(62, 244, 255, 0.14);
|
| 283 |
-
transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease, border-color 120ms ease;
|
| 284 |
-
}
|
| 285 |
-
|
| 286 |
-
.key::after {
|
| 287 |
-
content: '';
|
| 288 |
-
position: absolute;
|
| 289 |
-
left: 7px;
|
| 290 |
-
right: 7px;
|
| 291 |
-
bottom: 6px;
|
| 292 |
-
height: 2px;
|
| 293 |
-
border-radius: 999px;
|
| 294 |
-
background: linear-gradient(90deg, rgba(62, 244, 255, 0.95), rgba(255, 63, 176, 0.95));
|
| 295 |
-
opacity: 0.58;
|
| 296 |
}
|
| 297 |
|
| 298 |
.key:hover {
|
| 299 |
-
transform: translateY(1px)
|
| 300 |
-
|
| 301 |
-
box-shadow:
|
| 302 |
-
0 0 16px rgba(255, 63, 176, 0.34),
|
| 303 |
-
inset 0 -6px 12px rgba(255, 63, 176, 0.2);
|
| 304 |
}
|
| 305 |
|
| 306 |
.key.black {
|
|
@@ -310,21 +244,15 @@ body::after {
|
|
| 310 |
margin-right: -15px;
|
| 311 |
z-index: 3;
|
| 312 |
border-radius: 0 0 9px 9px;
|
| 313 |
-
border-color: rgba(62, 244, 255, 0.
|
| 314 |
border-bottom-width: 3px;
|
| 315 |
-
background:
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
color: #cef8ff;
|
| 319 |
-
box-shadow:
|
| 320 |
-
0 8px 12px rgba(0, 0, 0, 0.62),
|
| 321 |
-
inset 0 0 12px rgba(62, 244, 255, 0.16);
|
| 322 |
}
|
| 323 |
|
| 324 |
.key.black:hover {
|
| 325 |
-
box-shadow:
|
| 326 |
-
0 0 18px rgba(62, 244, 255, 0.48),
|
| 327 |
-
inset 0 0 12px rgba(255, 63, 176, 0.22);
|
| 328 |
}
|
| 329 |
|
| 330 |
.key .shortcut-hint {
|
|
|
|
| 196 |
|
| 197 |
#keyboard {
|
| 198 |
display: flex;
|
|
|
|
|
|
|
| 199 |
justify-content: center;
|
| 200 |
width: 100%;
|
| 201 |
padding: 20px 14px;
|
| 202 |
border-radius: 16px;
|
| 203 |
+
border: 1px solid rgba(62, 244, 255, 0.38);
|
| 204 |
background:
|
| 205 |
+
linear-gradient(180deg, rgba(21, 10, 43, 0.92), rgba(10, 4, 23, 0.92)),
|
| 206 |
+
radial-gradient(circle at 50% 0, rgba(62, 244, 255, 0.14), transparent 60%);
|
| 207 |
box-shadow:
|
| 208 |
+
inset 0 0 20px rgba(62, 244, 255, 0.16),
|
| 209 |
+
0 0 22px rgba(62, 244, 255, 0.2),
|
| 210 |
+
0 0 34px rgba(255, 63, 176, 0.18);
|
|
|
|
| 211 |
user-select: none;
|
| 212 |
touch-action: none;
|
| 213 |
overflow-x: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 214 |
}
|
| 215 |
|
| 216 |
.key {
|
|
|
|
| 217 |
width: 44px;
|
| 218 |
height: 190px;
|
| 219 |
margin: 0 1px;
|
| 220 |
+
border: 1px solid rgba(255, 63, 176, 0.45);
|
| 221 |
border-bottom-width: 4px;
|
| 222 |
border-radius: 0 0 11px 11px;
|
| 223 |
+
background: linear-gradient(180deg, var(--keyboard-white-top), var(--keyboard-white-bottom));
|
|
|
|
|
|
|
| 224 |
position: relative;
|
| 225 |
display: flex;
|
| 226 |
align-items: flex-end;
|
| 227 |
justify-content: center;
|
| 228 |
cursor: pointer;
|
| 229 |
+
color: #51176e;
|
| 230 |
font-size: 11px;
|
| 231 |
font-weight: 700;
|
| 232 |
+
transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
}
|
| 234 |
|
| 235 |
.key:hover {
|
| 236 |
+
transform: translateY(1px);
|
| 237 |
+
box-shadow: inset 0 -5px 12px rgba(255, 63, 176, 0.16);
|
|
|
|
|
|
|
|
|
|
| 238 |
}
|
| 239 |
|
| 240 |
.key.black {
|
|
|
|
| 244 |
margin-right: -15px;
|
| 245 |
z-index: 3;
|
| 246 |
border-radius: 0 0 9px 9px;
|
| 247 |
+
border-color: rgba(62, 244, 255, 0.55);
|
| 248 |
border-bottom-width: 3px;
|
| 249 |
+
background: linear-gradient(180deg, var(--keyboard-black-top), var(--keyboard-black-bottom));
|
| 250 |
+
color: #bdf6ff;
|
| 251 |
+
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.55);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
}
|
| 253 |
|
| 254 |
.key.black:hover {
|
| 255 |
+
box-shadow: 0 0 16px rgba(62, 244, 255, 0.4);
|
|
|
|
|
|
|
| 256 |
}
|
| 257 |
|
| 258 |
.key .shortcut-hint {
|