From 88f78415771bc76668498895f8cd4dfedf15a790 Mon Sep 17 00:00:00 2001 From: nanxiaobei Date: Thu, 6 Jul 2023 02:03:28 +0800 Subject: [PATCH] update ui --- assets/app.css | 4 ++-- assets/main.css | 43 ++++++++++++++++++------------------ layouts/_default/baseof.html | 2 +- layouts/_default/list.html | 10 ++++----- layouts/_default/single.html | 8 +++---- 5 files changed, 34 insertions(+), 33 deletions(-) diff --git a/assets/app.css b/assets/app.css index 5785865..6500156 100644 --- a/assets/app.css +++ b/assets/app.css @@ -29,7 +29,7 @@ @layer components { .btn { - @apply rounded-full bg-black px-7 py-4 text-sm text-white no-underline shadow-sm duration-100 active:scale-95 dark:bg-white dark:text-black; + @apply rounded-full bg-black px-7 py-4 text-sm text-white no-underline shadow duration-100 active:scale-95 dark:bg-white dark:text-black; } .link { @@ -76,7 +76,7 @@ } article pre { - @apply -mx-8 !p-8 shadow-sm; + @apply -mx-8 !p-8 shadow; } article blockquote { diff --git a/assets/main.css b/assets/main.css index 8b02730..8e3f9a3 100644 --- a/assets/main.css +++ b/assets/main.css @@ -1053,8 +1053,8 @@ body { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity)); text-decoration-line: none; - --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); - --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color); + --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition-duration: 100ms; } @@ -1178,18 +1178,14 @@ body { margin-bottom: 0.375rem; } +.mb-16 { + margin-bottom: 4rem; +} + .mb-2 { margin-bottom: 0.5rem; } -.mb-20 { - margin-bottom: 5rem; -} - -.mb-24 { - margin-bottom: 6rem; -} - .ml-1 { margin-left: 0.25rem; } @@ -1206,6 +1202,10 @@ body { margin-left: auto; } +.ml-px { + margin-left: 1px; +} + .mr-1 { margin-right: 0.25rem; } @@ -1438,10 +1438,6 @@ body { padding-bottom: 0.625rem; } -.pb-24 { - padding-bottom: 6rem; -} - .pl-3 { padding-left: 0.75rem; } @@ -1450,8 +1446,8 @@ body { padding-right: 0.75rem; } -.pt-16 { - padding-top: 4rem; +.pt-12 { + padding-top: 3rem; } .text-center { @@ -1536,6 +1532,11 @@ body { text-decoration-line: none; } +.antialiased { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + .opacity-60 { opacity: 0.6; } @@ -1544,9 +1545,9 @@ body { opacity: 0.7; } -.shadow-sm { - --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); - --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color); +.shadow { + --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } @@ -1627,8 +1628,8 @@ article pre { margin-left: -2rem; margin-right: -2rem; padding: 2rem !important; - --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); - --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color); + --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c3820f7..bc10234 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -42,7 +42,7 @@ {{ partial "header.html" . }}
{{ block "main" . }}{{ end }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 29c8fbc..d38a1c5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,7 +2,7 @@ {{ if and .Title (eq .Type "tags") }} -

#{{ .Title }}

+

#{{ .Title }}

{{ end }} @@ -20,10 +20,10 @@ {{ $avatar_url := $.Scratch.Get "avatar_url" }} {{ if or $avatar_url site.Params.name }} -
+
{{ if $avatar_url }}
{{ if gt .Weight 0 }} Featured {{ end }}

{{ .Title }}

- {{ .Title }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2a9d713..da2f2b1 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,11 +1,11 @@ {{ define "main" }}
-
+

{{ .Title }}

{{ if ne .Type "page" }} -
+
{{ if .Date }} {{ end }} @@ -40,14 +40,14 @@