Adds a select+button next to the permission editor: pick any other role from the dropdown, click "Use as template" → all checkboxes are replaced with that role's permission set. Local-only (no API call); the user still hits "Save changes" to persist. Includes a banner confirming the load with the source role name + perm count. Selector excludes the currently-edited role. Hidden for non-admins. UI: dark card row matching the Foundry Deck token system (--bg-card, --text-dim mono label, --bg-sink select with --accent focus border). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
711 lines
33 KiB
CSS
711 lines
33 KiB
CSS
/* ============================================================================
|
|
HarborForge — "FOUNDRY DECK"
|
|
A shipwright's drafting table meets a foundry control panel.
|
|
Blackened steel, blueprint grid, molten-ember accent, technical type.
|
|
Full visual redesign — selectors kept 1:1 with existing markup.
|
|
========================================================================== */
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@500;600;700&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');
|
|
|
|
:root {
|
|
/* core surfaces — blackened, cool-tinted steel */
|
|
--bg: #0b0c0f;
|
|
--bg-card: #14161c;
|
|
--bg-hover: #1d212b;
|
|
--bg-sink: #08090b; /* recessed inputs / wells */
|
|
--border: #2b2f3a;
|
|
--border-bright: #3b414f;
|
|
|
|
/* ink — warm cast-paper on cold metal */
|
|
--text: #ece6d8;
|
|
--text-dim: #888f9e;
|
|
|
|
/* molten ember — the one unforgettable thing */
|
|
--accent: #ff6a1a;
|
|
--accent-hover: #ff8636;
|
|
--ember: linear-gradient(135deg, #ff7a1f 0%, #ffa83a 100%);
|
|
--ember-soft: rgba(255, 106, 26, .14);
|
|
--glow: 0 0 0 1px rgba(255,122,31,.40), 0 10px 34px -10px rgba(255,122,31,.55);
|
|
|
|
/* oxidized steel — the cold secondary */
|
|
--steel: #56c6d6;
|
|
|
|
/* forge-mapped status palette */
|
|
--success: #46b487; /* patina */
|
|
--warning: #efa53c; /* heat amber */
|
|
--danger: #e2553c; /* rust */
|
|
--violet: #9a7bff; /* arc */
|
|
|
|
--sidebar-w: 240px;
|
|
--hair: 1px solid var(--border);
|
|
--radius: 4px; /* tight, machined corners */
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
html { scroll-behavior: smooth; }
|
|
|
|
body {
|
|
font-family: 'Hanken Grotesk', system-ui, sans-serif;
|
|
font-size: 15px;
|
|
line-height: 1.55;
|
|
color: var(--text);
|
|
background-color: var(--bg);
|
|
/* layered atmosphere: ember vignette + blueprint grid + grain */
|
|
background-image:
|
|
radial-gradient(120% 80% at 78% -10%, rgba(255,122,31,.13), transparent 55%),
|
|
radial-gradient(90% 70% at 0% 100%, rgba(86,198,214,.06), transparent 60%),
|
|
linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
|
|
background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
|
|
background-attachment: fixed;
|
|
-webkit-font-smoothing: antialiased;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
/* fine grain overlay over everything */
|
|
body::after {
|
|
content: '';
|
|
position: fixed; inset: 0;
|
|
pointer-events: none; z-index: 9999;
|
|
opacity: .035;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
h1, h2, h3, h4 {
|
|
font-family: 'Saira Condensed', 'Hanken Grotesk', sans-serif;
|
|
font-weight: 600;
|
|
letter-spacing: .02em;
|
|
line-height: 1.12;
|
|
color: var(--text);
|
|
}
|
|
h1 { font-size: 1.55rem; text-transform: uppercase; letter-spacing: .06em; }
|
|
h2 { font-size: 1.4rem; }
|
|
h3 { font-size: 1.1rem; }
|
|
|
|
code, pre, .mono { font-family: 'JetBrains Mono', monospace; }
|
|
|
|
a { color: var(--accent); text-decoration: none; transition: color .15s; }
|
|
a:hover { color: var(--accent-hover); text-decoration: none; }
|
|
|
|
::selection { background: rgba(255,122,31,.32); color: #fff; }
|
|
|
|
:focus-visible {
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255,122,31,.6);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar { width: 11px; height: 11px; }
|
|
::-webkit-scrollbar-track { background: var(--bg-sink); }
|
|
::-webkit-scrollbar-thumb { background: #2c313d; border: 3px solid var(--bg-sink); border-radius: 6px; }
|
|
::-webkit-scrollbar-thumb:hover { background: #3c4250; }
|
|
|
|
input, textarea, select, button { font-family: inherit; }
|
|
|
|
/* ---- Layout ------------------------------------------------------------- */
|
|
.app-layout { display: flex; min-height: 100vh; }
|
|
.main-content {
|
|
flex: 1; padding: 34px 44px; margin-left: var(--sidebar-w);
|
|
max-width: 1500px;
|
|
animation: deck-in .5s cubic-bezier(.16,1,.3,1) both;
|
|
}
|
|
.loading {
|
|
display: flex; align-items: center; justify-content: center; height: 100vh;
|
|
font-family: 'Saira Condensed', sans-serif; text-transform: uppercase;
|
|
letter-spacing: .35em; font-size: 1rem; color: var(--text-dim);
|
|
}
|
|
.loading::before { content: '◆ '; color: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
|
|
|
|
@keyframes deck-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
|
|
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
|
|
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
|
|
@keyframes sheen { from { background-position: -200% 0; } to { background-position: 200% 0; } }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
|
|
}
|
|
|
|
/* ---- Sidebar ------------------------------------------------------------ */
|
|
.sidebar {
|
|
position: fixed; top: 0; left: 0; width: var(--sidebar-w); height: 100vh;
|
|
background:
|
|
linear-gradient(180deg, #15171e, #101218);
|
|
border-right: var(--hair);
|
|
display: flex; flex-direction: column; padding: 0 0 14px;
|
|
z-index: 50;
|
|
}
|
|
.sidebar::before { /* hot edge line */
|
|
content: ''; position: absolute; top: 0; right: -1px; width: 2px; height: 100%;
|
|
background: linear-gradient(180deg, transparent, rgba(255,122,31,.5), transparent);
|
|
}
|
|
.sidebar-header { padding: 26px 22px 22px; border-bottom: var(--hair); }
|
|
.sidebar-header h1 {
|
|
font-size: 1.3rem; letter-spacing: .12em;
|
|
display: flex; align-items: center; gap: 8px;
|
|
}
|
|
/* Brand logo (overridable via HARBORFORGE_LOGO_URL / public/logo.svg) */
|
|
.brand-logo {
|
|
height: 1.15em; width: auto; vertical-align: -0.18em;
|
|
display: inline-block; flex: 0 0 auto;
|
|
}
|
|
.login-card h1 .brand-logo, .setup-header h1 .brand-logo { height: 1.4em; }
|
|
.nav-links { list-style: none; flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
|
|
.nav-links li a {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 10px 14px; border-radius: var(--radius);
|
|
color: var(--text-dim); font-size: .82rem;
|
|
font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
|
|
position: relative; transition: .15s;
|
|
}
|
|
.nav-links li a:hover { color: var(--text); background: var(--bg-hover); }
|
|
.nav-links li.active a {
|
|
color: var(--text); background: var(--ember-soft);
|
|
}
|
|
.nav-links li.active a::before {
|
|
content: ''; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px;
|
|
background: var(--ember); border-radius: 0 3px 3px 0;
|
|
box-shadow: 0 0 12px rgba(255,122,31,.7);
|
|
}
|
|
.sidebar-footer {
|
|
margin: 0 12px; padding: 14px; border-top: var(--hair);
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
font-size: .8rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace;
|
|
}
|
|
.sidebar-footer button {
|
|
background: none; border: var(--hair); color: var(--text-dim);
|
|
padding: 5px 11px; border-radius: var(--radius); cursor: pointer;
|
|
font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; transition: .15s;
|
|
}
|
|
.sidebar-footer button:hover { border-color: var(--accent); color: var(--accent); }
|
|
|
|
/* ---- Login -------------------------------------------------------------- */
|
|
.login-page {
|
|
display: flex; align-items: center; justify-content: center;
|
|
min-height: 100vh; padding: 24px;
|
|
}
|
|
.login-card {
|
|
position: relative; background: var(--bg-card); padding: 46px 42px;
|
|
border: var(--hair); border-radius: 6px; width: 380px; text-align: center;
|
|
box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
|
|
animation: deck-in .55s cubic-bezier(.16,1,.3,1) both;
|
|
}
|
|
.login-card::before { /* molten top edge */
|
|
content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
|
|
background: var(--ember); border-radius: 6px 6px 0 0;
|
|
}
|
|
.login-card::after { /* corner draftsman tick */
|
|
content: ''; position: absolute; right: 14px; bottom: 14px; width: 14px; height: 14px;
|
|
border-right: 2px solid var(--border-bright); border-bottom: 2px solid var(--border-bright);
|
|
}
|
|
.login-card h1 { margin-bottom: 6px; letter-spacing: .1em; }
|
|
.login-card .subtitle, .setup-header p {
|
|
color: var(--text-dim); margin-bottom: 28px; font-size: .82rem;
|
|
text-transform: uppercase; letter-spacing: .14em;
|
|
}
|
|
.login-card form, .setup-form { display: flex; flex-direction: column; gap: 14px; }
|
|
.login-card input {
|
|
padding: 12px 14px; border: var(--hair); border-radius: var(--radius);
|
|
background: var(--bg-sink); color: var(--text); font-size: .95rem; transition: .15s;
|
|
}
|
|
.login-card input::placeholder { color: #5b6170; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
|
|
.login-card input:focus { border-color: var(--accent); background: var(--bg); }
|
|
.login-card button, .setup-nav button {
|
|
padding: 12px; background: var(--ember); color: #1a0d02; border: none;
|
|
border-radius: var(--radius); font-size: .9rem; cursor: pointer;
|
|
font-family: 'Saira Condensed', sans-serif; font-weight: 700;
|
|
text-transform: uppercase; letter-spacing: .14em; transition: .18s;
|
|
}
|
|
.login-card button:hover, .setup-nav button:hover { box-shadow: var(--glow); transform: translateY(-1px); }
|
|
.login-card button:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
|
|
.error { color: var(--danger); font-size: .82rem; font-family: 'JetBrains Mono', monospace; }
|
|
|
|
/* ---- Stats -------------------------------------------------------------- */
|
|
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 28px; }
|
|
.stat-card {
|
|
position: relative; background: var(--bg-card); border: var(--hair);
|
|
border-radius: var(--radius); padding: 20px 18px; overflow: hidden;
|
|
transition: .18s; animation: deck-in .5s cubic-bezier(.16,1,.3,1) both;
|
|
}
|
|
.stat-card::before {
|
|
content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ember);
|
|
}
|
|
.stat-card.total::before { background: var(--steel); }
|
|
.stat-card:hover { transform: translateY(-3px); border-color: var(--border-bright); box-shadow: 0 16px 30px -18px rgba(0,0,0,.8); }
|
|
.stat-card:nth-child(2) { animation-delay: .05s; }
|
|
.stat-card:nth-child(3) { animation-delay: .1s; }
|
|
.stat-card:nth-child(4) { animation-delay: .15s; }
|
|
.stat-card:nth-child(5) { animation-delay: .2s; }
|
|
.stat-number {
|
|
display: block; font-family: 'Saira Condensed', sans-serif; font-size: 2.4rem;
|
|
font-weight: 700; line-height: 1; color: var(--text);
|
|
}
|
|
.stat-label {
|
|
display: block; font-size: .68rem; color: var(--text-dim); margin-top: 8px;
|
|
text-transform: uppercase; letter-spacing: .16em;
|
|
}
|
|
|
|
/* ---- Bar chart ---------------------------------------------------------- */
|
|
.bar-chart { margin: 14px 0; }
|
|
.bar-row { display: flex; align-items: center; margin: 7px 0; }
|
|
.bar-label { width: 80px; font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
|
|
.bar {
|
|
padding: 5px 11px; border-radius: 2px; color: #fff;
|
|
font-family: 'JetBrains Mono', monospace; font-size: .76rem;
|
|
min-width: 30px; text-align: right; transition: width .5s cubic-bezier(.16,1,.3,1);
|
|
}
|
|
|
|
/* ---- Tables ------------------------------------------------------------- */
|
|
table { width: 100%; border-collapse: collapse; margin-top: 14px; }
|
|
thead th {
|
|
text-align: left; padding: 11px 14px; border-bottom: 2px solid var(--border-bright);
|
|
color: var(--text-dim); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em;
|
|
font-weight: 700;
|
|
}
|
|
tbody td { padding: 12px 14px; border-bottom: var(--hair); font-size: .9rem; }
|
|
tbody tr:last-child td { border-bottom: none; }
|
|
tr.clickable { cursor: pointer; transition: .12s; }
|
|
tr.clickable:hover { background: var(--ember-soft); }
|
|
tr.clickable:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
|
|
.task-title { font-weight: 600; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
/* ---- Badges ------------------------------------------------------------- */
|
|
.badge {
|
|
display: inline-block; padding: 3px 9px; border-radius: 2px;
|
|
font-family: 'JetBrains Mono', monospace; font-size: .68rem; font-weight: 700;
|
|
text-transform: uppercase; letter-spacing: .06em;
|
|
color: #0b0c0f; background: var(--text-dim);
|
|
border: 1px solid rgba(255,255,255,.12);
|
|
}
|
|
.status-open { background: #5b8def; color: #fff; }
|
|
.status-in_progress { background: var(--ember); }
|
|
.status-undergoing { background: var(--ember); }
|
|
.status-resolved { background: var(--success); color: #04130d; }
|
|
.status-completed { background: var(--success); color: #04130d; }
|
|
.status-closed { background: #5a616f; color: #fff; }
|
|
.status-blocked { background: var(--danger); color: #fff; }
|
|
.status-freeze { background: var(--steel); color: #042127; }
|
|
.status-pending { background: var(--warning); }
|
|
.priority-low { background: #5a616f; color: #fff; }
|
|
.priority-medium { background: #5b8def; color: #fff; }
|
|
.priority-high { background: var(--warning); }
|
|
.priority-critical { background: var(--danger); color: #fff; }
|
|
|
|
/* ---- Page header / buttons --------------------------------------------- */
|
|
.page-header {
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
margin-bottom: 22px; padding-bottom: 16px; border-bottom: var(--hair);
|
|
}
|
|
.page-header h2 { letter-spacing: .04em; }
|
|
.btn-primary {
|
|
background: var(--ember); color: #1a0d02; border: none;
|
|
padding: 9px 18px; border-radius: var(--radius); cursor: pointer;
|
|
font-family: 'Saira Condensed', sans-serif; font-weight: 700;
|
|
font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; transition: .18s;
|
|
}
|
|
.btn-primary:hover { box-shadow: var(--glow); transform: translateY(-1px); }
|
|
.btn-back {
|
|
background: none; border: var(--hair); color: var(--text-dim);
|
|
padding: 7px 14px; border-radius: var(--radius); cursor: pointer;
|
|
margin-bottom: 18px; font-size: .8rem; text-transform: uppercase;
|
|
letter-spacing: .08em; transition: .15s;
|
|
}
|
|
.btn-back:hover { border-color: var(--accent); color: var(--accent); }
|
|
|
|
/* ---- Filters / pagination ---------------------------------------------- */
|
|
.filters { margin-bottom: 14px; display: flex; gap: 8px; }
|
|
.filters select, .inline-form select, .inline-form input {
|
|
padding: 8px 12px; border: var(--hair); border-radius: var(--radius);
|
|
background: var(--bg-card); color: var(--text); font-size: .88rem; transition: .15s;
|
|
}
|
|
.filters select:focus, .inline-form select:focus, .inline-form input:focus { border-color: var(--accent); }
|
|
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
|
|
.pagination button {
|
|
padding: 7px 16px; border: var(--hair); background: var(--bg-card); color: var(--text);
|
|
border-radius: var(--radius); cursor: pointer; font-size: .82rem;
|
|
text-transform: uppercase; letter-spacing: .06em; transition: .15s;
|
|
}
|
|
.pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
|
|
.pagination button:disabled { opacity: .35; cursor: default; }
|
|
|
|
/* ---- Task / detail ------------------------------------------------------ */
|
|
.task-header { margin-bottom: 24px; }
|
|
.task-header h2 { margin-bottom: 10px; }
|
|
.task-meta { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.tags { color: var(--steel); font-size: .82rem; font-family: 'JetBrains Mono', monospace; }
|
|
.section { margin: 26px 0; }
|
|
.section h3 {
|
|
margin-bottom: 12px; color: var(--text-dim); font-size: .72rem;
|
|
text-transform: uppercase; letter-spacing: .2em;
|
|
padding-bottom: 8px; border-bottom: var(--hair);
|
|
}
|
|
dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; }
|
|
dt { color: var(--text-dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding-top: 2px; }
|
|
dd { font-size: .92rem; font-family: 'JetBrains Mono', monospace; }
|
|
.actions { display: flex; gap: 8px; }
|
|
.btn-transition {
|
|
padding: 7px 15px; border: var(--hair); background: var(--bg-card); color: var(--text);
|
|
border-radius: var(--radius); cursor: pointer; text-transform: uppercase;
|
|
font-size: .78rem; letter-spacing: .08em; transition: .15s;
|
|
}
|
|
.btn-transition:hover { border-color: var(--accent); color: var(--accent); background: var(--ember-soft); }
|
|
|
|
/* ---- Comments ----------------------------------------------------------- */
|
|
.comment {
|
|
background: var(--bg-card); border: var(--hair); border-left: 3px solid var(--border-bright);
|
|
border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
|
|
}
|
|
.comment:hover { border-left-color: var(--accent); }
|
|
.comment-meta { font-size: .74rem; color: var(--text-dim); margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; }
|
|
.comment-form { margin-top: 14px; }
|
|
.comment-form textarea {
|
|
width: 100%; min-height: 88px; padding: 12px; border: var(--hair);
|
|
border-radius: var(--radius); background: var(--bg-sink); color: var(--text);
|
|
resize: vertical; margin-bottom: 10px; transition: .15s;
|
|
}
|
|
.comment-form textarea:focus { border-color: var(--accent); }
|
|
.comment-form button {
|
|
padding: 9px 18px; background: var(--ember); color: #1a0d02; border: none;
|
|
border-radius: var(--radius); cursor: pointer; font-family: 'Saira Condensed', sans-serif;
|
|
font-weight: 700; text-transform: uppercase; letter-spacing: .1em; transition: .18s;
|
|
}
|
|
.comment-form button:hover { box-shadow: var(--glow); }
|
|
|
|
/* ---- Forms / modal ------------------------------------------------------ */
|
|
.create-task form, .task-create-form { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
|
|
.create-task label, .task-create-form label, .setup-form label {
|
|
display: flex; flex-direction: column; gap: 6px; font-size: .7rem;
|
|
color: var(--text-dim); text-transform: uppercase; letter-spacing: .12em;
|
|
}
|
|
.create-task input, .create-task textarea, .create-task select,
|
|
.task-create-form input, .task-create-form textarea, .task-create-form select,
|
|
.setup-form input {
|
|
padding: 10px 13px; border: var(--hair); border-radius: var(--radius);
|
|
background: var(--bg-sink); color: var(--text); font-size: .92rem;
|
|
font-family: inherit; transition: .15s;
|
|
}
|
|
.create-task input:focus, .create-task textarea:focus, .create-task select:focus,
|
|
.task-create-form input:focus, .task-create-form textarea:focus, .task-create-form select:focus,
|
|
.setup-form input:focus { border-color: var(--accent); background: var(--bg); }
|
|
.create-task textarea, .task-create-form textarea { min-height: 110px; resize: vertical; }
|
|
.task-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
|
|
.modal-overlay {
|
|
position: fixed; inset: 0; background: rgba(4,5,7,.78);
|
|
backdrop-filter: blur(3px); display: flex; align-items: center;
|
|
justify-content: center; z-index: 1000; padding: 24px;
|
|
animation: fadeIn .2s ease;
|
|
}
|
|
.modal {
|
|
position: relative; width: min(720px, 100%); max-height: calc(100vh - 48px);
|
|
overflow: auto; background: var(--bg-card); border: var(--hair);
|
|
border-radius: 6px; padding: 26px;
|
|
box-shadow: 0 40px 90px -30px rgba(0,0,0,.85);
|
|
animation: deck-in .35s cubic-bezier(.16,1,.3,1) both;
|
|
}
|
|
.modal::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ember); border-radius: 6px 6px 0 0; }
|
|
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: var(--hair); }
|
|
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
|
|
|
|
/* ---- Cards (project / milestone) --------------------------------------- */
|
|
.project-grid, .milestone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-top: 18px; }
|
|
.project-card, .milestone-card {
|
|
position: relative; background: var(--bg-card); border: var(--hair);
|
|
border-radius: var(--radius); padding: 22px; cursor: pointer;
|
|
transition: .2s; overflow: hidden;
|
|
animation: deck-in .5s cubic-bezier(.16,1,.3,1) both;
|
|
}
|
|
.project-card::after, .milestone-card::after { /* draftsman corner tick */
|
|
content: ''; position: absolute; right: 12px; top: 12px; width: 10px; height: 10px;
|
|
border-top: 2px solid var(--border-bright); border-right: 2px solid var(--border-bright);
|
|
transition: .2s;
|
|
}
|
|
.project-card:hover, .milestone-card:hover {
|
|
border-color: var(--accent); background: var(--bg-hover);
|
|
transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(0,0,0,.85);
|
|
}
|
|
.project-card:hover::after, .milestone-card:hover::after { border-color: var(--accent); }
|
|
.project-card h3, .milestone-card h3 { margin-bottom: 10px; }
|
|
.project-desc { color: var(--text-dim); font-size: .88rem; margin-bottom: 14px; }
|
|
.project-meta { font-size: .72rem; color: var(--text-dim); display: flex; gap: 14px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }
|
|
.milestone-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
|
|
.milestone-item { display: flex; align-items: center; gap: 10px; padding: 11px 8px; border-bottom: var(--hair); cursor: pointer; transition: .12s; }
|
|
.milestone-item:hover { background: var(--ember-soft); box-shadow: inset 3px 0 0 var(--accent); }
|
|
.milestone-title { font-weight: 600; }
|
|
|
|
/* ---- Progress bar ------------------------------------------------------- */
|
|
.progress-bar-container {
|
|
width: 100%; height: 18px; background: var(--bg-sink); border-radius: 2px;
|
|
overflow: hidden; border: var(--hair);
|
|
}
|
|
.progress-bar {
|
|
height: 100%; background: var(--ember);
|
|
background-image: linear-gradient(135deg, #ff7a1f, #ffa83a), linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
|
|
background-size: 100% 100%, 200% 100%;
|
|
color: #1a0d02; font-family: 'JetBrains Mono', monospace; font-size: .68rem; font-weight: 700;
|
|
display: flex; align-items: center; justify-content: center; min-width: 28px;
|
|
transition: width .6s cubic-bezier(.16,1,.3,1);
|
|
animation: sheen 2.6s linear infinite;
|
|
}
|
|
|
|
/* ---- Notifications ------------------------------------------------------ */
|
|
.notification-list { margin-top: 18px; border: var(--hair); border-radius: var(--radius); overflow: hidden; }
|
|
.notification-item { display: flex; gap: 14px; padding: 14px 18px; border-bottom: var(--hair); cursor: pointer; transition: .12s; }
|
|
.notification-item:last-child { border-bottom: none; }
|
|
.notification-item:hover { background: var(--bg-hover); }
|
|
.notification-item.unread { background: var(--ember-soft); box-shadow: inset 3px 0 0 var(--accent); }
|
|
.notification-dot { width: 12px; color: var(--accent); font-size: .55rem; padding-top: 5px; }
|
|
.notification-body p { margin-bottom: 4px; }
|
|
|
|
/* ---- Misc helpers ------------------------------------------------------- */
|
|
.inline-form { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
|
|
.filter-check { display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: .82rem; cursor: pointer; text-transform: uppercase; letter-spacing: .06em; }
|
|
.member-list { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.empty {
|
|
color: var(--text-dim); padding: 28px 0; text-align: center;
|
|
font-family: 'Saira Condensed', sans-serif; text-transform: uppercase;
|
|
letter-spacing: .24em; font-size: .9rem;
|
|
}
|
|
.empty::before { content: '— '; color: var(--accent); }
|
|
.empty::after { content: ' —'; color: var(--accent); }
|
|
.text-dim { color: var(--text-dim); font-size: .82rem; }
|
|
|
|
/* ---- Monitor ------------------------------------------------------------ */
|
|
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-top: 14px; }
|
|
.monitor-card {
|
|
position: relative; background: var(--bg-card); border: var(--hair);
|
|
border-radius: var(--radius); padding: 18px; overflow: hidden;
|
|
animation: deck-in .5s cubic-bezier(.16,1,.3,1) both;
|
|
}
|
|
.monitor-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--steel); }
|
|
.monitor-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
|
|
.monitor-metrics { margin: 10px 0; font-size: .86rem; font-family: 'JetBrains Mono', monospace; }
|
|
.monitor-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
|
|
.status-ok { background: var(--success); color: #04130d; }
|
|
.status-error { background: var(--danger); color: #fff; }
|
|
.status-pending { background: var(--warning); }
|
|
.status-online { background: var(--success); color: #04130d; }
|
|
.status-offline { background: #5a616f; color: #fff; }
|
|
|
|
/* ---- Secondary / danger buttons ---------------------------------------- */
|
|
.btn-secondary {
|
|
background: none; border: var(--hair); color: var(--text);
|
|
padding: 7px 14px; border-radius: var(--radius); cursor: pointer;
|
|
font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; transition: .15s;
|
|
}
|
|
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
|
|
.btn-danger {
|
|
background: var(--danger); color: #fff; border: none;
|
|
padding: 7px 14px; border-radius: var(--radius); cursor: pointer;
|
|
font-family: 'Saira Condensed', sans-serif; font-weight: 700;
|
|
text-transform: uppercase; letter-spacing: .1em; transition: .15s;
|
|
}
|
|
.btn-danger:hover { box-shadow: 0 8px 24px -8px rgba(226,85,60,.6); transform: translateY(-1px); }
|
|
|
|
/* ---- Tabs --------------------------------------------------------------- */
|
|
.tabs { display: flex; gap: 2px; border-bottom: var(--hair); margin-bottom: 20px; }
|
|
.tab {
|
|
background: none; border: none; padding: 11px 18px; color: var(--text-dim);
|
|
cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
|
|
font-family: 'Saira Condensed', sans-serif; font-weight: 600;
|
|
font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; transition: .15s;
|
|
}
|
|
.tab:hover { color: var(--text); }
|
|
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
|
|
.tab-content { margin-top: 18px; animation: fadeIn .25s ease; }
|
|
|
|
/* ---- Role Editor -------------------------------------------------------- */
|
|
.role-editor-page { animation: deck-in .35s cubic-bezier(.16,1,.3,1) both; }
|
|
.role-editor-page h2 { display: flex; align-items: center; gap: 10px; }
|
|
.role-editor-page .lead {
|
|
color: var(--text-dim); font-size: .82rem;
|
|
text-transform: uppercase; letter-spacing: .12em; margin: 8px 0 22px;
|
|
}
|
|
|
|
.role-editor-banner {
|
|
border: var(--hair); border-radius: var(--radius);
|
|
padding: 12px 16px; margin-bottom: 18px;
|
|
font-family: 'JetBrains Mono', monospace; font-size: .85rem;
|
|
display: flex; align-items: center; gap: 10px;
|
|
animation: fadeIn .25s ease;
|
|
}
|
|
.role-editor-banner.ok { background: rgba(70,180,135,.10); border-color: var(--success); color: var(--success); }
|
|
.role-editor-banner.err { background: rgba(226,85,60,.10); border-color: var(--danger); color: var(--danger); }
|
|
|
|
.role-editor-create {
|
|
background: var(--bg-card); border: var(--hair); border-radius: var(--radius);
|
|
padding: 22px 22px 18px; margin-bottom: 22px;
|
|
position: relative; max-width: 480px;
|
|
animation: fadeIn .2s ease;
|
|
}
|
|
.role-editor-create::before {
|
|
content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
|
|
background: var(--ember); border-radius: var(--radius) 0 0 var(--radius);
|
|
}
|
|
.role-editor-create h3 { margin-bottom: 14px; font-size: 1.05rem; letter-spacing: .04em; }
|
|
.role-editor-create label {
|
|
display: block; margin-bottom: 5px;
|
|
font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
|
|
color: var(--text-dim); font-family: 'JetBrains Mono', monospace;
|
|
}
|
|
.role-editor-create input {
|
|
width: 100%; padding: 9px 12px; margin-bottom: 14px;
|
|
background: var(--bg-sink); color: var(--text);
|
|
border: var(--hair); border-radius: var(--radius);
|
|
font-family: inherit; font-size: .9rem; transition: .15s;
|
|
}
|
|
.role-editor-create input:focus { border-color: var(--accent); outline: none; }
|
|
.role-editor-create .actions { display: flex; gap: 8px; }
|
|
|
|
/* ---- two-column body ---- */
|
|
.role-editor-grid {
|
|
display: grid; grid-template-columns: 280px 1fr; gap: 22px;
|
|
align-items: start;
|
|
}
|
|
@media (max-width: 980px) {
|
|
.role-editor-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
.role-editor-sidebar h3,
|
|
.role-editor-detail h3 {
|
|
font-size: .82rem; text-transform: uppercase; letter-spacing: .14em;
|
|
color: var(--text-dim); margin-bottom: 12px;
|
|
border-bottom: var(--hair); padding-bottom: 8px;
|
|
}
|
|
.role-editor-detail h3 .name {
|
|
color: var(--accent); font-family: 'JetBrains Mono', monospace;
|
|
letter-spacing: .04em; text-transform: none;
|
|
}
|
|
|
|
.role-list { display: flex; flex-direction: column; gap: 8px; }
|
|
.role-card {
|
|
position: relative; padding: 12px 14px;
|
|
background: var(--bg-card); border: var(--hair); border-radius: var(--radius);
|
|
cursor: pointer; transition: .15s; overflow: hidden;
|
|
}
|
|
.role-card:hover { background: var(--bg-hover); border-color: var(--border-bright); }
|
|
.role-card.active {
|
|
background: var(--ember-soft); border-color: var(--accent);
|
|
box-shadow: var(--glow);
|
|
}
|
|
.role-card.active::before {
|
|
content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
|
|
background: var(--ember);
|
|
}
|
|
.role-card .role-name {
|
|
font-family: 'Saira Condensed', sans-serif; font-weight: 700;
|
|
font-size: .98rem; color: var(--text); letter-spacing: .04em;
|
|
display: flex; align-items: center; gap: 6px;
|
|
}
|
|
.role-card .role-desc {
|
|
color: var(--text-dim); font-size: .78rem; margin-top: 3px;
|
|
line-height: 1.35;
|
|
}
|
|
.role-card .role-meta {
|
|
color: var(--steel); font-size: .68rem; margin-top: 6px;
|
|
font-family: 'JetBrains Mono', monospace; letter-spacing: .04em;
|
|
}
|
|
.role-card .role-badge-global {
|
|
font-size: .72rem; color: var(--warning);
|
|
font-family: 'JetBrains Mono', monospace;
|
|
}
|
|
|
|
/* ---- permissions ---- */
|
|
.perm-group {
|
|
background: var(--bg-card); border: var(--hair); border-radius: var(--radius);
|
|
padding: 14px 16px 16px; margin-bottom: 14px;
|
|
}
|
|
.perm-group-header {
|
|
font-family: 'Saira Condensed', sans-serif; font-weight: 600;
|
|
font-size: .85rem; text-transform: uppercase; letter-spacing: .14em;
|
|
color: var(--steel); margin-bottom: 12px;
|
|
padding-bottom: 8px; border-bottom: 1px dashed var(--border);
|
|
}
|
|
.perm-grid {
|
|
display: grid; gap: 8px;
|
|
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
}
|
|
.perm-item {
|
|
display: flex; align-items: flex-start; gap: 10px;
|
|
padding: 9px 11px;
|
|
background: var(--bg-sink); border: 1px solid var(--border); border-radius: 3px;
|
|
cursor: pointer; transition: .12s;
|
|
user-select: none;
|
|
}
|
|
.perm-item:hover { background: var(--bg-hover); border-color: var(--border-bright); }
|
|
.perm-item.checked {
|
|
background: var(--ember-soft);
|
|
border-color: var(--accent);
|
|
box-shadow: inset 0 0 0 1px rgba(255,122,31,.18);
|
|
}
|
|
.perm-item input[type="checkbox"] {
|
|
appearance: none; -webkit-appearance: none;
|
|
width: 14px; height: 14px; margin-top: 2px;
|
|
background: var(--bg); border: 1px solid var(--border-bright);
|
|
border-radius: 2px; cursor: pointer; flex: 0 0 14px;
|
|
position: relative; transition: .12s;
|
|
}
|
|
.perm-item input[type="checkbox"]:checked {
|
|
background: var(--accent); border-color: var(--accent);
|
|
}
|
|
.perm-item input[type="checkbox"]:checked::after {
|
|
content: ''; position: absolute; left: 3px; top: 0px;
|
|
width: 4px; height: 8px;
|
|
border: solid #1a0d02; border-width: 0 2px 2px 0;
|
|
transform: rotate(45deg);
|
|
}
|
|
.perm-item .perm-body { min-width: 0; }
|
|
.perm-item .perm-name {
|
|
font-family: 'JetBrains Mono', monospace; font-size: .82rem;
|
|
color: var(--text); font-weight: 500; word-break: break-word;
|
|
}
|
|
.perm-item.checked .perm-name { color: var(--accent); }
|
|
.perm-item .perm-desc {
|
|
color: var(--text-dim); font-size: .72rem; line-height: 1.35; margin-top: 2px;
|
|
}
|
|
|
|
.role-editor-template {
|
|
display: flex; align-items: center; gap: 10px;
|
|
background: var(--bg-card); border: var(--hair); border-radius: var(--radius);
|
|
padding: 10px 14px; margin-bottom: 14px;
|
|
font-size: .82rem;
|
|
}
|
|
.role-editor-template label {
|
|
color: var(--text-dim); text-transform: uppercase;
|
|
letter-spacing: .12em; font-size: .72rem;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
white-space: nowrap;
|
|
}
|
|
.role-editor-template select {
|
|
flex: 1; min-width: 0;
|
|
padding: 7px 10px;
|
|
background: var(--bg-sink); color: var(--text);
|
|
border: var(--hair); border-radius: var(--radius);
|
|
font-family: 'JetBrains Mono', monospace; font-size: .82rem;
|
|
cursor: pointer; transition: .12s;
|
|
}
|
|
.role-editor-template select:hover { border-color: var(--border-bright); }
|
|
.role-editor-template select:focus { border-color: var(--accent); outline: none; }
|
|
.role-editor-template button:disabled {
|
|
opacity: .4; cursor: not-allowed; border-color: var(--border);
|
|
}
|
|
|
|
.role-editor-actions {
|
|
display: flex; gap: 10px; margin-top: 22px;
|
|
padding-top: 18px; border-top: var(--hair);
|
|
}
|
|
|
|
.role-editor-empty {
|
|
background: var(--bg-card); border: 1px dashed var(--border);
|
|
border-radius: var(--radius); padding: 40px 28px;
|
|
text-align: center; color: var(--text-dim);
|
|
font-family: 'JetBrains Mono', monospace; font-size: .85rem;
|
|
}
|
|
|
|
/* ---- Responsive --------------------------------------------------------- */
|
|
@media (max-width: 860px) {
|
|
:root { --sidebar-w: 0px; }
|
|
.sidebar { transform: translateX(-100%); }
|
|
.main-content { padding: 22px 18px; }
|
|
.task-create-grid { grid-template-columns: 1fr; }
|
|
}
|