Commit eaca6c0e authored by Patrick Yeo's avatar Patrick Yeo Committed by Mark Otto
Browse files

Allow customizing Popover and Tooltip `font-size` outside of `$font-size-sm`

parent ced70da4
Showing with 4 additions and 2 deletions
+4 -2
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element. // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
// So reset our font and text properties to avoid inheriting weird values. // So reset our font and text properties to avoid inheriting weird values.
@include reset-text(); @include reset-text();
font-size: $font-size-sm; font-size: $popover-font-size;
// Allow breaking very long words so they don't overflow the popover's bounds // Allow breaking very long words so they don't overflow the popover's bounds
word-wrap: break-word; word-wrap: break-word;
background-color: $popover-bg; background-color: $popover-bg;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element. // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
// So reset our font and text properties to avoid inheriting weird values. // So reset our font and text properties to avoid inheriting weird values.
@include reset-text(); @include reset-text();
font-size: $font-size-sm; font-size: $tooltip-font-size;
// Allow breaking very long words so they don't overflow the tooltip's bounds // Allow breaking very long words so they don't overflow the tooltip's bounds
word-wrap: break-word; word-wrap: break-word;
opacity: 0; opacity: 0;
......
...@@ -667,6 +667,7 @@ $card-columns-margin: $card-spacer-y !default; ...@@ -667,6 +667,7 @@ $card-columns-margin: $card-spacer-y !default;
// Tooltips // Tooltips
$tooltip-font-size: $font-size-sm !default;
$tooltip-max-width: 200px !default; $tooltip-max-width: 200px !default;
$tooltip-color: $white !default; $tooltip-color: $white !default;
$tooltip-bg: $black !default; $tooltip-bg: $black !default;
...@@ -682,6 +683,7 @@ $tooltip-arrow-color: $tooltip-bg !default; ...@@ -682,6 +683,7 @@ $tooltip-arrow-color: $tooltip-bg !default;
// Popovers // Popovers
$popover-font-size: $font-size-sm !default;
$popover-bg: $white !default; $popover-bg: $white !default;
$popover-max-width: 276px !default; $popover-max-width: 276px !default;
$popover-border-width: $border-width !default; $popover-border-width: $border-width !default;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment