feat: update tailwindcss to v4

This commit is contained in:
st1020 2025-05-22 21:03:59 +08:00
parent 7b9affd848
commit 9bd80c84cc
15 changed files with 2392 additions and 2790 deletions

View file

@ -13,7 +13,7 @@
class="block-bg relative mb-4 rounded-lg p-4 first-of-type:mt-0 last-of-type:mb-0 active:scale-95 lg:mb-6 lg:p-6"
>
{% if page.extra.cover.image %}
<figure class="mb-4 mt-0">
<figure class="mt-0 mb-4">
<img
class="h-auto w-full rounded-lg"
src="{{ get_url(path=page.extra.cover.image) }}"
@ -22,7 +22,7 @@
</figure>
{% endif %}<!---->
<h2 class="!my-0 pb-1 font-bold !leading-none">{{ page.title }}</h2>
<h2 class="my-0! pb-1 leading-none! font-bold">{{ page.title }}</h2>
<div class="not-prose my-1 truncate">
{% if page.description %}
@ -34,23 +34,23 @@
{% include "partials/page_info.html" %}
<a class="absolute inset-0 text-[0]" href="{{ page.permalink }}">{{ page.title }}</a>
<a class="absolute inset-0 text-[0px]" href="{{ page.permalink }}">{{ page.title }}</a>
</section>
{% endfor %}
<!-- Main Nav -->
{% if paginator is defined %}
<nav class="mt-16 flex">
<nav class="not-prose mt-16 flex font-bold">
{% if paginator.previous %}
<a
class="rounded-full bg-black px-4 py-3 text-sm text-white no-underline shadow duration-100 active:scale-95 dark:bg-white/80 dark:text-black"
class="rounded-full bg-black px-4 py-3 text-sm text-white no-underline duration-100 active:scale-95 dark:bg-white/80 dark:text-black"
href="{{ paginator.previous }}"
>← Prev Page</a
>
{% endif %}<!---->
{% if paginator.next %}
<a
class="ml-auto rounded-full bg-black px-4 py-3 text-sm text-white no-underline shadow duration-100 active:scale-95 dark:bg-white/80 dark:text-black"
class="ml-auto rounded-full bg-black px-4 py-3 text-sm text-white no-underline duration-100 active:scale-95 dark:bg-white/80 dark:text-black"
href="{{ paginator.next }}"
>Next Page →</a
>