From 5012d06e724eb95fd0d881a58e9fee9a0036a210 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 31 Jan 2022 12:12:53 +0100 Subject: [PATCH] [simple] allow .tabs to be used for help pages --- .../themes/simple/src/less/toolkit.less | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/searx/static/themes/simple/src/less/toolkit.less b/searx/static/themes/simple/src/less/toolkit.less index ed1e1aff..17fe5680 100644 --- a/searx/static/themes/simple/src/less/toolkit.less +++ b/searx/static/themes/simple/src/less/toolkit.less @@ -221,6 +221,16 @@ div.selectable_url { font-size: 90%; } +ul.tabs { + border-bottom: 1px solid var(--color-toolkit-tabs-section-border); + list-style: none; + padding-left: 0; + + li { + display: flex; + } +} + .tabs { display: flex; flex-wrap: wrap; @@ -235,7 +245,8 @@ div.selectable_url { display: none; } - & > label { + & > label, + & > li > a { order: 1; padding: 0.7em; margin: 0 0.7em; @@ -243,13 +254,21 @@ div.selectable_url { text-transform: uppercase; border: solid var(--color-toolkit-tabs-label-border); border-width: 0 0 2px 0; + color: unset; .disable-user-select(); cursor: pointer; + + &.active { + border-bottom: 2px solid var(--color-categories-item-border-selected); + background: var(--color-categories-item-selected); + color: var(--color-categories-item-selected-font); + } } - & > label:hover { + & > label:hover, + & > li > a:hover { border-bottom: 2px solid var(--color-categories-item-border-selected); }