File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 14
14
</div >
15
15
<button class =" custom-button" @click =" submitAnswer" >提交</button >
16
16
<div v-if =" showFeedback" class =" feedback" >
17
- <p v-if =" isCorrect" >回答正确</p >
17
+ <p v-if =" isCorrect" class = " correct " >回答正确</p >
18
18
<div v-else >
19
- <p >回答错误,正确答案是:</p >
19
+ <p class = " wrong " >回答错误,正确答案是:</p >
20
20
<div v-for =" (answer, index) in answers" :key =" index" >
21
21
<ShikiRenderer :code =" answer" type =" item" language =" text" />
22
22
</div >
@@ -124,9 +124,19 @@ export default {
124
124
}
125
125
126
126
.feedback {
127
- padding: 1 .75rem ;
127
+ margin- top: 1rem ;
128
+ padding: 1 .5rem ;
128
129
border- radius: 0 .5rem ;
129
- background- color: var (-- vp- c- accent- soft);
130
+ background- color: var (-- code- c- bg);
131
+ }
132
+
133
+ .feedback .correct {
134
+ margin- top: 0 ;
135
+ margin- bottom: 0 ;
136
+ }
137
+
138
+ .feedback .wrong {
139
+ margin- top: 0 ;
130
140
}
131
141
132
142
.custom - button: hover{
You can’t perform that action at this time.
0 commit comments