diff options
| author | Kostya <mail@sartin.in> | 2026-10-15 19:35:48 +0300 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-10-15 19:36:15 +0300 |
| commit | c263497ec8b05bc0f9254ed2f7ecb4dba6f67d4e (patch) | |
| tree | d9b721c72a4ffa2d6256adc305716c8432cb190c /ui-web/src/styles.css | |
| parent | c67d5ff663b876a15a3831f5a2b564c4002e99b6 (diff) | |
| download | guess-market-4.0.tar.gz guess-market-4.0.tar.xz guess-market-4.0.zip | |
A React + TypeScript single-page client served by Vite, working against
the same servlets as the desktop client: login, the events screen with
filters, details, order books and trading, and the account screen with
deposit, holdings, ledger rows and the user directory. No file upload,
as the exercise specifies.
It looks like the desktop client on purpose: the three skins of
theme.css as CSS variables, the four animations redone with SVG and
keyframes, and the desktop's Nerd Fonts, which npm run dev copies from
ui-fx instead of keeping a second copy in the repo. The shared chat sits
in a drawer above the status bar, as on the desktop, on its own poll
because chat lines don't move the market version.
Vite forwards /guess-market to Tomcat on 8080, so the page and the API
share an origin and the session cookie needs no CORS. The client polls
/api/sync once a second and reloads only when the version moved.
run-web.bat installs the packages and starts it on localhost:5173.
package.sh stages the sources under build/dist/ex4, without
node_modules.
Diffstat (limited to 'ui-web/src/styles.css')
| -rw-r--r-- | ui-web/src/styles.css | 1068 |
1 files changed, 1068 insertions, 0 deletions
diff --git a/ui-web/src/styles.css b/ui-web/src/styles.css new file mode 100644 index 0000000..028e2d2 --- /dev/null +++ b/ui-web/src/styles.css | |||
| @@ -0,0 +1,1068 @@ | |||
| 1 | |||
| 2 | @font-face { | ||
| 3 | font-family: 'CaskaydiaCove NF'; | ||
| 4 | src: url('/fonts/CaskaydiaCoveNerdFont-Regular.ttf'); | ||
| 5 | } | ||
| 6 | @font-face { | ||
| 7 | font-family: 'CaskaydiaCove NF'; | ||
| 8 | font-weight: bold; | ||
| 9 | src: url('/fonts/CaskaydiaCoveNerdFont-Bold.ttf'); | ||
| 10 | } | ||
| 11 | @font-face { | ||
| 12 | font-family: 'JetBrainsMono NF'; | ||
| 13 | src: url('/fonts/JetBrainsMonoNerdFont-Regular.ttf'); | ||
| 14 | } | ||
| 15 | @font-face { | ||
| 16 | font-family: 'JetBrainsMono NF'; | ||
| 17 | font-weight: bold; | ||
| 18 | src: url('/fonts/JetBrainsMonoNerdFont-Bold.ttf'); | ||
| 19 | } | ||
| 20 | @font-face { | ||
| 21 | font-family: 'FiraCode Nerd Font'; | ||
| 22 | src: url('/fonts/FiraCodeNerdFont-Regular.ttf'); | ||
| 23 | } | ||
| 24 | @font-face { | ||
| 25 | font-family: 'FiraCode Nerd Font'; | ||
| 26 | font-weight: bold; | ||
| 27 | src: url('/fonts/FiraCodeNerdFont-Bold.ttf'); | ||
| 28 | } | ||
| 29 | |||
| 30 | :root, | ||
| 31 | :root[data-skin='rose-pine-dawn'] { | ||
| 32 | --font: 'CaskaydiaCove NF', Consolas, monospace; | ||
| 33 | --size: 13px; | ||
| 34 | --bg: #faf4ed; | ||
| 35 | --panel: #fffaf3; | ||
| 36 | --panel2: #f2e9e1; | ||
| 37 | --panel3: #dfdad9; | ||
| 38 | --line: #cecacd; | ||
| 39 | --ink: #575279; | ||
| 40 | --ink2: #797593; | ||
| 41 | --accent: #907aa9; | ||
| 42 | --accent-fg: #fffaf3; | ||
| 43 | --btn: #f2e9e1; | ||
| 44 | --btn-line: #cecacd; | ||
| 45 | --yes: #286983; | ||
| 46 | --no: #b4637a; | ||
| 47 | --yes-soft: #e3edf0; | ||
| 48 | --no-soft: #f5e6ea; | ||
| 49 | } | ||
| 50 | |||
| 51 | :root[data-skin='catppuccin'] { | ||
| 52 | --font: 'JetBrainsMono NF', Consolas, monospace; | ||
| 53 | --bg: #181825; | ||
| 54 | --panel: #1e1e2e; | ||
| 55 | --panel2: #313244; | ||
| 56 | --panel3: #45475a; | ||
| 57 | --line: #585b70; | ||
| 58 | --ink: #cdd6f4; | ||
| 59 | --ink2: #a6adc8; | ||
| 60 | --accent: #cba6f7; | ||
| 61 | --accent-fg: #1e1e2e; | ||
| 62 | --btn: #313244; | ||
| 63 | --btn-line: #585b70; | ||
| 64 | --yes: #a6e3a1; | ||
| 65 | --no: #f38ba8; | ||
| 66 | --yes-soft: #23312a; | ||
| 67 | --no-soft: #34232c; | ||
| 68 | } | ||
| 69 | |||
| 70 | :root[data-skin='gruvbox'] { | ||
| 71 | --font: 'FiraCode Nerd Font', Consolas, monospace; | ||
| 72 | --size: 13.5px; | ||
| 73 | --bg: #1d2021; | ||
| 74 | --panel: #282828; | ||
| 75 | --panel2: #3c3836; | ||
| 76 | --panel3: #504945; | ||
| 77 | --line: #665c54; | ||
| 78 | --ink: #ebdbb2; | ||
| 79 | --ink2: #a89984; | ||
| 80 | --accent: #fe8019; | ||
| 81 | --accent-fg: #1d2021; | ||
| 82 | --btn: #3c3836; | ||
| 83 | --btn-line: #665c54; | ||
| 84 | --yes: #b8bb26; | ||
| 85 | --no: #fb4934; | ||
| 86 | --yes-soft: #2b3021; | ||
| 87 | --no-soft: #3b2320; | ||
| 88 | } | ||
| 89 | |||
| 90 | box-sizing: border-box; | ||
| 91 | } | ||
| 92 | html, | ||
| 93 | body, | ||
| 94 | height: 100%; | ||
| 95 | } | ||
| 96 | body { | ||
| 97 | margin: 0; | ||
| 98 | background: var(--bg); | ||
| 99 | color: var(--ink); | ||
| 100 | font: var(--size) / 1.35 var(--font); | ||
| 101 | } | ||
| 102 | h1, | ||
| 103 | h2, | ||
| 104 | h3, | ||
| 105 | p { | ||
| 106 | margin: 0; | ||
| 107 | font-weight: inherit; | ||
| 108 | } | ||
| 109 | |||
| 110 | .ink2 { | ||
| 111 | color: var(--ink2); | ||
| 112 | } | ||
| 113 | .accent { | ||
| 114 | color: var(--accent); | ||
| 115 | } | ||
| 116 | .yes { | ||
| 117 | color: var(--yes); | ||
| 118 | } | ||
| 119 | .no { | ||
| 120 | color: var(--no); | ||
| 121 | } | ||
| 122 | .bold { | ||
| 123 | font-weight: 700; | ||
| 124 | } | ||
| 125 | .xs { | ||
| 126 | font-size: 10.5px; | ||
| 127 | } | ||
| 128 | .sm { | ||
| 129 | font-size: 11.5px; | ||
| 130 | } | ||
| 131 | .base { | ||
| 132 | font-size: 12.5px; | ||
| 133 | } | ||
| 134 | .lg { | ||
| 135 | font-size: 14px; | ||
| 136 | } | ||
| 137 | .xl { | ||
| 138 | font-size: 17px; | ||
| 139 | } | ||
| 140 | .grow { | ||
| 141 | flex: 1; | ||
| 142 | min-width: 0; | ||
| 143 | } | ||
| 144 | .ellipsis { | ||
| 145 | overflow: hidden; | ||
| 146 | text-overflow: ellipsis; | ||
| 147 | white-space: nowrap; | ||
| 148 | } | ||
| 149 | .row { | ||
| 150 | display: flex; | ||
| 151 | align-items: center; | ||
| 152 | gap: 8px; | ||
| 153 | } | ||
| 154 | .num { | ||
| 155 | text-align: right; | ||
| 156 | white-space: nowrap; | ||
| 157 | } | ||
| 158 | |||
| 159 | button, | ||
| 160 | input, | ||
| 161 | select { | ||
| 162 | font: inherit; | ||
| 163 | color: inherit; | ||
| 164 | } | ||
| 165 | button { | ||
| 166 | cursor: pointer; | ||
| 167 | } | ||
| 168 | button:disabled { | ||
| 169 | opacity: 0.45; | ||
| 170 | cursor: default; | ||
| 171 | } | ||
| 172 | :focus-visible { | ||
| 173 | outline: 2px solid var(--accent); | ||
| 174 | outline-offset: 1px; | ||
| 175 | } | ||
| 176 | .btn { | ||
| 177 | border: 1px solid var(--btn-line); | ||
| 178 | border-radius: 5px; | ||
| 179 | background: var(--btn); | ||
| 180 | font-size: 13px; | ||
| 181 | font-weight: 700; | ||
| 182 | padding: 8px 15px; | ||
| 183 | white-space: nowrap; | ||
| 184 | } | ||
| 185 | .btn:hover:not(:disabled) { | ||
| 186 | opacity: 0.92; | ||
| 187 | } | ||
| 188 | .btn.primary { | ||
| 189 | background: var(--accent); | ||
| 190 | border-color: var(--accent); | ||
| 191 | color: var(--accent-fg); | ||
| 192 | } | ||
| 193 | .btn.destructive { | ||
| 194 | background: var(--no); | ||
| 195 | border-color: var(--no); | ||
| 196 | color: var(--accent-fg); | ||
| 197 | } | ||
| 198 | .btn.icon { | ||
| 199 | padding: 4px 8px; | ||
| 200 | min-width: 34px; | ||
| 201 | height: 30px; | ||
| 202 | display: grid; | ||
| 203 | place-items: center; | ||
| 204 | } | ||
| 205 | .btn.icon.on { | ||
| 206 | background: var(--panel3); | ||
| 207 | border-color: var(--accent); | ||
| 208 | } | ||
| 209 | .toggle { | ||
| 210 | border: 1px solid var(--btn-line); | ||
| 211 | border-radius: 4px; | ||
| 212 | background: var(--btn); | ||
| 213 | color: var(--ink2); | ||
| 214 | font-size: 12px; | ||
| 215 | padding: 5px 11px; | ||
| 216 | } | ||
| 217 | .toggle.on { | ||
| 218 | background: var(--accent); | ||
| 219 | border-color: var(--accent); | ||
| 220 | color: var(--accent-fg); | ||
| 221 | } | ||
| 222 | .seg { | ||
| 223 | border: 1px solid var(--btn-line); | ||
| 224 | background: var(--btn); | ||
| 225 | font-size: 12px; | ||
| 226 | font-weight: 700; | ||
| 227 | padding: 8px 15px; | ||
| 228 | } | ||
| 229 | .seg:first-child { | ||
| 230 | border-radius: 5px 0 0 5px; | ||
| 231 | } | ||
| 232 | .seg:last-child { | ||
| 233 | border-radius: 0 5px 5px 0; | ||
| 234 | border-left: 0; | ||
| 235 | } | ||
| 236 | .seg.on { | ||
| 237 | background: var(--accent); | ||
| 238 | color: var(--accent-fg); | ||
| 239 | } | ||
| 240 | .field { | ||
| 241 | background: var(--panel2); | ||
| 242 | border: 1px solid var(--btn-line); | ||
| 243 | border-radius: 5px; | ||
| 244 | padding: 8px 10px; | ||
| 245 | font-size: 13px; | ||
| 246 | color: var(--ink); | ||
| 247 | width: 96px; | ||
| 248 | } | ||
| 249 | .field.bad { | ||
| 250 | border-color: var(--no); | ||
| 251 | border-width: 1.5px; | ||
| 252 | } | ||
| 253 | .select { | ||
| 254 | background: var(--btn); | ||
| 255 | border: 1px solid var(--btn-line); | ||
| 256 | border-radius: 5px; | ||
| 257 | padding: 6px 8px; | ||
| 258 | font-size: 12.5px; | ||
| 259 | } | ||
| 260 | |||
| 261 | .pill { | ||
| 262 | display: inline-flex; | ||
| 263 | align-items: center; | ||
| 264 | gap: 7px; | ||
| 265 | border-radius: 3px; | ||
| 266 | padding: 3px 6px; | ||
| 267 | font-size: 10px; | ||
| 268 | font-weight: 700; | ||
| 269 | background: var(--panel3); | ||
| 270 | color: var(--ink2); | ||
| 271 | white-space: nowrap; | ||
| 272 | } | ||
| 273 | .pill.active { | ||
| 274 | background: var(--yes-soft); | ||
| 275 | color: var(--yes); | ||
| 276 | } | ||
| 277 | .pill.closed { | ||
| 278 | background: var(--no-soft); | ||
| 279 | color: var(--no); | ||
| 280 | } | ||
| 281 | .pill.mm { | ||
| 282 | background: var(--accent); | ||
| 283 | color: var(--accent-fg); | ||
| 284 | } | ||
| 285 | .pill.blocked { | ||
| 286 | background: var(--no); | ||
| 287 | color: var(--accent-fg); | ||
| 288 | } | ||
| 289 | .pill.resolved { | ||
| 290 | background: var(--yes); | ||
| 291 | color: var(--accent-fg); | ||
| 292 | } | ||
| 293 | |||
| 294 | .card { | ||
| 295 | background: var(--panel); | ||
| 296 | border: 1px solid var(--line); | ||
| 297 | border-radius: 7px; | ||
| 298 | } | ||
| 299 | .card2 { | ||
| 300 | background: var(--panel2); | ||
| 301 | border: 1px solid var(--line); | ||
| 302 | border-radius: 6px; | ||
| 303 | } | ||
| 304 | .table { | ||
| 305 | background: var(--panel); | ||
| 306 | border: 1px solid var(--line); | ||
| 307 | border-radius: 6px; | ||
| 308 | overflow: hidden; | ||
| 309 | } | ||
| 310 | .thead, | ||
| 311 | .trow { | ||
| 312 | display: flex; | ||
| 313 | align-items: center; | ||
| 314 | gap: 8px; | ||
| 315 | padding: 8px 11px; | ||
| 316 | } | ||
| 317 | .thead { | ||
| 318 | background: var(--panel3); | ||
| 319 | color: var(--ink2); | ||
| 320 | font-size: 10.5px; | ||
| 321 | font-weight: 700; | ||
| 322 | } | ||
| 323 | .trow { | ||
| 324 | border-top: 1px solid var(--line); | ||
| 325 | font-size: 11.5px; | ||
| 326 | } | ||
| 327 | .trow.click { | ||
| 328 | cursor: pointer; | ||
| 329 | } | ||
| 330 | .trow.click:hover { | ||
| 331 | background: var(--panel2); | ||
| 332 | } | ||
| 333 | .trow.on { | ||
| 334 | background: var(--panel3); | ||
| 335 | } | ||
| 336 | .trow.bid { | ||
| 337 | background: var(--yes-soft); | ||
| 338 | } | ||
| 339 | .trow.ask { | ||
| 340 | background: var(--no-soft); | ||
| 341 | } | ||
| 342 | .w54 { | ||
| 343 | width: 54px; | ||
| 344 | } | ||
| 345 | .w66 { | ||
| 346 | width: 66px; | ||
| 347 | } | ||
| 348 | .w78 { | ||
| 349 | width: 78px; | ||
| 350 | } | ||
| 351 | .w92 { | ||
| 352 | width: 92px; | ||
| 353 | } | ||
| 354 | .w150 { | ||
| 355 | width: 150px; | ||
| 356 | } | ||
| 357 | |||
| 358 | .app { | ||
| 359 | display: flex; | ||
| 360 | flex-direction: column; | ||
| 361 | height: 100%; | ||
| 362 | min-width: 1040px; | ||
| 363 | } | ||
| 364 | .windowbar { | ||
| 365 | display: flex; | ||
| 366 | align-items: center; | ||
| 367 | gap: 10px; | ||
| 368 | height: 32px; | ||
| 369 | padding: 0 14px; | ||
| 370 | background: var(--panel2); | ||
| 371 | border-bottom: 1px solid var(--line); | ||
| 372 | font-size: 12.5px; | ||
| 373 | font-weight: 700; | ||
| 374 | color: var(--ink2); | ||
| 375 | } | ||
| 376 | .toolbar { | ||
| 377 | display: flex; | ||
| 378 | align-items: center; | ||
| 379 | gap: 12px; | ||
| 380 | padding: 12px 16px; | ||
| 381 | background: var(--panel); | ||
| 382 | border-bottom: 1px solid var(--line); | ||
| 383 | } | ||
| 384 | .path { | ||
| 385 | display: flex; | ||
| 386 | align-items: center; | ||
| 387 | gap: 10px; | ||
| 388 | padding: 8px 12px; | ||
| 389 | font-size: 12.5px; | ||
| 390 | } | ||
| 391 | .tabs { | ||
| 392 | display: flex; | ||
| 393 | align-items: flex-end; | ||
| 394 | gap: 2px; | ||
| 395 | padding: 6px 16px 0; | ||
| 396 | background: var(--panel); | ||
| 397 | border-bottom: 1px solid var(--line); | ||
| 398 | } | ||
| 399 | .tab { | ||
| 400 | border: 1px solid var(--line); | ||
| 401 | border-bottom: 0; | ||
| 402 | border-radius: 6px 6px 0 0; | ||
| 403 | background: var(--panel2); | ||
| 404 | color: var(--ink2); | ||
| 405 | font-size: 13px; | ||
| 406 | font-weight: 700; | ||
| 407 | padding: 9px 20px; | ||
| 408 | margin-bottom: -1px; | ||
| 409 | } | ||
| 410 | .tab.on { | ||
| 411 | background: var(--bg); | ||
| 412 | color: var(--ink); | ||
| 413 | } | ||
| 414 | .tabinfo { | ||
| 415 | display: flex; | ||
| 416 | align-items: center; | ||
| 417 | gap: 8px; | ||
| 418 | padding: 0 4px 8px; | ||
| 419 | font-size: 12.5px; | ||
| 420 | color: var(--ink2); | ||
| 421 | } | ||
| 422 | .content { | ||
| 423 | flex: 1; | ||
| 424 | min-height: 0; | ||
| 425 | display: flex; | ||
| 426 | gap: 12px; | ||
| 427 | padding: 12px 16px; | ||
| 428 | } | ||
| 429 | .statusbar { | ||
| 430 | display: flex; | ||
| 431 | align-items: center; | ||
| 432 | height: 30px; | ||
| 433 | padding: 0 14px; | ||
| 434 | background: var(--panel2); | ||
| 435 | border-top: 1px solid var(--line); | ||
| 436 | font-size: 11.5px; | ||
| 437 | color: var(--ink2); | ||
| 438 | white-space: pre; | ||
| 439 | } | ||
| 440 | .chatbtn { | ||
| 441 | border: 0; | ||
| 442 | background: none; | ||
| 443 | padding: 0 2px; | ||
| 444 | color: var(--ink2); | ||
| 445 | font-size: 14.5px; | ||
| 446 | cursor: pointer; | ||
| 447 | } | ||
| 448 | .chatbtn.on { | ||
| 449 | color: var(--accent); | ||
| 450 | } | ||
| 451 | .chat { | ||
| 452 | position: fixed; | ||
| 453 | right: 14px; | ||
| 454 | bottom: 31px; | ||
| 455 | width: 320px; | ||
| 456 | height: 380px; | ||
| 457 | display: flex; | ||
| 458 | flex-direction: column; | ||
| 459 | gap: 8px; | ||
| 460 | padding: 12px; | ||
| 461 | white-space: normal; | ||
| 462 | color: var(--ink); | ||
| 463 | box-shadow: 0 4px 18px rgb(0 0 0 / 0.3); | ||
| 464 | z-index: 2; | ||
| 465 | } | ||
| 466 | .chatlist { | ||
| 467 | flex: 1; | ||
| 468 | min-height: 0; | ||
| 469 | overflow-y: auto; | ||
| 470 | display: flex; | ||
| 471 | flex-direction: column; | ||
| 472 | gap: 9px; | ||
| 473 | overflow-wrap: anywhere; | ||
| 474 | } | ||
| 475 | .banner { | ||
| 476 | padding: 8px 16px; | ||
| 477 | font-weight: 700; | ||
| 478 | background: var(--no-soft); | ||
| 479 | color: var(--no); | ||
| 480 | border-bottom: 1px solid var(--no); | ||
| 481 | } | ||
| 482 | .toast { | ||
| 483 | position: fixed; | ||
| 484 | left: 50%; | ||
| 485 | bottom: 44px; | ||
| 486 | transform: translateX(-50%); | ||
| 487 | max-width: 90vw; | ||
| 488 | background: var(--ink); | ||
| 489 | color: var(--bg); | ||
| 490 | border-radius: 6px; | ||
| 491 | padding: 10px 16px; | ||
| 492 | font-size: 12.5px; | ||
| 493 | font-weight: 700; | ||
| 494 | z-index: 3; | ||
| 495 | } | ||
| 496 | .empty { | ||
| 497 | flex: 1; | ||
| 498 | display: flex; | ||
| 499 | flex-direction: column; | ||
| 500 | align-items: center; | ||
| 501 | justify-content: center; | ||
| 502 | gap: 14px; | ||
| 503 | text-align: center; | ||
| 504 | } | ||
| 505 | |||
| 506 | .side { | ||
| 507 | display: flex; | ||
| 508 | flex-direction: column; | ||
| 509 | gap: 6px; | ||
| 510 | padding: 12px; | ||
| 511 | } | ||
| 512 | .side.events { | ||
| 513 | width: 498px; | ||
| 514 | } | ||
| 515 | .side.users { | ||
| 516 | width: 274px; | ||
| 517 | } | ||
| 518 | .main { | ||
| 519 | flex: 1; | ||
| 520 | min-width: 0; | ||
| 521 | display: flex; | ||
| 522 | flex-direction: column; | ||
| 523 | } | ||
| 524 | .head { | ||
| 525 | display: flex; | ||
| 526 | align-items: flex-start; | ||
| 527 | gap: 14px; | ||
| 528 | padding: 14px 16px; | ||
| 529 | border-bottom: 1px solid var(--line); | ||
| 530 | } | ||
| 531 | .body { | ||
| 532 | flex: 1; | ||
| 533 | min-height: 0; | ||
| 534 | overflow-y: auto; | ||
| 535 | display: flex; | ||
| 536 | flex-direction: column; | ||
| 537 | gap: 14px; | ||
| 538 | padding: 14px 16px; | ||
| 539 | } | ||
| 540 | .body > * { | ||
| 541 | flex-shrink: 0; | ||
| 542 | } | ||
| 543 | .section { | ||
| 544 | display: flex; | ||
| 545 | flex-direction: column; | ||
| 546 | gap: 7px; | ||
| 547 | } | ||
| 548 | .section-title { | ||
| 549 | display: flex; | ||
| 550 | align-items: baseline; | ||
| 551 | gap: 8px; | ||
| 552 | font-size: 12.5px; | ||
| 553 | font-weight: 700; | ||
| 554 | } | ||
| 555 | .filter { | ||
| 556 | display: flex; | ||
| 557 | align-items: center; | ||
| 558 | gap: 8px; | ||
| 559 | margin-bottom: 4px; | ||
| 560 | } | ||
| 561 | .filter > span { | ||
| 562 | width: 74px; | ||
| 563 | font-size: 12.5px; | ||
| 564 | color: var(--ink2); | ||
| 565 | } | ||
| 566 | .list { | ||
| 567 | flex: 1; | ||
| 568 | min-height: 0; | ||
| 569 | overflow-y: auto; | ||
| 570 | display: flex; | ||
| 571 | flex-direction: column; | ||
| 572 | gap: 2px; | ||
| 573 | } | ||
| 574 | .listrow { | ||
| 575 | display: flex; | ||
| 576 | align-items: center; | ||
| 577 | gap: 8px; | ||
| 578 | width: 100%; | ||
| 579 | text-align: left; | ||
| 580 | background: transparent; | ||
| 581 | border: 0; | ||
| 582 | border-left: 3px solid transparent; | ||
| 583 | border-radius: 5px; | ||
| 584 | padding: 9px 11px; | ||
| 585 | } | ||
| 586 | .listrow:hover { | ||
| 587 | background: var(--panel2); | ||
| 588 | } | ||
| 589 | .listrow.on { | ||
| 590 | background: var(--panel3); | ||
| 591 | border-left-color: var(--accent); | ||
| 592 | } | ||
| 593 | .listrow.plain { | ||
| 594 | cursor: default; | ||
| 595 | } | ||
| 596 | .meta { | ||
| 597 | display: flex; | ||
| 598 | align-items: center; | ||
| 599 | flex-wrap: wrap; | ||
| 600 | gap: 4px 16px; | ||
| 601 | font-size: 12.5px; | ||
| 602 | } | ||
| 603 | .meta b { | ||
| 604 | font-weight: 700; | ||
| 605 | } | ||
| 606 | .pair { | ||
| 607 | display: grid; | ||
| 608 | grid-template-columns: 1fr 1fr; | ||
| 609 | gap: 10px; | ||
| 610 | } | ||
| 611 | .optcard { | ||
| 612 | border: 1px solid var(--line); | ||
| 613 | border-radius: 6px; | ||
| 614 | padding: 12px 14px; | ||
| 615 | display: flex; | ||
| 616 | flex-direction: column; | ||
| 617 | gap: 8px; | ||
| 618 | } | ||
| 619 | .optcard.yes { | ||
| 620 | background: var(--yes-soft); | ||
| 621 | } | ||
| 622 | .optcard.no { | ||
| 623 | background: var(--no-soft); | ||
| 624 | } | ||
| 625 | .optcard.pick { | ||
| 626 | background: var(--panel); | ||
| 627 | cursor: pointer; | ||
| 628 | text-align: left; | ||
| 629 | color: var(--ink); | ||
| 630 | padding: 10px 12px; | ||
| 631 | gap: 6px; | ||
| 632 | } | ||
| 633 | .optcard.pick.yes.on { | ||
| 634 | background: var(--yes-soft); | ||
| 635 | border: 1.5px solid var(--yes); | ||
| 636 | } | ||
| 637 | .optcard.pick.no.on { | ||
| 638 | background: var(--no-soft); | ||
| 639 | border: 1.5px solid var(--no); | ||
| 640 | } | ||
| 641 | .bar { | ||
| 642 | height: 6px; | ||
| 643 | border-radius: 3px; | ||
| 644 | background: var(--panel3); | ||
| 645 | overflow: hidden; | ||
| 646 | } | ||
| 647 | .bar i { | ||
| 648 | display: block; | ||
| 649 | height: 100%; | ||
| 650 | border-radius: 3px; | ||
| 651 | background: currentColor; | ||
| 652 | transition: width 0.3s; | ||
| 653 | } | ||
| 654 | .stats { | ||
| 655 | display: flex; | ||
| 656 | gap: 16px; | ||
| 657 | padding: 8px 11px; | ||
| 658 | font-size: 11.5px; | ||
| 659 | } | ||
| 660 | .stats span { | ||
| 661 | display: flex; | ||
| 662 | flex-direction: column; | ||
| 663 | gap: 2px; | ||
| 664 | } | ||
| 665 | .tradeform { | ||
| 666 | display: flex; | ||
| 667 | flex-wrap: wrap; | ||
| 668 | align-items: flex-end; | ||
| 669 | gap: 10px; | ||
| 670 | } | ||
| 671 | .tradeform label { | ||
| 672 | display: flex; | ||
| 673 | flex-direction: column; | ||
| 674 | gap: 5px; | ||
| 675 | font-size: 12.5px; | ||
| 676 | color: var(--ink2); | ||
| 677 | } | ||
| 678 | .balance { | ||
| 679 | font-size: 22px; | ||
| 680 | font-weight: 700; | ||
| 681 | color: var(--accent); | ||
| 682 | } | ||
| 683 | .balance.neg, | ||
| 684 | .neg { | ||
| 685 | color: var(--no); | ||
| 686 | } | ||
| 687 | .balcell { | ||
| 688 | font-weight: 700; | ||
| 689 | color: var(--accent); | ||
| 690 | } | ||
| 691 | .pnl { | ||
| 692 | font-size: 12px; | ||
| 693 | font-weight: 700; | ||
| 694 | color: var(--yes); | ||
| 695 | } | ||
| 696 | .notice { | ||
| 697 | display: flex; | ||
| 698 | align-items: center; | ||
| 699 | gap: 11px; | ||
| 700 | padding: 11px 13px; | ||
| 701 | border-radius: 6px; | ||
| 702 | border: 1px solid var(--line); | ||
| 703 | background: var(--yes-soft); | ||
| 704 | font-size: 12.5px; | ||
| 705 | } | ||
| 706 | .notice.blocked { | ||
| 707 | background: var(--no-soft); | ||
| 708 | border-color: var(--no); | ||
| 709 | } | ||
| 710 | |||
| 711 | .chart { | ||
| 712 | display: grid; | ||
| 713 | grid-template-columns: auto 1fr; | ||
| 714 | gap: 4px 6px; | ||
| 715 | padding: 10px; | ||
| 716 | font-size: 10px; | ||
| 717 | color: var(--ink2); | ||
| 718 | } | ||
| 719 | .chart .yaxis { | ||
| 720 | display: flex; | ||
| 721 | flex-direction: column; | ||
| 722 | justify-content: space-between; | ||
| 723 | text-align: right; | ||
| 724 | border-right: 1px solid var(--line); | ||
| 725 | padding-right: 6px; | ||
| 726 | line-height: 1; | ||
| 727 | } | ||
| 728 | .chart .xaxis { | ||
| 729 | grid-column: 2; | ||
| 730 | display: flex; | ||
| 731 | justify-content: space-between; | ||
| 732 | border-top: 1px solid var(--line); | ||
| 733 | padding-top: 4px; | ||
| 734 | } | ||
| 735 | .chart svg { | ||
| 736 | width: 100%; | ||
| 737 | display: block; | ||
| 738 | } | ||
| 739 | .chart .grid { | ||
| 740 | stroke: var(--line); | ||
| 741 | stroke-width: 1; | ||
| 742 | opacity: 0.6; | ||
| 743 | } | ||
| 744 | .chart path { | ||
| 745 | fill: none; | ||
| 746 | stroke-width: 2.5; | ||
| 747 | stroke-linejoin: round; | ||
| 748 | vector-effect: non-scaling-stroke; | ||
| 749 | } | ||
| 750 | .chart line { | ||
| 751 | vector-effect: non-scaling-stroke; | ||
| 752 | } | ||
| 753 | .stroke-accent { | ||
| 754 | stroke: var(--accent); | ||
| 755 | } | ||
| 756 | .stroke-yes { | ||
| 757 | stroke: var(--yes); | ||
| 758 | } | ||
| 759 | .stroke-no { | ||
| 760 | stroke: var(--no); | ||
| 761 | } | ||
| 762 | |||
| 763 | .scrim { | ||
| 764 | position: fixed; | ||
| 765 | inset: 0; | ||
| 766 | display: grid; | ||
| 767 | place-items: center; | ||
| 768 | background: rgba(10, 10, 10, 0.42); | ||
| 769 | z-index: 2; | ||
| 770 | } | ||
| 771 | .dialog { | ||
| 772 | width: 430px; | ||
| 773 | max-width: calc(100vw - 32px); | ||
| 774 | } | ||
| 775 | .dialog > header { | ||
| 776 | padding: 16px 20px; | ||
| 777 | border-bottom: 1px solid var(--line); | ||
| 778 | font-size: 14px; | ||
| 779 | font-weight: 700; | ||
| 780 | } | ||
| 781 | .dialog > div { | ||
| 782 | display: flex; | ||
| 783 | flex-direction: column; | ||
| 784 | gap: 10px; | ||
| 785 | padding: 18px 20px; | ||
| 786 | } | ||
| 787 | .dialog > footer { | ||
| 788 | display: flex; | ||
| 789 | justify-content: flex-end; | ||
| 790 | gap: 9px; | ||
| 791 | padding: 14px 20px; | ||
| 792 | border-top: 1px solid var(--line); | ||
| 793 | } | ||
| 794 | .resolveopt { | ||
| 795 | flex: 1; | ||
| 796 | border: 1px solid var(--line); | ||
| 797 | border-radius: 6px; | ||
| 798 | background: var(--panel2); | ||
| 799 | font-size: 14px; | ||
| 800 | font-weight: 700; | ||
| 801 | padding: 14px 6px; | ||
| 802 | } | ||
| 803 | .resolveopt.yes.on { | ||
| 804 | background: var(--yes-soft); | ||
| 805 | border: 1.5px solid var(--yes); | ||
| 806 | } | ||
| 807 | .resolveopt.no.on { | ||
| 808 | background: var(--no-soft); | ||
| 809 | border: 1.5px solid var(--no); | ||
| 810 | } | ||
| 811 | |||
| 812 | .login { | ||
| 813 | height: 100%; | ||
| 814 | display: grid; | ||
| 815 | place-items: center; | ||
| 816 | padding: 24px; | ||
| 817 | } | ||
| 818 | .login form { | ||
| 819 | width: 380px; | ||
| 820 | max-width: 100%; | ||
| 821 | display: flex; | ||
| 822 | flex-direction: column; | ||
| 823 | gap: 8px; | ||
| 824 | padding: 20px 22px; | ||
| 825 | } | ||
| 826 | .login .field { | ||
| 827 | width: 100%; | ||
| 828 | } | ||
| 829 | |||
| 830 | .eq rect { | ||
| 831 | fill: var(--ink2); | ||
| 832 | transform-box: fill-box; | ||
| 833 | transform-origin: bottom; | ||
| 834 | } | ||
| 835 | .pill.active .eq rect { | ||
| 836 | fill: var(--yes); | ||
| 837 | } | ||
| 838 | .pill.closed .eq rect { | ||
| 839 | fill: var(--no); | ||
| 840 | } | ||
| 841 | .eq .b0 { | ||
| 842 | transform: scaleY(0.35); | ||
| 843 | } | ||
| 844 | .eq .b1 { | ||
| 845 | transform: scaleY(0.8); | ||
| 846 | } | ||
| 847 | .eq .b2 { | ||
| 848 | transform: scaleY(0.55); | ||
| 849 | } | ||
| 850 | .anim .eq .b0 { | ||
| 851 | animation: eq0 3.6s linear infinite; | ||
| 852 | } | ||
| 853 | .anim .eq .b1 { | ||
| 854 | animation: eq1 3.6s linear infinite; | ||
| 855 | } | ||
| 856 | .anim .eq .b2 { | ||
| 857 | animation: eq2 3.6s linear infinite; | ||
| 858 | } | ||
| 859 | @keyframes eq0 { | ||
| 860 | 0%, | ||
| 861 | 100% { | ||
| 862 | transform: scaleY(0.35); | ||
| 863 | } | ||
| 864 | 30% { | ||
| 865 | transform: scaleY(1); | ||
| 866 | } | ||
| 867 | 60% { | ||
| 868 | transform: scaleY(0.6); | ||
| 869 | } | ||
| 870 | } | ||
| 871 | @keyframes eq1 { | ||
| 872 | 0%, | ||
| 873 | 100% { | ||
| 874 | transform: scaleY(0.8); | ||
| 875 | } | ||
| 876 | 25% { | ||
| 877 | transform: scaleY(0.3); | ||
| 878 | } | ||
| 879 | 70% { | ||
| 880 | transform: scaleY(1); | ||
| 881 | } | ||
| 882 | } | ||
| 883 | @keyframes eq2 { | ||
| 884 | 0%, | ||
| 885 | 100% { | ||
| 886 | transform: scaleY(0.55); | ||
| 887 | } | ||
| 888 | 45% { | ||
| 889 | transform: scaleY(1); | ||
| 890 | } | ||
| 891 | 80% { | ||
| 892 | transform: scaleY(0.4); | ||
| 893 | } | ||
| 894 | } | ||
| 895 | |||
| 896 | .draw { | ||
| 897 | fill: none; | ||
| 898 | stroke-linecap: round; | ||
| 899 | stroke-linejoin: round; | ||
| 900 | stroke-dasharray: 100; | ||
| 901 | stroke-dashoffset: 0; | ||
| 902 | } | ||
| 903 | .rider { | ||
| 904 | offset-rotate: 0deg; | ||
| 905 | offset-distance: 100%; | ||
| 906 | } | ||
| 907 | .spark .draw { | ||
| 908 | stroke: var(--accent); | ||
| 909 | stroke-width: 2; | ||
| 910 | } | ||
| 911 | .spark .rider { | ||
| 912 | fill: var(--accent); | ||
| 913 | offset-path: path('M2 20 L14 16 L26 22 L38 11 L50 14 L62 5'); | ||
| 914 | } | ||
| 915 | .spark.neg .draw { | ||
| 916 | stroke: var(--no); | ||
| 917 | } | ||
| 918 | .spark.neg .rider { | ||
| 919 | fill: var(--no); | ||
| 920 | } | ||
| 921 | .anim .spark .draw { | ||
| 922 | animation: draw70 3.6s infinite; | ||
| 923 | } | ||
| 924 | .anim .spark .rider { | ||
| 925 | animation: | ||
| 926 | ride70 3.6s infinite, | ||
| 927 | appear 3.6s linear infinite; | ||
| 928 | } | ||
| 929 | @keyframes draw70 { | ||
| 930 | 0% { | ||
| 931 | stroke-dashoffset: 100; | ||
| 932 | animation-timing-function: ease-in-out; | ||
| 933 | } | ||
| 934 | 70%, | ||
| 935 | 100% { | ||
| 936 | stroke-dashoffset: 0; | ||
| 937 | } | ||
| 938 | } | ||
| 939 | @keyframes ride70 { | ||
| 940 | 0% { | ||
| 941 | offset-distance: 0%; | ||
| 942 | animation-timing-function: ease-in-out; | ||
| 943 | } | ||
| 944 | 70%, | ||
| 945 | 100% { | ||
| 946 | offset-distance: 100%; | ||
| 947 | } | ||
| 948 | } | ||
| 949 | @keyframes appear { | ||
| 950 | 0% { | ||
| 951 | opacity: 0; | ||
| 952 | } | ||
| 953 | 8%, | ||
| 954 | 100% { | ||
| 955 | opacity: 1; | ||
| 956 | } | ||
| 957 | } | ||
| 958 | |||
| 959 | .mchart .rule { | ||
| 960 | stroke: var(--line); | ||
| 961 | } | ||
| 962 | .mchart text { | ||
| 963 | fill: var(--ink2); | ||
| 964 | font-size: 9px; | ||
| 965 | opacity: 0.7; | ||
| 966 | } | ||
| 967 | .mchart .draw { | ||
| 968 | stroke-width: 2.5; | ||
| 969 | } | ||
| 970 | .mchart .y { | ||
| 971 | stroke: var(--yes); | ||
| 972 | } | ||
| 973 | .mchart .n { | ||
| 974 | stroke: var(--no); | ||
| 975 | } | ||
| 976 | .mchart .rider.y { | ||
| 977 | fill: var(--yes); | ||
| 978 | stroke: none; | ||
| 979 | offset-path: path('M22 66 C96 64 150 22 224 22'); | ||
| 980 | } | ||
| 981 | .mchart .rider.n { | ||
| 982 | fill: var(--no); | ||
| 983 | stroke: none; | ||
| 984 | offset-path: path('M22 66 C96 68 150 110 224 110'); | ||
| 985 | } | ||
| 986 | .anim .mchart .draw { | ||
| 987 | animation: draw55 3.6s infinite; | ||
| 988 | } | ||
| 989 | .anim .mchart .rider { | ||
| 990 | animation: | ||
| 991 | ride55 3.6s infinite, | ||
| 992 | appear 3.6s linear infinite; | ||
| 993 | } | ||
| 994 | .anim .mchart text { | ||
| 995 | animation: breathe 3.6s linear infinite; | ||
| 996 | } | ||
| 997 | .anim .mchart text.lo { | ||
| 998 | animation-delay: -3.2s; | ||
| 999 | } | ||
| 1000 | @keyframes draw55 { | ||
| 1001 | 0% { | ||
| 1002 | stroke-dashoffset: 100; | ||
| 1003 | animation-timing-function: ease-in-out; | ||
| 1004 | } | ||
| 1005 | 55%, | ||
| 1006 | 100% { | ||
| 1007 | stroke-dashoffset: 0; | ||
| 1008 | } | ||
| 1009 | } | ||
| 1010 | @keyframes ride55 { | ||
| 1011 | 0% { | ||
| 1012 | offset-distance: 0%; | ||
| 1013 | animation-timing-function: ease-in-out; | ||
| 1014 | } | ||
| 1015 | 55%, | ||
| 1016 | 100% { | ||
| 1017 | offset-distance: 100%; | ||
| 1018 | } | ||
| 1019 | } | ||
| 1020 | @keyframes breathe { | ||
| 1021 | 0%, | ||
| 1022 | 100% { | ||
| 1023 | opacity: 0.25; | ||
| 1024 | } | ||
| 1025 | 50% { | ||
| 1026 | opacity: 0.7; | ||
| 1027 | } | ||
| 1028 | } | ||
| 1029 | |||
| 1030 | .pinwheel path { | ||
| 1031 | fill: var(--ink2); | ||
| 1032 | } | ||
| 1033 | .pinwheel circle { | ||
| 1034 | fill: var(--panel); | ||
| 1035 | stroke: var(--ink2); | ||
| 1036 | } | ||
| 1037 | .btn.icon.on .pinwheel path { | ||
| 1038 | fill: var(--accent); | ||
| 1039 | } | ||
| 1040 | .btn.icon.on .pinwheel circle { | ||
| 1041 | stroke: var(--accent); | ||
| 1042 | } | ||
| 1043 | .pinwheel g { | ||
| 1044 | transform-origin: 10px 10px; | ||
| 1045 | } | ||
| 1046 | .anim .pinwheel g { | ||
| 1047 | animation: spin 2.4s linear infinite; | ||
| 1048 | } | ||
| 1049 | @keyframes spin { | ||
| 1050 | to { | ||
| 1051 | transform: rotate(360deg); | ||
| 1052 | } | ||
| 1053 | } | ||
| 1054 | |||
| 1055 | .anim .fade { | ||
| 1056 | animation: fade 0.5s; | ||
| 1057 | } | ||
| 1058 | @keyframes fade { | ||
| 1059 | from { | ||
| 1060 | opacity: 0; | ||
| 1061 | } | ||
| 1062 | } | ||
| 1063 | |||
| 1064 | @media (prefers-reduced-motion: reduce) { | ||
| 1065 | .anim * { | ||
| 1066 | animation: none !important; | ||
| 1067 | } | ||
| 1068 | } | ||