diff --git a/theme/boost/scss/moodle/forms.scss b/theme/boost/scss/moodle/forms.scss index d96942bfbbf..84e318729f4 100644 --- a/theme/boost/scss/moodle/forms.scss +++ b/theme/boost/scss/moodle/forms.scss @@ -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. diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 3462272bdc0..7790c0099e8 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -32926,9 +32926,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 */ } @@ -32942,6 +32939,9 @@ body.path-question-type .mform fieldset.hidden { width: auto; max-width: 100%; } +.d-flex > textarea.form-control { + width: 100%; +} .custom-select { width: auto; diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 066eea1f0e8..b7ff0a8d67f 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -32926,9 +32926,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 */ } @@ -32942,6 +32939,9 @@ body.path-question-type .mform fieldset.hidden { width: auto; max-width: 100%; } +.d-flex > textarea.form-control { + width: 100%; +} .custom-select { width: auto;