mirror of
https://github.com/Damillora/Yuika
synced 2024-11-25 10:37: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,10 +10,12 @@ 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 class="post-image-box">
|
<div>
|
||||||
{{#if feature_image}}
|
<div class="post-image-box">
|
||||||
<img class="post-image" src="{{img_url feature_image size='m'}}">
|
{{#if feature_image}}
|
||||||
{{else}}
|
<img class="post-image" src="{{img_url feature_image size='m'}}">
|
||||||
<img class="post-image" src="{{img_url @site.cover_image size='m'}}">
|
{{else}}
|
||||||
{{/if}}
|
<img class="post-image" src="{{img_url @site.cover_image size='m'}}">
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user