mixins.scss 1.6 KB

1234567891011121314151617181920212223242526272829
  1. @mixin vertical-gradient( $top, $bottom ) {
  2. background: $top;
  3. background: -moz-linear-gradient( top, $top 0%, $bottom 100% );
  4. background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) );
  5. background: -webkit-linear-gradient( top, $top 0%, $bottom 100% );
  6. background: -o-linear-gradient( top, $top 0%, $bottom 100% );
  7. background: -ms-linear-gradient( top, $top 0%, $bottom 100% );
  8. background: linear-gradient( top, $top 0%, $bottom 100% );
  9. }
  10. @mixin horizontal-gradient( $top, $bottom ) {
  11. background: $top;
  12. background: -moz-linear-gradient( left, $top 0%, $bottom 100% );
  13. background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) );
  14. background: -webkit-linear-gradient( left, $top 0%, $bottom 100% );
  15. background: -o-linear-gradient( left, $top 0%, $bottom 100% );
  16. background: -ms-linear-gradient( left, $top 0%, $bottom 100% );
  17. background: linear-gradient( left, $top 0%, $bottom 100% );
  18. }
  19. @mixin radial-gradient( $outer, $inner, $type: circle ) {
  20. background: $outer;
  21. background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
  22. background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) );
  23. background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
  24. background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
  25. background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
  26. background: radial-gradient( center, $type cover, $inner 0%, $outer 100% );
  27. }