diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-06-20 11:37:39 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-02-14 01:36:03 +0100 |
commit | b365e462d00f35ae3515eef9e2dfc6b9ade99107 (patch) | |
tree | f3754838b672579967ee41ab45d2360f6fac9350 /public | |
parent | 771e8404801642910523ec62990e8e4cb07eaeab (diff) | |
download | server-b365e462d00f35ae3515eef9e2dfc6b9ade99107.tar.gz |
Use detail/summary styling as popup menu only for header.
Add common checkbox menu styling.
Diffstat (limited to 'public')
-rw-r--r-- | public/common/client.css | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/public/common/client.css b/public/common/client.css index 53b6a38..f328d12 100644 --- a/public/common/client.css +++ b/public/common/client.css @@ -12,7 +12,7 @@ html { -webkit-tap-highlight-color: transparent; /* disable blue flashes when tapping on chrome mobile */ } -summary::-webkit-details-marker { +header summary::-webkit-details-marker { display: none; } @@ -24,7 +24,7 @@ html { user-select: text; } -summary img, button img, menu img { +header summary img, button img, menu img { pointer-events: none; } @@ -270,12 +270,12 @@ header.replay { /* MENUS AND ICONS */ -details menu { +header details menu { display: block; min-width: 140px; } -summary img, #toolbar button img { +header summary img, #toolbar button img { display: block; height: 36px; padding: 4px; @@ -292,13 +292,13 @@ summary img, #toolbar button img { margin: 0; } -details[open] > summary { background-color: #0004; } +header details[open] > summary { background-color: #0004; } @media (hover: hover) { - summary:hover, #toolbar button:hover { background-color: #0004; } + header summary:hover, #toolbar button:hover { background-color: #0004; } } -summary:active, #toolbar button:active { background-color: #0008; } +header summary:active, #toolbar button:active { background-color: #0008; } -summary { +header summary { cursor: pointer; list-style: none; } @@ -323,6 +323,9 @@ menu li { cursor: pointer; } +menu li.checked::before { content: "\2714 " } +menu li.unchecked::before { content: "\2714 "; color:transparent; } + menu li a { display: block; margin: -4px -8px; |