diff --git a/src/_button.scss b/src/_button.scss new file mode 100644 index 0000000..2de6aae --- /dev/null +++ b/src/_button.scss @@ -0,0 +1,21 @@ +@mixin button($color-bg, $color-text) { + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + color: $color-text; + font-weight: 600; + text-decoration: none; + opacity: 0.8; + background-color: $color-bg; + padding: 0.5rem 1rem; + clip-path: var(--clip-path-button); + transition: all var(--animation-speed) var(--animation-type); + user-select: none; + + :hover, + :focus-visible { + opacity: 1; + text-decoration-color: unset; + } +} diff --git a/src/lib/Button.svelte b/src/lib/Button.svelte index ff70121..215e24e 100644 --- a/src/lib/Button.svelte +++ b/src/lib/Button.svelte @@ -13,29 +13,16 @@ diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 16780df..507fc86 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -87,6 +87,7 @@