Remove figure support form card shortcode styles
This commit is contained in:
@@ -198,6 +198,11 @@
|
|||||||
|
|
||||||
figure {
|
figure {
|
||||||
margin: $padding-16 0;
|
margin: $padding-16 0;
|
||||||
|
|
||||||
|
figcaption {
|
||||||
|
@extend .markdown-inner;
|
||||||
|
margin-top: $padding-16;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 %}}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user