Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add masks back to build pipe #408

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions build/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ const individual_colors_hsl = Object.keys(ColorsHSL)
[`${pfx}props.${hueName.toLowerCase()}-hsl.css`]: ColorsHSL[hueName]
}), {})

// const individuals = {
// 'props.masks.edges.css': MaskEdges,
// 'props.masks.corner-cuts.css': MaskCornerCuts,
// }
const individuals = {
'props.masks.edges.css': MaskEdges,
'props.masks.corner-cuts.css': MaskCornerCuts,
}

// gen design tokens
const jsonbundle = Object.entries({
Expand Down Expand Up @@ -107,7 +107,7 @@ Object.entries({
...mainbundle,
...individual_colors,
...individual_colors_hsl,
// ...individuals,
...individuals,
}).forEach(([filename, props]) => {
buildPropsStylesheet({filename, props}, {selector, prefix})
})
Expand Down
14 changes: 8 additions & 6 deletions src/props.masks.edges.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
:where(html) {
--mask-edge-scoop-bottom: radial-gradient(20px at 50% 100%,#0000 97%,#000) 50% / calc(1.9 * 20px) 100%;
--mask-edge-scoop-top: radial-gradient(20px at 50% 0,#0000 97%,#000) 50% / calc(1.9 * 20px) 100%;
--mask-edge-scoop-vertical: radial-gradient(20px at 50% 20px,#0000 97%,#000) 50% -20px / calc(1.9 * 20px) 100%;
--mask-edge-scoop-vertical: radial-gradient(20px at 50% 20px,#0000 97%,#000) 50% -20px/ calc(1.9 * 20px) 100%;
--mask-edge-scoop-left: radial-gradient(20px at 0 50%,#0000 97%,#000) 50%/ 100% calc(1.9 * 20px);
--mask-edge-scoop-right: radial-gradient(20px at 100% 50%,#0000 97%,#000) 50% / 100% calc(1.9 * 20px);
--mask-edge-scoop-horizontal: radial-gradient(20px at 20px 50%,#0000 97%,#000) -20px / 100% calc(1.9 * 20px);
--mask-edge-scoop-right: radial-gradient(20px at 100% 50%,#0000 97%,#000) 50%/ 100% calc(1.9 * 20px);
--mask-edge-scoop-horizontal: radial-gradient(20px at 20px 50%,#0000 97%,#000) -20px/ 100% calc(1.9 * 20px);
--mask-edge-scalloped:
radial-gradient(farthest-side,#000 97%,#0000) 0 0 / 20px 20px round,
linear-gradient(#000 0 0) 50% / calc(100% - 20px) calc(100% - 20px) no-repeat
linear-gradient(#000 0 0) 50%/calc(100% - 20px) calc(100% - 20px) no-repeat
;
--mask-edge-scalloped-bottom:
linear-gradient(to top,#0000 20px,#000 0),
Expand Down Expand Up @@ -67,8 +67,10 @@
--mask-edge-zig-zag-right: conic-gradient(from -135deg at right,#0000,#000 1deg 90deg,#0000 91deg) 50% / 100% calc(2 * 20px);
--mask-edge-zig-zag-horizontal:
conic-gradient(from 45deg at left ,#0000,#000 1deg 90deg,#0000 91deg) left / 51% calc(2 * 20px) repeat-y,
conic-gradient(from -135deg at right,#0000,#000 1deg 90deg,#0000 91deg) right / 51% calc(2 * 20px) repeat-y;
conic-gradient(from -135deg at right,#0000,#000 1deg 90deg,#0000 91deg) right / 51% calc(2 * 20px) repeat-y
;
--mask-edge-zig-zag-vertical:
conic-gradient(from 135deg at top ,#0000,#000 1deg 90deg,#0000 91deg) top / calc(2 * 20px) 51% repeat-x,
conic-gradient(from -45deg at bottom,#0000,#000 1deg 90deg,#0000 91deg) bottom / calc(2 * 20px) 51% repeat-x;
conic-gradient(from -45deg at bottom,#0000,#000 1deg 90deg,#0000 91deg) bottom / calc(2 * 20px) 51% repeat-x
;
}
Loading