Summary Files Commits Branches @commit @diff @stats
path: root / src / styles.css
diff options
context:
space:
mode:
Commite874610a2fea74703e881a21c1a4a8b692fd8bc7 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-04 18:19:47 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-04 18:19:47 +0300
Files886008e51de3a73893141b2c740b9ef01a15ae92 /src/styles.css
syndamia.com-e874610a2fea74703e881a21c1a4a8b692fd8bc7.tar
syndamia.com-e874610a2fea74703e881a21c1a4a8b692fd8bc7.tar.gz
syndamia.com-e874610a2fea74703e881a21c1a4a8b692fd8bc7.zip
Parent9ec2707249dbe40438d07fb45f331760994feadf (diff)
Giant rework of how file lists are made
1 files changed, 22 insertions, 1 deletions
-rw-r--r--src/styles.css23
diff --git a/src/styles.css b/src/styles.css
index 06c308e..66cb5e1 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -375,12 +375,33 @@ blockquote > :last-child {
/* File tables */
+.file-wrapper {
+ margin: 0.5em 0;
+}
+
+.file-wrapper > summary {
+ background: url('/img/folder-plus-tabler.svg') no-repeat left top;
+ list-style: none;
+ padding-left: 1.5em;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+.file-wrapper[open] > summary {
+ background: url('/img/folder-minus-tabler.svg') no-repeat left top;
+}
+
+.file-wrapper > summary:hover {
+ cursor: pointer;
+}
+
.file-list {
table-layout: auto;
border-collapse: collapse;
margin-left: 1.5em;
width: auto;
- margin-top: -0.9em;
}
.file-list td, .file-list tr {