diff options
| author | Chris Rebert <[email protected]> | 2016-01-09 14:28:12 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2016-01-09 14:28:12 -0800 |
| commit | f646ed79201d2eae403c1438cd9d0ea03ecff5e0 (patch) | |
| tree | 9098334ea86f86f517cb83fe98a53b6d674a5724 /scss | |
| parent | dedfffe5dbda53148c816e379f7ba93eb1ff36f6 (diff) | |
| parent | c3d1b7f256e99cc64c796bf58e19ee5c20fe7926 (diff) | |
| download | bootstrap-f646ed79201d2eae403c1438cd9d0ea03ecff5e0.tar.xz bootstrap-f646ed79201d2eae403c1438cd9d0ea03ecff5e0.zip | |
Merge pull request #18466 from twbs/tooltip-padding-vars
Introduce $tooltip-padding & $tooltip-padding-x vars
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/_tooltip.scss | 10 | ||||
| -rw-r--r-- | scss/_variables.scss | 3 |
2 files changed, 8 insertions, 5 deletions
diff --git a/scss/_tooltip.scss b/scss/_tooltip.scss index 941579ec9..a17aefc0a 100644 --- a/scss/_tooltip.scss +++ b/scss/_tooltip.scss @@ -14,7 +14,7 @@ &.tooltip-top, &.bs-tether-element-attached-bottom { padding: $tooltip-arrow-width 0; - margin-top: -3px; + margin-top: -$tooltip-margin; .tooltip-arrow { bottom: 0; @@ -27,7 +27,7 @@ &.tooltip-right, &.bs-tether-element-attached-left { padding: 0 $tooltip-arrow-width; - margin-left: 3px; + margin-left: $tooltip-margin; .tooltip-arrow { top: 50%; @@ -40,7 +40,7 @@ &.tooltip-bottom, &.bs-tether-element-attached-top { padding: $tooltip-arrow-width 0; - margin-top: 3px; + margin-top: $tooltip-margin; .tooltip-arrow { top: 0; @@ -53,7 +53,7 @@ &.tooltip-left, &.bs-tether-element-attached-right { padding: 0 $tooltip-arrow-width; - margin-left: -3px; + margin-left: -$tooltip-margin; .tooltip-arrow { top: 50%; @@ -68,7 +68,7 @@ // Wrapper for the tooltip content .tooltip-inner { max-width: $tooltip-max-width; - padding: 3px 8px; + padding: $tooltip-padding-y $tooltip-padding-x; color: $tooltip-color; text-align: center; background-color: $tooltip-bg; diff --git a/scss/_variables.scss b/scss/_variables.scss index 3d4bf34ce..6c3e725c2 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -485,6 +485,9 @@ $tooltip-max-width: 200px !default; $tooltip-color: #fff !default; $tooltip-bg: #000 !default; $tooltip-opacity: .9 !default; +$tooltip-padding-y: 3px !default; +$tooltip-padding-x: 8px !default; +$tooltip-margin: 3px !default; $tooltip-arrow-width: 5px !default; $tooltip-arrow-color: $tooltip-bg !default; |
