diff --git a/axum_server/styles/output.css b/axum_server/styles/output.css index e7d924d..538f479 100644 --- a/axum_server/styles/output.css +++ b/axum_server/styles/output.css @@ -1,5 +1,5 @@ /* -! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com +! tailwindcss v3.4.11 | MIT License | https://tailwindcss.com */ /* @@ -554,6 +554,10 @@ video { --tw-contain-style: ; } +.col-span-2 { + grid-column: span 2 / span 2; +} + .row-span-3 { grid-row: span 3 / span 3; } @@ -629,6 +633,11 @@ video { margin-bottom: 1.5rem; } +.my-auto { + margin-top: auto; + margin-bottom: auto; +} + .mb-1 { margin-bottom: 0.25rem; } @@ -721,6 +730,10 @@ video { width: 100%; } +.max-w-maxindex { + max-width: 100rem; +} + .max-w-read { max-width: 64rem; } @@ -773,6 +786,24 @@ video { gap: 1rem; } +.gap-8 { + gap: 2rem; +} + +.gap-x-64 { + -moz-column-gap: 16rem; + column-gap: 16rem; +} + +.gap-y-8 { + row-gap: 2rem; +} + +.gap-x-32 { + -moz-column-gap: 8rem; + column-gap: 8rem; +} + .overflow-hidden { overflow: hidden; } @@ -982,6 +1013,11 @@ video { color: rgb(80 7 36 / var(--tw-text-opacity)); } +.text-slate-800 { + --tw-text-opacity: 1; + color: rgb(30 41 59 / var(--tw-text-opacity)); +} + .no-underline { text-decoration-line: none; } @@ -1456,24 +1492,119 @@ a { } @media (min-width: 768px) { + .md\:grid { + display: grid; + } + + .md\:h-16 { + height: 4rem; + } + + .md\:w-16 { + width: 4rem; + } + + .md\:grid-cols-2 { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + .md\:items-stretch { + align-items: stretch; + } + + .md\:justify-stretch { + justify-content: stretch; + } + + .md\:text-2xl { + font-size: 1.5rem; + line-height: 2rem; + } + + .md\:text-3xl { + font-size: 1.875rem; + line-height: 2.25rem; + } + .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; } + .md\:text-base { + font-size: 1rem; + line-height: 1.5rem; + } + .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; } + + .md\:text-xl { + font-size: 1.25rem; + line-height: 1.75rem; + } } @media (min-width: 1024px) { + .lg\:col-span-2 { + grid-column: span 2 / span 2; + } + + .lg\:row-start-2 { + grid-row-start: 2; + } + .lg\:mt-20 { margin-top: 5rem; } + .lg\:grid { + display: grid; + } + + .lg\:hidden { + display: none; + } + + .lg\:grid-cols-2 { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + .lg\:gap-x-32 { + -moz-column-gap: 8rem; + column-gap: 8rem; + } + + .lg\:gap-y-8 { + row-gap: 2rem; + } + .lg\:text-6xl { font-size: 3.75rem; line-height: 1; } } + +@media (min-width: 1280px) { + .xl\:col-auto { + grid-column: auto; + } + + .xl\:row-span-2 { + grid-row: span 2 / span 2; + } + + .xl\:row-start-auto { + grid-row-start: auto; + } + + .xl\:grid-cols-3 { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } + + .xl\:grid-cols-\[1fr_2fr\] { + grid-template-columns: 1fr 2fr; + } +} diff --git a/axum_server/tailwind.config.js b/axum_server/tailwind.config.js index 7c0c74b..4965b34 100644 --- a/axum_server/tailwind.config.js +++ b/axum_server/tailwind.config.js @@ -1,17 +1,19 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: ["./templates/**/*.html"], + content: ["./templates/**/**.html"], theme: { extend: { spacing: { note: "60rem", read: "64rem", image: "70rem", + maxindex: "100rem", }, width: { note: "60rem", read: "64rem", image: "70rem", + maxindex: "100rem", }, }, }, diff --git a/axum_server/templates/components/blog_post_preview.html b/axum_server/templates/components/blog_post_preview.html index 21e0807..9a4e11a 100644 --- a/axum_server/templates/components/blog_post_preview.html +++ b/axum_server/templates/components/blog_post_preview.html @@ -8,9 +8,9 @@ {% endmatch %}
-

{{post.metadata.title}}

+

{{post.metadata.title}}

-
{{post.body|description_filter|safe}}
+
{{post.body|description_filter|safe}}