mirror of
https://github.com/searxng/searxng.git
synced 2026-09-25 07:36:05 +00:00
[mod] simple: apply nojs via stylesheet
This commit is contained in:
9
client/simple/src/less/noscript.less
Normal file
9
client/simple/src/less/noscript.less
Normal file
@@ -0,0 +1,9 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
.hide_if_nojs {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.show_if_nojs {
|
||||
display: inline !important;
|
||||
}
|
||||
@@ -164,14 +164,14 @@ button.category_button {
|
||||
&:hover {
|
||||
color: var(--color-search-background-hover);
|
||||
}
|
||||
|
||||
&.empty * {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
html.no-js #clear_search.hide_if_nojs {
|
||||
display: none;
|
||||
#q:placeholder-shown ~ #clear_search {
|
||||
pointer-events: none;
|
||||
|
||||
* {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#q,
|
||||
@@ -204,12 +204,6 @@ html.no-js #clear_search.hide_if_nojs {
|
||||
}
|
||||
}
|
||||
|
||||
.no-js #clear_search,
|
||||
.no-js #send_search {
|
||||
width: auto !important;
|
||||
.ltr-border-left(1px solid var(--color-search-border));
|
||||
}
|
||||
|
||||
.search_filters {
|
||||
margin-top: 0.6rem;
|
||||
.ltr-margin-right(0);
|
||||
|
||||
@@ -4,11 +4,7 @@
|
||||
|
||||
// stylelint-disable no-descending-specificity
|
||||
|
||||
html.no-js .hide_if_nojs {
|
||||
display: none;
|
||||
}
|
||||
|
||||
html.js .show_if_nojs {
|
||||
.show_if_nojs {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user