mastermap-cleaner / ui /static /styles.css
andrewbejjani's picture
Add collapsable user guide in the UI
dbee56e
:root {
--bg: #f6f7f9;
--panel: #ffffff;
--text: #17202a;
--muted: #627386;
--line: #d9e0e7;
--accent: #2457c5;
--accent-dark: #1d459c;
--danger: #b42318;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: Arial, sans-serif;
color: var(--text);
background: var(--bg);
}
header {
padding: 20px 28px;
background: var(--panel);
border-bottom: 1px solid var(--line);
}
h1 { margin: 0; font-size: 22px; }
h2 { font-size: 16px; margin: 0 0 12px; }
main {
display: grid;
grid-template-columns: 380px 1fr;
gap: 18px;
padding: 18px 28px 28px;
}
section {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
padding: 16px;
}
.guide-panel {
grid-column: 1 / -1;
padding: 0;
overflow: hidden;
}
.guide-panel details {
padding: 0;
}
.guide-panel summary {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
cursor: pointer;
padding: 14px 16px;
font-weight: 700;
}
.guide-panel summary small {
color: var(--muted);
font-size: 12px;
font-weight: 400;
}
.guide-content {
border-top: 1px solid var(--line);
padding: 16px;
}
.readme-content {
max-height: 520px;
overflow: auto;
font-size: 14px;
line-height: 1.55;
}
.guide-content h2 {
margin: 18px 0 8px;
font-size: 15px;
}
.guide-content h1 {
margin: 0 0 12px;
font-size: 20px;
}
.guide-content p {
margin: 0 0 10px;
}
.guide-content ul,
.guide-content ol {
margin: 0 0 12px;
padding-left: 20px;
color: var(--muted);
}
.guide-content li + li {
margin-top: 4px;
}
.guide-content code {
background: #eef2f7;
border-radius: 4px;
padding: 1px 4px;
color: var(--text);
}
.guide-content pre {
margin: 0;
white-space: pre-wrap;
color: var(--muted);
}
label {
display: block;
margin: 14px 0 6px;
font-weight: 700;
font-size: 13px;
}
input, select, textarea, button {
width: 100%;
font: inherit;
border: 1px solid var(--line);
border-radius: 6px;
padding: 10px 11px;
background: #fff;
}
textarea {
min-height: 86px;
resize: vertical;
font-family: Consolas, monospace;
font-size: 13px;
}
button {
cursor: pointer;
background: var(--accent);
color: white;
border-color: var(--accent);
font-weight: 700;
margin-top: 10px;
}
button:hover { background: var(--accent-dark); }
button.secondary {
background: white;
color: var(--accent);
}
button.danger {
background: white;
color: var(--danger);
border-color: var(--danger);
}
button.danger:hover { background: #fff1f0; }
button:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.dropbox {
border: 2px dashed #aeb9c7;
border-radius: 8px;
background: #fbfcfe;
padding: 14px;
color: var(--muted);
}
.dropbox strong {
display: block;
color: var(--text);
margin-bottom: 8px;
}
.dropbox input {
background: white;
cursor: pointer;
}
.file-pill {
border: 1px solid var(--line);
border-radius: 6px;
padding: 10px 11px;
background: #f8fafc;
color: var(--text);
word-break: break-word;
margin-bottom: 8px;
}
.status {
margin-top: 10px;
color: var(--muted);
font-size: 13px;
min-height: 18px;
}
.status.error { color: var(--danger); }
.progress-panel {
display: none;
margin-bottom: 12px;
background: #ffffff;
border: 1px solid var(--line);
border-radius: 8px;
padding: 12px;
}
.progress-panel.active {
display: block;
}
.progress-heading {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
font-size: 13px;
font-weight: 700;
margin-bottom: 10px;
}
.progress-list {
display: grid;
gap: 10px;
}
.progress-row {
border: 1px solid var(--line);
border-radius: 6px;
padding: 10px;
background: #f8fafc;
}
.progress-top {
display: flex;
justify-content: space-between;
gap: 12px;
font-size: 13px;
margin-bottom: 8px;
}
.progress-track {
height: 10px;
background: #e8edf3;
border-radius: 999px;
overflow: hidden;
}
.progress-fill {
height: 100%;
width: 0%;
background: var(--accent);
}
.progress-meta {
margin-top: 8px;
color: var(--muted);
font-size: 12px;
line-height: 1.4;
}
.blueprint-result {
display: none;
margin-bottom: 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: #f8fafc;
padding: 12px;
font-size: 13px;
}
.blueprint-result.active {
display: block;
}
.download-link {
display: inline-block;
color: white;
background: var(--accent);
border-radius: 6px;
padding: 9px 11px;
text-decoration: none;
font-weight: 700;
margin-top: 8px;
}
.download-link:hover {
background: var(--accent-dark);
}
.raw-logs {
border: 1px solid var(--line);
border-radius: 8px;
background: #ffffff;
padding: 10px;
}
.raw-logs summary {
cursor: pointer;
font-size: 13px;
font-weight: 700;
}
.output-block {
margin-bottom: 14px;
}
.output-block h2 {
margin-bottom: 10px;
}
.log-screen {
height: 420px;
margin-top: 10px;
overflow: auto;
background: #0f172a;
color: #dbeafe;
border-radius: 8px;
padding: 14px;
white-space: pre-wrap;
font-family: Consolas, monospace;
font-size: 13px;
line-height: 1.45;
}
hr {
border: 0;
border-top: 1px solid var(--line);
margin: 18px 0;
}
@media (max-width: 900px) {
main {
grid-template-columns: 1fr;
}
.guide-panel summary {
align-items: flex-start;
flex-direction: column;
}
}