/
TorX
/
rasp
Обзор
Документация
Войти
/
TorX
/
rasp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
assets/style.css
178 строк
8 KB
tormovies
Put export filters and copy/download actions on one adaptive toolbar row.
07 авг 2026, 17:56
07 авг 2026, 17:56
efe5f2f
Код
Авторство
О чём код?
:root { --background: #e8eef2; --foreground: #152028; --surface: #f7fafc; --surface-2: #dde6ec; --line: #c5d0d8; --line-strong: #8fa0ad; --muted: #5a6b78; --accent: #0b6e6a; --accent-soft: #d3ecea; --thursday: #eef5f4; } * { box-sizing: border-box; } body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; color: var(--foreground); background: linear-gradient(180deg, #dfe8ee 0%, transparent 28%), radial-gradient(ellipse 70% 45% at 100% -10%, #cfe3e1 0%, transparent 55%), var(--background); min-height: 100vh; } a { color: inherit; } .wrap { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 3rem; } .topbar { border-bottom: 1px solid var(--line); background: var(--surface); } .topbar-inner { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; padding-top: .85rem; padding-bottom: .85rem; } .topbar nav, .topbar-right { display: flex; flex-wrap: wrap; gap: .35rem .75rem; } .topbar a { text-decoration: none; color: var(--muted); font-size: .95rem; } .topbar a:hover { color: var(--foreground); } .brand { font-weight: 700; color: var(--foreground) !important; } h1 { margin: .25rem 0; font-size: clamp(1.8rem, 3vw, 2.4rem); } h2 { margin: 0; } .muted { color: var(--muted); } .eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--muted); } .row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; margin-bottom: 1.5rem; } .stack { display: grid; gap: 1.5rem; } .btn, button.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: .5rem; padding: .55rem 1rem; font-size: .9rem; font-weight: 600; border: 1px solid transparent; cursor: pointer; text-decoration: none; } .btn-primary { background: var(--accent); color: #fff; } .btn-secondary { background: var(--surface); border-color: var(--line); color: var(--foreground); } .btn-danger { background: #fff5f5; border-color: #e8b4b4; color: #8b2e2e; } .field { display: block; width: 100%; border-radius: .5rem; border: 1px solid var(--line); background: var(--surface); padding: .65rem .75rem; font: inherit; } label.block { display: grid; gap: .4rem; margin-bottom: 1rem; } .form { max-width: 36rem; } .flash { padding: .75rem 1rem; border-radius: .5rem; margin-bottom: 1rem; } .flash-ok { background: #e7f7ef; border: 1px solid #9fd4b5; } .flash-error { background: #fff5f5; border: 1px solid #e8b4b4; color: #8b2e2e; } .calendar { display: grid; gap: 1rem; } .cal-nav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; } .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; } .cal-head { background: var(--surface-2); padding: .5rem; text-align: center; font-size: .75rem; color: var(--muted); } .cal-cell { min-height: 6.5rem; background: var(--surface); padding: .4rem; } .cal-cell.empty { opacity: .4; } .cal-cell.thursday { background: var(--thursday); } .cal-day { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-bottom: .25rem; } .cal-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; } .cal-item { display: flex; gap: .35rem; align-items: flex-start; text-decoration: none; font-size: .72rem; line-height: 1.3; padding: .15rem .25rem; border-radius: .3rem; } .cal-item.has-pitch { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); } .cal-item-text { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; word-break: normal; } .legend { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .9rem; } .pitch { display: inline-flex; width: .9rem; height: .9rem; border-radius: .2rem; border: 1px solid var(--line-strong); flex: 0 0 auto; margin-top: .1rem; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; } .pitch.yes { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); } .label-initial { display: inline-flex; width: .9rem; height: .9rem; border-radius: .2rem; border: 1px solid; flex: 0 0 auto; align-items: center; justify-content: center; font-size: .62rem; font-weight: 800; line-height: 1; vertical-align: -0.05em; margin-left: .2rem; } .cal-item-text .pitch { display: inline-flex; margin-top: 0; margin-left: .2rem; vertical-align: -0.05em; } .list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); } .list-item { position: relative; border-top: 1px solid var(--line); } .list-item:first-child { border-top: 0; } .list-main { display: flex; gap: .75rem; padding: .85rem 1rem; padding-right: 7.5rem; text-decoration: none; align-items: flex-start; } .list-main:hover { background: var(--surface-2); } .list-title { font-weight: 600; } .list-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .35rem; color: var(--muted); font-size: .9rem; } .posted-flag { position: absolute; top: .55rem; right: .65rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .78rem; line-height: 1; } .posted-flag.is-on { color: var(--accent); } .posted-flag form { margin: 0; } .posted-check { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: transparent; padding: 0; margin: 0; cursor: pointer; color: inherit; font: inherit; } .posted-box { display: inline-flex; width: 1rem; height: 1rem; border-radius: .25rem; border: 1px solid var(--line-strong); align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; background: var(--surface); } .posted-flag.is-on .posted-box { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); } .posted-label { font-weight: 600; letter-spacing: .01em; } .chip { display: inline-flex; max-width: 100%; align-items: center; border: 1px solid; border-radius: .4rem; padding: .15rem .5rem; font-size: .75rem; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .check { display: flex; gap: .6rem; align-items: center; margin-bottom: 1rem; font-weight: 500; } .panel { border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); padding: 1rem; } .export-toolbar { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; justify-content: space-between; } .export-toolbar .filters, .export-toolbar .actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; } .filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; } .filters a, .filters button { border: 1px solid var(--line); background: var(--surface); border-radius: .5rem; padding: .4rem .75rem; text-decoration: none; font-size: .9rem; cursor: pointer; } .filters .active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); } pre.export { min-height: 14rem; overflow: auto; white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; line-height: 1.5; margin: 0; } .actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .checkrow { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--line); border-radius: .75rem; padding: .85rem 1rem; background: var(--surface); margin-bottom: 1rem; } @media (max-width: 700px) { .cal-cell { min-height: 4.5rem; } .cal-items { font-size: .65rem; } .export-toolbar { justify-content: flex-start; } .export-toolbar .filters, .export-toolbar .actions { width: 100%; } .export-toolbar .btn, .export-toolbar .filters a { flex: 1 1 auto; text-align: center; justify-content: center; } }