SHA256
rewirite to new name
This commit is contained in:
+76
-152
@@ -1,165 +1,89 @@
|
||||
/* crushdb – simple, clean dark UI */
|
||||
|
||||
:root {
|
||||
--bg: #101418;
|
||||
--panel: #1a2028;
|
||||
--panel-2: #202830;
|
||||
--border: #2c3642;
|
||||
--text: #e6edf3;
|
||||
--muted: #8b98a5;
|
||||
--accent: #4da3ff;
|
||||
--danger: #ff5d5d;
|
||||
--ok: #47d68a;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
margin: 0 auto;
|
||||
max-width: 960px;
|
||||
padding: 2rem 1rem;
|
||||
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.5;
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
margin: 0;
|
||||
background: #f6f7f9;
|
||||
color: #1f2330;
|
||||
}
|
||||
|
||||
h1 { margin: 0 0 0.25rem; font-size: 1.6rem; }
|
||||
.tagline { margin: 0 0 1.5rem; color: var(--muted); }
|
||||
|
||||
#flash {
|
||||
min-height: 1.4rem;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--ok);
|
||||
header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 16px;
|
||||
background: #ffffff;
|
||||
border-bottom: 1px solid #e4e7ee;
|
||||
}
|
||||
#flash.error { color: var(--danger); }
|
||||
|
||||
#unlock, #setup {
|
||||
max-width: 420px;
|
||||
margin: 3rem auto;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 1.5rem;
|
||||
.account-bar { display: flex; align-items: center; gap: 12px; }
|
||||
main {
|
||||
max-width: 1100px;
|
||||
margin: 16px auto;
|
||||
padding: 0 16px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
#unlock h2, #setup h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
|
||||
.intro { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
|
||||
|
||||
#unlock label, #setup label { display: block; margin-bottom: 0.75rem; }
|
||||
#unlock input, #setup input {
|
||||
.panel {
|
||||
background: #ffffff;
|
||||
border: 1px solid #e4e7ee;
|
||||
border-radius: 8px;
|
||||
padding: 14px;
|
||||
}
|
||||
.panel h2 { margin-top: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; }
|
||||
.panel label {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: #6b7280;
|
||||
margin: 8px 0 2px;
|
||||
}
|
||||
input, select, textarea {
|
||||
width: 100%;
|
||||
margin-top: 0.25rem;
|
||||
padding: 6px 8px;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
font-family: inherit;
|
||||
}
|
||||
.hint { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; }
|
||||
|
||||
input, button {
|
||||
font: inherit;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
input {
|
||||
background: var(--panel-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 0.7rem;
|
||||
}
|
||||
input:focus { outline: 1px solid var(--accent); }
|
||||
|
||||
button {
|
||||
background: var(--accent);
|
||||
color: #0b1016;
|
||||
textarea { min-height: 60px; resize: vertical; }
|
||||
button, .btn-small {
|
||||
background: #2563eb;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 1rem;
|
||||
padding: 6px 12px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
}
|
||||
button:hover { filter: brightness(1.1); }
|
||||
|
||||
#app .toolbar {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 1rem;
|
||||
button[type="button"] { background: #e5e7eb; color: #1f2330; }
|
||||
.btn-small { padding: 4px 8px; font-size: 12px; }
|
||||
.btn-ghost { background: transparent; color: #dc2626; border: 1px solid #dc2626; }
|
||||
.card { max-width: 420px; margin: 60px auto; padding: 24px; }
|
||||
.card h1 { margin: 0 0 16px; }
|
||||
.hint { font-size: 12px; color: #6b7280; margin-top: 12px; }
|
||||
.msg { color: #dc2626; font-size: 12px; margin-top: 8px; word-break: break-word; }
|
||||
.hidden { display: none; }
|
||||
ul { list-style: none; padding: 0; margin: 8px 0 0; }
|
||||
li {
|
||||
padding: 8px 10px;
|
||||
border: 1px solid #e4e7ee;
|
||||
border-radius: 4px;
|
||||
margin: 4px 0;
|
||||
font-size: 13px;
|
||||
background: #fafbfc;
|
||||
}
|
||||
#lock-btn { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
li .meta { color: #6b7280; font-size: 11px; display: block; margin-top: 4px; }
|
||||
.account-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; }
|
||||
.badge {
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
background: #e5e7eb;
|
||||
color: #374151;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 0.6rem 0.75rem;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--border);
|
||||
.panel.admin {
|
||||
border-color: #c7d2fe;
|
||||
background: #f8faff;
|
||||
}
|
||||
thead th { background: var(--panel-2); color: var(--muted); font-weight: 600; }
|
||||
tbody tr:last-child td { border-bottom: none; }
|
||||
tbody tr:hover { background: var(--panel-2); }
|
||||
|
||||
.row-error td { color: var(--danger); font-size: 0.9rem; }
|
||||
|
||||
td:last-child, td button { white-space: nowrap; }
|
||||
td button + button { margin-left: 0.4rem; }
|
||||
|
||||
/* filter bar */
|
||||
.filters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.filters input[type="search"] { flex: 1 1 220px; min-width: 170px; }
|
||||
.filters select { max-width: 220px; }
|
||||
.filter-count { color: var(--muted); font-size: 0.85rem; margin-left: auto; white-space: nowrap; }
|
||||
|
||||
select {
|
||||
font: inherit;
|
||||
color: var(--text);
|
||||
background: var(--panel-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 0.7rem;
|
||||
}
|
||||
select:focus { outline: 1px solid var(--accent); }
|
||||
option { background: var(--panel); color: var(--text); }
|
||||
|
||||
.secondary {
|
||||
background: var(--panel-2);
|
||||
color: var(--text);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* modal */
|
||||
/* NOTE: keep `hidden` winning over the flex display below, otherwise the
|
||||
backdrop is permanently visible and blocks everything underneath. */
|
||||
#editor-backdrop[hidden] { display: none; }
|
||||
|
||||
#editor-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#editor {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 1.5rem;
|
||||
width: min(440px, 92vw);
|
||||
}
|
||||
|
||||
#editor h2 { margin-top: 0; font-size: 1.15rem; }
|
||||
#editor label { display: block; margin-bottom: 0.75rem; color: var(--muted); }
|
||||
#editor input { width: 100%; margin-top: 0.25rem; }
|
||||
#editor .actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
|
||||
#editor-cancel { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
|
||||
.panel.admin h2 { color: #4338ca; }
|
||||
#myperson .meta { margin-top: 4px; }
|
||||
|
||||
Reference in New Issue
Block a user