Skip to content

Instantly share code, notes, and snippets.

@wojtask9
Created May 12, 2017 13:35
Show Gist options
  • Save wojtask9/ec29db8435893dff63afcb22046e6193 to your computer and use it in GitHub Desktop.
Save wojtask9/ec29db8435893dff63afcb22046e6193 to your computer and use it in GitHub Desktop.
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