From 4ab457a0623822bc314173165703401184ef4167 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 27 Jul 2015 11:40:36 +0200 Subject: [PATCH] css: Introduce rules to hide non-js elements if js is enabled and vice versa --- public/css/icinga/layout-structure.less | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/public/css/icinga/layout-structure.less b/public/css/icinga/layout-structure.less index 3f9d4858e..47adbca7c 100644 --- a/public/css/icinga/layout-structure.less +++ b/public/css/icinga/layout-structure.less @@ -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; +} \ No newline at end of file