From ab29c8c89e9da320eb319addd1459407bca3162d Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 29 Oct 2023 22:06:46 +0800 Subject: [PATCH] Pushing my CSS skills to the limit --- src/app.css | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/app.css b/src/app.css index 338286fc..f4aefc1e 100644 --- a/src/app.css +++ b/src/app.css @@ -2084,13 +2084,18 @@ ul.link-list li a .icon { #columns .header-grid input { pointer-events: none; } -#columns - .header-grid - .header-side:first-of-type - :is(button, .button) - ~ :is(button, .button), -#columns .deck-container:not(:first-of-type) .header-grid .header-side > * { - display: none; +#columns { + /* Any buttons except nav menu button on first header-side, on 1st column */ + .deck-container:first-of-type + .header-grid + .header-side:first-of-type + > *:not(.nav-menu-button), + /* Any buttons on last header-side, on 1st column */ + .deck-container:first-of-type .header-grid .header-side:last-of-type > *, + /* Any buttons on any header-side, on columns after 1st */ + .deck-container:not(:first-of-type) .header-grid .header-side > * { + display: none; + } } @media (min-width: 40em) { #columns {