Skip to content

Commit

Permalink
clip path bg
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchox5 committed Apr 12, 2023
1 parent 0558485 commit bebe23c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/_core-elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,16 @@ div[class^="ring-"] {
grid-area: 1/1/1/1;
@include alignment;
}
.surface::before {

.surface:before {
content: '';
position: absolute;
width: 200px;
height: 200px;
background-color: green;
clip-path: path('M140 20C73 20 20 74 20 140c0 135 136 170 228 303 88-132 229-173 229-303 0-66-54-120-120-120-48 0-90 28-109 69-19-41-60-69-108-69z');
}
.surface:hover {
background-color: red;
}
@each $size,
$var in $sizes {
Expand Down

0 comments on commit bebe23c

Please sign in to comment.