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 4c5456b8778..32ffee115e4 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -12713,10 +12713,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 fdf5ff15b85..d0d24ab67d0 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -12713,10 +12713,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