Skip to content

Commit 9b7add1

Browse files
committed
some cleanup
1 parent c76cc87 commit 9b7add1

4 files changed

Lines changed: 6 additions & 16 deletions

File tree

app/assets/main.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -190,17 +190,6 @@ body {
190190
outline: auto;
191191
}
192192

193-
a {
194-
border-radius: 4px;
195-
}
196-
197-
a:focus-visible,
198-
button:focus-visible,
199-
select:focus-visible {
200-
outline: 2px solid var(--accent);
201-
outline-offset: 2px;
202-
}
203-
204193
input:focus {
205194
border: 1px solid var(--accent);
206195
}

app/components/Button/Base.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defineExpose({
3232
<template>
3333
<button
3434
ref="el"
35-
class="group cursor-pointer inline-flex gap-x-1.5 items-center justify-center rounded-md active:rounded-4xl font-mono border border-solid [transition:all_200ms,border-radius_100ms] disabled:(opacity-40 cursor-not-allowed border-transparent) after:(content-[''] absolute inset-0 rounded-inherit pointer-events-none)"
35+
class="group cursor-pointer inline-flex gap-x-1.5 items-center justify-center rounded-md active:rounded-4xl font-mono border border-solid [transition:background-color,color,border,outline_200ms,border-radius_100ms] focus-visible:(outline-2 outline-accent outline-offset-2) after:(content-[''] absolute inset-0 rounded-inherit) disabled:(opacity-40 cursor-not-allowed border-transparent)"
3636
:class="{
3737
'text-sm px-4 py-2': size === 'medium',
3838
'text-xs px-2 py-0.5': size === 'small',

app/components/Button/Group.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const props = defineProps<{
77
<template>
88
<component
99
:is="props.as || 'div'"
10-
class="flex ms-auto rounded-2xl [&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none"
10+
class="flex [&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none"
1111
>
1212
<slot />
1313
</component>

app/components/Link/Base.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ const isButtonMedium = computed(() => props.size === 'medium' && props.variant !
6969
'text-bg bg-fg': variant === 'button-primary',
7070
'bg-transparent text-fg': variant === 'button-secondary',
7171
}"
72-
><slot
73-
/></span>
72+
>
73+
<slot />
74+
</span>
7475
<NuxtLink
7576
v-else
76-
class="group inline-flex gap-x-1 items-center justify-center"
77+
class="group inline-flex gap-x-1 items-center justify-center rounded-sm focus-visible:(outline-2 outline-accent)"
7778
:class="{
7879
'underline-offset-[0.2rem] underline decoration-1 decoration-fg/30': !isLinkAnchor && isLink,
7980
'font-mono text-fg hover:(decoration-accent text-accent) focus-visible:(decoration-accent text-accent) transition-colors duration-200':

0 commit comments

Comments
 (0)