JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 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% ); |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame^] | 29 | } |
| 30 | |
| 31 | @mixin light-bg-text-color( $color ) { |
| 32 | section.has-light-background { |
| 33 | &, h1, h2, h3, h4, h5, h6 { |
| 34 | color: $color; |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | @mixin dark-bg-text-color( $color ) { |
| 40 | section.has-dark-background { |
| 41 | &, h1, h2, h3, h4, h5, h6 { |
| 42 | color: $color; |
| 43 | } |
| 44 | } |
JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 45 | } |