Skip to content

Commit

Permalink
Post figure style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmajaba committed Nov 4, 2024
1 parent 7766048 commit 04e0fcd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions assets/css/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@
.Post-imgContentContainer {
display: flex;
flex-direction: row;
align-items: center;
align-items: start;
gap: 2em;
margin-block: 0.5em;

@media (max-width: $layout-breakpoint-s) {
flex-direction: column;
align-items: center;

/* Emulate columnar image and paragraph block spacing */
gap: 1em;
margin-block: 1em 0.5em;
}
}

Expand All @@ -45,6 +50,10 @@
flex-direction: column;
}

.Post-imgAdjacentContent > :first-child {
margin-block-start: 0;
}

.Post-figure {
display: flex;
flex-direction: column;
Expand All @@ -65,7 +74,7 @@
}

.Post-img {
--Post-img-max-height: Min(960px, 80vh);
--Post-img-max-height: Min(960px, 75vh);

width: 100%;
max-width: Min(
Expand Down

0 comments on commit 04e0fcd

Please sign in to comment.