1
0
Fork 0
mirror of https://github.com/EDeev/tablo.git synced 2026-10-07 20:49:31 +03:00
tablo/app/static/css/metrics/_deadlines.css
2026-05-19 13:49:09 +03:00

128 lines
3.3 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* ═══════════════════════════════════════════════════════════════════════════
DEADLINES — дедлайны
Акцент: #ec4899 (pink)
gh-1: дробь + бар. Список скрыт.
gh-2+: бар + список с датами.
gh-3/4: строки просторнее, даты видны.
═══════════════════════════════════════════════════════════════════════════ */
.t-dl-bar-row {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
margin-bottom: 6px;
}
.t-dl-track {
flex: 1;
height: 5px;
background: var(--surface2);
border-radius: 99px;
overflow: hidden;
}
.t-dl-fill {
height: 100%;
background: #ec4899;
border-radius: 99px;
transition: width .35s cubic-bezier(.4,0,.2,1);
}
.t-dl-frac {
font-size: 11px;
font-weight: 600;
font-family: var(--mono);
color: #ec4899;
white-space: nowrap;
flex-shrink: 0;
}
.t-dl-list {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
gap: 2px;
overflow-y: auto;
}
.t-dl-item {
display: flex;
align-items: center;
gap: 7px;
cursor: pointer;
padding: 4px 2px;
border-radius: 6px;
transition: background .1s;
flex-shrink: 0;
min-height: 28px;
}
.t-dl-item:hover { background: var(--surface2); }
.t-dl-item input[type=checkbox] { display: none; }
.t-dl-box {
width: 16px;
height: 16px;
border-radius: 5px;
border: 1.5px solid var(--border);
background: var(--surface);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: all .12s;
color: transparent;
}
.t-dl-item.done .t-dl-box { background: #ec4899; border-color: #ec4899; color: #fff; }
.t-dl-name {
font-size: 12px;
color: var(--ink);
flex: 1;
min-width: 0;
line-height: 1.3;
transition: all .12s;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.t-dl-item.done .t-dl-name { color: var(--muted); text-decoration: line-through; }
.t-dl-date {
font-size: 9.5px;
color: var(--muted);
font-family: var(--mono);
flex-shrink: 0;
white-space: nowrap;
}
/* ── gh-1: только бар ── */
@container metric (max-height: 119px) {
.t-metric-body { padding: 0 10px 8px; }
.t-dl-bar-row { flex: 1; align-items: center; margin-bottom: 0; }
.t-dl-frac { font-size: 18px; }
.t-dl-track { height: 8px; }
.t-dl-list { display: none; }
}
/* ── gh-2 ── */
@container metric (min-height: 120px) and (max-height: 239px) {
.t-dl-date { display: none; }
.t-dl-item { min-height: 24px; }
.t-dl-name { font-size: 11.5px; }
.t-dl-box { width: 14px; height: 14px; }
}
/* ── gh-3/4 ── */
@container metric (min-height: 360px) {
.t-dl-date { display: block; font-size: 10px; }
.t-dl-item { min-height: 32px; padding: 5px 4px; }
.t-dl-box { width: 18px; height: 18px; border-radius: 6px; }
.t-dl-name { font-size: 13px; }
.t-dl-track { height: 6px; }
}
/* ── gw-2/3 ── */
@container metric (min-width: 280px) {
.t-dl-date { display: block; }
.t-dl-name { font-size: 12.5px; }
}