Created
May 12, 2017 13:35
-
-
Save wojtask9/ec29db8435893dff63afcb22046e6193 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/scss/_tooltip.scss b/scss/_tooltip.scss | |
index d67dc4460..900e55100 100644 | |
--- a/scss/_tooltip.scss | |
+++ b/scss/_tooltip.scss | |
@@ -10,12 +10,12 @@ | |
// Allow breaking very long words so they don't overflow the tooltip's bounds | |
word-wrap: break-word; | |
opacity: 0; | |
+ margin: $tooltip-margin; | |
&.show { opacity: $tooltip-opacity; } | |
&.bs-tooltip-top { | |
padding: $tooltip-arrow-width 0; | |
- margin-top: -$tooltip-margin; | |
.arrow::before { | |
bottom: 0; | |
@@ -28,7 +28,6 @@ | |
} | |
&.bs-tooltip-right { | |
padding: 0 $tooltip-arrow-width; | |
- margin-left: $tooltip-margin; | |
.arrow::before { | |
top: 50%; | |
@@ -41,7 +40,6 @@ | |
} | |
&.bs-tooltip-bottom { | |
padding: $tooltip-arrow-width 0; | |
- margin-top: $tooltip-margin; | |
.arrow::before { | |
top: 0; | |
@@ -54,7 +52,6 @@ | |
} | |
&.bs-tooltip-left { | |
padding: 0 $tooltip-arrow-width; | |
- margin-left: -$tooltip-margin; | |
.arrow::before { | |
top: 50%; | |
diff --git a/scss/_variables.scss b/scss/_variables.scss | |
index fccee460b..f3965da80 100644 | |
--- a/scss/_variables.scss | |
+++ b/scss/_variables.scss | |
@@ -696,7 +696,7 @@ $tooltip-bg: $black !default; | |
$tooltip-opacity: .9 !default; | |
$tooltip-padding-y: 3px !default; | |
$tooltip-padding-x: 8px !default; | |
-$tooltip-margin: 3px !default; | |
+$tooltip-margin: 0px !default; | |
$tooltip-arrow-width: 5px !default; | |
$tooltip-arrow-color: $tooltip-bg !default; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment