From 13f37c70772f9dd6035d5656fa7a862c107aa217 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 27 Sep 2018 16:12:07 +0200 Subject: Always display help icon on category --- chimere/static/chimere/css/styles.css | 13 +++---------- chimere/templates/chimere/blocks/categories.html | 23 ++++++----------------- 2 files changed, 9 insertions(+), 27 deletions(-) diff --git a/chimere/static/chimere/css/styles.css b/chimere/static/chimere/css/styles.css index c587ea8..23ddd82 100644 --- a/chimere/static/chimere/css/styles.css +++ b/chimere/static/chimere/css/styles.css @@ -2340,7 +2340,7 @@ span#permalink, .navbar-nav .lbl, #areas-div label, #permalink, #simple_button, display: none; } -.subcategory-icon, .description_icon{ +.subcategory-icon{ position: absolute; padding: 3px; width: 30px; @@ -2348,11 +2348,8 @@ span#permalink, .navbar-nav .lbl, #areas-div label, #permalink, #simple_button, } .description_icon{ - right: 34px; - background-color: white; - border: 1px solid #999; - border-radius: 5px; - display: none; + font-size: 1em; + padding: 0 0.2em; } .subcategory-icon{ @@ -4261,10 +4258,6 @@ li.main_category li.subcategory > span > label{ #categories label{ width: 100%; } - .description_icon{ - display: block; - font-size: 1em; - } #back-categories{ position: static; text-align: center; diff --git a/chimere/templates/chimere/blocks/categories.html b/chimere/templates/chimere/blocks/categories.html index cf13404..9234b31 100644 --- a/chimere/templates/chimere/blocks/categories.html +++ b/chimere/templates/chimere/blocks/categories.html @@ -31,14 +31,14 @@ {% endif %} - {% if sub_category.description %} - - - {% endif %} @@ -58,17 +58,6 @@ $(function() { } chimere_init_options['checked_categories'] = null; } - - $(".subcategory").mouseenter(function() { - if ($("#switch-menu").not(':visible').length){ - $(this).find(".description_icon").show(); - } - }).mouseleave(function() { - if ($("#switch-menu").not(':visible').length){ - $(this).find(".description_icon").hide(); - } - }); - }); // --> -- cgit v1.2.3