tangled
alpha
login
or
join now
slipnote.app
/
slipnote
3
fork
atom
Built for people who think better out loud.
3
fork
atom
overview
issues
pulls
pipelines
button: Improve styling
isaaccorbrey.com
1 month ago
47a7562b
168eae2d
verified
This commit was signed with the committer's
known signature
.
isaaccorbrey.com
SSH Key Fingerprint:
SHA256:mwogCTZEXIXrYk4l7PaavTNPxe1Xqjf5jMIBe0LvAHU=
+10
-4
1 changed file
expand all
collapse all
unified
split
src
components
Button.svelte
+10
-4
src/components/Button.svelte
···
1
1
<script lang="ts">
2
2
import type { HTMLButtonAttributes } from "svelte/elements";
3
3
-
let { children, ...props }: HTMLButtonAttributes = $props();
3
3
+
let {
4
4
+
children,
5
5
+
class: className = "",
6
6
+
...props
7
7
+
}: HTMLButtonAttributes = $props();
4
8
</script>
5
9
6
10
<button
7
11
{...props}
8
12
class="
9
9
-
px-3 py-px font-base
13
13
+
px-4 py-px font-base
10
14
bg-transparent hover:bg-slate-950/7 active:bg-slate-950/15
11
15
border-s-slate-950 rounded-md
12
16
shadow-[1px_1px_3px_rgba(15,23,42,0.75)]
13
13
-
border-l border-t border-r-3 border-b-3
14
14
-
active:border-l-3 active:border-t-3 active:border-r active:border-b
17
17
+
border-l border-t border-r-4 border-b-4
18
18
+
active:border-l-4 active:border-t-4 active:border-r active:border-b
15
19
active:shadow-[inset_-1px_-1px_3px_rgba(15,23,42,0.75)]
20
20
+
focus-visible:outline-none focus-visible:border-blue-700
16
21
transition-all motion-reduce:transition-none duration-60
22
22
+
{className}
17
23
"
18
24
>
19
25
{@render children?.()}