Посты: две колонки + единый формат фото 16:9
This commit is contained in:
@@ -1,52 +1,27 @@
|
|||||||
/* Посты на главной: одна колонка, крупные фото как у featured */
|
/* Посты на главной: две колонки, но фото крупнее и единого формата */
|
||||||
#main > .posts {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
max-width: 900px;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
#main > .posts > * {
|
|
||||||
width: 100% !important;
|
|
||||||
padding: 2rem 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#main > .posts > article {
|
|
||||||
border-left-width: 0 !important;
|
|
||||||
border-top: 1px solid rgba(0,0,0,0.08) !important;
|
|
||||||
text-align: left !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#main > .posts > article:first-child {
|
|
||||||
border-top-width: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/* Все фото постов — единый aspect ratio 16:9 с cover */
|
||||||
#main > .posts > article .image.main img {
|
#main > .posts > article .image.main img {
|
||||||
border-radius: 12px;
|
border-radius: 10px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
aspect-ratio: 16/9;
|
aspect-ratio: 16/9;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main > .posts > article h2 {
|
/* Featured пост сверху — чуть выделить */
|
||||||
font-size: 1.6em;
|
article.post.featured {
|
||||||
margin-bottom: 0.5em;
|
border-bottom: 1px solid rgba(0,0,0,0.08);
|
||||||
|
padding-bottom: 3rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main > .posts > article h2 a {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Featured пост — тот же стиль, чуть крупнее */
|
|
||||||
article.post.featured .image.main img {
|
article.post.featured .image.main img {
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
aspect-ratio: 16/9;
|
aspect-ratio: 16/9;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 736px) {
|
article.post.featured header.major h2 {
|
||||||
#main > .posts > * {
|
font-size: 1.8em;
|
||||||
padding: 1.5rem 0 !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user