diff options
author | Gaƫl Poupard <gael.poupard@orange.com> | 2020-06-26 17:06:20 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-12-04 08:52:03 +0300 |
commit | 9488978fb55286ba83e8193a871d1ff9815045b9 (patch) | |
tree | abb461d46722f107e54156709c88cf37ed9e24a6 /scss/_tooltip.scss | |
parent | 71ecc3323fb60ea05456470d10d17b614fe6dc04 (diff) |
feat(RTL): implement RTL
Using RTLCSS directives, renaming things to use logical names and following best practices.
Diffstat (limited to 'scss/_tooltip.scss')
-rw-r--r-- | scss/_tooltip.scss | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/scss/_tooltip.scss b/scss/_tooltip.scss index 4d405e0319..a98ff4db5f 100644 --- a/scss/_tooltip.scss +++ b/scss/_tooltip.scss @@ -43,18 +43,18 @@ } } -.bs-tooltip-right { +.bs-tooltip-end { padding: 0 $tooltip-arrow-height; .tooltip-arrow { - left: 0; + left: 0 #{"/* rtl:ignore */"}; width: $tooltip-arrow-height; height: $tooltip-arrow-width; &::before { - right: 0; - border-width: ($tooltip-arrow-width / 2) $tooltip-arrow-height ($tooltip-arrow-width / 2) 0; - border-right-color: $tooltip-arrow-color; + right: 0 #{"/* rtl:ignore */"}; + border-width: ($tooltip-arrow-width / 2) $tooltip-arrow-height ($tooltip-arrow-width / 2) 0 #{"/* rtl:ignore */"}; + border-right-color: $tooltip-arrow-color #{"/* rtl:ignore */"}; } } } @@ -73,18 +73,18 @@ } } -.bs-tooltip-left { +.bs-tooltip-start { padding: 0 $tooltip-arrow-height; .tooltip-arrow { - right: 0; + right: 0 #{"/* rtl:ignore */"}; width: $tooltip-arrow-height; height: $tooltip-arrow-width; &::before { - left: 0; - border-width: ($tooltip-arrow-width / 2) 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height; - border-left-color: $tooltip-arrow-color; + left: 0 #{"/* rtl:ignore */"}; + border-width: ($tooltip-arrow-width / 2) 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height #{"/* rtl:ignore */"}; + border-left-color: $tooltip-arrow-color #{"/* rtl:ignore */"}; } } } @@ -94,13 +94,13 @@ @extend .bs-tooltip-top; } &[x-placement^="right"] { - @extend .bs-tooltip-right; + @extend .bs-tooltip-end; } &[x-placement^="bottom"] { @extend .bs-tooltip-bottom; } &[x-placement^="left"] { - @extend .bs-tooltip-left; + @extend .bs-tooltip-start; } } |