Skip to content

Commit

Permalink
MDL-39608 - Bootstrap - Chaning the thresholds and width values for t…
Browse files Browse the repository at this point in the history
…he Form labels

Conflicts:
	theme/bootstrapbase/style/moodle.css
  • Loading branch information
jsnfwlr authored and Sam Hemelryk committed Jun 10, 2013
1 parent a1d43d9 commit 57ecff6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 23 deletions.
5 changes: 3 additions & 2 deletions theme/bootstrapbase/less/moodle.less
Expand Up @@ -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";
Expand Down
44 changes: 24 additions & 20 deletions theme/bootstrapbase/less/moodle/responsive.less
Expand Up @@ -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,
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion theme/bootstrapbase/style/moodle.css

Large diffs are not rendered by default.

0 comments on commit 57ecff6

Please sign in to comment.