From 20710df397424982861b40e588611d7a25a78442 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Thu, 17 Oct 2024 16:23:40 +1100 Subject: [PATCH] Update link detail page style --- links/templates/links/link_detail.html | 12 +++++++++--- new_theme/static/css/dist/styles.css | 17 +++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/links/templates/links/link_detail.html b/links/templates/links/link_detail.html index 2731f42..fa30612 100644 --- a/links/templates/links/link_detail.html +++ b/links/templates/links/link_detail.html @@ -18,11 +18,17 @@ {% endif %} -
- + diff --git a/new_theme/static/css/dist/styles.css b/new_theme/static/css/dist/styles.css index f451865..c54a089 100644 --- a/new_theme/static/css/dist/styles.css +++ b/new_theme/static/css/dist/styles.css @@ -937,6 +937,12 @@ video { margin-bottom: calc(1.5rem * var(--tw-space-y-reverse)); } +.space-y-2 > :not([hidden]) ~ :not([hidden]) { + --tw-space-y-reverse: 0; + margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); +} + .divide-y > :not([hidden]) ~ :not([hidden]) { --tw-divide-y-reverse: 0; border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse))); @@ -1613,6 +1619,12 @@ video { margin-bottom: calc(0px * var(--tw-space-y-reverse)); } + .sm\:space-x-2 > :not([hidden]) ~ :not([hidden]) { + --tw-space-x-reverse: 0; + margin-right: calc(0.5rem * var(--tw-space-x-reverse)); + margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))); + } + .sm\:p-6 { padding: 1.5rem; } @@ -1631,6 +1643,11 @@ video { padding-top: 1rem; padding-bottom: 1rem; } + + .sm\:text-base { + font-size: 1rem; + line-height: 1.5rem; + } } @media (min-width: 768px) {