From 88dcf490c2b5f2c2adeedfd2bc057e6be699a2de Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 25 Oct 2023 18:05:25 -0300 Subject: [PATCH] tailwind body, html and other stuff. --- static/styles.css | 50 -------------------------------------- static/styles.scss | 37 ---------------------------- templates/archive.html | 4 +-- templates/details.html | 4 +-- templates/footer.html | 2 +- templates/head_common.html | 10 ++++++++ templates/note.html | 14 ++++++----- templates/other.html | 6 +++-- templates/profile.html | 16 ++++++------ templates/relay.html | 6 +++-- 10 files changed, 40 insertions(+), 109 deletions(-) diff --git a/static/styles.css b/static/styles.css index e99bec5..da7ee4f 100644 --- a/static/styles.css +++ b/static/styles.css @@ -1,43 +1,3 @@ - -html { - font-size: 19px; - font-weight: 300; -} -@media (max-width: 580px) { - html { - font-size: 18px; - } -} -@media print { - html { - font-size: 17px; - margin: 0; - } -} - -body { - margin: 0; - margin-bottom: 4rem; -} -.theme--default body { - color: #373737; -} -.theme--dark body { - color: #fafafa; -} -.theme--default body { - background: #ffffff; -} -.theme--dark body { - background: #1e1e1e; -} -@media print { - body { - margin: 0; - color: #000000 !important; - } -} - .column_content { flex-grow: 0; flex-shrink: 0; @@ -157,14 +117,4 @@ body.other .column_content { } } -@media print { - @page { - margin: 2cm 3cm; - } - /* Safari specific styles */ - body.safari { - margin: 1cm 3cm; - } -} - /*# sourceMappingURL=styles.css.map */ diff --git a/static/styles.scss b/static/styles.scss index b268aeb..fa632da 100644 --- a/static/styles.scss +++ b/static/styles.scss @@ -91,33 +91,6 @@ $theme-map: null; @return map-get($theme-map, $key); } -/*# sourceMappingURL=styles.css.map */ -html { - font-size: 19px; - font-weight: 300; - @media (max-width: 580px) { - font-size: 18px; - } - @media print { - font-size: 17px; - margin: 0; - } -} -body { - @include themed() { - color: t($base7); - } - @include themed() { - background: t($bg-up); - } - margin: 0; - margin-bottom: 4rem; - @media print { - margin: 0; - color: #000000 !important; - } -} - .column_content { flex-grow: 0; flex-shrink: 0; @@ -223,13 +196,3 @@ body.other { } } } - -@media print { - @page { - margin: 2cm 3cm; - } - /* Safari specific styles */ - body.safari { - margin: 1cm 3cm; - } -} diff --git a/templates/archive.html b/templates/archive.html index 5cf9d8a..cf65131 100644 --- a/templates/archive.html +++ b/templates/archive.html @@ -1,5 +1,5 @@ - + {{.Title}} @@ -7,7 +7,7 @@ {{template "head_common" .}} - + {{template "top" .}}
from me add .bg-strongpink .after:translate-x-full - remove .bg-gray-300 .dark:bg-zinc + remove .bg-gray-300 .dark:bg-zinc-800 end otherwise add .hidden to #hidden-fields tell the next