mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
css: Introduce rules to hide non-js elements if js is enabled and vice versa
This commit is contained in:
parent
86ad6c48ff
commit
4ab457a062
@ -405,3 +405,13 @@ html {
|
|||||||
padding-top: 0em;
|
padding-top: 0em;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hide non-javascript elements if javascript is enabled
|
||||||
|
html.js *.no-js {
|
||||||
|
.sr-only;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hide javascript elements if javascript is disabled
|
||||||
|
html.no-js *.js {
|
||||||
|
.sr-only;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user