From cc5ab7a365e2e045cc1af43727e56f56d088a0df Mon Sep 17 00:00:00 2001 From: winter Date: Fri, 7 Feb 2025 19:45:36 +0000 Subject: more stuff :3 - post form detects images better - post form is preserved across navigations - post form has most options hidden - details/summaries use nicer icons --- static/misc.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'static/misc.css') diff --git a/static/misc.css b/static/misc.css index d9a491c..ab2ba35 100644 --- a/static/misc.css +++ b/static/misc.css @@ -143,6 +143,23 @@ pre { } } +summary { + display: flex; + align-items: center; + gap: var(--spacing-single); + + &::before { + display: inline-block; + width: 1em; + aspect-ratio: 1; + content: ""; + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m15 19l-1.425-1.4l4.6-4.6H2v-2h16.175L13.6 6.4L15 5l7 7z'/%3E%3C/svg%3E"); + } +} +details[open] > summary::before { + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 19v-2h6.6L4 5.4L5.4 4L17 15.6V9h2v10z'/%3E%3C/svg%3E"); +} + [hidden] { display: none !important; } -- cgit v1.3