From e7bb984f45d019374a30a78b6317d37aaaf6beeb Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 29 Aug 2023 19:46:32 +0400 Subject: [PATCH] Toggle header with checkbox --- archivebox/templates/core/snapshot.html | 1 + public/static/snapshot.css | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/archivebox/templates/core/snapshot.html b/archivebox/templates/core/snapshot.html index 571c1fcd..05f2d4ef 100644 --- a/archivebox/templates/core/snapshot.html +++ b/archivebox/templates/core/snapshot.html @@ -13,6 +13,7 @@
+
  {{title|safe}} diff --git a/public/static/snapshot.css b/public/static/snapshot.css index 350cc6ca..98e36e9e 100644 --- a/public/static/snapshot.css +++ b/public/static/snapshot.css @@ -18,6 +18,18 @@ small { border: 0; } +#header-toggle { + position: absolute; + top: 8px; + right: 8px; +} +#header-toggle:checked ~ .header-bottom { + display: block; +} +#header-toggle:not(:checked) ~ .header-bottom { + display: none; +} + .header { background-color: #aa1e55; }