diff --git a/static/css/posts-single-column.css b/static/css/posts-single-column.css new file mode 100644 index 0000000..d9d62ee --- /dev/null +++ b/static/css/posts-single-column.css @@ -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; + } +} diff --git a/static/css/trips-calendar.css b/static/css/trips-calendar.css index 81c5e3d..9b99a16 100755 --- a/static/css/trips-calendar.css +++ b/static/css/trips-calendar.css @@ -1,159 +1,155 @@ -/** - * Стили для календаря поездок (карточки из upcoming-trips.json) - * Заменяет внешний Tockify виджет - */ - -.trips-calendar { - margin: 20px 0; - padding: 0; -} - -.trips-calendar .trip-card { - display: flex; - flex-direction: column; - background: #fff; - border: 1px solid #e0e0e0; - border-radius: 12px; - margin-bottom: 20px; - overflow: hidden; - transition: all 0.3s ease; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); -} - -.trips-calendar .trip-card:hover { - transform: translateY(-2px); - box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); -} - -.trips-calendar .trip-image { - position: relative; - width: 100%; - height: 200px; - overflow: hidden; -} - -.trips-calendar .trip-image img { - width: 100%; - height: 100%; - object-fit: cover; - transition: transform 0.3s ease; -} - -.trips-calendar .trip-card:hover .trip-image img { - transform: scale(1.05); -} - -.trips-calendar .trip-overlay { - position: absolute; - top: 16px; - right: 16px; - background: rgba(0, 0, 0, 0.8); - color: white; - padding: 8px 12px; - border-radius: 6px; - font-size: 0.9em; - font-weight: 500; -} - -.trips-calendar .trip-content { - padding: 20px; -} - -.trips-calendar .trip-content h3 { - margin: 0 0 12px 0; - font-size: 1.4em; - font-weight: 600; - color: #333; - line-height: 1.3; -} - -.trips-calendar .trip-details p { - margin: 0 0 16px 0; - color: #666; - line-height: 1.5; - font-size: 0.95em; -} - -.trips-calendar .trip-meta { - display: flex; - flex-wrap: wrap; - gap: 8px; - margin-top: 12px; -} - -.trips-calendar .trip-meta span { - background: #f0f4f8; - color: #2d3748; - padding: 6px 12px; - border-radius: 20px; - font-size: 0.85em; - border: 1px solid #e2e8f0; -} - -/* Адаптивность */ -@media (min-width: 768px) { - .trips-calendar { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); - gap: 24px; - } - - .trips-calendar .trip-card { - margin-bottom: 0; - } -} - -@media (min-width: 1024px) { - .trips-calendar { - grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); - } -} - -/* Состояние загрузки */ -.trips-calendar .loading { - text-align: center; - padding: 40px 20px; - color: #666; - font-size: 1.1em; -} - -.trips-calendar .error { - text-align: center; - padding: 40px 20px; - color: #e53e3e; - background: #fed7d7; - border-radius: 8px; - margin: 20px 0; -} - -.trips-calendar .no-trips { - text-align: center; - padding: 40px 20px; - color: #666; - background: #f7fafc; - border-radius: 8px; - 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; - } -} \ No newline at end of file +/** + * Стили для карточек поездок — glassmorphism + */ + +.trips-calendar { + margin: 20px 0; + padding: 0; +} + +.trips-calendar .trip-card { + display: flex; + flex-direction: column; + background: rgba(255, 255, 255, 0.75); + backdrop-filter: blur(16px); + -webkit-backdrop-filter: blur(16px); + border: 1px solid rgba(255, 255, 255, 0.3); + border-radius: 16px; + margin-bottom: 24px; + overflow: hidden; + 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(-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; + width: 100%; + height: 240px; + overflow: hidden; +} + +.trips-calendar .trip-image img { + width: 100%; + height: 100%; + 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.06); +} + +/* Дата-оверлей — pill-стиль */ +.trips-calendar .trip-overlay { + position: absolute; + top: 16px; + right: 16px; + background: rgba(0, 0, 0, 0.6); + backdrop-filter: blur(8px); + -webkit-backdrop-filter: blur(8px); + color: white; + padding: 8px 16px; + border-radius: 24px; + font-size: 0.85em; + font-weight: 600; + letter-spacing: 0.02em; +} + +.trips-calendar .trip-content { + padding: 24px 24px 28px; +} + +.trips-calendar .trip-content h3 { + margin: 0 0 12px 0; + font-size: 1.35em; + font-weight: 700; + color: #1a202c; + line-height: 1.35; +} + +.trips-calendar .trip-details p { + margin: 0 0 20px 0; + color: #4a5568; + line-height: 1.6; + font-size: 0.95em; +} + +/* Мета-теги — accent-стиль */ +.trips-calendar .trip-meta { + display: flex; + flex-wrap: wrap; + gap: 8px; + margin-top: 16px; +} + +.trips-calendar .trip-meta span { + background: linear-gradient(135deg, #667eea12, #764ba212); + color: #4a5568; + padding: 8px 16px; + border-radius: 24px; + font-size: 0.82em; + 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) { + .trips-calendar { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); + gap: 28px; + } + + .trips-calendar .trip-card { + margin-bottom: 0; + } +} + +@media (min-width: 1024px) { + .trips-calendar { + grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); + } + + .trips-calendar .trip-image { + height: 280px; + } +} + +/* Состояния */ +.trips-calendar .loading { + text-align: center; + padding: 48px 20px; + color: #718096; + font-size: 1em; +} + +.trips-calendar .error { + text-align: center; + padding: 48px 20px; + color: #c53030; + background: rgba(254, 215, 215, 0.6); + backdrop-filter: blur(8px); + border-radius: 12px; + margin: 20px 0; +} + +.trips-calendar .no-trips { + text-align: center; + padding: 48px 20px; + color: #718096; + background: rgba(247, 250, 252, 0.6); + backdrop-filter: blur(8px); + border-radius: 12px; + border: 1px dashed #cbd5e0; +} diff --git a/themes/hugo-theme-massively/layouts/partials/htmlhead.html b/themes/hugo-theme-massively/layouts/partials/htmlhead.html index c71561f..c143e7b 100755 --- a/themes/hugo-theme-massively/layouts/partials/htmlhead.html +++ b/themes/hugo-theme-massively/layouts/partials/htmlhead.html @@ -50,6 +50,7 @@ +t