_alert.scss
3 years ago
_background-variant.scss
3 years ago
_badge.scss
3 years ago
_border-radius.scss
3 years ago
_box-shadow.scss
3 years ago
_breakpoints.scss
3 years ago
_buttons.scss
3 years ago
_caret.scss
3 years ago
_clearfix.scss
3 years ago
_deprecate.scss
3 years ago
_float.scss
3 years ago
_forms.scss
3 years ago
_gradients.scss
3 years ago
_grid-framework.scss
3 years ago
_grid.scss
3 years ago
_hover.scss
3 years ago
_image.scss
3 years ago
_list-group.scss
3 years ago
_lists.scss
3 years ago
_nav-divider.scss
3 years ago
_pagination.scss
3 years ago
_reset-text.scss
3 years ago
_resize.scss
3 years ago
_screen-reader.scss
3 years ago
_size.scss
3 years ago
_table-row.scss
3 years ago
_text-emphasis.scss
3 years ago
_text-hide.scss
3 years ago
_text-truncate.scss
3 years ago
_transition.scss
3 years ago
_visibility.scss
3 years ago
_gradients.scss
46 lines
| 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 | } |
| 46 |