Spaces:
Running
Running
File size: 11,724 Bytes
22de727 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | /* Meridian Tracker — modern issue-tracker design system.
Left sidebar, KPI stat tiles, rich project cards, board columns, badges. */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #f5f6f8; --card: #ffffff; --ink: #0f172a; --muted: #64748b; --faint: #94a3b8;
--line: #e6e8ec; --line2: #eef0f3; --accent: #4f46e5; --accent-soft: #eef2ff;
--hover: #f8fafc;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #cbd0d8; border-radius: 5px; }
/* ---- App shell ---- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.sb-brand { display: flex; align-items: center; gap: 9px; padding: 6px 10px 14px; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.sb-brand .mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), #7c3aed); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }
.sb-new { display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--accent); color: #fff; font-weight: 700; padding: 9px; border-radius: 8px; font-size: .88rem; margin-bottom: 8px; }
.sb-new:hover { background: #4338ca; }
.sb-nav a { display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.sb-nav a:hover { background: var(--hover); color: var(--ink); }
.sb-nav a.active { background: var(--accent-soft); color: var(--accent); }
.sb-nav a .ic { width: 18px; text-align: center; opacity: .9; }
.sb-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06rem; color: var(--faint); font-weight: 700; padding: 14px 11px 6px; }
.sb-proj { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 7px; color: var(--muted); font-size: .85rem; font-weight: 500; }
.sb-proj:hover { background: var(--hover); color: var(--ink); }
.sb-proj .key { width: 24px; height: 20px; border-radius: 5px; background: #eef1f5; color: #475569; font-size: .6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sb-foot { margin-top: auto; padding: 10px 11px; font-size: .78rem; color: var(--faint); border-top: 1px solid var(--line2); }
/* ---- Main / topbar ---- */
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(245,246,248,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 14px 26px; }
.topbar h1 { font-size: 1.15rem; font-weight: 800; }
.topbar .crumb { color: var(--faint); font-size: .82rem; }
.topbar .crumb a:hover { color: var(--accent); }
.topbar .spacer { flex: 1; }
.topbar .search { position: relative; }
.topbar .search input { height: 36px; width: 240px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 12px 0 34px; font-size: .85rem; }
.topbar .search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.topbar .search .mag { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.avatar { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.tb-avatar { width: 32px; height: 32px; font-size: .8rem; background: var(--accent); }
.content { padding: 22px 26px 42px; max-width: 1320px; }
.sec-h { font-size: 1rem; font-weight: 800; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.sec-h .count { font-size: .78rem; font-weight: 700; color: var(--faint); background: #eef1f5; border-radius: 10px; padding: 1px 9px; }
.sec-h a.more { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--accent); }
/* ---- KPI stat tiles ---- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--k, var(--accent)); }
.kpi .kpi-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .kpi-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k, var(--accent)); }
.kpi .kpi-num { font-size: 2rem; font-weight: 800; margin-top: 6px; letter-spacing: -.5px; }
.kpi .kpi-sub { font-size: .76rem; color: var(--faint); margin-top: 2px; }
.k-total { --k: #4f46e5; } .k-open { --k: #64748b; } .k-prog { --k: #2563eb; }
.k-review { --k: #d97706; } .k-done { --k: #16a34a; } .k-crit { --k: #dc2626; } .k-mine { --k: #7c3aed; }
/* ---- Project cards ---- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.proj-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; transition: box-shadow .15s, border-color .15s; }
.proj-card:hover { box-shadow: 0 4px 16px rgba(15,23,42,.07); border-color: #d4d8de; }
.proj-top { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.proj-key { width: 40px; height: 40px; border-radius: 9px; background: linear-gradient(135deg,#4f46e5,#7c3aed); color: #fff; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.proj-name { font-weight: 700; font-size: 1rem; }
.proj-owner { font-size: .78rem; color: var(--faint); }
.proj-desc { font-size: .84rem; color: var(--muted); line-height: 1.5; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.pbar { height: 7px; background: #eef1f5; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.pbar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.proj-stats { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); }
.proj-stats b { color: var(--ink); font-weight: 700; }
.proj-stats .crit { color: #dc2626; font-weight: 700; }
/* ---- Two-column dashboard body ---- */
.dash-cols { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .dash-cols { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-h { padding: 13px 16px; border-bottom: 1px solid var(--line2); font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
/* ---- Issue rows ---- */
.irow { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line2); }
.irow:last-child { border-bottom: none; }
.irow:hover { background: var(--hover); }
.irow .ikey { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; color: var(--accent); font-weight: 700; width: 62px; flex-shrink: 0; }
.irow .ititle { flex: 1; min-width: 0; font-size: .88rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irow .imeta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.irow .idate { font-size: .76rem; color: var(--faint); width: 84px; text-align: right; }
/* ---- Badges (status / priority / type) ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.badge .bd { width: 7px; height: 7px; border-radius: 50%; }
.st-open { background: #f1f5f9; color: #475569; } .st-open .bd { background: #64748b; }
.st-in_progress { background: #eff6ff; color: #1d4ed8; } .st-in_progress .bd { background: #2563eb; }
.st-review { background: #fffbeb; color: #b45309; } .st-review .bd { background: #d97706; }
.st-done { background: #f0fdf4; color: #15803d; } .st-done .bd { background: #16a34a; }
.st-closed { background: #f1f5f9; color: #94a3b8; } .st-closed .bd { background: #94a3b8; }
.pr-critical { background: #fef2f2; color: #b91c1c; } .pr-high { background: #fff7ed; color: #c2410c; }
.pr-medium { background: #fffbeb; color: #b45309; } .pr-low { background: #f1f5f9; color: #64748b; }
.ty-bug { background: #fef2f2; color: #dc2626; } .ty-feature { background: #eef2ff; color: #4f46e5; }
.ty-task { background: #ecfeff; color: #0e7490; } .ty-story { background: #f0fdf4; color: #16a34a; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #eef1f5; color: #475569; font-size: .72rem; font-weight: 600; }
.sp-badge { font-size: .72rem; font-weight: 700; color: var(--muted); background: #eef1f5; border-radius: 6px; padding: 1px 7px; }
/* ---- Board (project page) ---- */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.bcol { flex: 0 0 300px; background: #eef0f3; border-radius: 12px; padding: 10px; }
.bcol-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 10px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03rem; color: var(--muted); }
.bcol-h .n { background: #fff; border-radius: 10px; padding: 1px 9px; color: var(--muted); }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 9px; }
.bcard:hover { box-shadow: 0 2px 10px rgba(15,23,42,.08); }
.bcard .bk { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem; color: var(--accent); font-weight: 700; }
.bcard .bt { font-size: .86rem; font-weight: 600; margin: 4px 0 9px; }
.bcard .bmeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* ---- Cards / panels / forms shared ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.field-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: .88rem; }
.field-row:last-child { border-bottom: none; }
.field-row .k { color: var(--muted); }
.field-row .v { font-weight: 600; }
input[type=text], input[type=number], input[type=search], input[type=date], input[type=password], select, textarea {
border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; font-size: .88rem; font-family: inherit; background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: .85rem; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: inherit; }
.btn:hover { background: var(--hover); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #4338ca; }
.btn-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.empty { text-align: center; color: var(--faint); padding: 40px 20px; }
@media (max-width: 760px) { .app { grid-template-columns: 1fr; } .sidebar { display: none; } }
|