Files
maxis-mission-control/public/styles.css
T

468 lines
7.1 KiB
CSS

:root {
color-scheme: light;
--bg: #f3f5f8;
--panel: #ffffff;
--panel-soft: #eef2f7;
--text: #18212f;
--muted: #667085;
--line: #d9e0ea;
--accent: #3268d8;
--accent-strong: #224fa8;
--accent-soft: #e8efff;
--warn: #b7791f;
--danger: #b42335;
--ok: #14845f;
--shadow: 0 12px 30px rgba(24, 33, 47, 0.09);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
letter-spacing: 0;
}
button, input, textarea, select {
font: inherit;
}
button {
border: 0;
cursor: pointer;
}
.login-shell {
min-height: 100vh;
display: grid;
place-items: center;
padding: 24px;
}
.login {
width: min(420px, 100%);
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
padding: 28px;
}
.login h1, .view-title h1 {
margin: 0;
font-size: 28px;
line-height: 1.1;
}
.login p, .view-title p {
margin: 8px 0 0;
color: var(--muted);
}
.field {
display: grid;
gap: 6px;
margin-top: 16px;
}
label {
color: var(--muted);
font-size: 13px;
font-weight: 650;
}
input, textarea, select {
width: 100%;
min-height: 40px;
border: 1px solid var(--line);
border-radius: 6px;
background: #fff;
color: var(--text);
padding: 9px 10px;
outline: none;
}
textarea {
resize: vertical;
min-height: 84px;
}
input:focus, textarea:focus, select:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(37, 111, 91, 0.14);
}
.primary, .ghost, .danger {
min-height: 38px;
border-radius: 6px;
padding: 8px 12px;
font-weight: 700;
}
.primary {
background: var(--accent);
color: #fff;
}
.primary:hover {
background: var(--accent-strong);
}
.ghost {
border: 1px solid var(--line);
background: #fff;
color: var(--text);
}
.danger {
background: #fff1f1;
color: var(--danger);
border: 1px solid #edc9c9;
}
.app-shell {
min-height: 100vh;
display: grid;
grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
border-right: 1px solid var(--line);
background: #fff;
padding: 20px 16px;
display: flex;
flex-direction: column;
gap: 20px;
}
.brand {
display: grid;
gap: 4px;
}
.brand strong {
font-size: 18px;
}
.brand span, .user small, .meta {
color: var(--muted);
font-size: 13px;
}
.nav {
display: grid;
gap: 8px;
}
.nav button {
display: flex;
align-items: center;
gap: 9px;
width: 100%;
min-height: 40px;
border-radius: 6px;
background: transparent;
color: var(--text);
padding: 8px 10px;
text-align: left;
}
.nav button.active {
background: var(--panel-soft);
color: var(--accent-strong);
font-weight: 750;
}
.user {
margin-top: auto;
display: grid;
gap: 12px;
}
.content {
min-width: 0;
padding: 24px;
}
.topbar {
display: flex;
gap: 16px;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 20px;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: flex-end;
}
.status-pill {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 32px;
padding: 6px 10px;
border: 1px solid var(--line);
border-radius: 999px;
background: #fff;
color: var(--muted);
white-space: nowrap;
}
.dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--warn);
}
.dot.ok {
background: var(--ok);
}
.board {
display: grid;
grid-template-columns: repeat(4, minmax(220px, 1fr));
gap: 12px;
align-items: start;
}
.column {
min-width: 0;
background: #edf1f6;
border: 1px solid var(--line);
border-radius: 8px;
padding: 10px;
min-height: 520px;
}
.column h2 {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 0 10px;
font-size: 14px;
text-transform: uppercase;
color: var(--muted);
}
.count {
display: inline-grid;
place-items: center;
min-width: 24px;
height: 24px;
border-radius: 999px;
background: #fff;
color: var(--text);
}
.dropzone {
min-height: 456px;
border-radius: 8px;
transition: background 0.16s ease, box-shadow 0.16s ease;
}
.dropzone.drag-over {
background: rgba(50, 104, 216, 0.08);
box-shadow: inset 0 0 0 2px rgba(50, 104, 216, 0.28);
}
.empty-state {
margin: 0;
padding: 32px 6px;
text-align: center;
color: var(--muted);
font-size: 13px;
}
.task {
display: grid;
gap: 10px;
background: #fff;
border: 1px solid var(--line);
border-radius: 8px;
padding: 12px;
margin-bottom: 10px;
box-shadow: 0 4px 14px rgba(23, 32, 28, 0.04);
cursor: grab;
transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}
.task:hover,
.task:focus-visible {
border-color: rgba(50, 104, 216, 0.45);
box-shadow: 0 12px 24px rgba(24, 33, 47, 0.1);
outline: none;
transform: translateY(-1px);
}
.task.dragging {
opacity: 0.55;
cursor: grabbing;
}
.task-card-head {
display: flex;
gap: 8px;
align-items: center;
justify-content: space-between;
}
.task h3 {
margin: 0;
font-size: 15px;
}
.task p {
margin: 0;
color: var(--muted);
font-size: 13px;
overflow-wrap: anywhere;
}
.task-footer {
display: flex;
gap: 6px;
align-items: center;
justify-content: space-between;
}
.badge {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 3px 8px;
border-radius: 999px;
background: var(--accent-soft);
color: var(--accent-strong);
font-size: 12px;
font-weight: 750;
}
.priority-urgent .badge,
.priority-high .badge {
background: #fff3d8;
color: #8a4f00;
}
.priority-low .badge {
background: #e9f8f0;
color: #0d6b4d;
}
.task-controls {
display: flex;
gap: 4px;
}
.icon-button {
width: 30px;
height: 30px;
border-radius: 6px;
border: 1px solid var(--line);
background: #fff;
color: var(--text);
}
.panel {
background: #fff;
border: 1px solid var(--line);
border-radius: 8px;
padding: 18px;
max-width: 760px;
}
.panel + .panel {
margin-top: 14px;
}
.grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.error {
margin-top: 12px;
color: var(--danger);
font-weight: 700;
}
dialog {
width: min(560px, calc(100vw - 32px));
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
padding: 22px;
}
dialog::backdrop {
background: rgba(18, 26, 23, 0.35);
}
.dialog-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
margin-top: 16px;
}
.dialog-meta {
min-height: 20px;
color: var(--muted);
font-size: 12px;
}
@media (max-width: 980px) {
.app-shell {
grid-template-columns: 1fr;
}
.sidebar {
position: sticky;
top: 0;
z-index: 2;
border-right: 0;
border-bottom: 1px solid var(--line);
padding: 12px;
}
.nav, .user {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.board {
grid-template-columns: repeat(2, minmax(220px, 1fr));
}
}
@media (max-width: 640px) {
.content {
padding: 16px;
}
.topbar {
display: grid;
}
.actions {
justify-content: flex-start;
}
.board, .grid {
grid-template-columns: 1fr;
}
.column {
min-height: 260px;
}
}