Skip to content
This repository was archived by the owner on Mar 7, 2023. It is now read-only.

Commit 0885695

Browse files
committed
Default SASS variables.
1 parent f4bc58b commit 0885695

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

app/styles/nsf-ember-tooltip/_styles.scss

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
All credit to the Tooltipster crew (https://github.com/iamceege/tooltipster).
33
This is just a SASS-y version of the default theme.
44
*/
5+
$tooltipster-color: white !default;
6+
$tooltipster-bg: #565656 !default;
7+
$tooltipster-border: black !default;
8+
$tooltipster-border-weight: 2px !default;
9+
$tooltipster-border-radius: 4px !default;
10+
$tooltipster-arrow-width: 10px !default;
11+
$tooltipster-padding: 6px 14px !default;
12+
$tooltipster-line-height: 18px !default;
513

614

715
/* This is the core CSS of Tooltipster */
@@ -161,12 +169,12 @@ the style tag due to animationDuration, and we try to avoid collisions and the u
161169
/* DEFAULT STYLE */
162170
.tooltipster-sidetip {
163171
.tooltipster-box {
164-
border-radius: 4px;
172+
border-radius: $tooltipster-border-radius;
165173
}
166174

167175
.tooltipster-content {
168-
line-height: 18px;
169-
padding: 6px 14px;
176+
line-height: $tooltipster-line-height;
177+
padding: $tooltipster-padding;
170178
}
171179

172180
.tooltipster-arrow {
@@ -190,5 +198,5 @@ the style tag due to animationDuration, and we try to avoid collisions and the u
190198
top: 0;
191199
}
192200

193-
@include tooltipster-variant(white, #565656, black);
201+
@include tooltipster-variant($tooltipster-color, $tooltipster-bg, $tooltipster-border, $tooltipster-border-weight, $tooltipster-arrow-width);
194202
}

0 commit comments

Comments
 (0)