Fixed image min height
This commit is contained in:
parent
1f698b65e6
commit
937b87938f
@ -16,7 +16,7 @@ const permalink = Astro.site.href;
|
|||||||
<div class="hero-image-container">
|
<div class="hero-image-container">
|
||||||
<picture>
|
<picture>
|
||||||
<source srcset="/assets/home-illustration.webp" media="(min-width: 600px)">
|
<source srcset="/assets/home-illustration.webp" media="(min-width: 600px)">
|
||||||
<img class="hero-image" fetchpriority="high" alt="Illustration of person reading a book" src="/assets/home-illustration-small.webp" width="550" height="466">
|
<img class="hero-image" alt="Illustration of person reading a book" src="/assets/home-illustration-small.webp" width="550" height="466">
|
||||||
</picture>
|
</picture>
|
||||||
<p class="caption">
|
<p class="caption">
|
||||||
Illustration by
|
Illustration by
|
||||||
@ -53,9 +53,13 @@ const permalink = Astro.site.href;
|
|||||||
font-size: 1.4em;
|
font-size: 1.4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.home-image-container {
|
.hero-image-container {
|
||||||
margin: 0 1em;
|
margin: 0 1em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-image-container picture {
|
||||||
|
display: block;
|
||||||
min-height: 250px;
|
min-height: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user