MDL-75115 theme_boost: Fix Bootstrap tooltips in RTL mode

This commit is contained in:
Miri Lipson 2023-07-10 11:36:01 +03:00 committed by Meirza
parent f29f757f5f
commit 03a7d208f9
3 changed files with 48 additions and 7 deletions

View File

@ -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;
}
}
}

View File

@ -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

View File

@ -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