Skip to content

Commit 07eadba

Browse files
committed
made it that the anchor link for heading in readme is visible over the whole header to make it easier to find
1 parent edd7541 commit 07eadba

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

app/components/Readme.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ function handleClick(event: MouseEvent) {
157157
font-size: 0.75em;
158158
}
159159
160-
.readme :deep(:is(h1, h2, h3, h4, h5, h6) a[href^='#']:hover::after) {
160+
.readme
161+
:deep(:is(h1, h2, h3, h4, h5, h6):is(:hover, :focus-visible, :focus-within) a[href^='#']::after) {
161162
@apply opacity-100;
162163
}
163164

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ defineOgImageComponent('Default', {
8989
:resolved-version="version"
9090
:display-version="pkg?.requestedVersion"
9191
/>
92-
<section class="container w-full pt-3" :class="$style.changelog">
92+
<section class="container w-full pt-3">
9393
<div
9494
class="pa-3 z-2 flex justify-between gap-4 h-14 b-b-1 border-border bg-bg top-[--combined-header-height]"
9595
:class="{
@@ -171,9 +171,3 @@ defineOgImageComponent('Default', {
171171
</section>
172172
</main>
173173
</template>
174-
175-
<style module>
176-
.changelog :global(.readme) :is(h1, h2, h3, h4, h5, h6) a[href^='#']::after {
177-
/* content: unset !important; */
178-
}
179-
</style>

0 commit comments

Comments
 (0)