X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=scribe%2Fscribe.css;h=3bac47b40a2df6f5882cc10f63b04852898a8d4e;hp=a3b5d2ce676aef8a3ac874157a8de68b2ec26ccd;hb=7274cc0cc286ead5e767155101658074353afb14;hpb=89b7f6b2d8cf6f237310dad0a8f1d796fb98862a diff --git a/scribe/scribe.css b/scribe/scribe.css index a3b5d2c..3bac47b 100644 --- a/scribe/scribe.css +++ b/scribe/scribe.css @@ -1,3 +1,9 @@ +:root { + /* Colors for the two players. */ + --o-color: #c2dfff; + --plus-color: #fdd7e4; +} + /* We want our board to be the largest square that can * fit. Unfortunately, it requires a bit of CSS magic to make that * happen. We can set a width easily enough, but what we can't easily @@ -51,6 +57,32 @@ border-radius: 6px; border: 3px solid #999; + + position:relative; +} + +.mini-grid.active { + border: 3px solid var(--accent-color-bright); +} + +.mini-grid.o-wins .square, .mini-grid.plus-wins .square { + opacity: 0.6; +} + +.mini-grid .winner { + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + + display: flex; + justify-content: center; + align-items: center; + line-height: 0; + font-size: calc(min(35vw, .35 * var(--page-max-width))); + font-weight: bold; + opacity: 0.20; } .square { @@ -72,10 +104,22 @@ cursor: default; } +.square.glyph-o { + background: var(--o-color); +} + +.square.glyph-plus { + background: var(--plus-color); +} + .square.open:hover { background-color: var(--accent-color-bright); } +.square.last-move { + color: var(--accent-color-bright); +} + .glyphs { padding-top: 0.5em; display: grid; @@ -87,7 +131,6 @@ .glyph-and-name { display: flex; flex-direction: column; - justify-content: center; align-items: center; }