/
ReLoopix
/
NewWebSourceCreating
Обзор
Документация
Войти
/
ReLoopix
/
NewWebSourceCreating
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
css.css
174 строки
5 KB
ReLoopix
Update css.css
19 май 2026, 22:05
19 май 2026, 22:05
b7efaf7
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } body { background: #f4f7fc; font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; display: flex; flex-direction: column; min-height: 100vh; } /* ШАПКА */ .header { background-color: #ffffff; width: 100%; padding: 1rem 2rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); border-bottom: 1px solid #e2e8f0; position: sticky; /* прилипает при скролле, но всегда сверху */ top: 0; z-index: 100; display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; } /* Стили ссылок в шапке */ .header a { text-decoration: none; font-size: 1rem; font-weight: 500; color: #1e293b; padding: 0.5rem 0.75rem; transition: all 0.2s ease; border-radius: 8px; letter-spacing: 0.3px; } .header a:hover { color: #0066cc; background-color: #f1f5f9; transform: translateY(-1px); } /*КОНТЕЙНЕР ЛЕНТЫ НОВОСТЕЙ */ .news-container { flex: 1; display: flex; justify-content: center; padding: 2rem 1rem 3rem 1rem; } .news-feed { margin-left: 21%; max-width: 880px; width: 100%; background: #ffffff; border-radius: 1.75rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); overflow-y: auto; /* скролл внутри, если новостей много */ overflow-x: hidden; padding: 1.5rem 1.8rem 2rem 1.8rem; scroll-behavior: smooth; max-height: 75vh; /* ограничиваем высоту, чтобы скроллились новости */ } /* кастомный скроллбар */ .news-feed::-webkit-scrollbar { width: 6px; } .news-feed::-webkit-scrollbar-track { background: #eef2f6; border-radius: 10px; } .news-feed::-webkit-scrollbar-thumb { background: #b9c4d1; border-radius: 10px; } /* заголовок внутри ленты */ .feed-header { text-align: center; margin-bottom: 2rem; padding-bottom: 0.5rem; border-bottom: 2px solid #eef2f8; } .feed-header h1 { font-size: 2rem; font-weight: 700; background: linear-gradient(135deg, #1f2e3f, #2c4c6c); background-clip: text; -webkit-background-clip: text; color: transparent; margin-bottom: 0.3rem; } .feed-header p { color: #5c6f87; font-size: 0.85rem; } /* НОВОСТНАЯ КАРТОЧКА */ .news-card { display: flex; flex-direction: column; background: #ffffff; border-radius: 1.25rem; margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05); transition: all 0.25s ease; border: 1px solid #eef2fa; overflow: hidden; } .news-card:hover { transform: translateY(-3px); box-shadow: 0 18px 28px -12px rgba(0, 0, 0, 0.12); border-color: #dfe7f0; } .news-image { width: 100%; height: 210px; object-fit: cover; background: #dce5ef; display: block; } .news-content { padding: 1.2rem 1.4rem 1.4rem 1.4rem; } .news-title { font-size: 1.35rem; font-weight: 700; color: #0f2b3d; margin-bottom: 0.6rem; line-height: 1.3; } .news-description { font-size: 0.98rem; color: #2c3f55; line-height: 1.5; margin-bottom: 0.75rem; } .news-meta { display: flex; align-items: center; gap: 12px; font-size: 0.75rem; color: #7d8eaa; border-top: 1px solid #eff3fa; padding-top: 0.7rem; margin-top: 0.2rem; } /* плавное появление карточек */ .news-card { animation: fadeUp 0.35s ease; } @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }