Посты одной колонкой + 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;
}
}
+68 -72
View File
@@ -1,6 +1,5 @@
/** /**
* Стили для календаря поездок (карточки из upcoming-trips.json) * Стили для карточек поездок — glassmorphism
* Заменяет внешний Tockify виджет
*/ */
.trips-calendar { .trips-calendar {
@@ -11,24 +10,26 @@
.trips-calendar .trip-card { .trips-calendar .trip-card {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background: #fff; background: rgba(255, 255, 255, 0.75);
border: 1px solid #e0e0e0; backdrop-filter: blur(16px);
border-radius: 12px; -webkit-backdrop-filter: blur(16px);
margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 16px;
margin-bottom: 24px;
overflow: hidden; overflow: hidden;
transition: all 0.3s ease; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
} }
.trips-calendar .trip-card:hover { .trips-calendar .trip-card:hover {
transform: translateY(-2px); transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
} }
.trips-calendar .trip-image { .trips-calendar .trip-image {
position: relative; position: relative;
width: 100%; width: 100%;
height: 200px; height: 240px;
overflow: hidden; overflow: hidden;
} }
@@ -36,66 +37,78 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
transition: transform 0.3s ease; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
} }
.trips-calendar .trip-card:hover .trip-image img { .trips-calendar .trip-card:hover .trip-image img {
transform: scale(1.05); transform: scale(1.06);
} }
/* Дата-оверлей — pill-стиль */
.trips-calendar .trip-overlay { .trips-calendar .trip-overlay {
position: absolute; position: absolute;
top: 16px; top: 16px;
right: 16px; right: 16px;
background: rgba(0, 0, 0, 0.8); background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: white; color: white;
padding: 8px 12px; padding: 8px 16px;
border-radius: 6px; border-radius: 24px;
font-size: 0.9em; font-size: 0.85em;
font-weight: 500; font-weight: 600;
letter-spacing: 0.02em;
} }
.trips-calendar .trip-content { .trips-calendar .trip-content {
padding: 20px; padding: 24px 24px 28px;
} }
.trips-calendar .trip-content h3 { .trips-calendar .trip-content h3 {
margin: 0 0 12px 0; margin: 0 0 12px 0;
font-size: 1.4em; font-size: 1.35em;
font-weight: 600; font-weight: 700;
color: #333; color: #1a202c;
line-height: 1.3; line-height: 1.35;
} }
.trips-calendar .trip-details p { .trips-calendar .trip-details p {
margin: 0 0 16px 0; margin: 0 0 20px 0;
color: #666; color: #4a5568;
line-height: 1.5; line-height: 1.6;
font-size: 0.95em; font-size: 0.95em;
} }
/* Мета-теги — accent-стиль */
.trips-calendar .trip-meta { .trips-calendar .trip-meta {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 8px; gap: 8px;
margin-top: 12px; margin-top: 16px;
} }
.trips-calendar .trip-meta span { .trips-calendar .trip-meta span {
background: #f0f4f8; background: linear-gradient(135deg, #667eea12, #764ba212);
color: #2d3748; color: #4a5568;
padding: 6px 12px; padding: 8px 16px;
border-radius: 20px; border-radius: 24px;
font-size: 0.85em; font-size: 0.82em;
border: 1px solid #e2e8f0; line-height: 1.4;
border: 1px solid rgba(102, 126, 234, 0.15);
transition: all 0.2s ease;
} }
/* Адаптивность */ .trips-calendar .trip-meta span:hover {
background: linear-gradient(135deg, #667eea22, #764ba222);
border-color: rgba(102, 126, 234, 0.3);
}
/* Grid на десктопе */
@media (min-width: 768px) { @media (min-width: 768px) {
.trips-calendar { .trips-calendar {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
gap: 24px; gap: 28px;
} }
.trips-calendar .trip-card { .trips-calendar .trip-card {
@@ -105,55 +118,38 @@
@media (min-width: 1024px) { @media (min-width: 1024px) {
.trips-calendar { .trips-calendar {
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}
.trips-calendar .trip-image {
height: 280px;
} }
} }
/* Состояние загрузки */ /* Состояния */
.trips-calendar .loading { .trips-calendar .loading {
text-align: center; text-align: center;
padding: 40px 20px; padding: 48px 20px;
color: #666; color: #718096;
font-size: 1.1em; font-size: 1em;
} }
.trips-calendar .error { .trips-calendar .error {
text-align: center; text-align: center;
padding: 40px 20px; padding: 48px 20px;
color: #e53e3e; color: #c53030;
background: #fed7d7; background: rgba(254, 215, 215, 0.6);
border-radius: 8px; backdrop-filter: blur(8px);
border-radius: 12px;
margin: 20px 0; margin: 20px 0;
} }
.trips-calendar .no-trips { .trips-calendar .no-trips {
text-align: center; text-align: center;
padding: 40px 20px; padding: 48px 20px;
color: #666; color: #718096;
background: #f7fafc; background: rgba(247, 250, 252, 0.6);
border-radius: 8px; backdrop-filter: blur(8px);
border-radius: 12px;
border: 1px dashed #cbd5e0; border: 1px dashed #cbd5e0;
} }
/* Темная тема (если используется) */
@media (prefers-color-scheme: dark) {
.trips-calendar .trip-card {
background: #2d3748;
border-color: #4a5568;
color: #e2e8f0;
}
.trips-calendar .trip-content h3 {
color: #f7fafc;
}
.trips-calendar .trip-details p {
color: #a0aec0;
}
.trips-calendar .trip-meta span {
background: #4a5568;
color: #e2e8f0;
border-color: #718096;
}
}
@@ -50,6 +50,7 @@
<link rel="stylesheet" href="/css/back-to-top.css"> <link rel="stylesheet" href="/css/back-to-top.css">
<link rel="stylesheet" href="/css/typography-improvements.css?v={{ now.Unix }}"> <link rel="stylesheet" href="/css/typography-improvements.css?v={{ now.Unix }}">
<link rel="stylesheet" href="/css/about-site.css"> <link rel="stylesheet" href="/css/about-site.css">
t <link rel="stylesheet" href="/css/posts-single-column.css?v={{ now.Unix }}">
<link rel="stylesheet" href="/css/copyright-visible.css"> <link rel="stylesheet" href="/css/copyright-visible.css">
<link rel="stylesheet" href="/css/nav-background.css"> <link rel="stylesheet" href="/css/nav-background.css">
<link rel="stylesheet" href="/css/pagination-info.css"> <link rel="stylesheet" href="/css/pagination-info.css">