Skip to content

Commit

Permalink
MDL-39682 Forms, File Picker, Themes: Fix alignment of Form's Labels …
Browse files Browse the repository at this point in the history
…and Input elements in RTL mode (theme/clean)

Conflicts:
	theme/bootstrapbase/style/moodle.css
  • Loading branch information
nadavkav authored and danpoltawski committed Aug 29, 2013
1 parent eb0aa3f commit 3703b1d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 23 additions & 1 deletion theme/bootstrapbase/less/moodle/forms.less
Expand Up @@ -215,7 +215,22 @@ div.backup-section + form,
.form-buttons { // Add back the padding it would usually get from being inside a .form-horizontal.
padding-left: @horizontalComponentOffset;
}

.dir-rtl {
table#form td.submit,
.form-buttons,
.path-admin .buttons,
#fitem_id_submitbutton,
.fp-content-center form + div,
div.backup-section + form,
#fgroup_id_buttonar {
.form-actions;
padding-right: 0;
}
.path-admin .buttons,
.form-buttons { // Add back the padding it would usually get from being inside a .form-horizontal.
padding-right: @horizontalComponentOffset;
}
}
.form-item .form-setting .form-checkbox.defaultsnext {
// Need to specify .defaultsnext and the .form-checkbox class
// is somewhat randomly re-used on various actual checkboxes
Expand Down Expand Up @@ -342,6 +357,13 @@ input[type="checkbox"] {
margin-top: -4px; // Dodgy hack, must be better way.
margin-right: 7px;
}
.dir-rtl {
input[type="radio"],
input[type="checkbox"] {
margin-left: 7px;
margin-right: auto;
}
}
.singleselect {
display: inline-block;
form,
Expand Down
2 changes: 1 addition & 1 deletion theme/bootstrapbase/style/moodle.css

Large diffs are not rendered by default.

0 comments on commit 3703b1d

Please sign in to comment.