Skip to content

Commit 1a73f88

Browse files
committed
style: make buttons and links look clickable
1 parent f0cc773 commit 1a73f88

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

app/components/Button/Base.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ defineExpose({
2929
<template>
3030
<button
3131
ref="el"
32-
class="group cursor-pointer inline-flex gap-x-1 items-center justify-center font-mono border border-border rounded-md transition-all duration-200 disabled:(opacity-40 cursor-not-allowed border-transparent) aria-pressed:(bg-fg text-bg border-fg hover:enabled:(text-bg/50))"
32+
class="group cursor-pointer inline-flex gap-x-1 items-center justify-center font-mono border border-border rounded-md transition-all duration-200 disabled:(opacity-40 cursor-not-allowed border-transparent) aria-pressed:(bg-fg text-bg border-fg hover:enabled:(text-bg/50)) bg-gradient-to-t dark:bg-gradient-to-b"
3333
:class="{
3434
'text-sm px-4 py-2': variant !== 'tag',
3535
'text-xs px-2 py-0.5': variant === 'tag',
36-
'bg-transparent text-fg hover:enabled:(bg-accent/30 border-fg) focus-visible:enabled:(bg-accent/30 border-fg)':
36+
'from-fg/10 via-transparent to-transparent text-fg hover:enabled:(bg-accent/20 border-accent) focus-visible:enabled:(bg-accent/20 border-accent)':
3737
variant === 'tag' || variant === 'secondary',
38-
'text-bg bg-accent hover:enabled:(bg-accent/50) focus-visible:enabled:(bg-accent/50)':
38+
'text-black from-accent via-accent to-accent/30 hover:enabled:(bg-accent/50) focus-visible:enabled:(bg-accent/50)':
3939
variant === 'primary',
4040
}"
4141
:type="props.type"

app/components/Link/Base.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ const props = withDefaults(
6161
:class="{
6262
'text-fg underline-offset-[0.2rem] underline decoration-1 decoration-fg/50 hover:(no-underline text-accent) focus-visible:(no-underline text-accent) transition-colors duration-200':
6363
variant === 'link',
64-
'gap-x-1 font-mono border border-border rounded-md transition-all duration-200 aria-current:(bg-fg text-bg border-fg hover:enabled:(text-bg/50))':
64+
'font-mono border border-border rounded-md transition-all duration-200 aria-current:(bg-fg text-bg border-fg hover:(text-bg/50)) bg-gradient-to-t dark:bg-gradient-to-b':
6565
variant !== 'link',
6666
'text-sm px-4 py-2': variant !== 'tag' && variant !== 'link',
6767
'text-xs px-2 py-0.5': variant === 'tag',
68-
'bg-transparent text-fg hover:(bg-accent/30 border-fg) focus-visible:(bg-accent/30 border-fg)':
68+
'from-fg/10 via-transparent to-transparent text-fg hover:(bg-accent/20 border-accent) focus-visible:(bg-accent/20 border-accent)':
6969
variant === 'tag' || variant === 'button-secondary',
70-
'text-bg bg-fg hover:(bg-accent/90) focus-visible:(bg-accent/90)':
70+
'text-black from-accent via-accent to-accent/30 hover:(bg-accent/50) focus-visible:(bg-accent/50)':
7171
variant === 'button-primary',
7272
}"
7373
:to="to"

0 commit comments

Comments
 (0)