diff options
| author | 2022-01-11 23:53:40 +0100 | |
|---|---|---|
| committer | 2022-01-11 23:53:40 +0100 | |
| commit | f94ec779e66ca7203cd3cf1e807bcf3c983ed736 (patch) | |
| tree | 2e0c0133937d92217cecc8bb2c8d0c16de54338e /p/themes/base-theme/template.css | |
| parent | 9cd9e9a0930a04f594394a8dc6a95791134521a3 (diff) | |
Improve dropdown menu mobile (#4141)
* Theme template.css
* theme adark
* theme ansum
* theme bluelagoon
* theme dark
* theme template.css RTL fix
* theme flat
* theme Origine
* theme Origine-compact
* theme Pafat
* theme Screwdriver
* theme Swage
* theme Mapco
* dropdown menu with thin scrollbar
* Fix CI foundings
* Fix RTL
* Fix CSS semicolons
* Fix CSS RTL
* Fix SCSS
* Update _mobile.scss
Diffstat (limited to 'p/themes/base-theme/template.css')
| -rw-r--r-- | p/themes/base-theme/template.css | 54 |
1 files changed, 46 insertions, 8 deletions
diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css index 42d023375..1c3b0490c 100644 --- a/p/themes/base-theme/template.css +++ b/p/themes/base-theme/template.css @@ -1394,25 +1394,63 @@ input:checked + .slide-container .properties { margin-left: 0; } + .dropdown { + position: inherit; + } + .dropdown .dropdown-menu { - width: 100%; + width: 94%; border-radius: 0; - bottom: 0; - position: fixed; + left: 3%; + right: 3%; + position: absolute; + } + + .dropdown .dropdown-menu .item { + margin: 2px 0; + } + + .dropdown .dropdown-menu .item button.as-link, + .dropdown .dropdown-menu .item button.as-link:hover, button.as-link:active { + width: 100%; + } + + .dropdown-target:target ~ .dropdown-toggle { + position: relative; + overflow: visible; + } + + .dropdown-target:target ~ .dropdown-toggle::after { + background-color: #fff; + width: 10px; + height: 10px; + content: ""; + position: absolute; + right: 8px; + bottom: -17px; + transform: rotate(45deg); + z-index: 9999; + cursor: default; + } + + .dropdown-target:target ~ .dropdown-toggle:not(.btn) ~ .dropdown-menu { + margin-top: 0; } .configure .dropdown .dropdown-menu { width: 90%; height: 100vh; + top: 0; + right: 0; + bottom: 0; + left: auto; + position: fixed; + padding-top: 0; + margin-top: 0; overflow: auto; box-shadow: -3px 0 3px #aaa; } - .dropdown-target ~ .dropdown-menu { - width: 0; - - } - .dropdown-target:target ~ .dropdown-menu { display: table-cell; z-index: 1000; |
