Fix post cover image size on desktop and make title more responsive
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bba2a07538
commit
025d5f0000
@ -48,14 +48,26 @@ const { title, pubDate, banner: cover, bannerAlt: coverAlt } = Astro.props;
|
|||||||
|
|
||||||
.cover-box {
|
.cover-box {
|
||||||
padding-top: 1em;
|
padding-top: 1em;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cover-image {
|
.cover-image {
|
||||||
border-radius: var(--image-radius);
|
border-radius: var(--image-radius);
|
||||||
margin-left: auto;
|
}
|
||||||
|
|
||||||
|
/* For mobile phones: */
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.cover-box {
|
||||||
|
display: block;
|
||||||
|
padding-top: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cover-image {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style is:global>
|
<style is:global>
|
||||||
.prose img {
|
.prose img {
|
||||||
|
@ -83,4 +83,8 @@ li img {
|
|||||||
main {
|
main {
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#title {
|
||||||
|
font-size: 5.9vw;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user