Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
AE
Sith
Commits
f09de0ab
Verified
Commit
f09de0ab
authored
Aug 08, 2019
by
Sli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pedagogy: remove stars on small devices for grade
parent
d29603c5
Pipeline
#1931
passed with stage
in 22 minutes and 58 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
core/static/core/style.scss
core/static/core/style.scss
+13
-0
pedagogy/templates/pedagogy/macros.jinja
pedagogy/templates/pedagogy/macros.jinja
+3
-2
No files found.
core/static/core/style.scss
View file @
f09de0ab
...
...
@@ -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
;
...
...
pedagogy/templates/pedagogy/macros.jinja
View file @
f09de0ab
...
...
@@ -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
%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment