Verified Commit f09de0ab authored by Sli's avatar Sli

pedagogy: remove stars on small devices for grade

parent d29603c5
Pipeline #1931 passed with stage
in 22 minutes and 58 seconds
......@@ -1694,6 +1694,10 @@ $pedagogy-white-text: #f0f0f0;
margin-top: 0px;
}
&.grade-without-star {
display: none
}
@media screen and (max-width: $large-devices){
&.star-not-checked {
margin-left: 5px;
......@@ -1705,6 +1709,15 @@ $pedagogy-white-text: #f0f0f0;
}
}
@media screen and (max-width: $small-devices){
&.grade-without-star {
display: block;
}
&.grade-with-star {
display: none;
}
}
#dynamic_view {
font-size: 1.1em;
......
......@@ -3,11 +3,12 @@
{% if grade >= 0 %}
{% for i in range(5) %}
{% if i <= grade %}
<span class="fa fa-star pedagogy star-checked"></span>
<span class="fa fa-star pedagogy star-checked grade-with-star"></span>
{% else %}
<span class="fa fa-star pedagogy star-not-checked"></span>
<span class="fa fa-star pedagogy star-not-checked grade-with-star"></span>
{% endif %}
{% endfor %}
<span class="pedagogy grade-without-star">{{ grade }}/5</span>
{% else %}
<span class="grade-text"> {% trans %} not rated {% endtrans %} </span>
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment