All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
281 lines
7.1 KiB
CSS
281 lines
7.1 KiB
CSS
/* ── Tasks Surface Styles ────────────────── */
|
|
|
|
.ext-tasks-app {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
padding: var(--sp-6) var(--sp-5);
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ── Header ──────────────────────────────── */
|
|
.ext-tasks-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-3);
|
|
margin-bottom: var(--sp-5);
|
|
flex-shrink: 0;
|
|
}
|
|
.ext-tasks-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
.ext-tasks-stats {
|
|
font-size: 13px;
|
|
color: var(--text-3);
|
|
}
|
|
.ext-tasks-header__right {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-3);
|
|
}
|
|
.ext-tasks-view-tabs {
|
|
display: flex;
|
|
gap: 2px;
|
|
background: var(--bg-raised);
|
|
border-radius: var(--radius);
|
|
padding: 2px;
|
|
}
|
|
.ext-tasks-view-tab {
|
|
padding: 5px var(--sp-4);
|
|
font-size: 13px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-2);
|
|
border-radius: calc(var(--radius) - 2px);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
.ext-tasks-view-tab:hover { color: var(--text); background: var(--bg-hover); }
|
|
.ext-tasks-view-tab--active { color: var(--text); background: var(--bg-surface); }
|
|
|
|
/* ── List View ───────────────────────────── */
|
|
.ext-tasks-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sp-2);
|
|
}
|
|
.ext-tasks-list__filters {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-3);
|
|
margin-bottom: var(--sp-2);
|
|
flex-shrink: 0;
|
|
}
|
|
.ext-tasks-filter {
|
|
padding: 5px var(--sp-3);
|
|
font-size: 13px;
|
|
background: var(--bg-raised);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
}
|
|
.ext-tasks-list__count {
|
|
font-size: 12px;
|
|
color: var(--text-3);
|
|
}
|
|
.ext-tasks-list__loading, .ext-tasks-list__empty {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: var(--sp-10) 0;
|
|
color: var(--text-3);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ── Task Card ───────────────────────────── */
|
|
.ext-tasks-card {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: var(--sp-3) var(--sp-4);
|
|
transition: var(--transition);
|
|
}
|
|
.ext-tasks-card:hover {
|
|
border-color: var(--border-light);
|
|
background: var(--bg-raised);
|
|
}
|
|
.ext-tasks-card__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-2);
|
|
}
|
|
.ext-tasks-card__priority { font-size: 10px; }
|
|
.ext-tasks-card__title {
|
|
flex: 1;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
}
|
|
.ext-tasks-card__title:hover { color: var(--accent); }
|
|
.ext-tasks-card__status {
|
|
font-size: 11px;
|
|
padding: 2px var(--sp-2);
|
|
border-radius: 10px;
|
|
font-weight: 500;
|
|
}
|
|
.ext-tasks-card__status--todo { background: var(--accent-dim); color: var(--accent); }
|
|
.ext-tasks-card__status--in_progress { background: var(--warning-dim); color: var(--warning); }
|
|
.ext-tasks-card__status--done { background: var(--success-dim); color: var(--success); }
|
|
.ext-tasks-card__status--cancelled { background: var(--bg-raised); color: var(--text-3); }
|
|
|
|
.ext-tasks-card__desc {
|
|
font-size: 13px;
|
|
color: var(--text-2);
|
|
margin-top: var(--sp-2);
|
|
line-height: 1.4;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.ext-tasks-card__footer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-3);
|
|
margin-top: var(--sp-2);
|
|
font-size: 12px;
|
|
color: var(--text-3);
|
|
}
|
|
.ext-tasks-card__actions {
|
|
margin-left: auto;
|
|
display: flex;
|
|
gap: var(--sp-1);
|
|
opacity: 0;
|
|
transition: var(--transition);
|
|
}
|
|
.ext-tasks-card:hover .ext-tasks-card__actions { opacity: 1; }
|
|
|
|
/* ── Inline buttons ──────────────────────── */
|
|
.ext-tasks-btn {
|
|
border: none;
|
|
background: var(--bg-raised);
|
|
color: var(--text-2);
|
|
cursor: pointer;
|
|
border-radius: var(--radius);
|
|
transition: var(--transition);
|
|
}
|
|
.ext-tasks-btn--sm { padding: 2px var(--sp-2); font-size: 13px; }
|
|
.ext-tasks-btn:hover { background: var(--bg-hover); color: var(--text); }
|
|
.ext-tasks-btn--danger:hover { background: var(--danger-dim); color: var(--danger); }
|
|
|
|
/* ── Board View ──────────────────────────── */
|
|
.ext-tasks-board {
|
|
flex: 1;
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: var(--sp-3);
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
}
|
|
.ext-tasks-board__col {
|
|
background: var(--bg-raised);
|
|
border-radius: var(--radius);
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
.ext-tasks-board__col-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--sp-3) var(--sp-3);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-2);
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
.ext-tasks-board__col-count {
|
|
font-size: 11px;
|
|
color: var(--text-3);
|
|
background: var(--bg-hover);
|
|
padding: 1px 7px;
|
|
border-radius: 10px;
|
|
}
|
|
.ext-tasks-board__col-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--sp-2);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sp-2);
|
|
}
|
|
.ext-tasks-board__card {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: var(--sp-3) var(--sp-3);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
.ext-tasks-board__card:hover {
|
|
border-color: var(--accent);
|
|
}
|
|
.ext-tasks-board__card-title {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-2);
|
|
}
|
|
.ext-tasks-board__card-due {
|
|
font-size: 11px;
|
|
color: var(--text-3);
|
|
margin-top: var(--sp-1);
|
|
}
|
|
|
|
/* ── Form ────────────────────────────────── */
|
|
.ext-tasks-form { display: flex; flex-direction: column; gap: var(--sp-3); }
|
|
.ext-tasks-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
|
|
.ext-tasks-form__actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-1); }
|
|
.ext-tasks-form textarea,
|
|
.ext-tasks-form input,
|
|
.ext-tasks-form select {
|
|
width: 100%;
|
|
padding: 7px var(--sp-3);
|
|
font-size: 13px;
|
|
background: var(--input-bg);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
font-family: var(--font);
|
|
}
|
|
.ext-tasks-form textarea:focus,
|
|
.ext-tasks-form input:focus,
|
|
.ext-tasks-form select:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* ── Statusbar widget ────────────────────── */
|
|
.ext-tasks-status-widget {
|
|
font-size: 12px;
|
|
color: var(--text-3);
|
|
padding: var(--sp-1) var(--sp-3);
|
|
}
|
|
|
|
/* ── Slot containers ─────────────────────── */
|
|
.sw-slot {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-2);
|
|
}
|
|
.sw-slot--statusbar {
|
|
padding: var(--sp-1) var(--sp-3);
|
|
border-top: 1px solid var(--border);
|
|
font-size: 12px;
|
|
color: var(--text-3);
|
|
flex-shrink: 0;
|
|
}
|
|
.sw-slot--toolbar {
|
|
padding: var(--sp-1) var(--sp-3);
|
|
flex-shrink: 0;
|
|
}
|