Skip to content

Commit 259b748

Browse files
committed
feat: Add styling to details tag
1 parent 44932fc commit 259b748

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
@@ -931,6 +931,21 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
931931
align-items: flex-start;
932932
}
933933

934+
/* Details/Summary */
935+
details summary {
936+
color: oklch(var(--color-brand));
937+
transition: text-decoration-color 0.15s ease-in-out;
938+
939+
& ~ * {
940+
margin-top: 1rem;
941+
}
942+
}
943+
944+
details:hover {
945+
cursor: pointer;
946+
text-decoration-color: oklch(var(--color-brand) / 0.8);
947+
}
948+
934949
/* Table of Contents */
935950
#TableOfContents {
936951
/* Close all TOC on sidebar */
@@ -1013,7 +1028,7 @@ h3:target,
10131028
h4:target,
10141029
h5:target,
10151030
h6:target {
1016-
color: var(--color-brand);
1031+
color: oklch(var(--color-brand));
10171032

10181033
.headerlink::before {
10191034
display: block !important;

0 commit comments

Comments
 (0)