presentations

Presentations
Log | Files | Refs

mixins.scss (1619B)


      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 
     11 @mixin horizontal-gradient( $top, $bottom ) {
     12 	background: $top;
     13 	background: -moz-linear-gradient( left, $top 0%, $bottom 100% );
     14 	background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) );
     15 	background: -webkit-linear-gradient( left, $top 0%, $bottom 100% );
     16 	background: -o-linear-gradient( left, $top 0%, $bottom 100% );
     17 	background: -ms-linear-gradient( left, $top 0%, $bottom 100% );
     18 	background: linear-gradient( left, $top 0%, $bottom 100% );
     19 }
     20 
     21 @mixin radial-gradient( $outer, $inner, $type: circle ) {
     22 	background: $outer;
     23 	background: -moz-radial-gradient( center, $type cover,  $inner 0%, $outer 100% );
     24 	background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) );
     25 	background: -webkit-radial-gradient( center, $type cover,  $inner 0%, $outer 100% );
     26 	background: -o-radial-gradient( center, $type cover,  $inner 0%, $outer 100% );
     27 	background: -ms-radial-gradient( center, $type cover,  $inner 0%, $outer 100% );
     28 	background: radial-gradient( center, $type cover,  $inner 0%, $outer 100% );
     29 }