aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-01-20 00:36:44 +0000
committergingerBill <bill@gingerbill.org>2022-01-20 00:36:44 +0000
commitb612edba5a7322bede879627d3b39f4587deccfe (patch)
treef147ae8d17415c8b0249253f3653a909f8d3de61
parentd39c05b1839b36f95e33bbaf5087351e31abf2a6 (diff)
Improve detail styling
-rw-r--r--tools/odin-html-docs/style.css18
1 files changed, 6 insertions, 12 deletions
diff --git a/tools/odin-html-docs/style.css b/tools/odin-html-docs/style.css
index c4f4c5ebf..86b43323d 100644
--- a/tools/odin-html-docs/style.css
+++ b/tools/odin-html-docs/style.css
@@ -110,24 +110,18 @@ details.doc-index ul {
list-style-type: none;
}
-
-.odin-doc-toggle {
-
+details.odin-doc-toggle > summary.hideme span:before {
+ content: "Expand description";
+}
+details.odin-doc-toggle[open] > summary.hideme span:before {
+ content: "Close description";
+ opacity: 0.8;
}
details.odin-doc-toggle[open] > summary.hideme {
margin-bottom: 0.5em;
}
-details.odin-doc-toggle > summary.hideme {
- cursor: pointer;
-}
-
-details.odin-doc-toggle[open] > summary.hideme span {
- content: "";
-}
-
-
details.code-example > summary {
font-weight: 700;
} \ No newline at end of file