mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
pedagogy: remove stars on small devices for grade
This commit is contained in:
parent
d29603c584
commit
f09de0ab7d
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user