Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Dec 14, 2023
1 parent 5b8e467 commit 9b33aef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions Source/Asset/CSS/Corner.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
.Corner {
--corner-size: 23px;
width: var(--corner-size);
height: var(--corner-size);
--Corner: 23px;
width: var(--Corner);
height: var(--Corner);

-webkit-mask-image: radial-gradient(
circle at var(--corner-size) var(--corner-size),
transparent calc(var(--corner-size) + -0.7px),
rgba(255, 255, 255, 1) calc(var(--corner-size) + 0.7px)
circle at var(--Corner) var(--Corner),
transparent calc(var(--Corner) + -0.7px),
rgba(255, 255, 255, 1) calc(var(--Corner) + 0.7px)
);

@apply absolute inset-auto bg-black;

&[data-corner="BottomLeft"] {
transform: rotate(270deg);

@apply bottom-0 left-0;
}

&[data-corner="BottomRight"] {
transform: rotate(180deg);

@apply bottom-0 right-0;
}

Expand All @@ -27,6 +29,7 @@

&[data-corner="TopRight"] {
transform: rotate(90deg);

@apply right-0 top-0;
}

Expand Down
2 changes: 1 addition & 1 deletion Source/Element/Corner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default async (Property: any) => (
<div
class="Corner"
data-corner={mergeProps({ id: "Default" }, Property).id}
style={{ "--corner-size": `${Size[0]()}px` }}
style={{ "--Corner": `${Size[0]()}px` }}
/>
);

Expand Down

0 comments on commit 9b33aef

Please sign in to comment.