From 3df73f4d1f69f6ca391358dd46a04a7f67b28abf Mon Sep 17 00:00:00 2001 From: Bartuccio Antoine Date: Sun, 7 Jul 2019 18:33:56 +0200 Subject: [PATCH] pedagogy: css class name consistency --- core/static/core/style.scss | 28 ++++++++++++------------ pedagogy/templates/pedagogy/guide.jinja | 8 +++---- pedagogy/templates/pedagogy/macros.jinja | 6 ++--- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/core/static/core/style.scss b/core/static/core/style.scss index 02716bd1..92daa21e 100644 --- a/core/static/core/style.scss +++ b/core/static/core/style.scss @@ -1683,23 +1683,23 @@ $pedagogy-light-blue: #caf0ff; $pedagogy-white-text: #f0f0f0; .pedagogy { - &.star_not_checked { + &.star-not-checked { color : #f7f7f7; } - &.star_checked { + &.star-checked { color: $pedagogy-orange; } - &.stars_grade { + &.stars-grade { display: none; } @media screen and (max-width: $large-devices) { - &.stars_grade { + &.stars-grade { display: block; } - &.star_checked { + &.star-checked { display: none; } - &.star_not_checked { + &.star-not-checked { display: none; } } @@ -1724,25 +1724,25 @@ $pedagogy-white-text: #f0f0f0; margin: 0px; width: 100%; - .input_search { + .input-search { background: $pedagogy-light-blue; width: 300px; height: 21px; } - .button_search { + .button-search { background: $pedagogy-orange; color: white; font-weight: bold; margin-left: 20px; } - .radio_guide input[type="radio"],input[type="checkbox"] { + .radio-guide input[type="radio"],input[type="checkbox"] { display:none; } - .radio_guide { + .radio-guide { margin-top: 10px; color: white; } - .radio_guide label { + .radio-guide label { display:inline-block; background-color: $pedagogy-blue; padding: 10px 20px; @@ -1750,13 +1750,13 @@ $pedagogy-white-text: #f0f0f0; font-size:16px; border-radius: 4px; } - .radio_guide input[type="radio"]:checked + label { + .radio-guide input[type="radio"]:checked + label { background-color:$pedagogy-orange; } - .radio_guide input[type="checkbox"]:checked + label { + .radio-guide input[type="checkbox"]:checked + label { background-color:$pedagogy-orange; } - .radio_guide label:hover { + .radio-guide label:hover { background-color: $pedagogy-hover-blue; } diff --git a/pedagogy/templates/pedagogy/guide.jinja b/pedagogy/templates/pedagogy/guide.jinja index d7f2b6f2..76d59d17 100644 --- a/pedagogy/templates/pedagogy/guide.jinja +++ b/pedagogy/templates/pedagogy/guide.jinja @@ -15,10 +15,10 @@ {% trans %}Moderate comments{% endtrans %}

- - + +

-
+
@@ -27,7 +27,7 @@
-
+
diff --git a/pedagogy/templates/pedagogy/macros.jinja b/pedagogy/templates/pedagogy/macros.jinja index e6d1270d..1b7e27ad 100644 --- a/pedagogy/templates/pedagogy/macros.jinja +++ b/pedagogy/templates/pedagogy/macros.jinja @@ -3,12 +3,12 @@ {% if grade >= 0 %} {% for i in range(5) %} {% if i <= grade %} - + {% else %} - + {% endif %} {% endfor %} - {{ grade + 1 }}/5 + {{ grade + 1 }}/5 {% else %} {% trans %} not rated {% endtrans %} {% endif %}