Remove figure support form card shortcode styles
This commit is contained in:
@@ -198,6 +198,11 @@
|
||||
|
||||
figure {
|
||||
margin: $padding-16 0;
|
||||
|
||||
figcaption {
|
||||
@extend .markdown-inner;
|
||||
margin-top: $padding-16;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -194,8 +194,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
// {{< card >}}, {{< figure >}}
|
||||
.book-card, figure {
|
||||
// {{< card >}}
|
||||
.book-card {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
@@ -220,11 +220,6 @@
|
||||
.markdown-inner {
|
||||
padding: $padding-16;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
@extend .markdown-inner;
|
||||
padding: $padding-16;
|
||||
}
|
||||
}
|
||||
|
||||
.book-image {
|
||||
|
||||
@@ -28,36 +28,3 @@
|
||||
This is tab MacOS content.
|
||||
{{< /card >}}
|
||||
{{% /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 %}}
|
||||
|
||||
Reference in New Issue
Block a user