Browse Source

Improve detail styling

gingerBill 3 years ago
parent
commit
b612edba5a
1 changed files with 6 additions and 12 deletions
  1. 6 12
      tools/odin-html-docs/style.css

+ 6 - 12
tools/odin-html-docs/style.css

@@ -110,24 +110,18 @@ details.doc-index ul {
 	list-style-type: none;
 	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 {
 details.odin-doc-toggle[open] > summary.hideme {
 	margin-bottom: 0.5em;
 	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 {
 details.code-example > summary {
 	font-weight: 700;
 	font-weight: 700;
 }
 }