Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
eaca6c0e
Commit
eaca6c0e
authored
7 years ago
by
Patrick Yeo
Committed by
Mark Otto
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Allow customizing Popover and Tooltip `font-size` outside of `$font-size-sm`
parent
ced70da4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scss/_popover.scss
+1
-1
scss/_popover.scss
scss/_tooltip.scss
+1
-1
scss/_tooltip.scss
scss/_variables.scss
+2
-0
scss/_variables.scss
with
4 additions
and
2 deletions
+4
-2
scss/_popover.scss
+
1
-
1
View file @
eaca6c0e
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
scss/_tooltip.scss
+
1
-
1
View file @
eaca6c0e
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
scss/_variables.scss
+
2
-
0
View file @
eaca6c0e
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment