mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-75115 theme_boost: Fix Bootstrap tooltips in RTL mode
This commit is contained in:
parent
f29f757f5f
commit
03a7d208f9
31
theme/boost/scss/moodle/bootstrap-rtl.scss
vendored
31
theme/boost/scss/moodle/bootstrap-rtl.scss
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user