Skip to content

Commit

Permalink
fix feedback dark & light style quiz
Browse files Browse the repository at this point in the history
  • Loading branch information
angelgardt committed May 10, 2024
1 parent 3be8ac1 commit 3e258f9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion book/_book/site_libs/bootstrap/bootstrap-dark.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion book/_book/site_libs/bootstrap/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion book/_book/testquiz.html
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ <h1 class="title"><span id="sec-testquiz" class="quarto-section-identifier"><spa
<div class="alternative">
<p><input type="radio" class="in-alternative" id="q1-option4" name="alternative-q1" value="Option 4"> <label for="q1-option4" id="q1-opt4-label">Option 4</label></p>
</div>
<div id="feedback-q1" class="feedback" hidden="">
<div id="feedback-q1" class="feedback">
Feedback
</div>
</fieldset>
Expand Down
5 changes: 5 additions & 0 deletions book/style/css/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,13 @@ form.quiz div.submit-button {

form.quiz input.submit-button {
background-color: $gray-200;
color: $black;
}

form.quiz input.submit-button:hover {
background-color: $gray-300;
}

form.quiz div.feedback {
background-color: $gray-800;
}
4 changes: 4 additions & 0 deletions book/style/css/light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,7 @@ form.quiz input.submit-button {
form.quiz input.submit-button:hover {
background-color: $gray-400;
}

form.quiz div.feedback {
background-color: $gray-200;
}
2 changes: 1 addition & 1 deletion book/testquiz.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<input type="radio" class="in-alternative" id="q1-option4" name="alternative-q1" value="Option 4">
<label for="q1-option4" id="q1-opt4-label">Option 4</label>
</div>
<div class="feedback" id="feedback-q1" hidden>Feedback</div>
<div class="feedback" id="feedback-q1">Feedback</div>
</fieldset>


Expand Down

0 comments on commit 3e258f9

Please sign in to comment.