Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions blog/fern/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ logo:
height: 20

favicon: ./assets/favicon.svg

css: styles.css
16 changes: 16 additions & 0 deletions blog/fern/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Custom styles for the Plantstore blog example */

/*
* blog-layout: list normally sizes the thumbnail to `height: 100%` of the
* row, with `aspect-ratio: auto`. Row height comes from the text column
* next to it, so anything that changes line-wrapping (a narrower window,
* a longer title, browser zoom) changes the image box's shape and how
* much of the photo gets cropped by object-fit: cover. Pin it to a fixed
* ratio instead so the crop stays consistent regardless of viewport width
* or zoom level.
*/
.fern-blog-card-list .fern-blog-card-image {
aspect-ratio: var(--aspect-video);
height: auto;
align-self: center;
}
Loading