diff --git a/theme/boost/scss/moodle/bootstrap-rtl.scss b/theme/boost/scss/moodle/bootstrap-rtl.scss index da2a1e14525..ede468e9c7a 100644 --- a/theme/boost/scss/moodle/bootstrap-rtl.scss +++ b/theme/boost/scss/moodle/bootstrap-rtl.scss @@ -13,10 +13,31 @@ } } -.dir-rtl .custom-select { - background-position: 0.75rem center; -} +.dir-rtl { + .custom-select { + background-position: 0.75rem center; + } -.dir-rtl .custom-switch .custom-control-input:checked ~ .custom-control-label::after { - transform: translateX(-($custom-switch-width - $custom-control-indicator-size)); + .custom-switch .custom-control-input:checked ~ .custom-control-label::after { + transform: translateX(-($custom-switch-width - $custom-control-indicator-size)); + } + + .tooltip { + &.bs-tooltip-left, + &.bs-tooltip-right { + .arrow { + transform: rotate(180deg); + } + } + + &.bs-tooltip-left .arrow { + left: auto; + right: 0; + } + + &.bs-tooltip-right .arrow { + left: 0; + right: auto; + } + } } diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 384dc354f9e..c6df542e2ec 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -22861,10 +22861,20 @@ a.text-dark:hover, a.text-dark:focus { .dir-rtl .custom-select { background-position: 0.75rem center; } - .dir-rtl .custom-switch .custom-control-input:checked ~ .custom-control-label::after { transform: translateX(-0.9375rem); } +.dir-rtl .tooltip.bs-tooltip-left .arrow, .dir-rtl .tooltip.bs-tooltip-auto[x-placement^=left] .arrow, .dir-rtl .tooltip.bs-tooltip-right .arrow, .dir-rtl .tooltip.bs-tooltip-auto[x-placement^=right] .arrow { + transform: rotate(180deg); +} +.dir-rtl .tooltip.bs-tooltip-left .arrow, .dir-rtl .tooltip.bs-tooltip-auto[x-placement^=left] .arrow { + left: auto; + right: 0; +} +.dir-rtl .tooltip.bs-tooltip-right .arrow, .dir-rtl .tooltip.bs-tooltip-auto[x-placement^=right] .arrow { + left: 0; + right: auto; +} /** * Moodle variables diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 88e2dc8d6b9..cc4dc6c2e17 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -22861,10 +22861,20 @@ a.text-dark:hover, a.text-dark:focus { .dir-rtl .custom-select { background-position: 0.75rem center; } - .dir-rtl .custom-switch .custom-control-input:checked ~ .custom-control-label::after { transform: translateX(-0.75rem); } +.dir-rtl .tooltip.bs-tooltip-left .arrow, .dir-rtl .tooltip.bs-tooltip-auto[x-placement^=left] .arrow, .dir-rtl .tooltip.bs-tooltip-right .arrow, .dir-rtl .tooltip.bs-tooltip-auto[x-placement^=right] .arrow { + transform: rotate(180deg); +} +.dir-rtl .tooltip.bs-tooltip-left .arrow, .dir-rtl .tooltip.bs-tooltip-auto[x-placement^=left] .arrow { + left: auto; + right: 0; +} +.dir-rtl .tooltip.bs-tooltip-right .arrow, .dir-rtl .tooltip.bs-tooltip-auto[x-placement^=right] .arrow { + left: 0; + right: auto; +} /** * Moodle variables