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:
@@ -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;
|
||||
|
||||
@@ -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%;
|
||||
|
||||
@@ -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%;
|
||||
|
||||
Reference in New Issue
Block a user