This commit is contained in:
Inhji 2023-09-11 20:17:13 +02:00
commit 7b808acd9d
3 changed files with 12 additions and 1 deletions

View file

@ -128,6 +128,12 @@
The components layer is for class-based styles that you want to be able to override with utilities. The components layer is for class-based styles that you want to be able to override with utilities.
*/ */
@layer components { @layer components {
.note {
.note-link {
@apply text-center text-neutral-900 dark:text-neutral-100;
}
}
.divider { .divider {
@apply flex text-red-500 items-center my-8 w-full mx-auto last:hidden; @apply flex text-red-500 items-center my-8 w-full mx-auto last:hidden;
@apply before:flex-1 before:content-[''] before:bg-neutral-500/25 before:p-[0.5px] before:mr-2; @apply before:flex-1 before:content-[''] before:bg-neutral-500/25 before:p-[0.5px] before:mr-2;
@ -180,4 +186,8 @@
.hljs { .hljs {
background: transparent !important; background: transparent !important;
} }
a.invalid {
@apply line-through;
}
} }

View file

@ -146,6 +146,7 @@ defmodule ChiyaWeb.PublicComponents do
src={ChiyaWeb.Helpers.image_url(assigns.image, assigns.size)} src={ChiyaWeb.Helpers.image_url(assigns.image, assigns.size)}
class={assigns.class} class={assigns.class}
title={assigns.image.content} title={assigns.image.content}
loading="lazy"
/> />
""" """
end end

View file

@ -1,6 +1,6 @@
<section class="page-grid"> <section class="page-grid">
<section> <section>
<article class="h-entry hentry | stack container"> <article class="h-entry hentry note | stack container">
<header class="prose max-w-none"> <header class="prose max-w-none">
<h1 class="p-name"> <h1 class="p-name">
<%= @note.name %> <%= @note.name %>