Skip to content

Commit

Permalink
glass embeds as borders
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheraff committed Mar 22, 2024
1 parent 2a0f414 commit f4602df
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
6 changes: 5 additions & 1 deletion client/src/components/Bento/GridCell.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
grid-row: span var(--y);
border-radius: var(--s-0-5);
overflow: hidden;
border: 1px solid oklch(from var(--background) 23% 12% h);
margin: 1px;
box-shadow:
-1px -1px 1px 0 oklch(from var(--background) 25% 12% h),
1px 1px 1px 0 oklch(from var(--background) 15% 12% h),
0 0 1px 1px oklch(from var(--background) 20% 12% h);

padding: var(--s);

Expand Down
13 changes: 12 additions & 1 deletion client/src/components/Divider/Divider.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
.divider {
border: none;
height: 1px;
background-color: oklch(from var(--background) 23% 12% h);
background: linear-gradient(
to right,
oklch(from var(--background) 20% 12% h),
oklch(from var(--background) 15% 12% h)
);
box-shadow:
0 -0.5px 0.5px 0 oklch(from var(--background) 15% 12% h),
0 0.5px 0.5px 0 oklch(from var(--background) 25% 12% h);
margin: 1em 0;
}

Expand All @@ -19,4 +26,8 @@
width: 1px;
height: auto;
margin: calc(-1 * var(--s)) 0;
box-shadow:
-0.5px 0 0.5px 0 oklch(from var(--background) 15% 12% h),
0.5px 0 0.5px 0 oklch(from var(--background) 25% 12% h);
background-color: oklch(from var(--background) 20% 12% h);
}

0 comments on commit f4602df

Please sign in to comment.