diff options
author | Loïc Hoguin <[email protected]> | 2019-09-09 19:29:19 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-09-09 19:31:54 +0200 |
commit | 9e73b9fbbf91ebcf5b8027d97275bffe77316e14 (patch) | |
tree | cb2082bcd47934744f1a036dbda2862cee1c6a56 /talks/gun-2.0/css/theme/template/mixins.scss | |
parent | 39dd660af26f88e78a9e511d16abedf93fd19587 (diff) | |
download | ninenines.eu-9e73b9fbbf91ebcf5b8027d97275bffe77316e14.tar.gz ninenines.eu-9e73b9fbbf91ebcf5b8027d97275bffe77316e14.tar.bz2 ninenines.eu-9e73b9fbbf91ebcf5b8027d97275bffe77316e14.zip |
Gun 2.0 talk
Diffstat (limited to 'talks/gun-2.0/css/theme/template/mixins.scss')
-rw-r--r-- | talks/gun-2.0/css/theme/template/mixins.scss | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/talks/gun-2.0/css/theme/template/mixins.scss b/talks/gun-2.0/css/theme/template/mixins.scss new file mode 100644 index 00000000..e0c56069 --- /dev/null +++ b/talks/gun-2.0/css/theme/template/mixins.scss @@ -0,0 +1,29 @@ +@mixin vertical-gradient( $top, $bottom ) { + background: $top; + background: -moz-linear-gradient( top, $top 0%, $bottom 100% ); + background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) ); + background: -webkit-linear-gradient( top, $top 0%, $bottom 100% ); + background: -o-linear-gradient( top, $top 0%, $bottom 100% ); + background: -ms-linear-gradient( top, $top 0%, $bottom 100% ); + background: linear-gradient( top, $top 0%, $bottom 100% ); +} + +@mixin horizontal-gradient( $top, $bottom ) { + background: $top; + background: -moz-linear-gradient( left, $top 0%, $bottom 100% ); + background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) ); + background: -webkit-linear-gradient( left, $top 0%, $bottom 100% ); + background: -o-linear-gradient( left, $top 0%, $bottom 100% ); + background: -ms-linear-gradient( left, $top 0%, $bottom 100% ); + background: linear-gradient( left, $top 0%, $bottom 100% ); +} + +@mixin radial-gradient( $outer, $inner, $type: circle ) { + background: $outer; + background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); + background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) ); + background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); + background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); + background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); + background: radial-gradient( center, $type cover, $inner 0%, $outer 100% ); +}
\ No newline at end of file |