From 42eeb402ad574236902e40d35d630fa15d29a985 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 15 Nov 2022 15:42:26 +0100 Subject: Fix type hints regressions (#4855) Fix regressions from https://github.com/FreshRSS/FreshRSS/pull/4561 Example: ``` PHP Fatal error: Uncaught TypeError: Argument 1 passed to checkToken() must be an instance of FreshRSS_UserConfiguration, instance of Minz_Configuration given, called in /var/www/FreshRSS/p/api/greader.php on line 1091 and defined in /var/www/FreshRSS/p/api/greader.php:223 Stack trace: #0 /var/www/FreshRSS/p/api/greader.php(1091): checkToken() #1 {main} thrown in /var/www/FreshRSS/p/api/greader.php on line 223 ``` Improvement of https://github.com/FreshRSS/FreshRSS/pull/4110 --- app/layout/aside_configure.phtml | 6 +++--- app/layout/header.phtml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app/layout') diff --git a/app/layout/aside_configure.phtml b/app/layout/aside_configure.phtml index 5f1762834..f4a05a47c 100644 --- a/app/layout/aside_configure.phtml +++ b/app/layout/aside_configure.phtml @@ -1,8 +1,8 @@ diff --git a/app/layout/aside_subscription.phtml b/app/layout/aside_subscription.phtml index aa7857f74..e1f520f34 100644 --- a/app/layout/aside_subscription.phtml +++ b/app/layout/aside_subscription.phtml @@ -1,38 +1,45 @@ diff --git a/p/themes/Alternative-Dark/adark.css b/p/themes/Alternative-Dark/adark.css index 8106f775b..38135720a 100644 --- a/p/themes/Alternative-Dark/adark.css +++ b/p/themes/Alternative-Dark/adark.css @@ -280,13 +280,17 @@ a.btn { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - line-height: 2.5; +.nav-list { color: var(--font-color-light); font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a { color: var(--font-color-middle); } @@ -302,7 +306,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; } .nav-list a:hover { @@ -310,7 +314,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; color: var(--font-color-middle); font-weight: bold; } diff --git a/p/themes/Alternative-Dark/adark.rtl.css b/p/themes/Alternative-Dark/adark.rtl.css index d40403fc8..81ef43765 100644 --- a/p/themes/Alternative-Dark/adark.rtl.css +++ b/p/themes/Alternative-Dark/adark.rtl.css @@ -280,13 +280,17 @@ a.btn { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - line-height: 2.5; +.nav-list { color: var(--font-color-light); font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a { color: var(--font-color-middle); } @@ -302,7 +306,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; } .nav-list a:hover { @@ -310,7 +314,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; color: var(--font-color-middle); font-weight: bold; } diff --git a/p/themes/Ansum/_sidebar.scss b/p/themes/Ansum/_sidebar.scss index d73cf7439..e92dd2ec4 100644 --- a/p/themes/Ansum/_sidebar.scss +++ b/p/themes/Ansum/_sidebar.scss @@ -135,15 +135,23 @@ /*=== Navigation */ .nav-list { - .nav-header, + font-size: 1rem; + + .item.nav-header, .item { - height: 2.5em; + min-height: 2.5em; line-height: 2.5em; - font-size: 1rem; } .item { background: variables.$sid-bg; + min-height: 2.5em; + line-height: 2.5em; + + &.nav-header { + min-height: 2.5em; + line-height: 2.5em; + } a { padding: 0 1rem; @@ -152,11 +160,9 @@ @include mixins.transition(all, 0.15s, ease-in-out); } - &:hover { - a { - background: variables.$sid-bg-dark; - text-decoration: none; - } + a:hover { + background: variables.$sid-bg-dark; + text-decoration: none; } &.active { @@ -172,7 +178,7 @@ } .nav-header { - padding: 0 10px; + padding: 0 1rem; font-weight: bold; color: variables.$grey-dark; text-transform: uppercase; diff --git a/p/themes/Ansum/ansum.css b/p/themes/Ansum/ansum.css index 5c7433fce..6789320b5 100644 --- a/p/themes/Ansum/ansum.css +++ b/p/themes/Ansum/ansum.css @@ -552,21 +552,29 @@ form th { /* Sidebar des pages de configuration */ /*=== Navigation */ -.nav-list .nav-header, +.nav-list { + font-size: 1rem; +} +.nav-list .item.nav-header, .nav-list .item { - height: 2.5em; + min-height: 2.5em; line-height: 2.5em; - font-size: 1rem; } .nav-list .item { background: #fbf9f6; + min-height: 2.5em; + line-height: 2.5em; +} +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5em; } .nav-list .item a { padding: 0 1rem; color: #363330; transition: all 0.15s ease-in-out; } -.nav-list .item:hover a { +.nav-list .item a:hover { background: #efe3d3; text-decoration: none; } @@ -580,7 +588,7 @@ form th { text-decoration: none; } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; font-weight: bold; color: #766556; text-transform: uppercase; diff --git a/p/themes/Ansum/ansum.rtl.css b/p/themes/Ansum/ansum.rtl.css index d8e6eaa99..82ea37a3c 100644 --- a/p/themes/Ansum/ansum.rtl.css +++ b/p/themes/Ansum/ansum.rtl.css @@ -552,21 +552,29 @@ form th { /* Sidebar des pages de configuration */ /*=== Navigation */ -.nav-list .nav-header, +.nav-list { + font-size: 1rem; +} +.nav-list .item.nav-header, .nav-list .item { - height: 2.5em; + min-height: 2.5em; line-height: 2.5em; - font-size: 1rem; } .nav-list .item { background: #fbf9f6; + min-height: 2.5em; + line-height: 2.5em; +} +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5em; } .nav-list .item a { padding: 0 1rem; color: #363330; transition: all 0.15s ease-in-out; } -.nav-list .item:hover a { +.nav-list .item a:hover { background: #efe3d3; text-decoration: none; } @@ -580,7 +588,7 @@ form th { text-decoration: none; } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; font-weight: bold; color: #766556; text-transform: uppercase; diff --git a/p/themes/BlueLagoon/BlueLagoon.css b/p/themes/BlueLagoon/BlueLagoon.css index e37f35228..31bf28d06 100644 --- a/p/themes/BlueLagoon/BlueLagoon.css +++ b/p/themes/BlueLagoon/BlueLagoon.css @@ -265,13 +265,16 @@ a.btn { box-shadow: 0 -1px rgba(255,255,255,0.08) inset; } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5em; +.nav-list { font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a:hover { text-shadow: 0 0 2px rgba(255,255,255,0.28); color: #fff; @@ -286,7 +289,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; color: #ccc; } @@ -295,7 +298,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; background: transparent; color: #222; } diff --git a/p/themes/BlueLagoon/BlueLagoon.rtl.css b/p/themes/BlueLagoon/BlueLagoon.rtl.css index faa7250f3..f971dbace 100644 --- a/p/themes/BlueLagoon/BlueLagoon.rtl.css +++ b/p/themes/BlueLagoon/BlueLagoon.rtl.css @@ -265,13 +265,16 @@ a.btn { box-shadow: 0 -1px rgba(255,255,255,0.08) inset; } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5em; +.nav-list { font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a:hover { text-shadow: 0 0 2px rgba(255,255,255,0.28); color: #fff; @@ -286,7 +289,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; color: #ccc; } @@ -295,7 +298,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; background: transparent; color: #222; } diff --git a/p/themes/Dark/dark.css b/p/themes/Dark/dark.css index 3ddb59755..dfcc1b2e7 100644 --- a/p/themes/Dark/dark.css +++ b/p/themes/Dark/dark.css @@ -261,13 +261,16 @@ a.btn { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5em; +.nav-list { font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a:hover { background: #26303f; } @@ -282,7 +285,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; } .nav-list a:hover { @@ -290,7 +293,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; font-weight: bold; background: #111; border-bottom: 1px solid #333; diff --git a/p/themes/Dark/dark.rtl.css b/p/themes/Dark/dark.rtl.css index faea0df5e..0ef5f06b4 100644 --- a/p/themes/Dark/dark.rtl.css +++ b/p/themes/Dark/dark.rtl.css @@ -261,13 +261,16 @@ a.btn { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5em; +.nav-list { font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a:hover { background: #26303f; } @@ -282,7 +285,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; } .nav-list a:hover { @@ -290,7 +293,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; font-weight: bold; background: #111; border-bottom: 1px solid #333; diff --git a/p/themes/Flat/flat.css b/p/themes/Flat/flat.css index c6c2a6aec..fa667c899 100644 --- a/p/themes/Flat/flat.css +++ b/p/themes/Flat/flat.css @@ -250,13 +250,16 @@ a.btn { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5em; +.nav-list { font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a:hover, .nav-list .item.active { background: #2980b9; @@ -268,7 +271,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; } .nav-list a:hover { @@ -276,7 +279,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; font-weight: bold; background: #34495e; color: #fff; diff --git a/p/themes/Flat/flat.rtl.css b/p/themes/Flat/flat.rtl.css index 2ef0e42ea..da3722f18 100644 --- a/p/themes/Flat/flat.rtl.css +++ b/p/themes/Flat/flat.rtl.css @@ -250,13 +250,16 @@ a.btn { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5em; +.nav-list { font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a:hover, .nav-list .item.active { background: #2980b9; @@ -268,7 +271,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; } .nav-list a:hover { @@ -276,7 +279,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; font-weight: bold; background: #34495e; color: #fff; diff --git a/p/themes/Mapco/_sidebar.scss b/p/themes/Mapco/_sidebar.scss index 9f546da61..a71960b1d 100644 --- a/p/themes/Mapco/_sidebar.scss +++ b/p/themes/Mapco/_sidebar.scss @@ -133,16 +133,24 @@ /*=== Navigation */ .nav-list { - .nav-header, + font-size: 1rem; + + .item.nav-header, .item { - height: 2.5em; + min-height: 2.5em; line-height: 2.5em; - font-size: 1rem; } .item { background: variables.$sid-bg; color: variables.$white; + min-height: 2.5em; + line-height: 2.5em; + + &.nav-header { + min-height: 2.5em; + line-height: 2.5em; + } a { padding: 0 1rem; @@ -151,11 +159,9 @@ @include mixins.transition(all, 0.15s, ease-in-out); } - &:hover { - a { - background: variables.$sid-bg-dark; - text-decoration: none; - } + a:hover { + background: variables.$sid-bg-dark; + text-decoration: none; } &.active { @@ -171,7 +177,7 @@ } .nav-header { - padding: 0 10px; + padding: 0 1rem; font-weight: bold; color: variables.$grey-dark; text-transform: uppercase; diff --git a/p/themes/Mapco/mapco.css b/p/themes/Mapco/mapco.css index 94be46e9f..c34dc08e0 100644 --- a/p/themes/Mapco/mapco.css +++ b/p/themes/Mapco/mapco.css @@ -565,22 +565,30 @@ form th { /* Sidebar des pages de configuration */ /*=== Navigation */ -.nav-list .nav-header, +.nav-list { + font-size: 1rem; +} +.nav-list .item.nav-header, .nav-list .item { - height: 2.5em; + min-height: 2.5em; line-height: 2.5em; - font-size: 1rem; } .nav-list .item { background: #303136; color: #fff; + min-height: 2.5em; + line-height: 2.5em; +} +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5em; } .nav-list .item a { padding: 0 1rem; color: #ffffff; transition: all 0.15s ease-in-out; } -.nav-list .item:hover a { +.nav-list .item a:hover { background: #17181a; text-decoration: none; } @@ -594,7 +602,7 @@ form th { text-decoration: none; } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; font-weight: bold; color: #5b6871; text-transform: uppercase; @@ -1335,6 +1343,4 @@ body.register { a, button.as-link { outline: none; color: #36c; -} - -/*# sourceMappingURL=mapco.css.map */ +} \ No newline at end of file diff --git a/p/themes/Mapco/mapco.rtl.css b/p/themes/Mapco/mapco.rtl.css index 5b042c849..112ca94c7 100644 --- a/p/themes/Mapco/mapco.rtl.css +++ b/p/themes/Mapco/mapco.rtl.css @@ -565,22 +565,30 @@ form th { /* Sidebar des pages de configuration */ /*=== Navigation */ -.nav-list .nav-header, +.nav-list { + font-size: 1rem; +} +.nav-list .item.nav-header, .nav-list .item { - height: 2.5em; + min-height: 2.5em; line-height: 2.5em; - font-size: 1rem; } .nav-list .item { background: #303136; color: #fff; + min-height: 2.5em; + line-height: 2.5em; +} +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5em; } .nav-list .item a { padding: 0 1rem; color: #ffffff; transition: all 0.15s ease-in-out; } -.nav-list .item:hover a { +.nav-list .item a:hover { background: #17181a; text-decoration: none; } @@ -594,7 +602,7 @@ form th { text-decoration: none; } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; font-weight: bold; color: #5b6871; text-transform: uppercase; @@ -1335,4 +1343,4 @@ body.register { a, button.as-link { outline: none; color: #36c; -} +} \ No newline at end of file diff --git a/p/themes/Nord/nord.css b/p/themes/Nord/nord.css index e0eda2af9..5e8004903 100644 --- a/p/themes/Nord/nord.css +++ b/p/themes/Nord/nord.css @@ -208,13 +208,6 @@ a.btn { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - font-size: 0.9rem; - line-height: 2.5em; -} - .dropdown-menu { margin: 5px 0 0; padding: 0.5rem 0 0.25rem 0; @@ -859,8 +852,18 @@ input.extend { } /*=== Navigation */ +.nav-list { + font-size: 0.9rem; +} + +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; } .nav-list a:hover { @@ -868,7 +871,7 @@ input.extend { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; font-weight: bold; } diff --git a/p/themes/Nord/nord.rtl.css b/p/themes/Nord/nord.rtl.css index d2b5146a1..fd38ef26c 100644 --- a/p/themes/Nord/nord.rtl.css +++ b/p/themes/Nord/nord.rtl.css @@ -208,13 +208,6 @@ a.btn { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - font-size: 0.9rem; - line-height: 2.5em; -} - .dropdown-menu { margin: 5px 0 0; padding: 0.5rem 0 0.25rem 0; @@ -859,8 +852,18 @@ input.extend { } /*=== Navigation */ +.nav-list { + font-size: 0.9rem; +} + +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; } .nav-list a:hover { @@ -868,7 +871,7 @@ input.extend { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; font-weight: bold; } diff --git a/p/themes/Origine/origine.css b/p/themes/Origine/origine.css index af9d3330a..9e30e429d 100644 --- a/p/themes/Origine/origine.css +++ b/p/themes/Origine/origine.css @@ -353,21 +353,22 @@ a:hover .icon { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5; +.nav-list { font-size: 0.9rem; } -.nav-list .item:hover { - background-color: var(--background-color-hover); +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; } -.nav-list .item:hover a { +.nav-list .nav-section .item:hover a { + background-color: var(--background-color-hover); color: var(--font-color-link-hover); } +.nav-list .nav-section .item.active:hover a, .nav-list .item.active { background-color: var(--contrast-background-color-active); color: var(--font-color-light); @@ -378,8 +379,8 @@ a:hover .icon { } .nav-list .item > a, -.nav-list .item > span { - padding: 0 10px; +.nav-list .item > div { + padding: 0 1rem; } .nav-list .item > span { @@ -392,7 +393,6 @@ a:hover .icon { } .nav-list .nav-header { - padding: 0 10px; background-color: var(--background-color-grey); color: var(--font-color-grey); border-bottom: 1px solid var(--border-color); diff --git a/p/themes/Origine/origine.rtl.css b/p/themes/Origine/origine.rtl.css index 27c381f6a..53e623917 100644 --- a/p/themes/Origine/origine.rtl.css +++ b/p/themes/Origine/origine.rtl.css @@ -353,21 +353,22 @@ a:hover .icon { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5; +.nav-list { font-size: 0.9rem; } -.nav-list .item:hover { - background-color: var(--background-color-hover); +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; } -.nav-list .item:hover a { +.nav-list .nav-section .item:hover a { + background-color: var(--background-color-hover); color: var(--font-color-link-hover); } +.nav-list .nav-section .item.active:hover a, .nav-list .item.active { background-color: var(--contrast-background-color-active); color: var(--font-color-light); @@ -378,8 +379,8 @@ a:hover .icon { } .nav-list .item > a, -.nav-list .item > span { - padding: 0 10px; +.nav-list .item > div { + padding: 0 1rem; } .nav-list .item > span { @@ -392,7 +393,6 @@ a:hover .icon { } .nav-list .nav-header { - padding: 0 10px; background-color: var(--background-color-grey); color: var(--font-color-grey); border-bottom: 1px solid var(--border-color); diff --git a/p/themes/Pafat/pafat.css b/p/themes/Pafat/pafat.css index 5a7fb876f..8c5b7a9f4 100644 --- a/p/themes/Pafat/pafat.css +++ b/p/themes/Pafat/pafat.css @@ -294,13 +294,16 @@ a.btn { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5; +.nav-list { font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a:hover { color: var(--font-color-link-general-hover); background-color: var(--background-color-grey-hover); @@ -317,7 +320,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; } .nav-list a:hover { @@ -325,7 +328,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; background-color: var(--background-color-grey); color: var(--font-color-grey); border-bottom: 1px solid var(--border-color-grey-light); diff --git a/p/themes/Pafat/pafat.rtl.css b/p/themes/Pafat/pafat.rtl.css index 0181e60ed..1ff2ea70e 100644 --- a/p/themes/Pafat/pafat.rtl.css +++ b/p/themes/Pafat/pafat.rtl.css @@ -294,13 +294,16 @@ a.btn { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5; +.nav-list { font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a:hover { color: var(--font-color-link-general-hover); background-color: var(--background-color-grey-hover); @@ -317,7 +320,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; } .nav-list a:hover { @@ -325,7 +328,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; background-color: var(--background-color-grey); color: var(--font-color-grey); border-bottom: 1px solid var(--border-color-grey-light); diff --git a/p/themes/Screwdriver/screwdriver.css b/p/themes/Screwdriver/screwdriver.css index 39d1dd152..e5ca98ab7 100644 --- a/p/themes/Screwdriver/screwdriver.css +++ b/p/themes/Screwdriver/screwdriver.css @@ -263,13 +263,16 @@ a.btn { box-shadow: 0 -1px rgba(255,255,255,0.08) inset; } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5em; +.nav-list { font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a:hover { text-shadow: 0 0 2px rgba(255,255,255,0.28); color: #fff; @@ -290,7 +293,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; color: #ccc; } @@ -299,7 +302,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; background: transparent; color: #222; } diff --git a/p/themes/Screwdriver/screwdriver.rtl.css b/p/themes/Screwdriver/screwdriver.rtl.css index e29b0e1b2..664331ac7 100644 --- a/p/themes/Screwdriver/screwdriver.rtl.css +++ b/p/themes/Screwdriver/screwdriver.rtl.css @@ -263,13 +263,16 @@ a.btn { box-shadow: 0 -1px rgba(255,255,255,0.08) inset; } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5em; +.nav-list { font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a:hover { text-shadow: 0 0 2px rgba(255,255,255,0.28); color: #fff; @@ -290,7 +293,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; color: #ccc; } @@ -299,7 +302,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; background: transparent; color: #222; } diff --git a/p/themes/Swage/swage.css b/p/themes/Swage/swage.css index 0ebdfa3fb..3bf9d8684 100644 --- a/p/themes/Swage/swage.css +++ b/p/themes/Swage/swage.css @@ -54,10 +54,9 @@ select:invalid { box-shadow: none; } -.nav-list .item, .nav-list .nav-header { - height: 2.5em; +.nav-list .item .nav-header, .nav-list .item { + min-height: 2.5em; line-height: 2.5; - font-size: 0.9rem; } .dropdown-menu > .item a, @@ -263,7 +262,10 @@ form th { background-image: url("./icons/disabled-light.svg"); } -.nav-list .nav-header { +.nav-list { + font-size: 0.9rem; +} +.nav-list .item .nav-header { padding: 0 1rem; font-weight: bold; background-color: var(--color-background-aside); diff --git a/p/themes/Swage/swage.rtl.css b/p/themes/Swage/swage.rtl.css index f8f031567..d2282f52c 100644 --- a/p/themes/Swage/swage.rtl.css +++ b/p/themes/Swage/swage.rtl.css @@ -54,10 +54,9 @@ select:invalid { box-shadow: none; } -.nav-list .item, .nav-list .nav-header { - height: 2.5em; +.nav-list .item .nav-header, .nav-list .item { + min-height: 2.5em; line-height: 2.5; - font-size: 0.9rem; } .dropdown-menu > .item a, @@ -263,7 +262,10 @@ form th { background-image: url("./icons/disabled-light.svg"); } -.nav-list .nav-header { +.nav-list { + font-size: 0.9rem; +} +.nav-list .item .nav-header { padding: 0 1rem; font-weight: bold; background-color: var(--color-background-aside); diff --git a/p/themes/Swage/swage.scss b/p/themes/Swage/swage.scss index a0570bb16..e24e9da7f 100644 --- a/p/themes/Swage/swage.scss +++ b/p/themes/Swage/swage.scss @@ -76,9 +76,8 @@ $color_hover: #fff; } %nav-list { - height: 2.5em; + min-height: 2.5em; line-height: 2.5; - font-size: 0.9rem; } %dropdown { @@ -338,20 +337,22 @@ form { } .nav-list { - .nav-header { - - @extend %nav-list; - padding: 0 1rem; - font-weight: bold; - background-color: var(--color-background-aside); - color: var(--color-text-light); - cursor: default; - } + font-size: 0.9rem; .item { @extend %nav-list; + .nav-header { + + @extend %nav-list; + padding: 0 1rem; + font-weight: bold; + background-color: var(--color-background-aside); + color: var(--color-text-light); + cursor: default; + } + a:hover { background-color: var(--color-background-nav-darker); color: var(--color-text-light); diff --git a/p/themes/base-theme/frss.css b/p/themes/base-theme/frss.css index a24d7c32c..56e99ec70 100644 --- a/p/themes/base-theme/frss.css +++ b/p/themes/base-theme/frss.css @@ -559,6 +559,10 @@ input[type="checkbox"]:focus-visible { } /*=== Navigation */ +.nav-list { + padding-bottom: 3rem; +} + .nav-list .nav-header, .nav-list .item { display: block; diff --git a/p/themes/base-theme/frss.rtl.css b/p/themes/base-theme/frss.rtl.css index 4a8782c7e..4c8326e32 100644 --- a/p/themes/base-theme/frss.rtl.css +++ b/p/themes/base-theme/frss.rtl.css @@ -559,6 +559,10 @@ input[type="checkbox"]:focus-visible { } /*=== Navigation */ +.nav-list { + padding-bottom: 3rem; +} + .nav-list .nav-header, .nav-list .item { display: block; -- cgit v1.2.3 From 1c4b328ae14ce94c56171eb28ca4dc0c665051f4 Mon Sep 17 00:00:00 2001 From: maTh Date: Wed, 25 Jan 2023 22:23:51 +0100 Subject: Improved: expanding inputs (#5040) * fix * wider input element --- app/layout/header.phtml | 2 +- app/views/configure/system.phtml | 4 ++-- app/views/feed/add.phtml | 2 +- app/views/helpers/category/update.phtml | 2 +- app/views/helpers/configure/query.phtml | 4 ++-- app/views/subscription/add.phtml | 8 ++++---- p/themes/Alternative-Dark/adark.css | 8 -------- p/themes/Alternative-Dark/adark.rtl.css | 8 -------- p/themes/Ansum/_forms.scss | 5 ----- p/themes/Ansum/_layout.scss | 4 +--- p/themes/Ansum/ansum.css | 7 +------ p/themes/Ansum/ansum.rtl.css | 7 +------ p/themes/BlueLagoon/BlueLagoon.css | 8 -------- p/themes/BlueLagoon/BlueLagoon.rtl.css | 8 -------- p/themes/Dark/dark.css | 8 -------- p/themes/Dark/dark.rtl.css | 8 -------- p/themes/Flat/flat.css | 8 -------- p/themes/Flat/flat.rtl.css | 8 -------- p/themes/Mapco/_forms.scss | 5 ----- p/themes/Mapco/_layout.scss | 4 +--- p/themes/Mapco/mapco.css | 7 +------ p/themes/Mapco/mapco.rtl.css | 7 +------ p/themes/Nord/nord.css | 11 ----------- p/themes/Nord/nord.rtl.css | 11 ----------- p/themes/Origine/origine.css | 8 -------- p/themes/Origine/origine.rtl.css | 8 -------- p/themes/Pafat/pafat.css | 6 +----- p/themes/Pafat/pafat.rtl.css | 6 +----- p/themes/Screwdriver/screwdriver.css | 8 -------- p/themes/Screwdriver/screwdriver.rtl.css | 8 -------- p/themes/Swage/swage.css | 7 ------- p/themes/Swage/swage.rtl.css | 7 ------- p/themes/Swage/swage.scss | 10 ---------- p/themes/base-theme/base.css | 8 -------- p/themes/base-theme/base.rtl.css | 8 -------- p/themes/base-theme/frss.css | 7 ++++--- p/themes/base-theme/frss.rtl.css | 7 ++++--- 37 files changed, 27 insertions(+), 225 deletions(-) (limited to 'app/layout') diff --git a/app/layout/header.phtml b/app/layout/header.phtml index 45eb9a3ce..0a49d5992 100644 --- a/app/layout/header.phtml +++ b/app/layout/header.phtml @@ -15,7 +15,7 @@ allow_anonymous) { ?>
- diff --git a/app/views/configure/system.phtml b/app/views/configure/system.phtml index 94fe34b94..bf14cac5d 100644 --- a/app/views/configure/system.phtml +++ b/app/views/configure/system.phtml @@ -16,7 +16,7 @@
-
@@ -24,7 +24,7 @@
-
diff --git a/app/views/feed/add.phtml b/app/views/feed/add.phtml index 8f5594526..3461e6e61 100644 --- a/app/views/feed/add.phtml +++ b/app/views/feed/add.phtml @@ -67,7 +67,7 @@
- +

diff --git a/app/views/helpers/category/update.phtml b/app/views/helpers/category/update.phtml index 171ee20a4..a0986ff04 100644 --- a/app/views/helpers/category/update.phtml +++ b/app/views/helpers/category/update.phtml @@ -16,7 +16,7 @@
- category->id() == FreshRSS_CategoryDAO::DEFAULTCATEGORYID ? 'disabled="disabled"' : ''; ?> /> diff --git a/app/views/helpers/configure/query.phtml b/app/views/helpers/configure/query.phtml index a75333cfc..f8d51c193 100644 --- a/app/views/helpers/configure/query.phtml +++ b/app/views/helpers/configure/query.phtml @@ -12,7 +12,7 @@
- +
@@ -20,7 +20,7 @@
- +
diff --git a/app/views/subscription/add.phtml b/app/views/subscription/add.phtml index 800093bed..212574002 100644 --- a/app/views/subscription/add.phtml +++ b/app/views/subscription/add.phtml @@ -190,7 +190,7 @@
- +

diff --git a/p/themes/Alternative-Dark/adark.css b/p/themes/Alternative-Dark/adark.css index aa3d7eab8..25df31194 100644 --- a/p/themes/Alternative-Dark/adark.css +++ b/p/themes/Alternative-Dark/adark.css @@ -114,10 +114,6 @@ input:disabled, select:disabled { border-color: var(--border-color-dark); } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -556,10 +552,6 @@ kbd { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/Alternative-Dark/adark.rtl.css b/p/themes/Alternative-Dark/adark.rtl.css index 99fe8fb34..6fb1bf25a 100644 --- a/p/themes/Alternative-Dark/adark.rtl.css +++ b/p/themes/Alternative-Dark/adark.rtl.css @@ -114,10 +114,6 @@ input:disabled, select:disabled { border-color: var(--border-color-dark); } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -556,10 +552,6 @@ kbd { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/Ansum/_forms.scss b/p/themes/Ansum/_forms.scss index 4f3f9e698..3bdb30664 100644 --- a/p/themes/Ansum/_forms.scss +++ b/p/themes/Ansum/_forms.scss @@ -120,11 +120,6 @@ input:disabled, select:disabled { border-color: variables.$grey-medium-dark; } -input.extend { - transition: width 200ms linear; -} - - .form-group { padding: 5px; border-radius: 3px; diff --git a/p/themes/Ansum/_layout.scss b/p/themes/Ansum/_layout.scss index c5a1a2b3e..cb5271dcd 100644 --- a/p/themes/Ansum/_layout.scss +++ b/p/themes/Ansum/_layout.scss @@ -29,7 +29,7 @@ &.search { input { - width: 230px; + width: 350px; color: variables.$sid-font-color; border: none; border-radius: 2px 0 0 2px; @@ -42,9 +42,7 @@ } &:focus { - width: 350px; color: variables.$grey-dark; - background-color: variables.$white; } } diff --git a/p/themes/Ansum/ansum.css b/p/themes/Ansum/ansum.css index 6789320b5..03aa67e67 100644 --- a/p/themes/Ansum/ansum.css +++ b/p/themes/Ansum/ansum.css @@ -164,10 +164,6 @@ input:disabled, select:disabled { border-color: #ba9; } -input.extend { - transition: width 200ms linear; -} - .form-group { padding: 5px; border-radius: 3px; @@ -673,7 +669,7 @@ form th { filter: invert(80%) opacity(80%); } .header .item.search input { - width: 230px; + width: 350px; color: #363330; border: none; border-radius: 2px 0 0 2px; @@ -684,7 +680,6 @@ form th { background-color: #efe3d3; } .header .item.search input:focus { - width: 350px; color: #766556; background-color: #fff; } diff --git a/p/themes/Ansum/ansum.rtl.css b/p/themes/Ansum/ansum.rtl.css index 82ea37a3c..b106da359 100644 --- a/p/themes/Ansum/ansum.rtl.css +++ b/p/themes/Ansum/ansum.rtl.css @@ -164,10 +164,6 @@ input:disabled, select:disabled { border-color: #ba9; } -input.extend { - transition: width 200ms linear; -} - .form-group { padding: 5px; border-radius: 3px; @@ -673,7 +669,7 @@ form th { filter: invert(80%) opacity(80%); } .header .item.search input { - width: 230px; + width: 350px; color: #363330; border: none; border-radius: 0 2px 2px 0; @@ -684,7 +680,6 @@ form th { background-color: #efe3d3; } .header .item.search input:focus { - width: 350px; color: #766556; background-color: #fff; } diff --git a/p/themes/BlueLagoon/BlueLagoon.css b/p/themes/BlueLagoon/BlueLagoon.css index d24a1cd1c..14a369a2e 100644 --- a/p/themes/BlueLagoon/BlueLagoon.css +++ b/p/themes/BlueLagoon/BlueLagoon.css @@ -66,10 +66,6 @@ input:disabled, select:disabled { border-color: #ccc; } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -593,10 +589,6 @@ a.btn { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/BlueLagoon/BlueLagoon.rtl.css b/p/themes/BlueLagoon/BlueLagoon.rtl.css index 3fa917e5f..7c16ee958 100644 --- a/p/themes/BlueLagoon/BlueLagoon.rtl.css +++ b/p/themes/BlueLagoon/BlueLagoon.rtl.css @@ -66,10 +66,6 @@ input:disabled, select:disabled { border-color: #ccc; } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -593,10 +589,6 @@ a.btn { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/Dark/dark.css b/p/themes/Dark/dark.css index 11c4c7d1b..859397eb1 100644 --- a/p/themes/Dark/dark.css +++ b/p/themes/Dark/dark.css @@ -78,10 +78,6 @@ input:disabled, select:disabled { border-color: #000; } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -544,10 +540,6 @@ a.btn { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/Dark/dark.rtl.css b/p/themes/Dark/dark.rtl.css index 19d368165..a75552d51 100644 --- a/p/themes/Dark/dark.rtl.css +++ b/p/themes/Dark/dark.rtl.css @@ -78,10 +78,6 @@ input:disabled, select:disabled { border-color: #000; } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -544,10 +540,6 @@ a.btn { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/Flat/flat.css b/p/themes/Flat/flat.css index 518e6b07b..aefe3d454 100644 --- a/p/themes/Flat/flat.css +++ b/p/themes/Flat/flat.css @@ -70,10 +70,6 @@ input:disabled, select:disabled { background: #eee; } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -547,10 +543,6 @@ a.btn { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/Flat/flat.rtl.css b/p/themes/Flat/flat.rtl.css index d82f6d268..43ada0a4c 100644 --- a/p/themes/Flat/flat.rtl.css +++ b/p/themes/Flat/flat.rtl.css @@ -70,10 +70,6 @@ input:disabled, select:disabled { background: #eee; } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -547,10 +543,6 @@ a.btn { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/Mapco/_forms.scss b/p/themes/Mapco/_forms.scss index 479f40d44..977a70346 100644 --- a/p/themes/Mapco/_forms.scss +++ b/p/themes/Mapco/_forms.scss @@ -119,11 +119,6 @@ input:disabled, select:disabled { background: variables.$grey-light; } -input.extend { - transition: width 200ms linear; -} - - .form-group { padding: 5px; border-radius: 3px; diff --git a/p/themes/Mapco/_layout.scss b/p/themes/Mapco/_layout.scss index 495c19ebf..7be890369 100644 --- a/p/themes/Mapco/_layout.scss +++ b/p/themes/Mapco/_layout.scss @@ -29,7 +29,7 @@ &.search { input { - width: 230px; + width: 350px; color: variables.$sid-font-color; border: none; border-radius: 2px 0 0 2px; @@ -42,9 +42,7 @@ } &:focus { - width: 350px; color: variables.$grey-dark; - background-color: variables.$white; } } diff --git a/p/themes/Mapco/mapco.css b/p/themes/Mapco/mapco.css index c34dc08e0..d2978c217 100644 --- a/p/themes/Mapco/mapco.css +++ b/p/themes/Mapco/mapco.css @@ -163,10 +163,6 @@ input:disabled, select:disabled { background: #eff0f2; } -input.extend { - transition: width 200ms linear; -} - .form-group { padding: 5px; border-radius: 3px; @@ -687,7 +683,7 @@ form th { filter: grayscale(100%) brightness(2.2); } .header .item.search input { - width: 230px; + width: 350px; color: #ffffff; border: none; border-radius: 2px 0 0 2px; @@ -698,7 +694,6 @@ form th { background-color: #17181a; } .header .item.search input:focus { - width: 350px; color: #5b6871; background-color: #fff; } diff --git a/p/themes/Mapco/mapco.rtl.css b/p/themes/Mapco/mapco.rtl.css index 112ca94c7..7ed00631a 100644 --- a/p/themes/Mapco/mapco.rtl.css +++ b/p/themes/Mapco/mapco.rtl.css @@ -163,10 +163,6 @@ input:disabled, select:disabled { background: #eff0f2; } -input.extend { - transition: width 200ms linear; -} - .form-group { padding: 5px; border-radius: 3px; @@ -687,7 +683,7 @@ form th { filter: grayscale(100%) brightness(2.2); } .header .item.search input { - width: 230px; + width: 350px; color: #ffffff; border: none; border-radius: 0 2px 2px 0; @@ -698,7 +694,6 @@ form th { background-color: #17181a; } .header .item.search input:focus { - width: 350px; color: #5b6871; background-color: #fff; } diff --git a/p/themes/Nord/nord.css b/p/themes/Nord/nord.css index fb4e71147..403a27dd0 100644 --- a/p/themes/Nord/nord.css +++ b/p/themes/Nord/nord.css @@ -448,10 +448,6 @@ img.favicon { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } @@ -833,17 +829,10 @@ textarea { height: 100px; } - option { padding: 0 .5em; } - -input.extend { - transition: width 200ms linear; -} - - /*=== COMPONENTS */ /*===============*/ /*=== Forms */ diff --git a/p/themes/Nord/nord.rtl.css b/p/themes/Nord/nord.rtl.css index 95e4625cf..2ae7464fa 100644 --- a/p/themes/Nord/nord.rtl.css +++ b/p/themes/Nord/nord.rtl.css @@ -448,10 +448,6 @@ img.favicon { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } @@ -833,17 +829,10 @@ textarea { height: 100px; } - option { padding: 0 .5em; } - -input.extend { - transition: width 200ms linear; -} - - /*=== COMPONENTS */ /*===============*/ /*=== Forms */ diff --git a/p/themes/Origine/origine.css b/p/themes/Origine/origine.css index 1db88e0a9..319e6a2a4 100644 --- a/p/themes/Origine/origine.css +++ b/p/themes/Origine/origine.css @@ -151,10 +151,6 @@ input:disabled, select:disabled { background-color: var(--background-color-light-shadowed); } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -656,10 +652,6 @@ a:hover .icon { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/Origine/origine.rtl.css b/p/themes/Origine/origine.rtl.css index 2cc8e15b4..983b1743e 100644 --- a/p/themes/Origine/origine.rtl.css +++ b/p/themes/Origine/origine.rtl.css @@ -151,10 +151,6 @@ input:disabled, select:disabled { background-color: var(--background-color-light-shadowed); } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -656,10 +652,6 @@ a:hover .icon { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/Pafat/pafat.css b/p/themes/Pafat/pafat.css index f6ee43cf5..f5d418f15 100644 --- a/p/themes/Pafat/pafat.css +++ b/p/themes/Pafat/pafat.css @@ -140,10 +140,6 @@ input:invalid, select:invalid { box-shadow: 0 0 2px 2px var(--invalid-box-shadow-color) inset; } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -611,7 +607,7 @@ a.signin { height: 29px; } -.header .item.search input:focus { +.header .item.search input { width: 350px; } diff --git a/p/themes/Pafat/pafat.rtl.css b/p/themes/Pafat/pafat.rtl.css index 338a4355f..cc8d72da4 100644 --- a/p/themes/Pafat/pafat.rtl.css +++ b/p/themes/Pafat/pafat.rtl.css @@ -140,10 +140,6 @@ input:invalid, select:invalid { box-shadow: 0 0 2px 2px var(--invalid-box-shadow-color) inset; } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -611,7 +607,7 @@ a.signin { height: 29px; } -.header .item.search input:focus { +.header .item.search input { width: 350px; } diff --git a/p/themes/Screwdriver/screwdriver.css b/p/themes/Screwdriver/screwdriver.css index 74a43c890..e66861563 100644 --- a/p/themes/Screwdriver/screwdriver.css +++ b/p/themes/Screwdriver/screwdriver.css @@ -64,10 +64,6 @@ input:disabled, select:disabled { background: #eee; } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -577,10 +573,6 @@ a.btn { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/Screwdriver/screwdriver.rtl.css b/p/themes/Screwdriver/screwdriver.rtl.css index de4b33242..a823dc93d 100644 --- a/p/themes/Screwdriver/screwdriver.rtl.css +++ b/p/themes/Screwdriver/screwdriver.rtl.css @@ -64,10 +64,6 @@ input:disabled, select:disabled { background: #eee; } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -577,10 +573,6 @@ a.btn { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/Swage/swage.css b/p/themes/Swage/swage.css index 17fb8e77f..02fd9471f 100644 --- a/p/themes/Swage/swage.css +++ b/p/themes/Swage/swage.css @@ -148,10 +148,6 @@ select { padding-bottom: 8px; } -input.extend { - transition: width 200ms linear; -} - option { padding: 0 0.5em; } @@ -580,9 +576,6 @@ form th { top: 5px; filter: grayscale(100%) brightness(100); } -.header .item.search input:focus { - width: 350px; -} .header .item.search { display: none; } diff --git a/p/themes/Swage/swage.rtl.css b/p/themes/Swage/swage.rtl.css index 9e8d826e1..9cee872c9 100644 --- a/p/themes/Swage/swage.rtl.css +++ b/p/themes/Swage/swage.rtl.css @@ -148,10 +148,6 @@ select { padding-bottom: 8px; } -input.extend { - transition: width 200ms linear; -} - option { padding: 0 0.5em; } @@ -580,9 +576,6 @@ form th { top: 5px; filter: grayscale(100%) brightness(100); } -.header .item.search input:focus { - width: 350px; -} .header .item.search { display: none; } diff --git a/p/themes/Swage/swage.scss b/p/themes/Swage/swage.scss index 584841de2..c3092b2e1 100644 --- a/p/themes/Swage/swage.scss +++ b/p/themes/Swage/swage.scss @@ -186,12 +186,6 @@ select { padding-bottom: 8px; } -input { - &.extend { - transition: width 200ms linear; - } -} - option { padding: 0 .5em; } @@ -744,10 +738,6 @@ form { } } - .item.search input:focus { - width: 350px; - } - .item.search { display: none; } diff --git a/p/themes/base-theme/base.css b/p/themes/base-theme/base.css index cd133939d..095ef49c0 100644 --- a/p/themes/base-theme/base.css +++ b/p/themes/base-theme/base.css @@ -52,10 +52,6 @@ input:invalid, select:invalid { input:disabled, select:disabled { } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -404,10 +400,6 @@ a.btn { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/base-theme/base.rtl.css b/p/themes/base-theme/base.rtl.css index ab5156b68..a97d4876c 100644 --- a/p/themes/base-theme/base.rtl.css +++ b/p/themes/base-theme/base.rtl.css @@ -52,10 +52,6 @@ input:invalid, select:invalid { input:disabled, select:disabled { } -input.extend { - transition: width 200ms linear; -} - /*=== Tables */ table { border-collapse: collapse; @@ -404,10 +400,6 @@ a.btn { } .header > .item.search input { - width: 230px; -} - -.header .item.search input:focus { width: 350px; } diff --git a/p/themes/base-theme/frss.css b/p/themes/base-theme/frss.css index 56e99ec70..9c3f16b1c 100644 --- a/p/themes/base-theme/frss.css +++ b/p/themes/base-theme/frss.css @@ -194,7 +194,8 @@ label { } input { - width: 180px; + max-width: 90%; + width: 300px; } input[type=number] { @@ -203,8 +204,7 @@ input[type=number] { textarea, input[type="file"], -input.long, -input.extend:focus { +input.long { width: 300px; } @@ -212,6 +212,7 @@ input, select, textarea { display: inline-block; max-width: 100%; font-size: 0.8rem; + box-sizing: border-box; } input.w50, diff --git a/p/themes/base-theme/frss.rtl.css b/p/themes/base-theme/frss.rtl.css index 4c8326e32..6555c95ce 100644 --- a/p/themes/base-theme/frss.rtl.css +++ b/p/themes/base-theme/frss.rtl.css @@ -194,7 +194,8 @@ label { } input { - width: 180px; + max-width: 90%; + width: 300px; } input[type=number] { @@ -203,8 +204,7 @@ input[type=number] { textarea, input[type="file"], -input.long, -input.extend:focus { +input.long { width: 300px; } @@ -212,6 +212,7 @@ input, select, textarea { display: inline-block; max-width: 100%; font-size: 0.8rem; + box-sizing: border-box; } input.w50, -- cgit v1.2.3 From e53ba88bb96ba1343ffc771f6170baa4342b4e39 Mon Sep 17 00:00:00 2001 From: maTh Date: Mon, 30 Jan 2023 20:32:55 +0100 Subject: Search Improved: dropdown (#4994) * first draft * fix * RTL CSS * add link to documentation * hide search button in desktop view * rename .no-desktop to .only-mobile * i18n * add ID * Theme: Swage * Theme Scewdriver * Theme Pafat * Theme flat * Theme: Adark * Theme: Dark * i18n: German * i18n en-us * fix i18n * Update app/i18n/fr/gen.php Co-authored-by: Alexandre Alapetite * Update app/layout/nav_menu.phtml Co-authored-by: Alexandre Alapetite * Update app/layout/nav_menu.phtml Co-authored-by: Alexandre Alapetite * Update app/layout/nav_menu.phtml Co-authored-by: Alexandre Alapetite * wip * mapco theme * RTL for Ansum and Mapco * fix * fix --------- Co-authored-by: Alexandre Alapetite --- app/i18n/cz/gen.php | 1 + app/i18n/de/gen.php | 1 + app/i18n/el/gen.php | 1 + app/i18n/en-us/gen.php | 1 + app/i18n/en/gen.php | 1 + app/i18n/es/gen.php | 1 + app/i18n/fr/gen.php | 1 + app/i18n/he/gen.php | 1 + app/i18n/id/gen.php | 1 + app/i18n/it/gen.php | 1 + app/i18n/ja/gen.php | 1 + app/i18n/ko/gen.php | 1 + app/i18n/nl/gen.php | 1 + app/i18n/oc/gen.php | 1 + app/i18n/pl/gen.php | 1 + app/i18n/pt-br/gen.php | 1 + app/i18n/ru/gen.php | 1 + app/i18n/sk/gen.php | 1 + app/i18n/tr/gen.php | 1 + app/i18n/zh-cn/gen.php | 1 + app/i18n/zh-tw/gen.php | 1 + app/layout/nav_menu.phtml | 72 +++++++++++++++++++------------- p/themes/Alternative-Dark/adark.css | 15 ------- p/themes/Alternative-Dark/adark.rtl.css | 15 ------- p/themes/Ansum/_components.scss | 15 ++++++- p/themes/Ansum/_layout.scss | 8 +++- p/themes/Ansum/_mobile.scss | 32 +------------- p/themes/Ansum/_sidebar.scss | 2 +- p/themes/Ansum/ansum.css | 58 ++++++++++--------------- p/themes/Ansum/ansum.rtl.css | 58 ++++++++++--------------- p/themes/Dark/dark.css | 14 ------- p/themes/Dark/dark.rtl.css | 14 ------- p/themes/Flat/flat.css | 2 +- p/themes/Flat/flat.rtl.css | 2 +- p/themes/Mapco/_components.scss | 13 +++++- p/themes/Mapco/_layout.scss | 8 +++- p/themes/Mapco/_mobile.scss | 27 +----------- p/themes/Mapco/_sidebar.scss | 2 +- p/themes/Mapco/mapco.css | 54 +++++++++++------------- p/themes/Mapco/mapco.rtl.css | 52 ++++++++++------------- p/themes/Origine/origine.css | 20 ++------- p/themes/Origine/origine.rtl.css | 20 ++------- p/themes/Pafat/pafat.css | 15 ------- p/themes/Pafat/pafat.rtl.css | 15 ------- p/themes/Screwdriver/screwdriver.css | 4 -- p/themes/Screwdriver/screwdriver.rtl.css | 4 -- p/themes/Swage/swage.css | 28 +++++++++++++ p/themes/Swage/swage.rtl.css | 28 +++++++++++++ p/themes/Swage/swage.scss | 32 ++++++++++++++ p/themes/base-theme/frss.css | 29 +++++++++++-- p/themes/base-theme/frss.rtl.css | 29 +++++++++++-- 51 files changed, 350 insertions(+), 358 deletions(-) (limited to 'app/layout') diff --git a/app/i18n/cz/gen.php b/app/i18n/cz/gen.php index 3c9b0ec16..cf7973a3c 100644 --- a/app/i18n/cz/gen.php +++ b/app/i18n/cz/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'Uživatelské dotazy', 'reading' => 'Čtení', 'search' => 'Hledat slova nebo #štítky', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Sdílení', 'shortcuts' => 'Zkratky', 'stats' => 'Statistika', diff --git a/app/i18n/de/gen.php b/app/i18n/de/gen.php index e3cf385fd..e4dac4282 100644 --- a/app/i18n/de/gen.php +++ b/app/i18n/de/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'Benutzerabfragen', 'reading' => 'Lesen', 'search' => 'Suche Worte oder #Tags', + 'search_help' => 'Siehe Dokumentation zu den Suchparametern', 'sharing' => 'Teilen', 'shortcuts' => 'Tastaturkürzel', 'stats' => 'Statistiken', diff --git a/app/i18n/el/gen.php b/app/i18n/el/gen.php index aa1051564..d6816a5d8 100644 --- a/app/i18n/el/gen.php +++ b/app/i18n/el/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'User queries', // TODO 'reading' => 'Reading', // TODO 'search' => 'Search words or #tags', // TODO + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Sharing', // TODO 'shortcuts' => 'Shortcuts', // TODO 'stats' => 'Statistics', // TODO diff --git a/app/i18n/en-us/gen.php b/app/i18n/en-us/gen.php index 5eb409fdc..52baba32b 100644 --- a/app/i18n/en-us/gen.php +++ b/app/i18n/en-us/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'User queries', // IGNORE 'reading' => 'Reading', // IGNORE 'search' => 'Search words or #tags', // IGNORE + 'search_help' => 'See documentation for advanced search parameters', // IGNORE 'sharing' => 'Sharing', // IGNORE 'shortcuts' => 'Shortcuts', // IGNORE 'stats' => 'Statistics', // IGNORE diff --git a/app/i18n/en/gen.php b/app/i18n/en/gen.php index 2ce5871e3..a30690a25 100644 --- a/app/i18n/en/gen.php +++ b/app/i18n/en/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'User queries', 'reading' => 'Reading', 'search' => 'Search words or #tags', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Sharing', 'shortcuts' => 'Shortcuts', 'stats' => 'Statistics', diff --git a/app/i18n/es/gen.php b/app/i18n/es/gen.php index 54877d3df..a636d407a 100755 --- a/app/i18n/es/gen.php +++ b/app/i18n/es/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'Peticiones de usuario', 'reading' => 'Lectura', 'search' => 'Buscar palabras o #etiquetas', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Compartir', 'shortcuts' => 'Atajos', 'stats' => 'Estadísticas', diff --git a/app/i18n/fr/gen.php b/app/i18n/fr/gen.php index fec2b7d4a..4baa93d18 100644 --- a/app/i18n/fr/gen.php +++ b/app/i18n/fr/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'Filtres utilisateurs', 'reading' => 'Lecture', 'search' => 'Rechercher des mots ou des #tags', + 'search_help' => 'Voir la documentation pour la syntaxe des recherches avancées', 'sharing' => 'Partage', 'shortcuts' => 'Raccourcis', 'stats' => 'Statistiques', diff --git a/app/i18n/he/gen.php b/app/i18n/he/gen.php index 20b93eb7e..317482a09 100644 --- a/app/i18n/he/gen.php +++ b/app/i18n/he/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'שאילתות', 'reading' => 'קריאה', 'search' => 'חיפוש מילים או #תגים', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'שיתוף', 'shortcuts' => 'קיצורי דרך', 'stats' => 'סטטיסטיקות', diff --git a/app/i18n/id/gen.php b/app/i18n/id/gen.php index 3e791c607..a2baff42f 100644 --- a/app/i18n/id/gen.php +++ b/app/i18n/id/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'User queries', // TODO 'reading' => 'Reading', // TODO 'search' => 'Search words or #tags', // TODO + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Sharing', // TODO 'shortcuts' => 'Shortcuts', // TODO 'stats' => 'Statistics', // TODO diff --git a/app/i18n/it/gen.php b/app/i18n/it/gen.php index 09844d072..465b758c0 100644 --- a/app/i18n/it/gen.php +++ b/app/i18n/it/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'Ricerche personali', 'reading' => 'Lettura', 'search' => 'Ricerca parole o #tags', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Condivisione', 'shortcuts' => 'Comandi tastiera', 'stats' => 'Statistiche', diff --git a/app/i18n/ja/gen.php b/app/i18n/ja/gen.php index 85d130e37..7ad2f2eb8 100644 --- a/app/i18n/ja/gen.php +++ b/app/i18n/ja/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'ユーザークエリ', 'reading' => 'リーディング', 'search' => '単語で検索するかハッシュタグで検索する', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => '共有', 'shortcuts' => 'ショートカット', 'stats' => '統計', diff --git a/app/i18n/ko/gen.php b/app/i18n/ko/gen.php index ba15726a3..63e3ba478 100644 --- a/app/i18n/ko/gen.php +++ b/app/i18n/ko/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => '사용자 쿼리', 'reading' => '읽기', 'search' => '단어 또는 #태그 검색', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => '공유', 'shortcuts' => '단축키', 'stats' => '통계', diff --git a/app/i18n/nl/gen.php b/app/i18n/nl/gen.php index e06e05db7..0c5122643 100644 --- a/app/i18n/nl/gen.php +++ b/app/i18n/nl/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'Gebruikers informatie', 'reading' => 'Lezen', 'search' => 'Zoek woorden of #labels', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Delen', 'shortcuts' => 'Snelle toegang', 'stats' => 'Statistieken', diff --git a/app/i18n/oc/gen.php b/app/i18n/oc/gen.php index a55b2c147..281696a89 100644 --- a/app/i18n/oc/gen.php +++ b/app/i18n/oc/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'Filtres utilizaire', 'reading' => 'Lectura', 'search' => 'Recercar de mots o d’#etiquetas', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Partatge', 'shortcuts' => 'Acorchis', 'stats' => 'Estatisticas', diff --git a/app/i18n/pl/gen.php b/app/i18n/pl/gen.php index 56bd3c082..28863ff59 100644 --- a/app/i18n/pl/gen.php +++ b/app/i18n/pl/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'Zapisane zapytania', 'reading' => 'Czytanie', 'search' => 'Wyszukaj wyrazy lub #tagi', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Podawanie dalej', 'shortcuts' => 'Skróty klawiszowe', 'stats' => 'Statystyki', diff --git a/app/i18n/pt-br/gen.php b/app/i18n/pt-br/gen.php index acf954b77..0a8c56d6a 100644 --- a/app/i18n/pt-br/gen.php +++ b/app/i18n/pt-br/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'Queries de usuário', 'reading' => 'Leitura', 'search' => 'Procurar por palavras ou #tags', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Compartilhamento', 'shortcuts' => 'Atalhos', 'stats' => 'Estatísticas', diff --git a/app/i18n/ru/gen.php b/app/i18n/ru/gen.php index 9ba61ae59..3fd4b9190 100644 --- a/app/i18n/ru/gen.php +++ b/app/i18n/ru/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'Пользовательские запросы', 'reading' => 'Чтение', 'search' => 'Искать слова или #теги', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Обмен', 'shortcuts' => 'Горячие клавиши', 'stats' => 'Статистика', diff --git a/app/i18n/sk/gen.php b/app/i18n/sk/gen.php index aa8f1767b..4fa7a74eb 100644 --- a/app/i18n/sk/gen.php +++ b/app/i18n/sk/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'Používateľské dopyty', 'reading' => 'Čítanie', 'search' => 'Hľadajte slová alebo #značky', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Zdieľanie', 'shortcuts' => 'Skratky', 'stats' => 'Štatistiky', diff --git a/app/i18n/tr/gen.php b/app/i18n/tr/gen.php index c65815e8e..bf1f18848 100644 --- a/app/i18n/tr/gen.php +++ b/app/i18n/tr/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => 'Kullanıcı sorguları', 'reading' => 'Okuma', 'search' => 'Kelime veya #etiket ara', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => 'Paylaşım', 'shortcuts' => 'Kısayollar', 'stats' => 'İstatistikler', diff --git a/app/i18n/zh-cn/gen.php b/app/i18n/zh-cn/gen.php index 0b6f1cba6..0732ae707 100644 --- a/app/i18n/zh-cn/gen.php +++ b/app/i18n/zh-cn/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => '自定义查询', 'reading' => '阅读', 'search' => '搜索内容或#标签', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => '分享', 'shortcuts' => '快捷键', 'stats' => '统计', diff --git a/app/i18n/zh-tw/gen.php b/app/i18n/zh-tw/gen.php index 31ef0f692..cf09fa3df 100644 --- a/app/i18n/zh-tw/gen.php +++ b/app/i18n/zh-tw/gen.php @@ -174,6 +174,7 @@ return array( 'queries' => '自定義查詢', 'reading' => '閱讀', 'search' => '搜尋內容或#標簽', + 'search_help' => 'See documentation for advanced search parameters', // TODO 'sharing' => '分享', 'shortcuts' => '快捷鍵', 'stats' => '統計', diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index f719538fd..848144568 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -29,10 +29,53 @@ href=""> + + - - a, + > span, + > .as-link { padding: 0 2rem; color: variables.$main-font-color; font-size: inherit; @@ -60,7 +68,10 @@ span.icon { padding: 0 0.25rem !important; } + } + > a, + > .as-link { &:not(.addItem):hover { background: variables.$main-first; color: variables.$white; @@ -86,7 +97,7 @@ } &:not(.addItem) { - a:hover, + > a:hover, button:hover { background: variables.$main-first; color: variables.$white; diff --git a/p/themes/Ansum/_layout.scss b/p/themes/Ansum/_layout.scss index cb5271dcd..78431f462 100644 --- a/p/themes/Ansum/_layout.scss +++ b/p/themes/Ansum/_layout.scss @@ -207,7 +207,7 @@ main.prompt { } } - .dropdown { + .dropdown:not(#dropdown-search-wrapper) { a.dropdown-toggle { border-left-width: 0; background-image: url(icons/more.svg); @@ -217,6 +217,12 @@ main.prompt { } } } + + #dropdown-search-wrapper.dropdown { + a.dropdown-toggle { + border-left-width: 0; + } + } } } diff --git a/p/themes/Ansum/_mobile.scss b/p/themes/Ansum/_mobile.scss index bb13a0e83..6fbca4a52 100644 --- a/p/themes/Ansum/_mobile.scss +++ b/p/themes/Ansum/_mobile.scss @@ -35,35 +35,9 @@ } .header { - display: block; - height: 8rem; - .item { &.search { - display: block; - - form { - display: inherit; - } - - .stick { - display: flex; - } - - input { - width: 90%; - height: 3.5rem; - - &:focus { - width: 100%; - - } - } - - .btn { - min-height: 49px; - padding: 0.5rem 2rem; - } + display: none; } &.configure { @@ -103,11 +77,7 @@ } .search { - display: none; - max-width: 97%; - .input { - max-width: 97%; width: 90px; diff --git a/p/themes/Ansum/_sidebar.scss b/p/themes/Ansum/_sidebar.scss index e92dd2ec4..7c21d159d 100644 --- a/p/themes/Ansum/_sidebar.scss +++ b/p/themes/Ansum/_sidebar.scss @@ -93,7 +93,7 @@ border-radius: 5px 0 0 5px; } - .btn:last-child, input:last-child, .btn + .dropdown > .btn { + .btn:last-child, input:last-child, .dropdown:last-child > .btn { border-radius: 0 5px 5px 0; } diff --git a/p/themes/Ansum/ansum.css b/p/themes/Ansum/ansum.css index 03aa67e67..709861e18 100644 --- a/p/themes/Ansum/ansum.css +++ b/p/themes/Ansum/ansum.css @@ -221,6 +221,10 @@ form th { } /*=== Dropdown */ +.dropdown .dropdown-target:target + .btn { + background-color: #e4d8cc; +} + .dropdown-menu { margin: 9px 0 0 0; padding: 0.5rem 0 1rem 0; @@ -247,20 +251,26 @@ form th { .dropdown-menu .item { transition: all 0.075s ease-in-out; } -.dropdown-menu .item a, .dropdown-menu .item .as-link { +.dropdown-menu .item > a, +.dropdown-menu .item > span, +.dropdown-menu .item > .as-link { padding: 0 2rem; color: #363330; font-size: inherit; line-height: 2.5em; } -.dropdown-menu .item a span.icon, .dropdown-menu .item .as-link span.icon { +.dropdown-menu .item > a span.icon, +.dropdown-menu .item > span span.icon, +.dropdown-menu .item > .as-link span.icon { padding: 0 0.25rem !important; } -.dropdown-menu .item a:not(.addItem):hover, .dropdown-menu .item .as-link:not(.addItem):hover { +.dropdown-menu .item > a:not(.addItem):hover, +.dropdown-menu .item > .as-link:not(.addItem):hover { background: #ca7227; color: #fff; } -.dropdown-menu .item a:not(.addItem):hover .icon, .dropdown-menu .item .as-link:not(.addItem):hover .icon { +.dropdown-menu .item > a:not(.addItem):hover .icon, +.dropdown-menu .item > .as-link:not(.addItem):hover .icon { filter: grayscale(100%) brightness(2.5); } .dropdown-menu .item.dropdown-section { @@ -272,12 +282,12 @@ form th { .dropdown-menu .item.dropdown-section .item a, .dropdown-menu .item.dropdown-section .item .as-link { padding-left: 2rem; } -.dropdown-menu .item:not(.addItem) a:hover, +.dropdown-menu .item:not(.addItem) > a:hover, .dropdown-menu .item:not(.addItem) button:hover { background: #ca7227; color: #fff; } -.dropdown-menu .item:not(.addItem) a:hover .icon, +.dropdown-menu .item:not(.addItem) > a:hover .icon, .dropdown-menu .item:not(.addItem) button:hover .icon { filter: brightness(3); } @@ -518,7 +528,7 @@ form th { .stick .btn:first-child { border-radius: 5px 0 0 5px; } -.stick .btn:last-child, .stick input:last-child, .stick .btn + .dropdown > .btn { +.stick .btn:last-child, .stick input:last-child, .stick .dropdown:last-child > .btn { border-radius: 0 5px 5px 0; } .stick .btn + .btn, @@ -819,13 +829,16 @@ main.prompt { .nav_menu .stick .btn.read_all:hover { background-color: #e4d8cc; } -.nav_menu .stick .dropdown a.dropdown-toggle { +.nav_menu .stick .dropdown:not(#dropdown-search-wrapper) a.dropdown-toggle { border-left-width: 0; background-image: url(icons/more.svg); } -.nav_menu .stick .dropdown a.dropdown-toggle .icon { +.nav_menu .stick .dropdown:not(#dropdown-search-wrapper) a.dropdown-toggle .icon { display: none; } +.nav_menu .stick #dropdown-search-wrapper.dropdown a.dropdown-toggle { + border-left-width: 0; +} #dropdown-query ~ .dropdown-menu .dropdown-header .icon { vertical-align: middle; @@ -1196,29 +1209,8 @@ main.prompt { #slider .toggle_aside .icon { filter: grayscale(100%) brightness(2.5); } - .header { - display: block; - height: 8rem; - } .header .item.search { - display: block; - } - .header .item.search form { - display: inherit; - } - .header .item.search .stick { - display: flex; - } - .header .item.search input { - width: 90%; - height: 3.5rem; - } - .header .item.search input:focus { - width: 100%; - } - .header .item.search .btn { - min-height: 49px; - padding: 0.5rem 2rem; + display: none; } .header .item.configure { position: absolute; @@ -1246,10 +1238,6 @@ main.prompt { .nav_menu .stick .btn.read_all { padding: 0.85rem 1.25rem; } - .nav_menu .search { - display: none; - max-width: 97%; - } .nav_menu .search .input { max-width: 97%; width: 90px; diff --git a/p/themes/Ansum/ansum.rtl.css b/p/themes/Ansum/ansum.rtl.css index b106da359..ad480c952 100644 --- a/p/themes/Ansum/ansum.rtl.css +++ b/p/themes/Ansum/ansum.rtl.css @@ -221,6 +221,10 @@ form th { } /*=== Dropdown */ +.dropdown .dropdown-target:target + .btn { + background-color: #e4d8cc; +} + .dropdown-menu { margin: 9px 0 0 0; padding: 0.5rem 0 1rem 0; @@ -247,20 +251,26 @@ form th { .dropdown-menu .item { transition: all 0.075s ease-in-out; } -.dropdown-menu .item a, .dropdown-menu .item .as-link { +.dropdown-menu .item > a, +.dropdown-menu .item > span, +.dropdown-menu .item > .as-link { padding: 0 2rem; color: #363330; font-size: inherit; line-height: 2.5em; } -.dropdown-menu .item a span.icon, .dropdown-menu .item .as-link span.icon { +.dropdown-menu .item > a span.icon, +.dropdown-menu .item > span span.icon, +.dropdown-menu .item > .as-link span.icon { padding: 0 0.25rem !important; } -.dropdown-menu .item a:not(.addItem):hover, .dropdown-menu .item .as-link:not(.addItem):hover { +.dropdown-menu .item > a:not(.addItem):hover, +.dropdown-menu .item > .as-link:not(.addItem):hover { background: #ca7227; color: #fff; } -.dropdown-menu .item a:not(.addItem):hover .icon, .dropdown-menu .item .as-link:not(.addItem):hover .icon { +.dropdown-menu .item > a:not(.addItem):hover .icon, +.dropdown-menu .item > .as-link:not(.addItem):hover .icon { filter: grayscale(100%) brightness(2.5); } .dropdown-menu .item.dropdown-section { @@ -272,12 +282,12 @@ form th { .dropdown-menu .item.dropdown-section .item a, .dropdown-menu .item.dropdown-section .item .as-link { padding-right: 2rem; } -.dropdown-menu .item:not(.addItem) a:hover, +.dropdown-menu .item:not(.addItem) > a:hover, .dropdown-menu .item:not(.addItem) button:hover { background: #ca7227; color: #fff; } -.dropdown-menu .item:not(.addItem) a:hover .icon, +.dropdown-menu .item:not(.addItem) > a:hover .icon, .dropdown-menu .item:not(.addItem) button:hover .icon { filter: brightness(3); } @@ -518,7 +528,7 @@ form th { .stick .btn:first-child { border-radius: 0 5px 5px 0; } -.stick .btn:last-child, .stick input:last-child, .stick .btn + .dropdown > .btn { +.stick .btn:last-child, .stick input:last-child, .stick .dropdown:last-child > .btn { border-radius: 5px 0 0 5px; } .stick .btn + .btn, @@ -819,13 +829,16 @@ main.prompt { .nav_menu .stick .btn.read_all:hover { background-color: #e4d8cc; } -.nav_menu .stick .dropdown a.dropdown-toggle { +.nav_menu .stick .dropdown:not(#dropdown-search-wrapper) a.dropdown-toggle { border-right-width: 0; background-image: url(icons/more.svg); } -.nav_menu .stick .dropdown a.dropdown-toggle .icon { +.nav_menu .stick .dropdown:not(#dropdown-search-wrapper) a.dropdown-toggle .icon { display: none; } +.nav_menu .stick #dropdown-search-wrapper.dropdown a.dropdown-toggle { + border-right-width: 0; +} #dropdown-query ~ .dropdown-menu .dropdown-header .icon { vertical-align: middle; @@ -1196,29 +1209,8 @@ main.prompt { #slider .toggle_aside .icon { filter: grayscale(100%) brightness(2.5); } - .header { - display: block; - height: 8rem; - } .header .item.search { - display: block; - } - .header .item.search form { - display: inherit; - } - .header .item.search .stick { - display: flex; - } - .header .item.search input { - width: 90%; - height: 3.5rem; - } - .header .item.search input:focus { - width: 100%; - } - .header .item.search .btn { - min-height: 49px; - padding: 0.5rem 2rem; + display: none; } .header .item.configure { position: absolute; @@ -1246,10 +1238,6 @@ main.prompt { .nav_menu .stick .btn.read_all { padding: 0.85rem 1.25rem; } - .nav_menu .search { - display: none; - max-width: 97%; - } .nav_menu .search .input { max-width: 97%; width: 90px; diff --git a/p/themes/Dark/dark.css b/p/themes/Dark/dark.css index 859397eb1..fa194bb9e 100644 --- a/p/themes/Dark/dark.css +++ b/p/themes/Dark/dark.css @@ -995,20 +995,6 @@ a.btn { margin: 5px 0; } - .nav_menu .search { - display: inline-block; - max-width: 97%; - } - - .nav_menu .search input { - max-width: 97%; - width: 90px; - } - - .nav_menu .search input:focus { - width: 400px; - } - .dropdown-target:target ~ .dropdown-toggle::after { background-color: #1a1a1a; border-top: 1px solid #888; diff --git a/p/themes/Dark/dark.rtl.css b/p/themes/Dark/dark.rtl.css index a75552d51..2610e49d5 100644 --- a/p/themes/Dark/dark.rtl.css +++ b/p/themes/Dark/dark.rtl.css @@ -995,20 +995,6 @@ a.btn { margin: 5px 0; } - .nav_menu .search { - display: inline-block; - max-width: 97%; - } - - .nav_menu .search input { - max-width: 97%; - width: 90px; - } - - .nav_menu .search input:focus { - width: 400px; - } - .dropdown-target:target ~ .dropdown-toggle::after { background-color: #1a1a1a; border-top: 1px solid #888; diff --git a/p/themes/Flat/flat.css b/p/themes/Flat/flat.css index aefe3d454..8fd09bb35 100644 --- a/p/themes/Flat/flat.css +++ b/p/themes/Flat/flat.css @@ -147,7 +147,7 @@ form th { .stick .btn:last-child, .stick input:last-child, -.stick .btn + .dropdown > .btn { +.stick .dropdown:last-child > .btn { border-radius: 0 5px 5px 0; } diff --git a/p/themes/Flat/flat.rtl.css b/p/themes/Flat/flat.rtl.css index 43ada0a4c..43327ddeb 100644 --- a/p/themes/Flat/flat.rtl.css +++ b/p/themes/Flat/flat.rtl.css @@ -147,7 +147,7 @@ form th { .stick .btn:last-child, .stick input:last-child, -.stick .btn + .dropdown > .btn { +.stick .dropdown:last-child > .btn { border-radius: 5px 0 0 5px; } diff --git a/p/themes/Mapco/_components.scss b/p/themes/Mapco/_components.scss index 8b60dcf0f..5f7e04e56 100644 --- a/p/themes/Mapco/_components.scss +++ b/p/themes/Mapco/_components.scss @@ -22,6 +22,12 @@ } /*=== Dropdown */ +.dropdown { + .dropdown-target:target + .btn { + background-color: variables.$grey-medium-light; + } +} + .dropdown-menu { margin: 9px 0 0 0; padding: 0.5rem 0 1rem 0; @@ -51,7 +57,9 @@ @include mixins.transition(all, 0.075s, ease-in-out); - a, .as-link { + > a, + > span, + > .as-link { padding: 0 2rem; color: variables.$main-font-color; font-size: inherit; @@ -60,7 +68,10 @@ span.icon { padding: 0 0.25rem !important; } + } + > a, + > .as-link { &:not(.addItem):hover { background: variables.$main-first; color: variables.$white; diff --git a/p/themes/Mapco/_layout.scss b/p/themes/Mapco/_layout.scss index 7be890369..b57a48fd0 100644 --- a/p/themes/Mapco/_layout.scss +++ b/p/themes/Mapco/_layout.scss @@ -226,7 +226,7 @@ main.prompt { } } - .dropdown { + .dropdown:not(#dropdown-search-wrapper) { a.dropdown-toggle { border-left-width: 0; background-image: url(icons/more.svg); @@ -236,6 +236,12 @@ main.prompt { } } } + + #dropdown-search-wrapper.dropdown { + a.dropdown-toggle { + border-left-width: 0; + } + } } } diff --git a/p/themes/Mapco/_mobile.scss b/p/themes/Mapco/_mobile.scss index 6960873bf..3faea3d7e 100644 --- a/p/themes/Mapco/_mobile.scss +++ b/p/themes/Mapco/_mobile.scss @@ -35,30 +35,9 @@ } .header { - display: block; - height: 8rem; - .item { &.search { - display: block; - - form { - display: inherit; - } - - .stick { - display: flex; - } - - input { - width: 90%; - height: 3.5rem; - - &:focus { - width: 100%; - - } - } + display: none; } &.configure { @@ -105,11 +84,7 @@ } .search { - display: none; - max-width: 97%; - .input { - max-width: 97%; width: 90px; diff --git a/p/themes/Mapco/_sidebar.scss b/p/themes/Mapco/_sidebar.scss index a71960b1d..090a69580 100644 --- a/p/themes/Mapco/_sidebar.scss +++ b/p/themes/Mapco/_sidebar.scss @@ -93,7 +93,7 @@ border-radius: 5px 0 0 5px; } - .btn:last-child, input:last-child, .btn + .dropdown > .btn { + .btn:last-child, input:last-child, .dropdown:last-child > .btn { border-radius: 0 5px 5px 0; } diff --git a/p/themes/Mapco/mapco.css b/p/themes/Mapco/mapco.css index d2978c217..967accc00 100644 --- a/p/themes/Mapco/mapco.css +++ b/p/themes/Mapco/mapco.css @@ -220,6 +220,10 @@ form th { } /*=== Dropdown */ +.dropdown .dropdown-target:target + .btn { + background-color: #d5d8db; +} + .dropdown-menu { margin: 9px 0 0 0; padding: 0.5rem 0 1rem 0; @@ -246,20 +250,26 @@ form th { .dropdown-menu .item { transition: all 0.075s ease-in-out; } -.dropdown-menu .item a, .dropdown-menu .item .as-link { +.dropdown-menu .item > a, +.dropdown-menu .item > span, +.dropdown-menu .item > .as-link { padding: 0 2rem; color: #303136; font-size: inherit; line-height: 2.5em; } -.dropdown-menu .item a span.icon, .dropdown-menu .item .as-link span.icon { +.dropdown-menu .item > a span.icon, +.dropdown-menu .item > span span.icon, +.dropdown-menu .item > .as-link span.icon { padding: 0 0.25rem !important; } -.dropdown-menu .item a:not(.addItem):hover, .dropdown-menu .item .as-link:not(.addItem):hover { +.dropdown-menu .item > a:not(.addItem):hover, +.dropdown-menu .item > .as-link:not(.addItem):hover { background: #36c; color: #fff; } -.dropdown-menu .item a:not(.addItem):hover .icon, .dropdown-menu .item .as-link:not(.addItem):hover .icon { +.dropdown-menu .item > a:not(.addItem):hover .icon, +.dropdown-menu .item > .as-link:not(.addItem):hover .icon { filter: brightness(3); } .dropdown-menu .item.dropdown-section { @@ -532,7 +542,7 @@ form th { .stick .btn:first-child { border-radius: 5px 0 0 5px; } -.stick .btn:last-child, .stick input:last-child, .stick .btn + .dropdown > .btn { +.stick .btn:last-child, .stick input:last-child, .stick .dropdown:last-child > .btn { border-radius: 0 5px 5px 0; } .stick .btn + .btn, @@ -843,13 +853,16 @@ main.prompt { .nav_menu .stick .btn.read_all:hover { background-color: #d5d8db; } -.nav_menu .stick .dropdown a.dropdown-toggle { +.nav_menu .stick .dropdown:not(#dropdown-search-wrapper) a.dropdown-toggle { border-left-width: 0; background-image: url(icons/more.svg); } -.nav_menu .stick .dropdown a.dropdown-toggle .icon { +.nav_menu .stick .dropdown:not(#dropdown-search-wrapper) a.dropdown-toggle .icon { display: none; } +.nav_menu .stick #dropdown-search-wrapper.dropdown a.dropdown-toggle { + border-left-width: 0; +} /*=== Content of feed articles */ .content, .content.thin { @@ -1213,25 +1226,8 @@ main.prompt { #slider .toggle_aside .icon { filter: grayscale(100%) brightness(2.5); } - .header { - display: block; - height: 8rem; - } .header .item.search { - display: block; - } - .header .item.search form { - display: inherit; - } - .header .item.search .stick { - display: flex; - } - .header .item.search input { - width: 90%; - height: 3.5rem; - } - .header .item.search input:focus { - width: 100%; + display: none; } .header .item.configure { position: absolute; @@ -1264,10 +1260,6 @@ main.prompt { .nav_menu .stick .btn.read_all { padding: 0.85rem 1.25rem; } - .nav_menu .search { - display: none; - max-width: 97%; - } .nav_menu .search .input { max-width: 97%; width: 90px; @@ -1338,4 +1330,6 @@ body.register { a, button.as-link { outline: none; color: #36c; -} \ No newline at end of file +} + +/*# sourceMappingURL=mapco.css.map */ diff --git a/p/themes/Mapco/mapco.rtl.css b/p/themes/Mapco/mapco.rtl.css index 7ed00631a..b962e5fe0 100644 --- a/p/themes/Mapco/mapco.rtl.css +++ b/p/themes/Mapco/mapco.rtl.css @@ -220,6 +220,10 @@ form th { } /*=== Dropdown */ +.dropdown .dropdown-target:target + .btn { + background-color: #d5d8db; +} + .dropdown-menu { margin: 9px 0 0 0; padding: 0.5rem 0 1rem 0; @@ -246,20 +250,26 @@ form th { .dropdown-menu .item { transition: all 0.075s ease-in-out; } -.dropdown-menu .item a, .dropdown-menu .item .as-link { +.dropdown-menu .item > a, +.dropdown-menu .item > span, +.dropdown-menu .item > .as-link { padding: 0 2rem; color: #303136; font-size: inherit; line-height: 2.5em; } -.dropdown-menu .item a span.icon, .dropdown-menu .item .as-link span.icon { +.dropdown-menu .item > a span.icon, +.dropdown-menu .item > span span.icon, +.dropdown-menu .item > .as-link span.icon { padding: 0 0.25rem !important; } -.dropdown-menu .item a:not(.addItem):hover, .dropdown-menu .item .as-link:not(.addItem):hover { +.dropdown-menu .item > a:not(.addItem):hover, +.dropdown-menu .item > .as-link:not(.addItem):hover { background: #36c; color: #fff; } -.dropdown-menu .item a:not(.addItem):hover .icon, .dropdown-menu .item .as-link:not(.addItem):hover .icon { +.dropdown-menu .item > a:not(.addItem):hover .icon, +.dropdown-menu .item > .as-link:not(.addItem):hover .icon { filter: brightness(3); } .dropdown-menu .item.dropdown-section { @@ -532,7 +542,7 @@ form th { .stick .btn:first-child { border-radius: 0 5px 5px 0; } -.stick .btn:last-child, .stick input:last-child, .stick .btn + .dropdown > .btn { +.stick .btn:last-child, .stick input:last-child, .stick .dropdown:last-child > .btn { border-radius: 5px 0 0 5px; } .stick .btn + .btn, @@ -843,13 +853,16 @@ main.prompt { .nav_menu .stick .btn.read_all:hover { background-color: #d5d8db; } -.nav_menu .stick .dropdown a.dropdown-toggle { +.nav_menu .stick .dropdown:not(#dropdown-search-wrapper) a.dropdown-toggle { border-right-width: 0; background-image: url(icons/more.svg); } -.nav_menu .stick .dropdown a.dropdown-toggle .icon { +.nav_menu .stick .dropdown:not(#dropdown-search-wrapper) a.dropdown-toggle .icon { display: none; } +.nav_menu .stick #dropdown-search-wrapper.dropdown a.dropdown-toggle { + border-right-width: 0; +} /*=== Content of feed articles */ .content, .content.thin { @@ -1213,25 +1226,8 @@ main.prompt { #slider .toggle_aside .icon { filter: grayscale(100%) brightness(2.5); } - .header { - display: block; - height: 8rem; - } .header .item.search { - display: block; - } - .header .item.search form { - display: inherit; - } - .header .item.search .stick { - display: flex; - } - .header .item.search input { - width: 90%; - height: 3.5rem; - } - .header .item.search input:focus { - width: 100%; + display: none; } .header .item.configure { position: absolute; @@ -1264,10 +1260,6 @@ main.prompt { .nav_menu .stick .btn.read_all { padding: 0.85rem 1.25rem; } - .nav_menu .search { - display: none; - max-width: 97%; - } .nav_menu .search .input { max-width: 97%; width: 90px; @@ -1338,4 +1330,4 @@ body.register { a, button.as-link { outline: none; color: #36c; -} \ No newline at end of file +} diff --git a/p/themes/Origine/origine.css b/p/themes/Origine/origine.css index 319e6a2a4..eba455f52 100644 --- a/p/themes/Origine/origine.css +++ b/p/themes/Origine/origine.css @@ -291,6 +291,10 @@ a:hover .icon { filter: brightness(1.1); } +#toggle-search.active > .icon { + filter: invert(8%) sepia(99%) saturate(7064%) hue-rotate(248deg) brightness(99%) contrast(142%); +} + .btn.active, .btn:active, .dropdown-target:target ~ .btn.dropdown-toggle { @@ -1138,22 +1142,6 @@ a:hover .icon { margin: 5px 0; } - .nav_menu .search { - display: inline-block; - max-width: 97%; - } - - .nav_menu .search input { - padding: 3px 5px; - max-width: 97%; - width: 90px; - line-height: 2; - } - - .nav_menu .search input:focus { - width: 400px; - } - .dropdown-target:target ~ .dropdown-toggle::after { background-color: var(--background-color-light); border-top: 1px solid var(--border-color); diff --git a/p/themes/Origine/origine.rtl.css b/p/themes/Origine/origine.rtl.css index 983b1743e..081f1814f 100644 --- a/p/themes/Origine/origine.rtl.css +++ b/p/themes/Origine/origine.rtl.css @@ -291,6 +291,10 @@ a:hover .icon { filter: brightness(1.1); } +#toggle-search.active > .icon { + filter: invert(8%) sepia(99%) saturate(7064%) hue-rotate(248deg) brightness(99%) contrast(142%); +} + .btn.active, .btn:active, .dropdown-target:target ~ .btn.dropdown-toggle { @@ -1138,22 +1142,6 @@ a:hover .icon { margin: 5px 0; } - .nav_menu .search { - display: inline-block; - max-width: 97%; - } - - .nav_menu .search input { - padding: 3px 5px; - max-width: 97%; - width: 90px; - line-height: 2; - } - - .nav_menu .search input:focus { - width: 400px; - } - .dropdown-target:target ~ .dropdown-toggle::after { background-color: var(--background-color-light); border-top: 1px solid var(--border-color); diff --git a/p/themes/Pafat/pafat.css b/p/themes/Pafat/pafat.css index f5d418f15..4ff9d2812 100644 --- a/p/themes/Pafat/pafat.css +++ b/p/themes/Pafat/pafat.css @@ -1093,21 +1093,6 @@ a.signin { margin: 5px 0; } - .nav_menu .search { - display: inline-block; - max-width: 97%; - } - - .nav_menu .search input { - max-width: 97%; - width: 90px; - line-height: 2; - } - - .nav_menu .search input:focus { - width: 400px; - } - .dropdown-target:target ~ .dropdown-toggle::after { border-top: 1px solid var(--border-color-grey-dark); border-left: 1px solid var(--border-color-grey-dark); diff --git a/p/themes/Pafat/pafat.rtl.css b/p/themes/Pafat/pafat.rtl.css index cc8d72da4..8a71232bb 100644 --- a/p/themes/Pafat/pafat.rtl.css +++ b/p/themes/Pafat/pafat.rtl.css @@ -1093,21 +1093,6 @@ a.signin { margin: 5px 0; } - .nav_menu .search { - display: inline-block; - max-width: 97%; - } - - .nav_menu .search input { - max-width: 97%; - width: 90px; - line-height: 2; - } - - .nav_menu .search input:focus { - width: 400px; - } - .dropdown-target:target ~ .dropdown-toggle::after { border-top: 1px solid var(--border-color-grey-dark); border-right: 1px solid var(--border-color-grey-dark); diff --git a/p/themes/Screwdriver/screwdriver.css b/p/themes/Screwdriver/screwdriver.css index e66861563..859e34f35 100644 --- a/p/themes/Screwdriver/screwdriver.css +++ b/p/themes/Screwdriver/screwdriver.css @@ -1117,10 +1117,6 @@ a.btn { margin: 5px 0; } - .nav_menu .search { - display: none; - } - .nav_menu .search input { padding: 3px 5px; max-width: 97%; diff --git a/p/themes/Screwdriver/screwdriver.rtl.css b/p/themes/Screwdriver/screwdriver.rtl.css index a823dc93d..216c84262 100644 --- a/p/themes/Screwdriver/screwdriver.rtl.css +++ b/p/themes/Screwdriver/screwdriver.rtl.css @@ -1117,10 +1117,6 @@ a.btn { margin: 5px 0; } - .nav_menu .search { - display: none; - } - .nav_menu .search input { padding: 3px 5px; max-width: 97%; diff --git a/p/themes/Swage/swage.css b/p/themes/Swage/swage.css index 02fd9471f..6478c0581 100644 --- a/p/themes/Swage/swage.css +++ b/p/themes/Swage/swage.css @@ -342,12 +342,32 @@ form th { font-weight: bold; margin: 0 0 0 -14px; } +.dropdown-menu .help a { + color: var(--color-text-light); + text-decoration: underline; + text-decoration-style: dotted; +} +.dropdown-menu .help a:hover { + text-decoration-style: solid; +} .dropdown-menu .input select, .dropdown-menu .input input { margin: 0 auto 5px; padding: 2px 5px; } +#dropdown-search-wrapper .dropdown-menu { + padding-top: 1rem; + padding-bottom: 0.25rem; +} +#dropdown-search-wrapper .dropdown-menu .stick.search { + width: 100%; +} +#dropdown-search-wrapper .dropdown-menu .stick.search input[type=search] { + width: 100%; + border: 0; +} + .labels .dropdown-menu, .tags .dropdown-menu, .share .dropdown-menu { @@ -912,6 +932,9 @@ a.signin { .dropdown { position: relative; } + .dropdown .dropdown-menu { + width: auto; + } #new-article { margin-top: 2rem; width: 100%; @@ -1151,10 +1174,15 @@ button.as-link { left: 0; right: auto; } + #nav_menu_actions ul.dropdown-menu::after { display: none; } +#nav_menu_actions .dropdown.only-mobile { + display: initial !important; +} + #nav_menu_read_all ul.dropdown-menu { right: 0; left: auto; diff --git a/p/themes/Swage/swage.rtl.css b/p/themes/Swage/swage.rtl.css index 9cee872c9..a4ba4f159 100644 --- a/p/themes/Swage/swage.rtl.css +++ b/p/themes/Swage/swage.rtl.css @@ -342,12 +342,32 @@ form th { font-weight: bold; margin: 0 -14px 0 0; } +.dropdown-menu .help a { + color: var(--color-text-light); + text-decoration: underline; + text-decoration-style: dotted; +} +.dropdown-menu .help a:hover { + text-decoration-style: solid; +} .dropdown-menu .input select, .dropdown-menu .input input { margin: 0 auto 5px; padding: 2px 5px; } +#dropdown-search-wrapper .dropdown-menu { + padding-top: 1rem; + padding-bottom: 0.25rem; +} +#dropdown-search-wrapper .dropdown-menu .stick.search { + width: 100%; +} +#dropdown-search-wrapper .dropdown-menu .stick.search input[type=search] { + width: 100%; + border: 0; +} + .labels .dropdown-menu, .tags .dropdown-menu, .share .dropdown-menu { @@ -912,6 +932,9 @@ a.signin { .dropdown { position: relative; } + .dropdown .dropdown-menu { + width: auto; + } #new-article { margin-top: 2rem; width: 100%; @@ -1151,10 +1174,15 @@ button.as-link { right: 0; left: auto; } + #nav_menu_actions ul.dropdown-menu::after { display: none; } +#nav_menu_actions .dropdown.only-mobile { + display: initial !important; +} + #nav_menu_read_all ul.dropdown-menu { left: 0; right: auto; diff --git a/p/themes/Swage/swage.scss b/p/themes/Swage/swage.scss index c3092b2e1..cc7aed10e 100644 --- a/p/themes/Swage/swage.scss +++ b/p/themes/Swage/swage.scss @@ -455,6 +455,16 @@ form { } } + .help a { + color: var(--color-text-light); + text-decoration: underline; + text-decoration-style: dotted; + + &:hover { + text-decoration-style: solid; + } + } + .input { select, input { @@ -464,6 +474,20 @@ form { } } +#dropdown-search-wrapper .dropdown-menu { + padding-top: 1rem; + padding-bottom: 0.25rem; + + .stick.search { + width: 100%; + + input[type="search"] { + width: 100%; + border: 0; + } + } +} + .labels, .tags, .share { @@ -1171,6 +1195,10 @@ a.signin { .dropdown { position: relative; + + .dropdown-menu { + width: auto; + } } #new-article { @@ -1476,6 +1504,10 @@ button.as-link { display: none; } } + + .dropdown.only-mobile { + display: initial !important; + } } #nav_menu_read_all { diff --git a/p/themes/base-theme/frss.css b/p/themes/base-theme/frss.css index a546de43a..d142308bc 100644 --- a/p/themes/base-theme/frss.css +++ b/p/themes/base-theme/frss.css @@ -115,6 +115,10 @@ h3 { display: none; } +.only-mobile { + display: none !important; +} + /*=== Paragraphs */ p { margin: 1rem 0 0.5rem; @@ -443,7 +447,7 @@ td.numeric { flex-shrink: 0; } -.stick form { +#nav_menu_read_all form { display: inline-flex; } @@ -1933,7 +1937,6 @@ input:checked + .slide-container .properties { } .nav-login, -.nav_menu .search, .aside .toggle_aside, #slider .toggle_aside, .nav_menu .toggle_aside, @@ -2008,6 +2011,10 @@ input:checked + .slide-container .properties { display: none; } + .only-mobile { + display: unset !important; + } + .header > .item { padding: 5px; } @@ -2076,6 +2083,23 @@ input:checked + .slide-container .properties { margin: 2px 0; } + .dropdown .dropdown-menu .item .stick .btn { + margin: 0; + } + + .dropdown .dropdown-menu .item form { + display: block; + text-align: center; + } + + .dropdown .dropdown-menu .item .stick.search { + width: calc(100% - 20px); + } + + .dropdown .dropdown-menu .item .stick.search input { + width: 95%; + } + .dropdown .dropdown-menu .item button.as-link, .dropdown .dropdown-menu .item button.as-link:hover, button.as-link:active { width: 100%; @@ -2138,7 +2162,6 @@ input:checked + .slide-container .properties { } .nav_menu .toggle_aside, - .nav_menu .search, #panel .close img { display: inline-block; } diff --git a/p/themes/base-theme/frss.rtl.css b/p/themes/base-theme/frss.rtl.css index 610144fcb..6353f1a39 100644 --- a/p/themes/base-theme/frss.rtl.css +++ b/p/themes/base-theme/frss.rtl.css @@ -115,6 +115,10 @@ h3 { display: none; } +.only-mobile { + display: none !important; +} + /*=== Paragraphs */ p { margin: 1rem 0 0.5rem; @@ -443,7 +447,7 @@ td.numeric { flex-shrink: 0; } -.stick form { +#nav_menu_read_all form { display: inline-flex; } @@ -1933,7 +1937,6 @@ input:checked + .slide-container .properties { } .nav-login, -.nav_menu .search, .aside .toggle_aside, #slider .toggle_aside, .nav_menu .toggle_aside, @@ -2008,6 +2011,10 @@ input:checked + .slide-container .properties { display: none; } + .only-mobile { + display: unset !important; + } + .header > .item { padding: 5px; } @@ -2076,6 +2083,23 @@ input:checked + .slide-container .properties { margin: 2px 0; } + .dropdown .dropdown-menu .item .stick .btn { + margin: 0; + } + + .dropdown .dropdown-menu .item form { + display: block; + text-align: center; + } + + .dropdown .dropdown-menu .item .stick.search { + width: calc(100% - 20px); + } + + .dropdown .dropdown-menu .item .stick.search input { + width: 95%; + } + .dropdown .dropdown-menu .item button.as-link, .dropdown .dropdown-menu .item button.as-link:hover, button.as-link:active { width: 100%; @@ -2138,7 +2162,6 @@ input:checked + .slide-container .properties { } .nav_menu .toggle_aside, - .nav_menu .search, #panel .close img { display: inline-block; } -- cgit v1.2.3