/
prac
/
practick
Обзор
Документация
Войти
/
prac
/
practick
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
style.css
346 строк
6 KB
prac
update: style.css
12 фев 2026, 02:53
Верифицирован
12 фев 2026, 02:53
a1cf94c
Код
Авторство
О чём код?
:root { --bg: #f8faf5; /* светло-зелёный подтон */ --card: #ffffff; --text: #1e2e1e; /* тёмно-зелёный текст */ --muted: #5f6b5f; --primary: #2e7d32; /* основной зелёный */ --primary-light: #4caf50; --primary-dark: #1b5e20; --border: #d0dbd0; --shadow: 0 8px 20px rgba(30, 46, 30, 0.06); --radius-card: 16px; --radius-btn: 8px; } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; } a { color: inherit; text-decoration: none; } .container { width: min(1120px, 92vw); margin: 0 auto; } /* Верхняя полоска */ .topbar { background: linear-gradient(90deg, var(--primary-dark), var(--primary)); color: #fff; font-size: 13px; } .topbar .container { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; } .tag { display: inline-flex; gap: 8px; align-items: center; opacity: 0.95; } .tag .dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: 0.7; } /* Шапка */ .header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; } .header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 14px; } .brand { display: flex; align-items: center; gap: 12px; } .emblem { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, #e8f5e9, #c8e6c9); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 800; color: var(--primary-dark); font-size: 18px; } .brand .title { line-height: 1.15; } .brand .title b { display: block; font-size: 15px; font-weight: 700; } .brand .title span { display: block; font-size: 12px; color: var(--muted); } /* Навигация */ .nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .nav a { padding: 10px 12px; border-radius: var(--radius-btn); color: var(--muted); font-weight: 500; transition: background 0.2s, color 0.2s; } .nav a:hover, .nav a.active { background: #e8f5e9; color: var(--primary-dark); } /* Герой */ .hero { padding: 26px 0 10px; } .hero-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 14px; align-items: stretch; } /* Карточки */ .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); } .card.pad { padding: 16px; } .h1 { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.15; font-weight: 700; color: var(--text); } .p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; } /* Кнопки */ .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; } .btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border-radius: var(--radius-btn); border: 1px solid var(--border); background: #fff; font-weight: 600; font-size: 14px; transition: background 0.2s, border-color 0.2s; color: var(--text); } .btn.primary { background: var(--primary); border-color: var(--primary); color: white; } .btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); } .btn:hover { background: #f5faf5; border-color: #b0c4b0; } /* Сетка информации */ .kv { display: grid; grid-template-columns: 1fr; gap: 10px; } .kv .item { border: 1px solid var(--border); background: #f9fbf9; border-radius: 14px; padding: 12px; } .kv .item b { display: block; margin-bottom: 4px; font-weight: 600; } /* Бейджи */ .badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; } .badge { font-size: 12px; color: var(--primary-dark); background: #edf7ed; border: 1px solid #c8e6c9; padding: 6px 10px; border-radius: 30px; font-weight: 500; } /* Секции */ .section { padding: 12px 0 34px; } .section h2 { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: var(--text); } /* Сетка плиток */ .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .tile { padding: 14px; } .tile .meta { font-size: 12px; color: var(--muted); margin-top: 6px; } /* Список новостей (элементы ссылок) */ .list { display: grid; gap: 10px; } .itemlink { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: #fff; transition: border-color 0.2s; } .itemlink:hover { border-color: var(--primary-light); } .itemlink .ic { width: 34px; height: 34px; border-radius: 10px; background: #e8f5e9; display: grid; place-items: center; color: var(--primary-dark); font-weight: 800; } /* Хлебные крошки */ .breadcrumbs { font-size: 13px; color: var(--muted); padding: 14px 0; } .breadcrumbs a { color: var(--primary); font-weight: 500; } /* Подвал */ .footer { border-top: 1px solid var(--border); background: #fff; padding: 18px 0 28px; color: var(--muted); font-size: 13px; } /* Адаптивность */ @media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .grid { grid-template-columns: 1fr; } }