From e874610a2fea74703e881a21c1a4a8b692fd8bc7 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 4 May 2022 18:19:47 +0300 Subject: Giant rework of how file lists are made --- src/styles.css | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'src/styles.css') 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 { -- cgit v1.3.1-26-gb76a