Посты одной колонкой + glassmorphism карточки поездок

This commit is contained in:
Telegram Bot
2026-04-16 01:26:33 +03:00
parent 350d0dbf64
commit edaa4a4b32
3 changed files with 208 additions and 159 deletions
+52
View File
@@ -0,0 +1,52 @@
/* Посты на главной: одна колонка, крупные фото как у 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;
}
#main > .posts > article .image.main img {
border-radius: 12px;
width: 100%;
height: auto;
aspect-ratio: 16/9;
object-fit: cover;
}
#main > .posts > article h2 {
font-size: 1.6em;
margin-bottom: 0.5em;
}
#main > .posts > article h2 a {
text-decoration: none;
}
/* Featured пост — тот же стиль, чуть крупнее */
article.post.featured .image.main img {
border-radius: 12px;
aspect-ratio: 16/9;
object-fit: cover;
}
@media (max-width: 736px) {
#main > .posts > * {
padding: 1.5rem 0 !important;
}
}