Система назначает студентам задачи с LeetCode и Codeforces и сама подтягивает решения, считает баллы и ведёт рейтинг. Что внутри: - вход через Telegram-бота (long polling, без публичного домена); - привязка аккаунтов CF/LC с подтверждением владения через профиль; - каталог задач обеих платформ и сборка списков вставкой ссылок текстом; - задания группам с дедлайнами и матрица «студенты × задачи»; - лента решений, объявления с обратным отсчётом, ивенты, лидерборд; - профиль с календарём активности и разбивкой по темам. Один процесс: веб, фоновый синкер и бот. SQLite в томе, без Kafka и Redis. С LeetCode работаем только по публичному GraphQL: сессионные куки студентов сознательно не запрашиваются. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
887 lines
26 KiB
CSS
887 lines
26 KiB
CSS
/* ============================================================
|
|
Токены
|
|
============================================================ */
|
|
:root {
|
|
color-scheme: light;
|
|
|
|
--bg: #f4f5f8;
|
|
--bg-soft: #eceef3;
|
|
--panel: #ffffff;
|
|
--panel-2: #fafbfc;
|
|
|
|
--text: #101317;
|
|
--text-2: #454c57;
|
|
--muted: #767f8c;
|
|
--line: #e3e6ec;
|
|
--line-strong: #ccd2dc;
|
|
|
|
/* Синий МГУ. Один токен меняет акцент во всём интерфейсе. */
|
|
--accent: #14448f;
|
|
--accent-hover: #0f3a7c;
|
|
--accent-soft: #e9eefa;
|
|
--accent-text: #123f85;
|
|
|
|
--ok: #0f7b40;
|
|
--ok-soft: #e4f6ec;
|
|
--warn: #9a5b04;
|
|
--warn-soft: #fdf1df;
|
|
--bad: #b4231f;
|
|
--bad-soft: #fdebea;
|
|
|
|
--gold: #b4820d;
|
|
--silver: #6c7585;
|
|
--bronze: #9a5f32;
|
|
|
|
--r-sm: 7px;
|
|
--r: 11px;
|
|
--r-lg: 16px;
|
|
|
|
--shadow-sm: 0 1px 2px rgba(16, 19, 23, .05);
|
|
--shadow: 0 2px 4px rgba(16, 19, 23, .05), 0 8px 20px -12px rgba(16, 19, 23, .18);
|
|
--shadow-lg: 0 4px 10px rgba(16, 19, 23, .07), 0 20px 40px -20px rgba(16, 19, 23, .25);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
color-scheme: dark;
|
|
|
|
--bg: #0c0e12;
|
|
--bg-soft: #12151b;
|
|
--panel: #151920;
|
|
--panel-2: #1a1f27;
|
|
|
|
--text: #eef1f6;
|
|
--text-2: #b9c1cd;
|
|
--muted: #8a93a1;
|
|
--line: #252b35;
|
|
--line-strong: #333b47;
|
|
|
|
--accent: #6b9ce6;
|
|
--accent-hover: #86b0ee;
|
|
--accent-soft: #132340;
|
|
--accent-text: #8fb6ee;
|
|
|
|
--ok: #4ade80;
|
|
--ok-soft: #122a1c;
|
|
--warn: #fbbf24;
|
|
--warn-soft: #2e2410;
|
|
--bad: #f87171;
|
|
--bad-soft: #2e1616;
|
|
|
|
--gold: #e3b341;
|
|
--silver: #9aa4b4;
|
|
--bronze: #c98a5c;
|
|
|
|
--shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
|
|
--shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 10px 24px -14px rgba(0, 0, 0, .7);
|
|
--shadow-lg: 0 6px 14px rgba(0, 0, 0, .45), 0 24px 48px -24px rgba(0, 0, 0, .8);
|
|
}
|
|
}
|
|
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
|
|
html { -webkit-text-size-adjust: 100%; }
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
"Helvetica Neue", Arial, sans-serif;
|
|
font-size: 14.5px;
|
|
line-height: 1.55;
|
|
-webkit-font-smoothing: antialiased;
|
|
font-feature-settings: "tnum" 0;
|
|
}
|
|
|
|
a { color: var(--accent-text); text-decoration: none; }
|
|
a:hover { color: var(--accent-hover); }
|
|
|
|
::selection { background: var(--accent); color: #fff; }
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
border-radius: var(--r-sm);
|
|
}
|
|
|
|
/* ============================================================
|
|
Иконки
|
|
============================================================ */
|
|
.icon {
|
|
width: 1.1em;
|
|
height: 1.1em;
|
|
flex: none;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.9;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
vertical-align: -.18em;
|
|
}
|
|
.icon.lg { width: 1.5em; height: 1.5em; stroke-width: 1.7; }
|
|
.icon.xl { width: 2em; height: 2em; stroke-width: 1.5; }
|
|
|
|
/* ============================================================
|
|
Шапка
|
|
============================================================ */
|
|
header.top {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
background: color-mix(in srgb, var(--panel) 88%, transparent);
|
|
backdrop-filter: saturate(1.6) blur(12px);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.top-inner {
|
|
max-width: 1220px;
|
|
margin: 0 auto;
|
|
padding: 11px 22px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.brand {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 640;
|
|
font-size: 15px;
|
|
letter-spacing: -.01em;
|
|
color: var(--text);
|
|
margin-right: 8px;
|
|
}
|
|
.brand .icon { color: var(--accent); }
|
|
.brand:hover { color: var(--text); }
|
|
|
|
/* Логотип из файла: высоту задаём мы, ширина подстраивается. */
|
|
.brand-logo { height: 24px; width: auto; display: block; flex: none; }
|
|
.only-dark { display: none; }
|
|
@media (prefers-color-scheme: dark) {
|
|
.only-light { display: none; }
|
|
.only-dark { display: block; }
|
|
}
|
|
|
|
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
|
|
.nav a {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 6px 11px;
|
|
border-radius: var(--r-sm);
|
|
color: var(--muted);
|
|
font-weight: 500;
|
|
transition: background .13s, color .13s;
|
|
}
|
|
.nav a:hover { background: var(--bg-soft); color: var(--text); }
|
|
.nav a.active { background: var(--accent-soft); color: var(--accent-text); }
|
|
.nav a.teacher-link { color: var(--accent-text); }
|
|
|
|
.spacer { flex: 1 1 auto; }
|
|
|
|
.top-user { display: flex; align-items: center; gap: 8px; margin-left: auto; }
|
|
|
|
.whoami {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 6px 4px 4px;
|
|
border-radius: 99px;
|
|
border: 1px solid var(--line);
|
|
color: var(--text-2);
|
|
font-size: 13px;
|
|
}
|
|
|
|
main { max-width: 1220px; margin: 0 auto; padding: 26px 22px 80px; }
|
|
|
|
/* ============================================================
|
|
Типографика
|
|
============================================================ */
|
|
h1 {
|
|
font-size: 25px;
|
|
line-height: 1.25;
|
|
letter-spacing: -.022em;
|
|
font-weight: 660;
|
|
margin: 0 0 6px;
|
|
}
|
|
h2 {
|
|
font-size: 13px;
|
|
text-transform: uppercase;
|
|
letter-spacing: .07em;
|
|
font-weight: 620;
|
|
color: var(--muted);
|
|
margin: 32px 0 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
h3 { font-size: 15px; font-weight: 620; letter-spacing: -.01em; margin: 0 0 8px; }
|
|
|
|
p.sub { color: var(--muted); margin: 0 0 22px; max-width: 72ch; }
|
|
|
|
.muted { color: var(--muted); }
|
|
.small { font-size: 13px; }
|
|
.mono {
|
|
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
font-size: .92em;
|
|
}
|
|
|
|
.page-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* ============================================================
|
|
Карточки и сетки
|
|
============================================================ */
|
|
.card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r);
|
|
padding: 17px 19px;
|
|
margin-bottom: 14px;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
.card.flat { box-shadow: none; background: var(--panel-2); }
|
|
|
|
.card.stretch { display: flex; flex-direction: column; }
|
|
.card.stretch .push-bottom { margin-top: auto; padding-top: 12px; }
|
|
|
|
a.card {
|
|
display: block;
|
|
color: inherit;
|
|
transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
|
|
}
|
|
a.card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow);
|
|
border-color: var(--line-strong);
|
|
color: inherit;
|
|
}
|
|
a.card h3 { display: flex; align-items: center; gap: 9px; }
|
|
a.card h3 .icon { color: var(--accent); }
|
|
|
|
.grid { display: grid; gap: 14px; }
|
|
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
|
|
.grid.three { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
|
|
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
|
|
|
|
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
.between { justify-content: space-between; }
|
|
|
|
/* ============================================================
|
|
Плитки со статистикой
|
|
============================================================ */
|
|
.stat {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r);
|
|
padding: 15px 17px;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
.stat .icon { color: var(--muted); margin-bottom: 6px; }
|
|
.stat .value {
|
|
font-size: 27px;
|
|
font-weight: 660;
|
|
letter-spacing: -.03em;
|
|
line-height: 1.15;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.stat .label { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
|
|
|
|
/* ============================================================
|
|
Аватарки
|
|
============================================================ */
|
|
.avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 11.5px;
|
|
font-weight: 640;
|
|
letter-spacing: .02em;
|
|
flex: none;
|
|
background: hsl(var(--h) 62% 92%);
|
|
color: hsl(var(--h) 55% 30%);
|
|
border: 1px solid hsl(var(--h) 45% 84%);
|
|
}
|
|
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
|
|
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
/* На тёмном фоне пустые клетки сливаются с карточкой — поднимаем контраст. */
|
|
.heatmap i { background: #232932; border-color: #2d343f; }
|
|
|
|
.avatar {
|
|
background: hsl(var(--h) 38% 20%);
|
|
color: hsl(var(--h) 70% 76%);
|
|
border-color: hsl(var(--h) 35% 30%);
|
|
}
|
|
}
|
|
|
|
/* ============================================================
|
|
Таблицы
|
|
============================================================ */
|
|
.table-wrap { overflow-x: auto; border-radius: var(--r); }
|
|
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
|
|
th {
|
|
font-size: 11.5px;
|
|
text-transform: uppercase;
|
|
letter-spacing: .05em;
|
|
color: var(--muted);
|
|
font-weight: 620;
|
|
white-space: nowrap;
|
|
}
|
|
tbody tr { transition: background .12s; }
|
|
tbody tr:hover { background: var(--panel-2); }
|
|
tbody tr:last-child td { border-bottom: none; }
|
|
td.num { font-variant-numeric: tabular-nums; }
|
|
|
|
/* ============================================================
|
|
Формы
|
|
============================================================ */
|
|
input[type=text], input[type=number], input[type=datetime-local], select, textarea {
|
|
width: 100%;
|
|
padding: 8px 11px;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--r-sm);
|
|
background: var(--panel);
|
|
color: var(--text);
|
|
font: inherit;
|
|
transition: border-color .13s, box-shadow .13s;
|
|
}
|
|
input:focus, select:focus, textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
|
|
}
|
|
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
|
|
|
|
textarea {
|
|
min-height: 130px;
|
|
resize: vertical;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 13px;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
font-size: 12.5px;
|
|
font-weight: 520;
|
|
color: var(--text-2);
|
|
margin-bottom: 5px;
|
|
}
|
|
label.check {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
font-weight: 400;
|
|
color: var(--text-2);
|
|
cursor: pointer;
|
|
}
|
|
label.check input { width: auto; margin: 0; accent-color: var(--accent); }
|
|
|
|
.field { margin-bottom: 13px; }
|
|
.inline-form { display: flex; gap: 9px; align-items: flex-end; flex-wrap: wrap; }
|
|
.inline-form .field { margin-bottom: 0; }
|
|
|
|
/* ============================================================
|
|
Кнопки
|
|
============================================================ */
|
|
button, .btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 8px 15px;
|
|
border-radius: var(--r-sm);
|
|
border: 1px solid transparent;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
font: inherit;
|
|
font-weight: 530;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: background .13s, border-color .13s, color .13s, transform .08s;
|
|
}
|
|
button:hover, .btn:hover { background: var(--accent-hover); color: #fff; }
|
|
button:active, .btn:active { transform: translateY(1px); }
|
|
|
|
button.ghost, .btn.ghost {
|
|
background: var(--panel);
|
|
color: var(--text-2);
|
|
border-color: var(--line-strong);
|
|
}
|
|
button.ghost:hover, .btn.ghost:hover {
|
|
background: var(--bg-soft);
|
|
color: var(--text);
|
|
border-color: var(--line-strong);
|
|
}
|
|
|
|
button.danger, .btn.danger {
|
|
background: transparent;
|
|
color: var(--muted);
|
|
border-color: var(--line);
|
|
}
|
|
button.danger:hover, .btn.danger:hover {
|
|
background: var(--bad-soft);
|
|
color: var(--bad);
|
|
border-color: transparent;
|
|
}
|
|
|
|
button.small, .btn.small { padding: 5px 10px; font-size: 12.5px; gap: 5px; }
|
|
button.icon-only { padding: 6px; }
|
|
|
|
/* ============================================================
|
|
Бейджи
|
|
============================================================ */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 2.5px 9px;
|
|
border-radius: 99px;
|
|
font-size: 12px;
|
|
font-weight: 520;
|
|
line-height: 1.5;
|
|
border: 1px solid var(--line);
|
|
color: var(--muted);
|
|
white-space: nowrap;
|
|
}
|
|
.badge .icon { width: 1em; height: 1em; }
|
|
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
|
|
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
|
|
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
|
|
.badge.info { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
|
|
.badge.easy { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
|
|
.badge.medium { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
|
|
.badge.hard { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
|
|
.badge.rating { font-variant-numeric: tabular-nums; }
|
|
|
|
.tag {
|
|
display: inline-block;
|
|
padding: 2.5px 9px;
|
|
border-radius: var(--r-sm);
|
|
background: var(--bg-soft);
|
|
color: var(--text-2);
|
|
font-size: 12px;
|
|
margin: 0 5px 5px 0;
|
|
border: 1px solid var(--line);
|
|
}
|
|
|
|
/* ============================================================
|
|
Флеш-сообщения
|
|
============================================================ */
|
|
.flash {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 9px;
|
|
padding: 11px 15px;
|
|
border-radius: var(--r);
|
|
margin-bottom: 16px;
|
|
font-size: 13.5px;
|
|
border: 1px solid transparent;
|
|
}
|
|
.flash .icon { margin-top: .15em; }
|
|
.flash.ok { background: var(--ok-soft); color: var(--ok); }
|
|
.flash.err { background: var(--bad-soft); color: var(--bad); }
|
|
|
|
/* ============================================================
|
|
Прогресс
|
|
============================================================ */
|
|
.bar {
|
|
height: 7px;
|
|
border-radius: 99px;
|
|
background: var(--bg-soft);
|
|
overflow: hidden;
|
|
border: 1px solid var(--line);
|
|
}
|
|
.bar > span {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: 99px;
|
|
background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--ok)));
|
|
transition: width .3s ease;
|
|
}
|
|
.bar.done > span { background: var(--ok); }
|
|
.progress-line {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
font-size: 12.5px;
|
|
color: var(--muted);
|
|
margin-top: 7px;
|
|
}
|
|
.progress-line b { color: var(--text); font-variant-numeric: tabular-nums; }
|
|
|
|
/* ============================================================
|
|
Матрица решений
|
|
============================================================ */
|
|
.matrix td, .matrix th { text-align: center; padding: 7px 5px; }
|
|
.matrix td:first-child, .matrix th:first-child {
|
|
text-align: left;
|
|
position: sticky;
|
|
left: 0;
|
|
background: var(--panel);
|
|
min-width: 190px;
|
|
box-shadow: 1px 0 0 var(--line);
|
|
}
|
|
.matrix tbody tr:hover td:first-child { background: var(--panel-2); }
|
|
.matrix th a { color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
|
|
.cell {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 25px;
|
|
height: 25px;
|
|
border-radius: var(--r-sm);
|
|
font-size: 13px;
|
|
border: 1px solid transparent;
|
|
}
|
|
.cell .icon { width: 14px; height: 14px; stroke-width: 2.6; }
|
|
.cell.solved_in_time { background: var(--ok-soft); color: var(--ok); }
|
|
.cell.solved_late { background: var(--warn-soft); color: var(--warn); }
|
|
.cell.solved_before { background: var(--bg-soft); color: var(--muted); border-color: var(--line); }
|
|
.cell.not_solved { background: transparent; color: var(--line-strong); }
|
|
.cell.not_solved::after { content: "·"; font-size: 18px; line-height: 1; }
|
|
|
|
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
|
|
.legend span.item { display: inline-flex; align-items: center; gap: 6px; }
|
|
|
|
/* ============================================================
|
|
Лента решений
|
|
============================================================ */
|
|
.feed { display: flex; flex-direction: column; }
|
|
|
|
.feed-day {
|
|
font-size: 11.5px;
|
|
text-transform: uppercase;
|
|
letter-spacing: .06em;
|
|
font-weight: 620;
|
|
color: var(--muted);
|
|
padding: 16px 0 8px;
|
|
}
|
|
.feed-day:first-child { padding-top: 0; }
|
|
|
|
.feed-item {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 11px 13px;
|
|
border-radius: var(--r);
|
|
border: 1px solid transparent;
|
|
transition: background .13s, border-color .13s;
|
|
}
|
|
.feed-item:hover { background: var(--panel-2); border-color: var(--line); }
|
|
|
|
.feed-body { min-width: 0; flex: 1; }
|
|
.feed-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.feed-head .who { font-weight: 580; color: var(--text); }
|
|
.feed-head .when { color: var(--muted); font-size: 12.5px; margin-left: auto; white-space: nowrap; }
|
|
.feed-what {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
flex-wrap: nowrap;
|
|
margin-top: 2px;
|
|
}
|
|
/* Галочка фиксирована, переносится только сам заголовок. */
|
|
.feed-what .tick { color: var(--ok); flex: none; }
|
|
.feed-what .title-wrap { min-width: 0; }
|
|
.feed-what .title { font-weight: 500; color: var(--text); }
|
|
.feed-meta { margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
|
|
|
|
/* ============================================================
|
|
Лидерборд
|
|
============================================================ */
|
|
.rank {
|
|
font-weight: 660;
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--muted);
|
|
white-space: nowrap;
|
|
width: 1%;
|
|
}
|
|
.rank .icon { margin-right: 3px; }
|
|
.rank.m1 { color: var(--gold); }
|
|
.rank.m2 { color: var(--silver); }
|
|
.rank.m3 { color: var(--bronze); }
|
|
tr.me { background: var(--accent-soft); }
|
|
tr.me:hover { background: var(--accent-soft); }
|
|
tr.me td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
|
|
.points { font-variant-numeric: tabular-nums; font-weight: 620; font-size: 15px; }
|
|
|
|
/* ============================================================
|
|
Карта активности
|
|
============================================================ */
|
|
.heatmap-scroll { overflow-x: auto; padding-bottom: 4px; }
|
|
.heatmap-body { display: flex; gap: 6px; }
|
|
|
|
.heatmap { display: flex; gap: 3px; }
|
|
.hm-col { display: grid; grid-template-rows: repeat(7, 12px); gap: 3px; }
|
|
|
|
.heatmap i,
|
|
.hm-legend i {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 3px;
|
|
display: block;
|
|
background: var(--bg-soft);
|
|
border: 1px solid var(--line-strong);
|
|
}
|
|
.heatmap i.l1, .hm-legend i.l1 { background: color-mix(in srgb, var(--ok) 28%, var(--bg-soft)); border-color: transparent; }
|
|
.heatmap i.l2, .hm-legend i.l2 { background: color-mix(in srgb, var(--ok) 52%, var(--bg-soft)); border-color: transparent; }
|
|
.heatmap i.l3, .hm-legend i.l3 { background: color-mix(in srgb, var(--ok) 76%, var(--bg-soft)); border-color: transparent; }
|
|
.heatmap i.l4, .hm-legend i.l4 { background: var(--ok); border-color: transparent; }
|
|
/* Дни после сегодняшнего в календаре есть, но их не должно быть видно. */
|
|
.heatmap i.future { background: transparent; border-color: transparent; }
|
|
|
|
.heatmap-weekdays {
|
|
display: grid;
|
|
grid-template-rows: repeat(7, 12px);
|
|
gap: 3px;
|
|
font-size: 9.5px;
|
|
line-height: 12px;
|
|
color: var(--muted);
|
|
text-align: right;
|
|
padding-right: 2px;
|
|
}
|
|
|
|
.heatmap-months {
|
|
display: flex;
|
|
gap: 3px;
|
|
height: 15px;
|
|
font-size: 10.5px;
|
|
color: var(--muted);
|
|
margin-left: 24px;
|
|
}
|
|
/* Слот равен ширине столбца; подпись месяца свободно выходит вправо. */
|
|
.hm-slot { width: 12px; flex: none; white-space: nowrap; }
|
|
|
|
.hm-legend { display: inline-flex; align-items: center; gap: 3px; }
|
|
.hm-legend i { width: 11px; height: 11px; }
|
|
|
|
/* ============================================================
|
|
Прочее
|
|
============================================================ */
|
|
.code-box {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 14px;
|
|
background: var(--bg-soft);
|
|
border: 1px dashed var(--line-strong);
|
|
border-radius: var(--r-sm);
|
|
padding: 11px 13px;
|
|
word-break: break-all;
|
|
user-select: all;
|
|
text-align: center;
|
|
letter-spacing: .02em;
|
|
}
|
|
|
|
.empty {
|
|
color: var(--muted);
|
|
padding: 34px 20px;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 9px;
|
|
font-size: 13.5px;
|
|
}
|
|
.empty .icon { color: var(--line-strong); }
|
|
td .empty { padding: 26px 12px; }
|
|
|
|
.callout {
|
|
border-left: 3px solid var(--accent);
|
|
background: var(--accent-soft);
|
|
border-radius: 0 var(--r) var(--r) 0;
|
|
}
|
|
.callout.warn { border-left-color: var(--warn); background: var(--warn-soft); }
|
|
|
|
.auth-shell { max-width: 460px; margin: 7vh auto 0; }
|
|
.auth-logo {
|
|
width: 56px; height: 56px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
border-radius: var(--r-lg);
|
|
background: var(--accent-soft);
|
|
color: var(--accent-text);
|
|
margin-bottom: 16px;
|
|
}
|
|
/* Файловый логотип показываем как есть, без цветной подложки. */
|
|
.auth-logo.bare { width: auto; height: auto; background: none; border-radius: 0; }
|
|
.auth-logo.bare img { max-height: 72px; max-width: 260px; width: auto; height: auto; }
|
|
|
|
.divider { height: 1px; background: var(--line); margin: 16px 0; border: none; }
|
|
|
|
.bar-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(72px, 30%) 1fr auto;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 4px 0;
|
|
font-size: 13px;
|
|
}
|
|
.bar-label { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.bar-track { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
|
|
.bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--accent); min-width: 2px; }
|
|
.bar-fill.easy { background: var(--ok); }
|
|
.bar-fill.medium { background: var(--warn); }
|
|
.bar-fill.hard { background: var(--bad); }
|
|
.bar-value { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 2.2em; text-align: right; }
|
|
|
|
.profile-head {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 20px;
|
|
}
|
|
.profile-sync { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
|
|
@media (max-width: 760px) {
|
|
.profile-sync { align-items: flex-start; width: 100%; }
|
|
}
|
|
|
|
.assignment-line { padding: 9px 0; border-bottom: 1px solid var(--line); }
|
|
.assignment-line:last-child { border-bottom: none; padding-bottom: 0; }
|
|
.assignment-line .bar { margin-top: 7px; }
|
|
|
|
/* ---- Объявления ---- */
|
|
.announce {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r);
|
|
padding: 16px 18px;
|
|
box-shadow: var(--shadow-sm);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 9px;
|
|
align-items: flex-start;
|
|
}
|
|
.announce.pinned { border-color: var(--accent); }
|
|
.announce-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
}
|
|
.announce-head h3 { margin: 0; }
|
|
.announce .pin { color: var(--warn); }
|
|
.announce-meta { gap: 8px; margin: 0; }
|
|
.announce-body { margin: 0; color: var(--text-2); white-space: pre-line; }
|
|
|
|
.countdown {
|
|
font-variant-numeric: tabular-nums;
|
|
font-size: 13px;
|
|
font-weight: 570;
|
|
padding: 3px 10px;
|
|
border-radius: 99px;
|
|
white-space: nowrap;
|
|
background: var(--bg-soft);
|
|
color: var(--muted);
|
|
border: 1px solid var(--line);
|
|
}
|
|
.countdown[data-state="upcoming"] { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
|
|
.countdown[data-state="live"] { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
|
|
.countdown[data-state="past"] { opacity: .7; }
|
|
|
|
.steps { display: grid; gap: 10px; counter-reset: step; }
|
|
.step {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 13px;
|
|
padding: 13px 15px;
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--r);
|
|
background: var(--panel);
|
|
color: inherit;
|
|
transition: border-color .14s, transform .14s;
|
|
}
|
|
.step:hover { border-color: var(--accent); transform: translateX(2px); color: inherit; }
|
|
.step .num {
|
|
counter-increment: step;
|
|
width: 25px; height: 25px;
|
|
flex: none;
|
|
display: inline-flex; align-items: center; justify-content: center;
|
|
border-radius: 50%;
|
|
background: var(--accent-soft);
|
|
color: var(--accent-text);
|
|
font-size: 12.5px;
|
|
font-weight: 640;
|
|
}
|
|
.step .num::before { content: counter(step); }
|
|
.step.done { background: var(--panel-2); }
|
|
.step.done .num { background: var(--ok-soft); color: var(--ok); }
|
|
.step.done .num::before { content: "✓"; }
|
|
.step.done .step-title { color: var(--muted); text-decoration: line-through; }
|
|
.step-title { font-weight: 570; }
|
|
.step-hint { font-size: 12.5px; color: var(--muted); }
|
|
|
|
details.formula { margin-top: 6px; }
|
|
details.formula summary {
|
|
cursor: pointer;
|
|
color: var(--accent-text);
|
|
font-size: 13px;
|
|
list-style: none;
|
|
}
|
|
details.formula summary::-webkit-details-marker { display: none; }
|
|
details.formula summary::before { content: "▸ "; }
|
|
details.formula[open] summary::before { content: "▾ "; }
|
|
details.formula ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); font-size: 13px; }
|
|
details.formula li { margin-bottom: 3px; }
|
|
|
|
/* Второстепенные колонки лидерборда на узких экранах только мешают. */
|
|
@media (max-width: 900px) {
|
|
.col-extra { display: none; }
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
main { padding: 18px 14px 56px; }
|
|
.top-inner { padding: 9px 14px; gap: 8px; row-gap: 6px; }
|
|
|
|
/* Бренд и пользователь — первая строка, навигация — вторая, с подписями.
|
|
Иконки без подписей на мобильном превращались в ребус. */
|
|
.brand { flex: 1 1 auto; margin-right: 0; font-size: 14px; }
|
|
.top-user { margin-left: 0; }
|
|
.nav {
|
|
order: 3;
|
|
flex-basis: 100%;
|
|
flex-wrap: nowrap;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
padding-bottom: 2px;
|
|
margin: 0 -14px;
|
|
padding-inline: 14px;
|
|
}
|
|
.nav::-webkit-scrollbar { display: none; }
|
|
/* Иначе не видно, что строка едет вбок. */
|
|
.nav {
|
|
-webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
|
|
mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
|
|
}
|
|
.nav a { padding: 6px 10px; font-size: 13px; }
|
|
.whoami span.name { display: none; }
|
|
|
|
h1 { font-size: 21px; }
|
|
h2 { margin-top: 26px; }
|
|
.grid.two, .grid.three { grid-template-columns: 1fr; }
|
|
.empty { padding: 24px 14px; }
|
|
textarea { font-size: 12.5px; }
|
|
}
|