diff options
| author | 2022-02-12 01:38:40 +0100 | |
|---|---|---|
| committer | 2022-02-12 01:38:40 +0100 | |
| commit | d9e31864718236e1539defd8776d88266f681996 (patch) | |
| tree | 36f1027c2053986c286f932502015d99da0bfab5 /p/themes/base-theme/template.css | |
| parent | 4b9d66facafd6e795cd4953c39989bbf58486d40 (diff) | |
Fix: menu item overflow (#4218)
* fix item width
* better hover background
* fixed template.css
Diffstat (limited to 'p/themes/base-theme/template.css')
| -rw-r--r-- | p/themes/base-theme/template.css | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css index bea287653..65befae01 100644 --- a/p/themes/base-theme/template.css +++ b/p/themes/base-theme/template.css @@ -167,6 +167,11 @@ input[type="checkbox"] { width: calc(99% - 5em); } +.dropdown-menu > .item > a:hover, +.dropdown-menu > .item > button:hover { + text-decoration: none; +} + .dropdown-menu input[type="checkbox"] { margin-left: 1em; margin-right: .5em; @@ -373,8 +378,9 @@ input[type="checkbox"]:focus-visible { .dropdown-menu > .item > .as-link, .dropdown-menu > .item > span { display: block; - min-width: 200px; + width: 100%; white-space: nowrap; + box-sizing: border-box; } .dropdown-menu > .item[aria-checked="true"] > a::before { @@ -460,6 +466,7 @@ input[type="checkbox"]:focus-visible { /*=== Icons */ .icon { display: inline-block; + max-width: none; width: 16px; height: 16px; vertical-align: middle; |
