Skip to content
Merged
Changes from 1 commit
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
31 changes: 24 additions & 7 deletions docs/ensnode.io/src/styles/starlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ a[rel="prev"]:hover {
}

.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 @@ -226,10 +226,22 @@ a[rel="prev"]:hover {
}
}

.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