From 41f6de4aba7eef793e17bed668e79f211bc8683e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 28 Nov 2024 17:27:40 +0100 Subject: [PATCH] prettier filetree --- static/css/cours.css | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/static/css/cours.css b/static/css/cours.css index eeb4729..9871b74 100644 --- a/static/css/cours.css +++ b/static/css/cours.css @@ -3,6 +3,11 @@ :root { --max-width: 900px; --sidebar-width: 20%; + --shift-icon-filetree: -10px; + + /* Size of icon */ + --shift-icon-filetree-size: 80%; + --shift-icon-filetree-height: 2; } main { @@ -42,11 +47,17 @@ aside li.collapsed > ul { } 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 { - 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 {