[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 // Gradients 2 3 // scss-docs-start gradient-bg-mixin 4 @mixin gradient-bg($color: null) { 5 background-color: $color; 6 7 @if $enable-gradients { 8 background-image: var(--#{$variable-prefix}gradient); 9 } 10 } 11 // scss-docs-end gradient-bg-mixin 12 13 // scss-docs-start gradient-mixins 14 // Horizontal gradient, from left to right 15 // 16 // Creates two color stops, start and end, by specifying a color and position for each color stop. 17 @mixin gradient-x($start-color: $gray-700, $end-color: $gray-800, $start-percent: 0%, $end-percent: 100%) { 18 background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); 19 } 20 21 // Vertical gradient, from top to bottom 22 // 23 // Creates two color stops, start and end, by specifying a color and position for each color stop. 24 @mixin gradient-y($start-color: $gray-700, $end-color: $gray-800, $start-percent: null, $end-percent: null) { 25 background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); 26 } 27 28 @mixin gradient-directional($start-color: $gray-700, $end-color: $gray-800, $deg: 45deg) { 29 background-image: linear-gradient($deg, $start-color, $end-color); 30 } 31 32 @mixin gradient-x-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) { 33 background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color); 34 } 35 36 @mixin gradient-y-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) { 37 background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color); 38 } 39 40 @mixin gradient-radial($inner-color: $gray-700, $outer-color: $gray-800) { 41 background-image: radial-gradient(circle, $inner-color, $outer-color); 42 } 43 44 @mixin gradient-striped($color: rgba($white, .15), $angle: 45deg) { 45 background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent); 46 } 47 // scss-docs-end gradient-mixins
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |