💄 Style: use the same proportions as the cover image of https://dev.to/

This commit is contained in:
Cell
2024-03-27 17:38:34 +08:00
parent 76fec05da2
commit 4dc8d0f7d7
+2 -1
View File
@@ -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);