From b72276b76c3c69ea2d8636521ee9a1ac71afc706 Mon Sep 17 00:00:00 2001 From: adrien Date: Wed, 4 Mar 2026 19:50:44 +0100 Subject: [PATCH] neo-classic theme --- css/classic.css | 2 +- css/jazz.css | 9 +++-- css/neo-classic.css | 88 +++++++++++++++++++++++++++++++++++++++++++++ index.html | 3 +- 4 files changed, 95 insertions(+), 7 deletions(-) create mode 100644 css/neo-classic.css diff --git a/css/classic.css b/css/classic.css index 482f59b..4b261ed 100644 --- a/css/classic.css +++ b/css/classic.css @@ -80,7 +80,7 @@ tr.matrix td:not(.mino) { .ghost { border: 3px solid #fff2; - padding: 2px; + padding: 3px; background-color: #fff2; background-clip: content-box; background-image: none; diff --git a/css/jazz.css b/css/jazz.css index 3ea4d98..0c9f844 100644 --- a/css/jazz.css +++ b/css/jazz.css @@ -19,7 +19,6 @@ body { border: none; border-radius: 0; margin-bottom: 0.5em !important; - width: min-content !important; } .card:first-of-type { @@ -57,11 +56,11 @@ body { } #holdTable { - margin: 0 0 0 auto !important; + margin: 0 !important; } #statsTable { - margin-right: 1.5em; + width: 10rem; } #statsTable tr { @@ -172,10 +171,10 @@ tr.matrix td:not(.mino) { .ghost.mino { background-color: #fff4; - border-color: #fff8; + border: none; opacity: 5%; box-shadow: none; - transform: translateY(-6px); + transform: translateY(-3px); } .moving.mino { diff --git a/css/neo-classic.css b/css/neo-classic.css new file mode 100644 index 0000000..2af7b51 --- /dev/null +++ b/css/neo-classic.css @@ -0,0 +1,88 @@ +.minoes-table tr { + z-index: calc(100 - var(--row)); + position: sticky; +} + +tr.matrix td:not(.mino) { + border-left: none; + border-bottom: none; +} + +.mino { + --color: hsl(var(--hue), var(--saturation), 60%); + --dark: hsl(var(--hue), var(--saturation), 25%); + --light: hsl(var(--hue), calc(0.66 * var(--saturation)), 84%); + --border: hsl(var(--hue), var(--saturation), 40%); + --top: hsl(var(--hue), calc(0.6 * var(--saturation)), 68%); + position: relative; + background-color: var(--dark); + background-image: radial-gradient( + ellipse 200% 120% at 50% 75%, + #fff8 10%, + var(--dark) 28%, + #fff8 38%, + var(--dark) 48% + ); + border: 1px outset var(--border); + border-radius: 3px; + box-shadow: + inset 3px 0 4px rgba(0,0,0,.06), + inset -3px 0 4px rgba(0,0,0,.12), + 0 -3px 0 var(--top), + 0 2px 2px #0004; +} + +.mino:after { + --size: calc(var(--cell-side) - 12px); + position: absolute; + content: ""; + box-sizing: content-box; + width: var(--size); + height: var(--size); + opacity: 40%; + background: var(--color); + left: 3px; + top: 3px; + border: 3px solid var(--border); + border-top-color: white; +} + +.I { + --hue: 193; + --saturation: 100%; +} + +.J { + --hue: 215; + --saturation: 100%; +} + +.L { + --hue: 25; + --saturation: 100%; +} + +.O { + --hue: 42; + --saturation: 100%; +} + +.S { + --hue: 95; + --saturation: 100%; +} + +.T { + --hue: 300; + --saturation: 56%; +} + +.Z { + --hue: 357; + --saturation: 84%; +} + +.ghost { + --hue: 0; + --saturation: 0%; +} \ No newline at end of file diff --git a/index.html b/index.html index aa39b8b..b146459 100644 --- a/index.html +++ b/index.html @@ -70,10 +70,11 @@