39384-vm/assets/css/custom.css
Flatlogic Bot e8fb7a1400 2
2026-03-30 11:27:33 +00:00

544 lines
9.3 KiB
CSS

:root {
--bg: #f8f9fb;
--surface: #ffffff;
--surface-muted: #fbfcfd;
--surface-soft: #ffffff;
--border: #d8dee4;
--border-strong: #b8c0c8;
--text: #1f2328;
--text-muted: #5f6b76;
--text-soft: #7a8591;
--accent: #1f883d;
--accent-dark: #176f32;
--accent-contrast: #ffffff;
--accent-blue: #0969da;
--accent-blue-soft: #f5f9ff;
--nav-bg: #ffffff;
--nav-text: #1f2328;
--success: #1a7f37;
--danger: #cf222e;
--shadow: 0 1px 2px rgba(31, 35, 40, 0.03);
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 12px;
}
html {
scroll-behavior: smooth;
}
body {
background: var(--bg);
color: var(--text);
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
text-rendering: optimizeLegibility;
font-size: 0.96rem;
}
.app-header {
background: #ffffff;
backdrop-filter: none;
border-bottom-color: var(--border) !important;
}
.navbar {
min-height: 56px;
}
.brand-mark {
width: 30px;
height: 30px;
border-radius: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
background: #ffffff;
color: var(--text-muted);
font-size: 0.95rem;
border: 1px solid var(--border);
box-shadow: none;
}
.brand-title {
color: var(--nav-text);
font-size: 0.96rem;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.1;
}
.brand-subtitle {
display: none !important;
}
.panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
padding: 1rem;
}
.panel-hero {
padding: 1.5rem;
}
.eyebrow {
color: var(--text-soft);
text-transform: uppercase;
letter-spacing: 0.08em;
font-size: 0.68rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.hero-title,
.panel-title,
.detail-title {
letter-spacing: -0.04em;
}
.hero-title {
font-size: clamp(1.9rem, 3vw, 2.6rem);
line-height: 1.05;
margin-bottom: 0.85rem;
}
.hero-copy {
color: var(--text-muted);
max-width: 48ch;
margin-bottom: 0;
}
.meta-chip,
.priority-badge,
.status-badge {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.34rem 0.62rem;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 600;
border: 1px solid var(--border);
background: var(--surface-muted);
color: var(--text);
}
.stat-card {
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 100%;
}
.stat-card {
position: relative;
overflow: hidden;
}
.stat-card::before {
content: '';
position: absolute;
inset: 0 auto auto 0;
width: 100%;
height: 1px;
background: var(--border-strong);
}
.stat-card-total::before {
background: #8c959f;
}
.stat-card-active::before {
background: var(--accent-blue);
}
.stat-card-done::before {
background: var(--accent);
}
.stat-card-urgent::before {
background: #fb8500;
}
.stat-label,
.stat-note,
.detail-label,
.task-meta,
.form-text {
color: var(--text-muted);
}
.stat-label,
.detail-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 700;
}
.stat-value {
font-size: clamp(1.8rem, 3vw, 2.35rem);
line-height: 1;
letter-spacing: -0.05em;
margin: 0.5rem 0 0.35rem;
}
.stat-note {
font-size: 0.8rem;
color: var(--text-soft);
}
.panel-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
margin-bottom: 0.85rem;
}
.panel-header-stack {
align-items: stretch;
}
.panel-title {
font-size: 1.05rem;
font-weight: 650;
}
.form-control,
.form-select,
.input-group-text,
.btn,
.dropdown-menu {
border-radius: var(--radius-sm);
}
.form-control,
.form-select,
.input-group-text {
border-color: var(--border);
min-height: 42px;
background: #fff;
}
.form-control:focus,
.form-select:focus {
border-color: var(--accent-blue);
box-shadow: 0 0 0 0.14rem rgba(9, 105, 218, 0.1);
}
.btn {
font-weight: 600;
box-shadow: none !important;
border-width: 1px;
}
.btn-dark {
background: var(--accent);
border-color: var(--accent);
color: var(--accent-contrast);
}
.btn-dark:hover,
.btn-dark:focus {
background: var(--accent-dark);
border-color: var(--accent-dark);
color: var(--accent-contrast);
}
.btn-light {
background: #fff;
border-color: var(--border);
color: var(--text);
}
.btn-light:hover,
.btn-light:focus {
background: #ffffff;
border-color: var(--border-strong);
color: var(--text);
}
.filters-grid {
display: grid;
gap: 0.8rem;
}
.btn-filter {
border: 1px solid var(--border);
background: #fff;
color: var(--text);
padding-inline: 0.9rem;
}
.btn-filter:hover {
border-color: var(--border-strong);
color: var(--text);
background: #ffffff;
}
.btn-check:checked + .btn-filter {
background: #ffffff;
color: var(--accent-blue);
border-color: #b7c7da;
}
.sort-select {
min-width: 180px;
}
.task-list {
max-height: 70vh;
overflow: auto;
padding-right: 0.25rem;
}
.task-item {
position: relative;
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 0.9rem;
background: #fff;
cursor: pointer;
transition: border-color 0.16s ease, background-color 0.16s ease;
}
.task-item:focus-visible {
outline: none;
border-color: var(--accent-blue);
box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.16);
}
.task-item:hover {
border-color: var(--border-strong);
box-shadow: none;
background: #fff;
}
.task-item-active {
border-color: #b6c8db;
box-shadow: inset 2px 0 0 var(--accent-blue);
background: #ffffff;
}
.task-item-done {
background: #ffffff;
}
.check-button {
width: 34px;
height: 34px;
border-radius: 8px;
border: 1px solid var(--border);
background: #fff;
color: var(--text-muted);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1rem;
}
.check-button:hover {
border-color: var(--accent);
color: var(--accent);
background: #fff;
}
.task-title-link {
font-weight: 600;
color: var(--text);
text-decoration: none;
font-size: 0.96rem;
}
.task-title-link:hover {
color: var(--accent-blue);
}
.task-snippet,
.detail-description {
color: var(--text-muted);
line-height: 1.5;
}
.task-item-done .task-title-link,
.task-item-done .task-snippet {
opacity: 0.72;
}
.task-meta {
font-size: 0.78rem;
}
.priority-high,
.priority-medium,
.priority-low,
.status-active,
.status-done {
border: 1px solid var(--border);
}
.priority-high {
background: #ffffff;
color: #b42318;
border-color: #f0c7c7;
}
.priority-medium {
background: #ffffff;
color: #9a6700;
border-color: #ead9a2;
}
.priority-low {
background: #ffffff;
color: #1a7f37;
border-color: #c9e7cf;
}
.status-active {
background: #ffffff;
color: var(--accent-blue);
border-color: #c7d7ea;
}
.status-done {
background: #ffffff;
color: var(--success);
border-color: #c9e7cf;
}
.icon-button {
width: 34px;
height: 34px;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
}
.detail-panel {
display: flex;
flex-direction: column;
}
.detail-stack {
height: 100%;
}
.detail-title {
font-size: 1.2rem;
margin-bottom: 0.55rem;
}
.detail-block {
padding: 0.8rem 0.9rem;
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: #ffffff;
}
.detail-value {
margin-top: 0.25rem;
font-weight: 500;
}
.empty-state {
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: #ffffff;
padding: 1rem;
}
.empty-icon {
width: 42px;
height: 42px;
margin-inline: auto;
border-radius: 10px;
background: #fff;
border: 1px solid var(--border);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1rem;
color: var(--text-muted);
}
.toast {
border-radius: 10px;
box-shadow: 0 6px 14px rgba(31, 35, 40, 0.08);
}
.stretched-link-reset {
position: relative;
z-index: 2;
}
.toggle-form,
.dropdown form {
position: relative;
z-index: 2;
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-thumb {
background: #d4d4d8;
border-radius: 999px;
border: 2px solid transparent;
background-clip: padding-box;
}
::-webkit-scrollbar-track {
background: transparent;
}
@media (max-width: 1199.98px) {
.task-list {
max-height: none;
}
}
@media (max-width: 767.98px) {
.panel,
.panel-hero {
padding: 0.9rem;
}
.hero-title {
font-size: 1.7rem;
}
.panel-header {
flex-direction: column;
align-items: stretch;
}
.sort-select {
width: 100%;
}
}
.detail-panel {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 250, 0.98) 100%);
}
.navbar .btn-dark {
min-width: 132px;
}
.btn-outline-danger {
border-color: rgba(207, 34, 46, 0.28);
color: var(--danger);
}
.btn-outline-danger:hover,
.btn-outline-danger:focus {
background: var(--danger);
border-color: var(--danger);
}