Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 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
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const hostedEnsNodeVersion = ACTIVE_OMNIGRAPH_VERSION;
style={{ marginTop: "20px" }}
class="flex flex-col xl:flex-row justify-start xl:items-center gap-4">
<a
class="sl-markdown-content underline underline-offset-4 hover:underline-offset-2 hover:text-[var(--sl-color-accent-high)] transition-all duration-200"
class="sl-markdown-content underline underline-offset-4 hover:underline-offset-2 transition-[text-underline-offset] duration-200"
href={instanceURL}>{instanceURL}</a
>
<a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ const data = resolveOmnigraphStaticExample(id);
href="/docs/integrate/omnigraph/examples">
<Icon
name="left-arrow"
class="h-5 w-5 text-[var(--sl-color-accent)] group-hover:text-[var(--sl-color-white)] transition-colors duration-200"
class="h-5 w-5 text-[var(--sl-color-accent)]"
/>
<p class="not-content m-0 underline underline-offset-4 group-hover:underline-offset-2 transition-all duration-200">
<p class="not-content m-0 underline underline-offset-4 group-hover:underline-offset-2 transition-[text-underline-offset] duration-200">
Back to Examples{" "}
</p>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ The embedded StackBlitz editor runs entirely in your browser. Downloading and in
>
<Icon
name="left-arrow"
class="h-5 w-5 text-[var(--sl-color-accent)] group-hover:text-[var(--sl-color-accent-high)] transition-colors duration-200"
class="h-5 w-5 text-[var(--sl-color-accent)]"
/>
<div class="not-content m-0 underline underline-offset-4 group-hover:underline-offset-2 group-hover:text-[var(--sl-color-accent-high)] transition-all duration-200">
<div class="not-content m-0 underline underline-offset-4 group-hover:underline-offset-2 transition-[text-underline-offset] duration-200">
Back to enskit overview
</div>
</a>
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ You can edit the script and re-execute **`npm start`** in the terminal to run it
>
<Icon
name="left-arrow"
class="h-5 w-5 text-[var(--sl-color-accent)] group-hover:text-[var(--sl-color-accent-high)] transition-colors duration-200"
class="h-5 w-5 text-[var(--sl-color-accent)]"
/>
<div class="not-content m-0 underline underline-offset-4 group-hover:underline-offset-2 group-hover:text-[var(--sl-color-accent-high)] transition-all duration-200">
<div class="not-content m-0 underline underline-offset-4 group-hover:underline-offset-2 transition-[text-underline-offset] duration-200">
Back to enssdk overview
</div>
</a>
41 changes: 29 additions & 12 deletions docs/ensnode.io/src/styles/starlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,12 @@ a[rel="prev"]:hover {
color: var(--sl-color-white);
}

/* Override Starlight's default markdown link hover (which switches to
--sl-color-white): keep links their base color on hover so only the
underline-offset animates. */
.sl-markdown-content a:hover:not(:where(.not-content *)),
.sl-markdown-content a:hover:not(:where(.not-content *)) > span {
color: var(--sl-color-accent);
color: var(--sl-color-text-accent);
}

.sl-markdown-content > p a:not(:has(code), [role="tab"]),
Expand All @@ -217,19 +221,27 @@ a[rel="prev"]:hover {
text-decoration: underline;
text-underline-offset: 4px;

transition:
color 0.2s ease-in-out,
text-underline-offset 0.2s ease-in-out;
transition: text-underline-offset 0.2s ease-in-out;

&:hover {
text-underline-offset: 2px;
}
}

.sl-markdown-content > p a:has(code):not([role="tab"]),
.sl-markdown-content :is(ul, ol) > li a:has(code):not([role="tab"]) {
text-decoration: underline;
text-underline-offset: 4px;

transition: text-underline-offset 0.2s ease-in-out;

&:hover {
text-underline-offset: 2px;
}
}
Comment thread
notrab marked this conversation as resolved.

.sl-markdown-content > p a:not([role="tab"]):hover,
.sl-markdown-content :is(ul, ol) > li a:not([role="tab"]):hover,
starlight-toc a:hover {
color: var(--sl-color-accent-high);
color: var(--sl-color-text-accent);
}

.sl-markdown-content :is(h1, h2, h3, h4, h5, h6) > a {
Expand All @@ -242,6 +254,11 @@ starlight-toc a:hover {
}
}

.sl-markdown-content :is(h1, h2, h3, h4, h5, h6) > a:hover,
.sl-markdown-content :is(h1, h2, h3, h4, h5, h6) > a:hover > span {
color: var(--sl-color-white);
}

Comment thread
notrab marked this conversation as resolved.
Outdated
.sl-markdown-content :global(.anchor-link) {
display: inline;
}
Expand Down Expand Up @@ -332,8 +349,8 @@ starlight-toc a:hover {
font-weight: 500;
}

/* Only apply hover effects to:
* * non-selected items
/* Only apply hover effects to:
* * non-selected items
* * expandable items (in all states), including nested ones
*/
#starlight__sidebar a:not([aria-current="page"]):hover,
Expand Down Expand Up @@ -387,7 +404,7 @@ a.starlight-sidebar-topics-current .starlight-sidebar-topics-icon {

/* Make sure that all non-top-level sidebar items are:
* * not enlarged
* * not bolded
* * not bolded
* * the same color as the rest of the sidebar text
*/
ul.top-level details details > summary .group-label span {
Expand Down Expand Up @@ -432,7 +449,7 @@ ul.top-level details details > summary .group-label span {
transform: none !important;
}

/* Align "tablist" component to the left
/* Align "tablist" component to the left
* and remove the default full-width underline
*/
starlight-tabs ul[role="tablist"] {
Expand Down Expand Up @@ -603,7 +620,7 @@ starlight-tabs ul[role="tablist"] {
}
}

/* Custom icon logic for specific sidebar items based on URL -
/* Custom icon logic for specific sidebar items based on URL -
* hack since Starlight doesn't allow overriding icons directly. */

.starlight-sidebar-topics-icon svg {
Expand Down
Loading