From 3b3a40c7719d06d0915fa38ef50cf5829682e1de Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Sun, 16 Jun 2024 17:11:03 -0400 Subject: [PATCH] chore(prettier): format templates --- templates/base.tmpl | 350 ++++++++++++------ templates/components/activity.tmpl | 35 +- templates/components/document-card.tmpl | 21 +- templates/components/download-progress.tmpl | 40 +- templates/components/key-val-edit.tmpl | 28 +- templates/components/metadata.tmpl | 233 +++++++----- templates/components/streak-card.tmpl | 43 ++- templates/components/table.tmpl | 24 +- templates/pages/activity.tmpl | 35 +- templates/pages/admin-import-results.tmpl | 104 +++--- templates/pages/admin-import.tmpl | 184 ++++++---- templates/pages/admin-logs.tmpl | 77 ++-- templates/pages/admin.tmpl | 214 ++++++----- templates/pages/document.tmpl | 386 ++++++++++++-------- templates/pages/documents.tmpl | 147 +++++--- templates/pages/error.tmpl | 57 ++- templates/pages/home.tmpl | 169 +++++---- templates/pages/login.tmpl | 160 +++++--- templates/pages/progress.tmpl | 35 +- templates/pages/search.tmpl | 252 +++++++------ templates/pages/settings.tmpl | 273 ++++++++------ 21 files changed, 1748 insertions(+), 1119 deletions(-) diff --git a/templates/base.tmpl b/templates/base.tmpl index 268fa7b..320cec2 100644 --- a/templates/base.tmpl +++ b/templates/base.tmpl @@ -1,18 +1,26 @@ - + - + - - - + + + AnthoLume - {{ block "title" . }}{{ end }} @@ -32,7 +40,8 @@ html { height: calc(100% + env(safe-area-inset-bottom)); - padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); + padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 + env(safe-area-inset-left); } main { @@ -57,12 +66,12 @@ /* ----------------------------- */ /* -------- CSS Button -------- */ /* ----------------------------- */ - .css-button:checked+div { + .css-button:checked + div { visibility: visible; opacity: 1; } - .css-button+div { + .css-button + div { visibility: hidden; opacity: 0; } @@ -70,7 +79,7 @@ /* ----------------------------- */ /* ------- User Dropdown ------- */ /* ----------------------------- */ - #user-dropdown-button:checked+#user-dropdown { + #user-dropdown-button:checked + #user-dropdown { visibility: visible; opacity: 1; } @@ -99,26 +108,26 @@ transform-origin: 0% 100%; } - #mobile-nav-button input:checked~span { + #mobile-nav-button input:checked ~ span { opacity: 1; transform: rotate(45deg) translate(2px, -2px); } - #mobile-nav-button input:checked~span:nth-last-child(3) { + #mobile-nav-button input:checked ~ span:nth-last-child(3) { opacity: 0; transform: rotate(0deg) scale(0.2, 0.2); } - #mobile-nav-button input:checked~span:nth-last-child(2) { + #mobile-nav-button input:checked ~ span:nth-last-child(2) { transform: rotate(-45deg) translate(0, 6px); } - #mobile-nav-button input:checked~div { + #mobile-nav-button input:checked ~ div { transform: none; } @media (min-width: 1024px) { - #mobile-nav-button input~div { + #mobile-nav-button input ~ div { transform: none; } } @@ -133,8 +142,10 @@ @media (orientation: landscape) { #menu { - transform: translate(calc(-1 * (env(safe-area-inset-left) + 100%)), - 0); + transform: translate( + calc(-1 * (env(safe-area-inset-left) + 100%)), + 0 + ); } } @@ -142,141 +153,243 @@
- - - - - -

{{ block "header" . }}{{ end }}

+

+ {{ block "header" . }}{{ end }} +

- {{ template "svg/user" (dict "Size" 20) }} + {{ template "svg/user" (dict "Size" 20) }} -
-
-