feat: add inline_svg shortcode

This commit is contained in:
st1020 2025-07-20 16:10:11 +08:00
parent b869da36fb
commit 4bfc2728dc
23 changed files with 198 additions and 115 deletions

View file

@ -87,6 +87,15 @@ article {
}
}
}
/* Figure */
figure {
@apply max-w-full;
svg {
@apply h-auto max-w-full scheme-light! dark:scheme-dark!;
}
}
}
.header {

View file

@ -1,4 +1,4 @@
/*! tailwindcss v4.1.7 | MIT License | https://tailwindcss.com */
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
@ -712,6 +712,9 @@
.grid {
display: grid;
}
.inline {
display: inline;
}
.aspect-square {
aspect-ratio: 1 / 1;
}
@ -1448,6 +1451,17 @@ article {
}
}
}
figure {
max-width: 100%;
svg {
height: auto;
max-width: 100%;
color-scheme: light !important;
&:where(.dark, .dark *) {
color-scheme: dark !important;
}
}
}
}
.header {
background-color: var(--header);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB