Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'MDL-39158-master' of git://github.com/damyon/moodle
  • Loading branch information
danpoltawski committed Apr 29, 2013
2 parents e947caf + 3161400 commit 4eaa353
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
6 changes: 6 additions & 0 deletions theme/bootstrapbase/less/moodle.less
Expand Up @@ -18,6 +18,12 @@
@iconSpritePath: ~"[[pix:theme|glyphicons-halflings]]";
@iconWhiteSpritePath: ~"[[pix:theme|glyphicons-halflings-white]]";

// Increase form label width.
@horizontalComponentOffset: 200px;
// On Wider screens.
@horizontalComponentOffset768: 220px;
@horizontalComponentOffset980: 265px;

// Roll back nameclashes.
@import "moodle/undo";

Expand Down
41 changes: 41 additions & 0 deletions theme/bootstrapbase/less/moodle/responsive.less
Expand Up @@ -14,6 +14,27 @@
float: right;
}
}
// Wider form labels.
.form-item .form-label,
.mform .fitem div.fitemtitle,
.userprofile dl.list dt,
.form-horizontal .control-label {
width: @horizontalComponentOffset980 - 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: @horizontalComponentOffset980;
}
.path-admin .buttons,
.form-buttons {
padding-left: @horizontalComponentOffset980;
}

}

// login page
Expand Down Expand Up @@ -233,6 +254,26 @@
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
4 changes: 2 additions & 2 deletions theme/bootstrapbase/style/moodle.css

Large diffs are not rendered by default.

0 comments on commit 4eaa353

Please sign in to comment.