summaryrefslogtreecommitdiff
path: root/assets/css/dropdown.css
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/dropdown.css')
-rw-r--r--assets/css/dropdown.css26
1 files changed, 26 insertions, 0 deletions
diff --git a/assets/css/dropdown.css b/assets/css/dropdown.css
new file mode 100644
index 0000000..57adb3b
--- /dev/null
+++ b/assets/css/dropdown.css
@@ -0,0 +1,26 @@
+/*
+ * == DROPDOWN
+ */
+
+.dropdown {
+ position: relative;
+ summary {
+ list-style: none;
+ cursor: pointer;
+ &::-webkit-details-marker {
+ display: none;
+ }
+ .content {
+ position: absolute;
+ }
+ details[open] summary::before {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ content: "";
+ cursor: default;
+ }
+ }
+}