MDL-81779 theme_boost: more liberal selector for form-control elements.

There are various pages (e.g. many related to permissions), where the
form element is not a descendent of `.mform` - so the previous selector
never matched them and led to unstyled inputs.

Co-authored-by: Mikel Martín <mikel@moodle.com>
This commit is contained in:
Paul Holden
2024-05-02 23:10:28 +01:00
parent 67b2c43225
commit 31f6039635
3 changed files with 16 additions and 13 deletions
+6 -5
View File
@@ -23,11 +23,6 @@
}
.mform .d-flex {
// Override the default bootstrap form-control width.
.form-control {
width: auto;
max-width: 100%;
}
textarea.form-control {
width: 100%;
}
@@ -41,6 +36,12 @@
}
}
// Override the default bootstrap form-control width.
.d-flex > .form-control {
width: auto;
max-width: 100%;
}
// Override the default bootstrap custom-select width.
.custom-select {
width: auto;
+5 -4
View File
@@ -32933,10 +32933,6 @@ body.path-question-type .mform fieldset.hidden {
margin-bottom: 4px;
}
.mform .d-flex .form-control {
width: auto;
max-width: 100%;
}
.mform .d-flex textarea.form-control {
width: 100%;
}
@@ -32949,6 +32945,11 @@ body.path-question-type .mform fieldset.hidden {
margin-right: 0;
}
.d-flex > .form-control {
width: auto;
max-width: 100%;
}
.custom-select {
width: auto;
max-width: 100%;
+5 -4
View File
@@ -32933,10 +32933,6 @@ body.path-question-type .mform fieldset.hidden {
margin-bottom: 4px;
}
.mform .d-flex .form-control {
width: auto;
max-width: 100%;
}
.mform .d-flex textarea.form-control {
width: 100%;
}
@@ -32949,6 +32945,11 @@ body.path-question-type .mform fieldset.hidden {
margin-right: 0;
}
.d-flex > .form-control {
width: auto;
max-width: 100%;
}
.custom-select {
width: auto;
max-width: 100%;