update ui
This commit is contained in:
parent
7d3c730e86
commit
88f7841577
5 changed files with 34 additions and 33 deletions
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
<main
|
||||
class="prose prose-neutral relative mx-auto min-h-[calc(100%-10rem)] max-w-3xl px-8 pb-24 pt-16 dark:prose-invert"
|
||||
class="prose prose-neutral relative mx-auto min-h-[calc(100%-10rem)] max-w-3xl px-8 pb-16 pt-12 dark:prose-invert"
|
||||
>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<!-- Tag Title -->
|
||||
{{ if and .Title (eq .Type "tags") }}
|
||||
<h1 class="mb-24">#{{ .Title }}</h1>
|
||||
<h1 class="mb-16">#{{ .Title }}</h1>
|
||||
{{ end }}
|
||||
|
||||
<!-- $pages -->
|
||||
|
@ -20,10 +20,10 @@
|
|||
|
||||
{{ $avatar_url := $.Scratch.Get "avatar_url" }}<!---->
|
||||
{{ if or $avatar_url site.Params.name }}
|
||||
<div class="-mt-2 mb-20 flex items-center">
|
||||
<div class="-mt-2 mb-16 flex items-center">
|
||||
{{ if $avatar_url }}
|
||||
<div
|
||||
class="mr-5 shrink-0 rounded-full border-[0.5px] border-black/10 bg-white/50 p-3 shadow-sm dark:bg-white/[15%]"
|
||||
class="mr-5 shrink-0 rounded-full border-[0.5px] border-black/10 bg-white/50 p-3 shadow dark:bg-white/[15%]"
|
||||
>
|
||||
<img
|
||||
class="my-0 aspect-square w-16 rounded-full !bg-black/5 hover:animate-spin dark:!bg-black/80"
|
||||
|
@ -49,12 +49,12 @@
|
|||
<section class="relative my-10 first-of-type:mt-0 last-of-type:mb-0">
|
||||
{{ if gt .Weight 0 }}
|
||||
<span
|
||||
class="mb-2 inline-block text-[0.8rem] font-medium uppercase tracking-wider text-[#ff3b2d] opacity-70"
|
||||
class="mb-2 ml-px inline-block text-[0.8rem] font-medium uppercase tracking-wider text-[#ff3b2d] opacity-70"
|
||||
>Featured</span
|
||||
>
|
||||
{{ end }}
|
||||
<h2 class="!my-0 pb-1 font-bold !leading-none">{{ .Title }}</h2>
|
||||
<time class="text-sm opacity-60"
|
||||
<time class="text-sm antialiased opacity-60"
|
||||
>{{ .Date | time.Format ":date_medium" }}</time
|
||||
>
|
||||
<a class="absolute inset-0 text-[0]" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<article>
|
||||
<header class="mb-20">
|
||||
<header class="mb-16">
|
||||
<h1 class="!my-0 pb-2.5">{{ .Title }}</h1>
|
||||
|
||||
{{ if ne .Type "page" }}
|
||||
<div class="text-sm opacity-60">
|
||||
<div class="text-sm antialiased opacity-60">
|
||||
{{ if .Date }}
|
||||
<time>{{ .Date | time.Format ":date_medium" }}</time>
|
||||
{{ end }}<!---->
|
||||
|
@ -40,14 +40,14 @@
|
|||
<nav class="mt-24 flex rounded-lg bg-black/[3%] text-lg dark:bg-white/[8%]">
|
||||
{{ with $pages.Next . }}
|
||||
<a
|
||||
class="flex w-1/2 items-center rounded-l-md p-6 pr-3 no-underline hover:bg-black/[2%] dark:hover:bg-white/[3%]"
|
||||
class="flex w-1/2 items-center rounded-l-md p-6 pr-3 font-semibold no-underline hover:bg-black/[2%] dark:hover:bg-white/[3%]"
|
||||
href="{{ .Permalink }}"
|
||||
><span class="mr-1.5">←</span><span>{{ .Name }}</span></a
|
||||
>
|
||||
{{ end }}<!---->
|
||||
{{ with $pages.Prev . }}
|
||||
<a
|
||||
class="ml-auto flex w-1/2 items-center justify-end rounded-r-md p-6 pl-3 no-underline hover:bg-black/[2%] dark:hover:bg-white/[3%]"
|
||||
class="ml-auto flex w-1/2 items-center justify-end rounded-r-md p-6 pl-3 font-semibold no-underline hover:bg-black/[2%] dark:hover:bg-white/[3%]"
|
||||
href="{{ .Permalink }}"
|
||||
><span>{{ .Name }}</span><span class="ml-1.5">→</span></a
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue