aboutsummaryrefslogtreecommitdiffhomepage
path: root/web/src/details.html
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/details.html')
-rw-r--r--web/src/details.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/web/src/details.html b/web/src/details.html
new file mode 100644
index 0000000..8bbec30
--- /dev/null
+++ b/web/src/details.html
@@ -0,0 +1,13 @@
+<style>
+/* example: style based on attribute */
+details > summary {
+ color: red;
+}
+details[open] > summary {
+ color: green;
+}
+</style>
+<details>
+ <summary>Some text goes here</summary>
+ ... some more text goes here.
+</details>