fix position of audio permission modal in RTL (chrome / firefox)

This commit is contained in:
KDSBrowne 2019-09-17 15:07:31 +00:00
parent add37bfda4
commit e7b53d34eb

View File

@ -16,6 +16,7 @@
--arrow-left: -20px;
--arrow-top-edge: -2.5rem;
--arrow-left-edge: -21rem;
--rtl-hint-top: 15rem;
}
@mixin arrowIconStyle() {
@ -55,6 +56,12 @@
}
}
@mixin useRTLPosition() {
right: none;
left: none;
top: var(--rtl-hint-top);
}
@mixin positionHint() {
:global(.browser-edge) & {
left: var(--position-left-edge);
@ -72,8 +79,7 @@
right: auto;
[dir="rtl"] & {
right: var(--position-left-firefox-left-edge);
left: auto;
@include useRTLPosition();
}
}
:global(.browser-chrome) & {
@ -82,8 +88,7 @@
right: auto;
[dir="rtl"] & {
left: auto;
right: var(--position-left-chrome);
@include useRTLPosition();
}
}
:global(.browser-safari) & {
@ -158,7 +163,7 @@
width: 340px;
[dir="rtl"] & {
padding-right: 0 var(--jumbo-padding-x) 0 0;
padding: 0 var(--jumbo-padding-x) 0 0;
}
small {