MDL-82086 theme_boost: consistent selector for textarea form controls.

In a similar vein to 31f6039635, we shouldn't assume form controls are
always descendents of `.mform` (e.g. the messaging drawer input).
This commit is contained in:
Paul Holden
2024-06-04 14:37:37 +01:00
parent 1291869f90
commit e71fc4ff3b
3 changed files with 14 additions and 12 deletions
+8 -6
View File
@@ -23,9 +23,6 @@
}
.mform .d-flex {
textarea.form-control {
width: 100%;
}
.fitem {
margin: 0.1rem 0.25rem 0.1rem 0 !important; /* stylelint-disable-line declaration-no-important */
}
@@ -37,9 +34,14 @@
}
// Override the default bootstrap form-control width.
.d-flex > .form-control {
width: auto;
max-width: 100%;
.d-flex {
& > .form-control {
width: auto;
max-width: 100%;
}
& > textarea.form-control {
width: 100%;
}
}
// Override the default bootstrap custom-select width.
+3 -3
View File
@@ -32930,9 +32930,6 @@ body.path-question-type .mform fieldset.hidden {
margin-bottom: 4px;
}
.mform .d-flex textarea.form-control {
width: 100%;
}
.mform .d-flex .fitem {
margin: 0.1rem 0.25rem 0.1rem 0 !important; /* stylelint-disable-line declaration-no-important */
}
@@ -32946,6 +32943,9 @@ body.path-question-type .mform fieldset.hidden {
width: auto;
max-width: 100%;
}
.d-flex > textarea.form-control {
width: 100%;
}
.custom-select {
width: auto;
+3 -3
View File
@@ -32930,9 +32930,6 @@ body.path-question-type .mform fieldset.hidden {
margin-bottom: 4px;
}
.mform .d-flex textarea.form-control {
width: 100%;
}
.mform .d-flex .fitem {
margin: 0.1rem 0.25rem 0.1rem 0 !important; /* stylelint-disable-line declaration-no-important */
}
@@ -32946,6 +32943,9 @@ body.path-question-type .mform fieldset.hidden {
width: auto;
max-width: 100%;
}
.d-flex > textarea.form-control {
width: 100%;
}
.custom-select {
width: auto;