Sha256: 1523de149254bda752b7ecadef3df754b2a858cc5b612bd9820c2ca748b47ac4
Contents?: true
Size: 1.96 KB
Versions: 10
Compression:
Stored size: 1.96 KB
Contents
@mixin linearGradient($gradient-color, $percentage, $reverse: false) { @if lightness($gradient-color) > lightness(#aaa) { color: #666; } @else { color: #fff; } border: 1px solid #A09E9E; @if $reverse { background-image: -webkit-gradient( linear, left top, left bottom, color-stop(0, darken($gradient-color, $percentage)), color-stop(1, $gradient-color) ); } @else { background-image: -webkit-gradient( linear, left top, left bottom, color-stop(0, $gradient-color), color-stop(1, darken($gradient-color, $percentage)) ); } } @mixin background($gradient-color, $percentage: 0%) { @if lightness($gradient-color) > lightness(#aaa) { color: #666; } @else { color: #fff; } background-color: darken($gradient-color, $percentage); } @if $flat { .gradient-primary { @include background($gradient-primary); } .gradient-primary-hl { @include background($gradient-primary, 10%); } .gradient-secondary { @include background($gradient-secondary); } .gradient-secondary-hl { @include background($gradient-secondary, 10%); } .gradient-secondary-alt { @include background($gradient-secondary-alt); } .gradient-secondary-alt-hl { @include background($gradient-secondary-alt-hl, 10%); } } @else { .gradient-primary { @include linearGradient($gradient-primary, 0%); } .gradient-secondary { @include linearGradient($gradient-secondary, 20%); } .gradient-secondary-hl { @include linearGradient($gradient-secondary, 20%, true); } .gradient-secondary-alt { @include linearGradient($gradient-secondary-alt, 10%); } .gradient-secondary-alt-hl { @include linearGradient($gradient-secondary-alt-hl, 10%); } }
Version data entries
10 entries across 10 versions & 1 rubygems