changeset 212:255faa03379a

css (noscript): fixed blog not visible without javascript: blogs in languages other than the one selected are initially hidden with a clickable banner with javascript, but this was making them impossible to read without it. Furthermore, comments were not visible either, due to a change in class name. fix 302
author Goffi <goffi@goffi.org>
date Tue, 09 Jul 2019 21:58:51 +0200
parents bf33342902ed
children 82b18c29dae3
files sat_templates/templates/default/static/styles_noscript.css
diffstat 1 files changed, 22 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/default/static/styles_noscript.css	Fri Jun 28 17:38:43 2019 +0200
+++ b/sat_templates/templates/default/static/styles_noscript.css	Tue Jul 09 21:58:51 2019 +0200
@@ -11,6 +11,23 @@
   --box--expand_limit: none;
 }
 
+
+/**********
+ * States *
+ **********/
+
+/* no click without JS, so we display blogs in other languages directly */
+.other_lang.state_init>* {
+    display: block;
+}
+
+/* initial state is made to display something until click,
+ * better to disable without JS */
+.state_init>.show_if_parent_init {
+    display: none;
+}
+
+
 /*********
  * boxes *
  *********/
@@ -19,11 +36,12 @@
     display: none;
 }
 
-/************
- * Comments *
- ************/
+/**********
+ * Panels *
+ **********/
 
-.comments_panel {
+/* drawer needs to be opened to have the content visible */
+.panel-drawer {
     max-height: none;
     opacity: 1;
 }