Remove figure support form card shortcode styles

This commit is contained in:
Alex Shpak
2025-09-21 02:20:15 +02:00
parent d7cab414a7
commit c8238fd893
3 changed files with 7 additions and 40 deletions
+5
View File
@@ -198,6 +198,11 @@
figure { figure {
margin: $padding-16 0; margin: $padding-16 0;
figcaption {
@extend .markdown-inner;
margin-top: $padding-16;
}
} }
} }
+2 -7
View File
@@ -194,8 +194,8 @@
} }
} }
// {{< card >}}, {{< figure >}} // {{< card >}}
.book-card, figure { .book-card {
display: block; display: block;
overflow: hidden; overflow: hidden;
height: 100%; height: 100%;
@@ -220,11 +220,6 @@
.markdown-inner { .markdown-inner {
padding: $padding-16; padding: $padding-16;
} }
figcaption {
@extend .markdown-inner;
padding: $padding-16;
}
} }
.book-image { .book-image {
@@ -28,36 +28,3 @@
This is tab MacOS content. This is tab MacOS content.
{{< /card >}} {{< /card >}}
{{% /columns %}} {{% /columns %}}
## Build-in figure shortcode
Hugo's built-in figure shortcode is also styled as a card
{{% columns %}}
- ```go-html-template
{{</* figure
src="placeholder.svg"
alt="A placeholder image"
link="#"
caption="A placeholder image caption"
loading="lazy"
target="_blank"
title="Figure Title"
caption="A caption for the figure"
attr="An attribution"
attrlink="#"
*/>}}
```
- {{< figure
src="placeholder.svg"
alt="A placeholder image"
link="#"
caption="A placeholder image caption"
loading="lazy"
target="_blank"
title="Figure Title"
caption="A caption for the figure"
attr="An attribution"
attrlink="#"
>}}
{{% /columns %}}