collin/mahjong · 4d4ce219
Nothing on the bar, no bar
Collin Richards · 2026-08-21 22:35 UTC · 4d4ce219394e89e6aea8bf8d5426a61b6dba634d · parent 6293e66c · browse files
modifiedsrc/styles.css+9 −0
| ⋯ 439 unchanged lines | |||
| 440 | 440 | flex-wrap: wrap; | |
| 441 | 441 | flex: none; | |
| 442 | 442 | } | |
| 443 | + | /* Nothing up: no bar. The reservation is there so the row does not change | |
| 444 | + | height as buttons come and go, and it is worth exactly that much — but a bar | |
| 445 | + | with nothing in it at all is 52px of daylight between a hand and the sets | |
| 446 | + | above it, for most of a hand. Since the strip packs towards its outer edge, | |
| 447 | + | what moves when the buttons do arrive is the melds above them, and never the | |
| 448 | + | hand or the nameplate below. */ | |
| 449 | + | .actionbar:empty { | |
| 450 | + | min-height: 0; | |
| 451 | + | } | |
| 443 | 452 | /* Every button on the bar is the same height, so the row is the same height | |
| 444 | 453 | whichever ones are up: without this a 打出 五萬 stands taller than a bare 過 | |
| 445 | 454 | and the strip shuffles itself every time you lift a tile. */ | |
| ⋯ 1863 unchanged lines | |||