/
muhxa
/
into-practice
Обзор
Документация
Войти
/
muhxa
/
into-practice
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
static/style.css
282 строки
6 KB
muhxa
Create: style.css
08 июл 2026, 18:25
Верифицирован
08 июл 2026, 18:25
d08d8bd
Код
Авторство
О чём код?
/* ============================================================ FreshAI — клиентский кабинет Instacart-подобного сервиса Зелёно-белая палитра в духе продуктового магазина ============================================================ */ :root { --green-dark: #2f6b1f; --green: #4caf50; --green-light: #8bc34a; --green-pale: #eef6e8; --ink: #2b2f27; --muted: #6b7268; --border: #e1e8da; --card-shadow: 0 4px 14px rgba(46, 90, 32, 0.08); --radius: 16px; --surface: #ffffff; } * { box-sizing: border-box; } body { font-family: 'Nunito', 'Segoe UI', Arial, sans-serif; margin: 0; color: var(--ink); background: linear-gradient(180deg, var(--green-pale) 0%, #ffffff 260px); line-height: 1.6; transition: background 0.2s ease, color 0.2s ease; } .layout { max-width: 1040px; margin: 0 auto; padding: 0 24px 60px; } /* ---------- Шапка / навигация ---------- */ .topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 18px; flex-wrap: wrap; gap: 12px; } .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-dark); } .brand img { width: 40px; height: 40px; } .brand-name { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; } .brand-tag { display: block; font-size: 12px; font-weight: 600; color: var(--muted); } nav.mainnav { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; box-shadow: var(--card-shadow); } nav.mainnav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; } nav.mainnav a.active, nav.mainnav a:hover { background: var(--green); color: #fff; } .session-pill { font-size: 13px; color: var(--green-dark); background: var(--green-pale); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-weight: 700; } /* ---------- Переключатель темы ---------- */ .theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 18px; line-height: 1; box-shadow: var(--card-shadow); transition: background 0.2s ease, transform 0.15s ease; } .theme-toggle:hover { transform: scale(1.06); } /* ---------- Карточки ---------- */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; box-shadow: var(--card-shadow); } .card h2 { margin-top: 0; font-size: 19px; color: var(--green-dark); } .card p.muted, .muted { color: var(--muted); } .hero { background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%); color: #fff; border-radius: var(--radius); padding: 34px; margin-bottom: 26px; box-shadow: var(--card-shadow); } .hero h1 { margin: 0 0 8px; font-size: 28px; } .hero p { margin: 0; opacity: 0.95; } /* ---------- Форма и кнопки ---------- */ input, button, select { padding: 11px 14px; font-size: 15px; border-radius: 10px; border: 1px solid var(--border); font-family: inherit; background: var(--surface); color: var(--ink); } button { background: var(--green); color: #fff; border: none; cursor: pointer; font-weight: 700; transition: background 0.15s ease; } button:hover { background: var(--green-dark); } button.secondary { background: var(--surface); color: var(--green-dark); border: 1px solid var(--green); } button.secondary:hover { background: var(--green-pale); } /* ---------- Таблицы ---------- */ table { width: 100%; border-collapse: collapse; margin-top: 14px; } th, td { border: 1px solid var(--border); padding: 9px 10px; text-align: left; font-size: 14px; } th { background: var(--green-pale); color: var(--green-dark); } /* ---------- Статусы ---------- */ .ok { color: var(--green-dark); font-weight: 700; } .error { color: #b00020; font-weight: 700; } pre { white-space: pre-wrap; background: var(--green-pale); padding: 14px; border-radius: 12px; border: 1px solid var(--border); color: var(--ink); } /* ---------- Индикатор кэша (Часть 4) ---------- */ .badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-left: 8px; } .badge-cache { background: #fff4d6; color: #8a6100; border: 1px solid #f2d99a; } .badge-fresh { background: #e3f5e1; color: var(--green-dark); border: 1px solid #bfe4bb; } /* ---------- Сетка сервисов на /insights ---------- */ .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; } .service-card canvas { max-height: 220px; } .nav-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; } .nav-buttons a { text-decoration: none; } .nav-buttons button { padding: 13px 22px; } footer.mainfooter { text-align: center; color: var(--muted); font-size: 13px; margin-top: 40px; } /* ============================================================ ТЁМНАЯ ТЕМА Активируется атрибутом data-theme="dark" на <html> (переключатель и localStorage — см. base.html) ============================================================ */ html[data-theme="dark"] { --green-dark: #6fd66a; --green: #43b04a; --green-light: #7fce6f; --green-pale: #1b2a1f; --ink: #e9efe9; --muted: #9fada4; --border: #2b3a30; --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.45); --surface: #161d17; } html[data-theme="dark"] body { background: linear-gradient(180deg, #0e140f 0%, #0a0d0a 260px); } html[data-theme="dark"] button { color: #0b120c; } html[data-theme="dark"] .error { color: #ff6b6b; } html[data-theme="dark"] .badge-cache { background: #3a2f10; color: #f2c862; border-color: #5b4a1c; } html[data-theme="dark"] .badge-fresh { background: #16301c; color: #7fce6f; border-color: #2c5334; }