Sha256: b625a99cc9f8a69218da50d6d1612ef9cb852e0f1429efff2d6aa960f91a51c6
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
@import "compass/typography/lists/inline-block-list"; // // Creates a pure CSS tool tip using border-styles // $tool-tip-color:#333 !default; $tool-tip-text-color:#fff !default; @mixin tool-tip($color: false, $dir: bl, $size: 7px, $text-color: $tool-tip-text-color){ $text-color: if($text-color, $text-color, if(luminance($color) == dark, #fff, #333) ); background:$color; color:$text-color; padding:.75em 1em; position:relative; @include inline-block; &:after{ content:""; display:block; position:absolute; width:0; border-width:$size $size 0; border-style:solid; border-color:$color transparent; border-color:inherit transparent; @if( $dir == bl or $dir == br ){ bottom: -$size; } @if( $dir == tl or $dir == tr ){ top: -$size; } @if( $dir == tl or $dir == bl ){ left:1em; } @if( $dir == tl or $dir == bl ){ right:1em; } @if( $dir == left ){ left:-$size; border-width:$size ($size * 1.8) $size 0; } @if( $dir == right ){ right:-$size; border-width:$size 0 $size ($size * 1.8); } @if( $dir == right or $dir == left ){ top:50%; margin-top:-$size; border-color:transparent $color; } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facades-0.0.2 | lib/facades/stylesheets/facades/ui/_tool-tip.scss |