Skip to content

Commit 16ed5a1

Browse files
author
Adrian Bece
committed
Include dist folder
1 parent 6de4bb3 commit 16ed5a1

4 files changed

Lines changed: 33 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules
2-
dist
32
.parcel-cache
43
index.html

dist/clay.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/clay.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/clay.scss

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/* --- DEFAULT VALUES --- */
2+
$default-background: rgba(0, 0, 0, 0.005);
3+
$default-border-radius: 32px;
4+
$default-shadow-outset: 16px 0 48px 0 rgba(0, 0, 0, 0.5);
5+
$default-shadow-inset-primary: -8px -8px 16px 0 rgba(0, 0, 0, 0.6);
6+
$default-shadow-inset-secondary: 0px 12px 24px 0 rgb(255, 255, 255);
7+
8+
/* --- MIXIN --- */
9+
@mixin clay(
10+
$background: $default-background,
11+
$border-radius: $default-border-radius,
12+
$shadow-outset: $default-shadow-outset,
13+
$shadow-inset-primary: $default-shadow-inset-primary,
14+
$shadow-inset-secondary: $default-shadow-inset-secondary
15+
) {
16+
background-color: $background;
17+
border-radius: var(--clay-border-radius, 32px);
18+
box-shadow: $shadow-outset, inset $shadow-inset-primary, inset $shadow-inset-secondary;
19+
}
20+
21+
/* --- UTIL CLASS --- */
22+
.clay {
23+
@include clay(
24+
$background: var(--clay-background, $default-background),
25+
$border-radius: var(--clay-border-radius, $default-border-radius),
26+
$shadow-outset: var(--clay-shadow-outset, $default-shadow-outset),
27+
$shadow-inset-primary: var(--clay-shadow-inset-primary, $default-shadow-inset-primary),
28+
$shadow-inset-secondary: var(--clay-shadow-inset-secondary, $default-shadow-inset-secondary)
29+
);
30+
}

0 commit comments

Comments
 (0)