mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
MDL-59775 forms: add option to display any form vertical
This commit is contained in:
parent
032674eebc
commit
3dee4faec4
4 changed files with 81 additions and 6 deletions
|
@ -334,6 +334,24 @@ textarea[data-auto-rows] {
|
|||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/** Display elements under labels in vertical forms regardless of the screen size. */
|
||||
.mform.full-width-labels {
|
||||
& > .row {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
& > .col-md-3,
|
||||
& > .col-md-9 {
|
||||
float: none;
|
||||
width: inherit;
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
&.femptylabel > .col-md-3 {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Allow wrapping an mform in a div with the form-inline class to have an inline, responsive form. */
|
||||
.form-inline {
|
||||
@include media-breakpoint-up(md) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue