From 4dc8d0f7d7ea38b1a37e4f6e920b47e341717073 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Wed, 27 Mar 2024 17:38:34 +0800 Subject: [PATCH] :lipstick: Style: use the same proportions as the cover image of https://dev.to/ --- assets/css/_page/_home.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/css/_page/_home.scss b/assets/css/_page/_home.scss index 7b460108..a7eb17f2 100644 --- a/assets/css/_page/_home.scss +++ b/assets/css/_page/_home.scss @@ -97,7 +97,8 @@ .featured-image-preview { width: 100%; - padding: 30% 0 0; + // use the same proportions as the cover image of https://dev.to/ + aspect-ratio: auto 1000 / 420; position: relative; margin: 0.6rem auto; @include transition(transform 0.4s ease);