-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
65 lines (52 loc) · 1.24 KB
/
style.css
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
body {
text-align: center;
display: grid;
justify-items: center;
counter-reset: question 0;
}
#exam-content label {
display: block;
width: 100%;
}
.question, #exam-content label {
text-align: left;
padding-top: 0.5em;
padding-bottom: 0.5em;
}
input[type="radio"], input[type="checkbox"] {
transform: scale(1.2);
}
.free .question.single::before {
content: "(单选)";
}
.free .question.multi::before {
content: "(多选)";
}
.classic .question.single::before, .endless .question.single::before {
content: counter(question) ". (单选)";
counter-increment: question;
}
.classic .question.multi::before, .endless .question.multi::before {
content: counter(question) ". (多选)";
counter-increment: question;
}
.correct {
background-color: lightgreen;
}
.incorrect {
background-color: lightcoral;
}
:not(.correct):not(.incorrect) > .hide-answer {
display: none;
}
.option:hover {
background-color: aliceblue;
}
/*仅在自由练习模式下显示“换一题”按钮*/
.classic ~ #change-question, .endless ~ #change-question {
display: none;
}
/*仅在无尽模式下显示“重新开始”按钮*/
.free ~ #restart, .classic ~ #restart {
display: none;
}