From 0735c9f70ca118a599fdd203bb9f135158a67395 Mon Sep 17 00:00:00 2001 From: maTh <1645099+math-GH@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:32:04 +0100 Subject: Fixed: article footer dropdowns (my labels, article tags, sharing) (#6959) * fix dropdown triangle in mobile view * Nord theme * mobile view: width improved. Each theme can decide about border-radius * Ansum/Mapco theme * fix pink dark theme: label icon in pink now too * my labels: line breaks improved * article tags: headline added --- p/themes/base-theme/frss.css | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'p/themes/base-theme/frss.css') diff --git a/p/themes/base-theme/frss.css b/p/themes/base-theme/frss.css index 8faab70cc..2dfbc2a04 100644 --- a/p/themes/base-theme/frss.css +++ b/p/themes/base-theme/frss.css @@ -355,13 +355,19 @@ input[type="checkbox"] { .dropdown-menu input[type="checkbox"] { margin-left: 1em; - margin-right: .5em; + margin-right: 0.5rem; + width: 1rem; } .dropdown-menu .item .checkboxNewTag { display: none; } +.dropdown-menu .item label:not(.noHover):has(input[type="checkbox"]) { + padding-left: 2.5rem; + text-indent: -2.5rem; +} + .dropdown-menu .item.addItem { padding: 0 0.5em; } @@ -728,6 +734,11 @@ input[type="checkbox"]:focus-visible { scroll-margin-bottom: 2rem; } +.horizontal-list.bottom .dropdown-menu { + left: 0.5rem; + right: auto; +} + .dropdown-menu::after { background-color: inherit; width: 10px; @@ -743,6 +754,11 @@ input[type="checkbox"]:focus-visible { transform: rotate(45deg); } +.horizontal-list.bottom .dropdown-menu::after { + left: 0.5rem; + right: auto; +} + .dropdown-menu-scrollable { max-height: min(75vh, 50em); overflow-x: hidden; @@ -2421,10 +2437,8 @@ html.slider-active { } .dropdown .dropdown-menu { - width: 94%; - border-radius: 0; - left: 3%; - right: 3%; + left: 0.5rem !important; + right: 0.5rem !important; position: absolute; } @@ -2472,6 +2486,11 @@ html.slider-active { cursor: default; } + .horizontal-list.bottom .dropdown-target:target ~ .dropdown-toggle::after { + top: 31px; + left: 10px; + } + .dropdown-target:target ~ .dropdown-toggle:not(.btn) ~ .dropdown-menu { margin-top: 10px; } -- cgit v1.2.3