Skip to content

Commit

Permalink
MDL-68749 theme: Fix bootstrap toggle switches in RTL layout
Browse files Browse the repository at this point in the history
Co-authored-by: Bas Brands <[email protected]>
  • Loading branch information
mickhawkins and Bas Brands committed Nov 3, 2020
1 parent 99680d1 commit fe60d58
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion theme/boost/scss/moodle/bootstrap-rtl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@
left: 0;
text-align: right;
}
*/
*/

.dir-rtl .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
transform: translateX(-($custom-switch-width - $custom-control-indicator-size));
}
3 changes: 3 additions & 0 deletions theme/boost/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -9625,6 +9625,9 @@ a.text-dark:hover, a.text-dark:focus {
text-align: right;
}
*/
.dir-rtl .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
transform: translateX(-0.9375rem); }

/**
* Moodle variables
*
Expand Down
3 changes: 3 additions & 0 deletions theme/classic/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -9828,6 +9828,9 @@ a.text-dark:hover, a.text-dark:focus {
text-align: right;
}
*/
.dir-rtl .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
transform: translateX(-0.75rem); }

/**
* Moodle variables
*
Expand Down

0 comments on commit fe60d58

Please sign in to comment.