mirror of
https://github.com/Damillora/Yuika
synced 2024-11-25 18:47:32 +00:00
Finally fix images
This commit is contained in:
parent
5640e80ce3
commit
6ed7beabf3
@ -298,10 +298,11 @@ footer {
|
|||||||
.post-image-box {
|
.post-image-box {
|
||||||
@apply relative;
|
@apply relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
@screen md {
|
@screen md {
|
||||||
.post-image-box {
|
.post-image-box {
|
||||||
width: 35%;
|
width: 35vw;
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
max-width: 450px;
|
max-width: 450px;
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ If the template in question has a background image, then we render responsive im
|
|||||||
for it, and apply those styles to the <header> tag. Else, we just output a <header> tag
|
for it, and apply those styles to the <header> tag. Else, we just output a <header> tag
|
||||||
with a `no-image` class so we can style it accordingly.
|
with a `no-image` class so we can style it accordingly.
|
||||||
--}}
|
--}}
|
||||||
|
<div>
|
||||||
<div class="post-image-box">
|
<div class="post-image-box">
|
||||||
{{#if feature_image}}
|
{{#if feature_image}}
|
||||||
<img class="post-image" src="{{img_url feature_image size='m'}}">
|
<img class="post-image" src="{{img_url feature_image size='m'}}">
|
||||||
@ -17,3 +18,4 @@ with a `no-image` class so we can style it accordingly.
|
|||||||
<img class="post-image" src="{{img_url @site.cover_image size='m'}}">
|
<img class="post-image" src="{{img_url @site.cover_image size='m'}}">
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
Loading…
Reference in New Issue
Block a user