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