Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix more hover css
  • Loading branch information
mishig25 committed Jun 7, 2023
commit 6eb36301b7b33a1a1c73bd879590a5c95ea89645
2 changes: 1 addition & 1 deletion kit/preprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ function headingWithAnchorLink(code) {
return `<h${level} class="relative group">
<a
id="${id}"
class="header-link pr-1.5 text-lg hidden hover:block hover:absolute hover:p-1.5 hover:opacity-0 hover:group-hover:opacity-100 hover:right-full"
class="header-link text-lg hidden group-hover:block absolute right-full p-1.5"
href="#${id}"
>
<span><IconCopyLink/></span>
Expand Down
6 changes: 3 additions & 3 deletions kit/src/lib/Docstring.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
{@html highlightSignature(name)}
<a
id={anchor}
class="header-link invisible hover:group-hover:visible pr-2"
class="header-link invisible group-hover:visible pr-2"
href="#{anchor}"
>
<IconCopyLink />
Expand Down Expand Up @@ -179,7 +179,7 @@
<span class="group flex space-x-1.5 items-start">
<a
id={anchor}
class="header-link pr-0.5 text-lg hidden hover:block hover:absolute hover:p-1.5 hover:opacity-0 hover:group-hover:opacity-100 hover:right-full"
class="header-link text-lg hidden group-hover:block absolute p-1.5 right-full"
href={`#${anchor}`}
>
<span><IconCopyLink classNames="text-smd" /></span>
Expand All @@ -203,7 +203,7 @@
<span class="group flex space-x-1.5 items-start">
<a
id={anchor}
class="header-link pr-0.5 text-lg hidden hover:block hover:absolute hover:p-1.5 hover:opacity-0 hover:group-hover:opacity-100 hover:right-full"
class="header-link text-lg hidden group-hover:block absolute p-1.5 right-full"
href={`#${anchor}`}
>
<span><IconCopyLink classNames="text-smd" /></span>
Expand Down
2 changes: 1 addition & 1 deletion kit/src/lib/ExampleCodeBlock.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<div class="relative group rounded-md" bind:this={containerEl}>
<a
id={anchor}
class="header-link pr-0.5 text-lg hidden hover:block hover:absolute hover:p-1.5 hover:opacity-0 hover:group-hover:opacity-100 hover:right-full"
class="header-link text-lg hidden group-hover:block absolute p-1.5 right-full"
href={`#${anchor}`}
>
<span><IconCopyLink classNames="text-smd" /></span>
Expand Down