corrade-http-templates – Blame information for rev 62
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
62 | office | 1 | // Gradients |
2 | |||
3 | @mixin gradient-bg($color) { |
||
4 | @if $enable-gradients { |
||
5 | background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x; |
||
6 | } @else { |
||
7 | background-color: $color; |
||
8 | } |
||
9 | } |
||
10 | |||
11 | // Horizontal gradient, from left to right |
||
12 | // |
||
13 | // Creates two color stops, start and end, by specifying a color and position for each color stop. |
||
14 | @mixin gradient-x($start-color: $gray-700, $end-color: $gray-800, $start-percent: 0%, $end-percent: 100%) { |
||
15 | background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); |
||
16 | background-repeat: repeat-x; |
||
17 | } |
||
18 | |||
19 | // Vertical gradient, from top to bottom |
||
20 | // |
||
21 | // Creates two color stops, start and end, by specifying a color and position for each color stop. |
||
22 | @mixin gradient-y($start-color: $gray-700, $end-color: $gray-800, $start-percent: 0%, $end-percent: 100%) { |
||
23 | background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); |
||
24 | background-repeat: repeat-x; |
||
25 | } |
||
26 | |||
27 | @mixin gradient-directional($start-color: $gray-700, $end-color: $gray-800, $deg: 45deg) { |
||
28 | background-image: linear-gradient($deg, $start-color, $end-color); |
||
29 | background-repeat: repeat-x; |
||
30 | } |
||
31 | @mixin gradient-x-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) { |
||
32 | background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color); |
||
33 | background-repeat: no-repeat; |
||
34 | } |
||
35 | @mixin gradient-y-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) { |
||
36 | background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color); |
||
37 | background-repeat: no-repeat; |
||
38 | } |
||
39 | @mixin gradient-radial($inner-color: $gray-700, $outer-color: $gray-800) { |
||
40 | background-image: radial-gradient(circle, $inner-color, $outer-color); |
||
41 | background-repeat: no-repeat; |
||
42 | } |
||
43 | @mixin gradient-striped($color: rgba($white, .15), $angle: 45deg) { |
||
44 | background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent); |
||
45 | } |