prettier filetree

This commit is contained in:
Mylloon 2024-11-28 17:27:40 +01:00
parent 0a1a258e24
commit 41f6de4aba
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -3,6 +3,11 @@
:root { :root {
--max-width: 900px; --max-width: 900px;
--sidebar-width: 20%; --sidebar-width: 20%;
--shift-icon-filetree: -10px;
/* Size of icon */
--shift-icon-filetree-size: 80%;
--shift-icon-filetree-height: 2;
} }
main { main {
@ -42,11 +47,17 @@ aside li.collapsed > ul {
} }
aside li.directory::before { aside li.directory::before {
content: "+"; content: "📁";
margin-left: var(--shift-icon-filetree);
font-size: var(--shift-icon-filetree-size);
line-height: var(--shift-icon-filetree-height);
} }
aside li:not(.collapsed).directory::before { aside li:not(.collapsed).directory::before {
content: "-"; content: "📂";
margin-left: var(--shift-icon-filetree);
font-size: var(--shift-icon-filetree-size);
line-height: var(--shift-icon-filetree-height);
} }
aside li.directory { aside li.directory {