|
@@ -2,10 +2,8 @@
|
|
|
@use 'sass:math';
|
|
|
|
|
|
$select-size: $text-input-height;
|
|
|
-$chevron-width: 0.375rem;
|
|
|
-$chevron-height: 0.375rem;
|
|
|
-$chevron-top-offset: math.div($select-size - $chevron-height, 2);
|
|
|
-$chevron-inline-end-offset: math.div($select-size - $chevron-width, 2);
|
|
|
+$chevron-size: 0.375rem;
|
|
|
+$chevron-offset: math.div($select-size - $chevron-size, 2);
|
|
|
|
|
|
@mixin select-arrow() {
|
|
|
background-image: linear-gradient(
|
|
@@ -22,12 +20,18 @@ $chevron-inline-end-offset: math.div($select-size - $chevron-width, 2);
|
|
|
theme('colors.text-label') 66%,
|
|
|
transparent 66%
|
|
|
);
|
|
|
- background-position:
|
|
|
- calc(100% - $chevron-top-offset - $chevron-width) $chevron-top-offset,
|
|
|
- calc(100% - $chevron-inline-end-offset) $chevron-top-offset;
|
|
|
+ background-position-y: $chevron-offset, $chevron-offset;
|
|
|
+ background-position-x: calc(100% - $chevron-offset - $chevron-size),
|
|
|
+ calc(100% - $chevron-offset);
|
|
|
+
|
|
|
+ [dir='rtl'] & {
|
|
|
+ background-position-x: $chevron-offset,
|
|
|
+ calc($chevron-offset + $chevron-size);
|
|
|
+ }
|
|
|
+
|
|
|
background-size:
|
|
|
- $chevron-width $chevron-width,
|
|
|
- $chevron-width $chevron-width;
|
|
|
+ $chevron-size $chevron-size,
|
|
|
+ $chevron-size $chevron-size;
|
|
|
background-repeat: no-repeat;
|
|
|
}
|
|
|
|