MDL-85240 questions: restrict style override to qtype multichoice

As a consequence, the same style has been added to the calculatedmulti
qtype, because it uses similar structure and benefited from the more
general override.
This commit is contained in:
Philipp Imhof
2025-05-11 13:25:30 +02:00
parent 9242f9619a
commit ac5ee7f0ae
3 changed files with 19 additions and 4 deletions
@@ -0,0 +1,10 @@
issueNumber: MDL-85240
notes:
qtype_multichoice:
- message: >-
Restrict override of margin-bottom for fitem_id_answer_* and
fitem_id_fraction_* divs to own edit form. Question type
plugins currently benefitting from the unlimited style override
will need to change their styles.css accordingly. An example
can be found in calculatedmulti's style sheet.
type: changed
+7
View File
@@ -27,3 +27,10 @@
width: 14px;
flex-shrink: 0;
}
/* stylelint-disable declaration-no-important */
body#page-question-type-calculatedmulti div[id^="fitem_id_answer_"].mb-3,
body#page-question-type-calculatedmulti div[id^="fitem_id_fraction_"].mb-3 {
margin-bottom: 0 !important;
}
/* stylelint-enable declaration-no-important */
+2 -4
View File
@@ -66,10 +66,8 @@ body#page-question-type-multichoice div[id^=fitem_id_][id*=feedback_] {
}
/* stylelint-disable declaration-no-important */
div[id^="fitem_id_answer_"].mb-3,
div[id^="fitem_id_fraction_"].mb-3 {
body#page-question-type-multichoice div[id^="fitem_id_answer_"].mb-3,
body#page-question-type-multichoice div[id^="fitem_id_fraction_"].mb-3 {
margin-bottom: 0 !important;
}
/* stylelint-enable declaration-no-important */