Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
hint.css/src/hint-color-types.scss
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
52 lines (45 sloc)
809 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* source: hint-color-types.scss | |
* | |
* Contains tooltips of various types based on color differences. | |
* | |
* Classes added: | |
* 1) hint--error | |
* 2) hint--warning | |
* 3) hint--info | |
* 4) hint--success | |
* | |
*/ | |
// mixin to generate different color style tooltips | |
@mixin hint-type($color) { | |
&:after { | |
background-color: $color; | |
text-shadow: 0 -1px 0px darken($color, $hintTextShadowDarkenAmount); | |
} | |
// generate arrow color style | |
@include arrow-border-color($color); | |
} | |
/** | |
* Error | |
*/ | |
.#{$hintPrefix}error { | |
@include hint-type($hintErrorColor); | |
} | |
/** | |
* Warning | |
*/ | |
.#{$hintPrefix}warning { | |
@include hint-type($hintWarningColor) | |
} | |
/** | |
* Info | |
*/ | |
.#{$hintPrefix}info { | |
@include hint-type($hintInfoColor) | |
} | |
/** | |
* Success | |
*/ | |
.#{$hintPrefix}success { | |
@include hint-type($hintSuccessColor) | |
} |