Skip to content

Commit

Permalink
refactor(tooltip): split out scss variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Werner committed Jan 28, 2018
1 parent 209d0da commit b62fa49
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/app/shared/components/VueTooltip/VueTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@
}
&:before {
background: $brand-accent;
color: $bg-color;
background: $tooltip-bg;
color: $tooltip-color;
content: attr(data-tip);
padding: 4px 8px;
padding: $tooltip-padding;
top: -36px;
white-space: nowrap;
box-shadow: $panel-shadow;
box-shadow: $tooltip-shadow;
}
&:after {
border-right: 6px solid transparent;
border-top: 6px solid $brand-accent;
border-top: 6px solid $tooltip-bg;
border-left: 6px solid transparent;
content: '';
height: 0;
Expand All @@ -104,6 +104,6 @@
}
.highlight {
border-bottom: 1px dashed $brand-accent;
border-bottom: 1px dashed $tooltip-highlight-color;
}
</style>
10 changes: 8 additions & 2 deletions src/app/shared/styles/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ $tab-group-header-item-hover-bg: $brand-primary;
$tab-item-transition: transform $transition-duration linear;

/* CheckBox */

$checkbox-color: $text-color;
$checkbox-padding: 0;
$checkbox-margin: $grid-unit 0;
Expand All @@ -188,4 +187,11 @@ $checkbox-transition: background $transition-duration cubic-bezier(0, .84, .83,
$checkbox-check: 2px solid #FFF;
$checkbox-check-margin: 0 $grid-unit * 2 0 0;
$checkbox-checked-bg: $brand-accent;
$checkbox-shadow: $panel-shadow
$checkbox-shadow: $panel-shadow;

/* Tooltip */
$tooltip-bg: $brand-accent;
$tooltip-color: $bg-color;
$tooltip-padding: $grid-unit / 2 $grid-unit;
$tooltip-shadow: $panel-shadow;
$tooltip-highlight-color: $tooltip-bg

0 comments on commit b62fa49

Please sign in to comment.