Skip to content

Commit f10fb04

Browse files
committed
added answer option button design
1 parent 2417e74 commit f10fb04

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

django_school/classroom/templates/classroom/students/take_quiz_form.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,35 @@
22

33
{% load crispy_forms_tags %}
44

5+
{% block css %}
6+
<style type="text/css">
7+
/* https://jsbin.com/zequb/7/edit */
8+
input[type=radio]{
9+
/* hide original inputs */
10+
visibility: hidden;
11+
position: absolute;
12+
}
13+
input[type=radio] + label{
14+
cursor:pointer;
15+
}
16+
input[type=radio] + label:before{
17+
width:16px;
18+
height:16px;
19+
content: " ";
20+
display:inline-block;
21+
border:1px solid #ccc;
22+
border-radius:50%;
23+
box-shadow: inset 0 -3px 6px #e4e4e4;
24+
transition: 0.3s;
25+
}
26+
27+
/* CHECKED */
28+
input[type=radio]:checked + label:before{
29+
box-shadow: inset 0 0 0 5px #2196F3;
30+
}
31+
</style>
32+
{% endblock %}
33+
534
{% block content %}
635
<div class="progress mb-3">
736
<div class="progress-bar" role="progressbar" aria-valuenow="{{ progress }}" aria-valuemin="0" aria-valuemax="100" style="width: {{ progress }}%"></div>

0 commit comments

Comments
 (0)