css: Introduce rules to hide non-js elements if js is enabled and vice versa

This commit is contained in:
Johannes Meyer 2015-07-27 11:40:36 +02:00
parent 86ad6c48ff
commit 4ab457a062
1 changed files with 10 additions and 0 deletions

View File

@ -405,3 +405,13 @@ html {
padding-top: 0em;
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;
}