Skip to content

Commit

Permalink
Add styles for new tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
laCour committed Oct 8, 2017
1 parent 7bea561 commit f50ba8e
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions scss/modules/tooltips/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,78 @@
}
}
}

.c-tooltip__tip {
background-color: $color-shade-light;
color: $base-font-color;

&--top {
.c-tooltip__tip__arrow {
border-top-color: $color-shade-light;
}

&-left .c-tooltip__tip__arrow {
border-top-color: $color-shade-light;
}

&-right .c-tooltip__tip__arrow {
border-top-color: $color-shade-light;
}
}

&--right {
.c-tooltip__tip__arrow {
border-right-color: $color-shade-light;
}
}

&--bottom {
.c-tooltip__tip__arrow {
border-bottom-color: $color-shade-light;
}

&-left .c-tooltip__tip__arrow {
border-bottom-color: $color-shade-light;
}

&-right .c-tooltip__tip__arrow {
border-bottom-color: $color-shade-light;
}
}

&--left {
.c-tooltip__tip__arrow {
border-left-color: $color-shade-light;
}
}

&--success {
background-color: $color-green;

&.c-tooltip__tip {
&--top {
&::after,
&-left::after,
&-right::after {
border-top-color: $color-green;
}
}

&--right::after {
border-right-color: $color-green;
}

&--bottom {
&::after,
&-left::after,
&-right::after {
border-bottom-color: $color-green;
}
}

&--left::after {
border-left-color: $color-green;
}
}
}
}

0 comments on commit f50ba8e

Please sign in to comment.