Skip to content

Commit

Permalink
Apply gradient from transparent to color (#42401)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaguiini authored Jul 14, 2022
1 parent d3d3ed4 commit c134c14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/base-styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
}

@if $direction == "bottom" {
background: linear-gradient(to top, rgba($color, 0), $color 90%);
background: linear-gradient(to top, transparent, $color 90%);
left: $edge;
right: $edge;
top: $edge;
Expand All @@ -86,7 +86,7 @@
}

@if $direction == "top" {
background: linear-gradient(to bottom, rgba($color, 0), $color 90%);
background: linear-gradient(to bottom, transparent, $color 90%);
top: calc(100% - $size);
left: $edge;
right: $edge;
Expand All @@ -95,7 +95,7 @@
}

@if $direction == "left" {
background: linear-gradient(to left, rgba($color, 0), $color 90%);
background: linear-gradient(to left, transparent, $color 90%);
top: $edge;
left: $edge;
bottom: $edge;
Expand All @@ -105,7 +105,7 @@
}

@if $direction == "right" {
background: linear-gradient(to right, rgba($color, 0), $color 90%);
background: linear-gradient(to right, transparent, $color 90%);
top: $edge;
bottom: $edge;
right: $edge;
Expand Down

0 comments on commit c134c14

Please sign in to comment.