SHARE
TWEET

SCSS (Sass + Compass) Gradient bar

MHLut Mar 13th, 2013 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @mixin gradient_bar($base-color: $sh_base, $inverse: FALSE) {
  2.     @if $inverse == TRUE {
  3.         $base-color: invert($base-color);
  4.     }
  5.     background-color: $base-color;
  6.     @include background-image(linear-gradient($base-color, lighten($base-color, $default_color_offset) 40%, lighten($base-color, $default_color_offset) 60%, $base-color));
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top