Sha256: 6e99fda44df4b9e6b90e20f0cb767af72098db2a745a72278f175fba2d20f33f

Contents?: true

Size: 1.04 KB

Versions: 5

Compression:

Stored size: 1.04 KB

Contents

=fancy-gradient($color1, $color2)
  $top_shine: lighten($color1, 18)
  $bottom_glow: lighten($color2, 10)
  $top_middle: $color1
  $middle: lighten($color2, 3)
  $bottom_middle: $color2
  +background-image(linear-gradient($top_shine, $top_middle 10%, $middle 50%, $bottom_middle 50%, $bottom_glow))

=fancy-gradient-active($color1, $color2)
  $top: lighten($color2, 6)
  $bottom: lighten($color2, 14)
  $top_middle: lighten($color2, 8)
  $middle: lighten($color2, 4)
  $bottom_middle: lighten($color2, 1)
  +background-image(linear-gradient($top, $top_middle 30%, $middle 50%, $bottom_middle 50%, $bottom))

=fancy-matte-gradient($color1, $color2)
  +background-image(linear-gradient($color1, $color2))

=fancy-matte-gradient-active($color1, $color2)
  $top: lighten($color2, 5)
  $bottom: lighten($color2, 15)
  $middle: lighten($color2, 8)
  +background-image(linear-gradient($top, $middle 40%, $middle 85%, $bottom))

/* incase an inverted custom gradient isn't specified
=custom-fancy-gradient-active($color1, $color2)
  +custom-fancy-gradient($color1, $color2)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fancy-buttons-1.2.0 lib/stylesheets/_fancy-gradient.sass
fancy-buttons-1.1.2 lib/stylesheets/_fancy-gradient.sass
fancy-buttons-1.1.1 lib/stylesheets/_fancy-gradient.sass
fancy-buttons-1.1.0 lib/stylesheets/_fancy-gradient.sass
fancy-buttons-1.1.0.alpha.1 lib/stylesheets/_fancy-gradient.sass