Fix media and columns
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if include.type == "image" %}
|
{% if include.type == "image" %}
|
||||||
<picture
|
<picture
|
||||||
|
class="content"
|
||||||
src="{{ include.url | absolute_url }}"
|
src="{{ include.url | absolute_url }}"
|
||||||
{% if include.width %}width="{{ include.width }}"{% endif %}
|
{% if include.width %}width="{{ include.width }}"{% endif %}
|
||||||
{% if include.height %}height="{{ include.height }}"{% endif %}>
|
{% if include.height %}height="{{ include.height }}"{% endif %}>
|
||||||
@@ -14,6 +15,7 @@
|
|||||||
</picture>
|
</picture>
|
||||||
{% elsif include.type == "video" %}
|
{% elsif include.type == "video" %}
|
||||||
<video controls
|
<video controls
|
||||||
|
class="content"
|
||||||
{% if include.poster %}poster="{{ include.poster | absolute_url }}"{% endif %}
|
{% if include.poster %}poster="{{ include.poster | absolute_url }}"{% endif %}
|
||||||
{% if include.preload %}preload="{{ include.preload }}"{% endif %}
|
{% if include.preload %}preload="{{ include.preload }}"{% endif %}
|
||||||
src="{{ include.url | absolute_url }}"
|
src="{{ include.url | absolute_url }}"
|
||||||
@@ -26,6 +28,7 @@
|
|||||||
</video>
|
</video>
|
||||||
{% elsif include.type == "audio" %}
|
{% elsif include.type == "audio" %}
|
||||||
<audio controls
|
<audio controls
|
||||||
|
class="content"
|
||||||
{% if include.preload %}preload="{{ include.preload }}"{% endif %}
|
{% if include.preload %}preload="{{ include.preload }}"{% endif %}
|
||||||
src="{{ include.url | absolute_url }}"
|
src="{{ include.url | absolute_url }}"
|
||||||
{% if include.width %}width="{{ include.width }}"{% endif %}
|
{% if include.width %}width="{{ include.width }}"{% endif %}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
.block-columns > .content {
|
.block-columns > .content {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(calc(#{$theme-width} / 3 - 5rem), 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(calc(#{$theme-width} / 3 - 5rem), 1fr));
|
||||||
grid-column-gap: 1rem;
|
grid-column-gap: 0rem;
|
||||||
grid-row-gap: 1rem;
|
grid-row-gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
// --------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------
|
||||||
// Block: Media
|
// Block: Media
|
||||||
// --------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------
|
||||||
|
.block-media {
|
||||||
|
}
|
||||||
|
|
||||||
|
.block-media > a > .content,
|
||||||
|
.block-media > .content {
|
||||||
|
}
|
||||||
|
|
||||||
.block-media > figcaption {
|
.block-media > figcaption {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -28,3 +35,8 @@
|
|||||||
// --------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------
|
||||||
// Block: Media > Picture
|
// Block: Media > Picture
|
||||||
// --------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------
|
||||||
|
.block-media > a > .content > img,
|
||||||
|
.block-media > .content > img {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user