Skip to content

Commit 2ac87dd

Browse files
committed
feat: Add styling to details tag
1 parent 2da7ecb commit 2ac87dd

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

assets/css/v2/style.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,21 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
10141014
align-items: flex-start;
10151015
}
10161016

1017+
/* Details/Summary */
1018+
details summary {
1019+
color: oklch(var(--color-brand));
1020+
transition: text-decoration-color 0.15s ease-in-out;
1021+
1022+
& ~ * {
1023+
margin-top: 1rem;
1024+
}
1025+
}
1026+
1027+
details:hover {
1028+
cursor: pointer;
1029+
text-decoration-color: oklch(var(--color-brand) / 0.8);
1030+
}
1031+
10171032
/* Table of Contents */
10181033
#TableOfContents {
10191034
/* Close all TOC on sidebar */
@@ -1096,7 +1111,7 @@ h3:target,
10961111
h4:target,
10971112
h5:target,
10981113
h6:target {
1099-
color: var(--color-brand);
1114+
color: oklch(var(--color-brand));
11001115

11011116
.headerlink::before {
11021117
display: block !important;

0 commit comments

Comments
 (0)