MDL-39608 - Bootstrap - Chaning the thresholds and width values for the Form labels

This commit is contained in:
Jason Fowler
2013-05-13 10:23:51 +08:00
parent 2d5303cbe7
commit bfb1c6d4d2
3 changed files with 28 additions and 23 deletions
+3 -2
View File
@@ -21,8 +21,9 @@
// Increase form label width.
@horizontalComponentOffset: 200px;
// On Wider screens.
@horizontalComponentOffset768: 220px;
@horizontalComponentOffset980: 265px;
@horizontalComponentOffset980: 220px;
@horizontalComponentOffset1200: 265px;
// Roll back nameclashes.
@import "moodle/undo";
+24 -20
View File
@@ -14,6 +14,9 @@
float: right;
}
}
}
@media (min-width: 980px) and (max-width: 1199px) {
// Wider form labels.
.form-item .form-label,
.mform .fitem div.fitemtitle,
@@ -47,6 +50,27 @@
width: 48.717948717948715%;
*width: 48.664757228587014%;
}
// Wider form labels.
.form-item .form-label,
.mform .fitem div.fitemtitle,
.userprofile dl.list dt,
.form-horizontal .control-label {
width: @horizontalComponentOffset1200 - 20px;
}
.form-item .form-setting,
.form-item .form-description,
.mform .fitem .felement,
#page-mod-forum-search .c1,
.mform .fdescription.required,
.userprofile dl.list dd,
.form-horizontal .controls {
margin-left: @horizontalComponentOffset1200;
}
.path-admin .buttons,
.form-buttons {
padding-left: @horizontalComponentOffset1200;
}
}
@media (min-width: 980px) {
@@ -260,26 +284,6 @@
padding-left: 0;
padding-right: 0;
}
// Wider form labels.
.form-item .form-label,
.mform .fitem div.fitemtitle,
.userprofile dl.list dt,
.form-horizontal .control-label {
width: @horizontalComponentOffset768 - 20px;
}
.form-item .form-setting,
.form-item .form-description,
.mform .fitem .felement,
#page-mod-forum-search .c1,
.mform .fdescription.required,
.userprofile dl.list dd,
.form-horizontal .controls {
margin-left: @horizontalComponentOffset768;
}
.path-admin .buttons,
.form-buttons {
padding-left: @horizontalComponentOffset768;
}
}
@media (max-width: 979px) {
File diff suppressed because one or more lines are too long