Skip to content

Commit cd69d75

Browse files
committed
sync styles with Readme + some cleanup
1 parent c04c27e commit cd69d75

5 files changed

Lines changed: 13 additions & 14 deletions

File tree

app/components/AppHeader.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ onKeyStroke(
190190
</script>
191191

192192
<template>
193-
<header class="sticky top-0 z-50 border-b border-border">
194-
<div class="absolute inset-0 bg-bg/80 backdrop-blur-md" />
193+
<header class="sticky top-0 z-50 border-b border-border bg-bg/80 backdrop-blur-md">
195194
<nav
196195
:aria-label="$t('nav.main_navigation')"
197196
class="relative container min-h-14 flex items-center gap-2 z-1"

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="inline-flex items-stretch [&>*:not(:first-child)]:(-ms-px rounded-is-none) [&>*:not(:last-child)]:rounded-ie-none [&>*:focus-visible]:(relative z-40)"
10+
class="inline-flex items-stretch [&>*:not(:first-child)]:(-ms-px rounded-is-none) [&>*:not(:last-child)]:rounded-ie-none [&>*:hover]:(relative z-40) [&>*:focus-visible]:(relative z-40)"
1111
>
1212
<slot />
1313
</component>

app/components/Link/Base.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const isButtonMedium = computed(() => props.size === 'medium' && !isLink.value)
106106
/>
107107
<span
108108
v-else-if="isLinkAnchor && isLink"
109-
class="i-carbon:link size-[1em] opacity-0 group-hover/link:opacity-100 transition-opacity duration-200"
109+
class="i-carbon:link size-[1em] opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 transition-opacity duration-200"
110110
aria-hidden="true"
111111
/>
112112
<kbd

app/components/Readme.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,26 +135,26 @@ function handleClick(event: MouseEvent) {
135135
}
136136

137137
.readme :deep(a) {
138-
@apply underline-offset-[0.2rem] underline decoration-1 decoration-fg/30 font-mono text-fg transition-colors duration-200;
138+
@apply underline-offset-[0.2rem] underline decoration-1 decoration-fg/30 font-mono text-fg text-sm rounded-md transition-colors duration-200 outline-transparent active:scale-[0.98];
139139
}
140140
.readme :deep(a:hover) {
141-
@apply decoration-accent text-accent;
141+
@apply decoration-accent;
142142
}
143143
.readme :deep(a:focus-visible) {
144-
@apply decoration-accent text-accent;
144+
@apply text-accent outline-2 outline-accent outline-offset-2;
145145
}
146146

147147
.readme :deep(a[target='_blank']::after) {
148148
/* I don't know what kind of sorcery this is, but it ensures this icon can't wrap to a new line on its own. */
149149
content: '__';
150-
@apply inline i-carbon:launch rtl-flip ms-1 opacity-50;
150+
@apply inline i-carbon:launch rtl-flip ms-0.5 opacity-50;
151151
}
152152

153-
.readme :deep(a:focus-visible),
154-
.readme :deep(button:focus-visible) {
155-
outline: 2px solid var(--accent);
156-
outline-offset: 2px;
157-
border-radius: 4px;
153+
.readme :deep(a[target='_blank']:has(img)) {
154+
/* Hide icon for links containing images */
155+
&::after {
156+
display: none;
157+
}
158158
}
159159

160160
.readme :deep(code) {

app/pages/package/[[org]]/[name].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ const showSkeleton = shallowRef(false)
552552
<template>
553553
<DevOnly>
554554
<ButtonBase
555-
class="fixed bottom-4 inset-is-4 z-50 shadow-lg rounded-full! px-3! py-2!"
555+
class="fixed! bottom-4 inset-is-4 z-50 shadow-lg rounded-full! px-3! py-2!"
556556
classicon="i-simple-icons:skeleton"
557557
variant="primary"
558558
title="Toggle skeleton loader (development only)"

0 commit comments

Comments
 (0)