-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz.css
More file actions
92 lines (82 loc) · 1.48 KB
/
quiz.css
File metadata and controls
92 lines (82 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#quiz-section {
margin-top: -100px;
}
#quiz-container {
width: min(50rem, 40vw);
max-width: 50rem;
min-width: 20rem;
}
#question-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
position: relative;
width: 100%;
}
#question-header #question-number {
position: absolute;
left: 0;
}
#question-header #question {
width: 80%;
text-align: center;
}
.choices-container {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
border: 2px solid var(--container-border-color);
width: 100%;
}
.choice-container {
display: flex;
justify-content: flex-start;
width: 100%;
}
.choice-container label {
width: calc(100% - 40px);
padding: 5px;
font-size: 2rem;
}
.choice-container input[type=radio] {
width: 20px;
vertical-align: center;
margin: 0 20px;
}
.hidden {
visibility: hidden;
display: none;
}
#result {
padding: 5px;
margin-top: 10px;
width: 100%;
text-align: center;
font-size: 2rem;
font-weight: 800;
}
#submit {
margin: 20px 0;
}
/* Answer Distinctions */
.correct {
background-color: rgb(30, 202, 30);
border: 2px solid black;
}
.incorrect {
background-color: rgb(255, 29, 29);
border: 2px solid black;
}
/* Media Adjustments */
@media (max-width: 70rem) {
#question-number, #question {
font-size: 2.5rem;
}
}
@media (max-width: 55rem) {
#question-number, #question {
font-size: 1.75rem;
}
}/*# sourceMappingURL=quiz.css.map */