271 lines
13 KiB
CSS
271 lines
13 KiB
CSS
/* Palette UI tokens (mirrors sketches/themes/tokens.css, midnight approved preset) */
|
|
:root {
|
|
--bg: #241B30; --surface: #2D2340; --surface-2: #3A2D52;
|
|
--muted: #7A6A9E; --muted-fg: #C0B2DE; --fg: #F2EDF8;
|
|
--accent: #C4A8F0; --border: #42355C;
|
|
--radius-lg: 20px; --radius: 10px; --radius-sm: 999px;
|
|
--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
--font-mono: ui-monospace, "JetBrains Mono", "Fira Code", monospace;
|
|
}
|
|
[data-preset="smooth"] {
|
|
--bg: #F6F5FA; --surface: #FFFFFF; --surface-2: #DAD7E6;
|
|
--muted: #B5B1C9; --muted-fg: #7A7796; --fg: #2A2A36;
|
|
--accent: #7A7796; --border: #DAD7E6;
|
|
}
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body {
|
|
font-family: var(--font-body);
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
line-height: 1.45;
|
|
-webkit-font-smoothing: antialiased;
|
|
min-height: 100vh;
|
|
font-size: 24.2px;
|
|
}
|
|
.topbar {
|
|
display: flex; align-items: center; gap: 20px;
|
|
padding: 0 22px; height: 76px;
|
|
background: var(--surface); border-bottom: 1px solid var(--border);
|
|
}
|
|
.logo { font-weight: 700; font-size: 27.6px; letter-spacing: -0.02em; text-decoration: none; color: var(--fg); }
|
|
.logo em { font-style: normal; color: var(--muted-fg); font-weight: 400; }
|
|
.topbar nav { display: flex; gap: 4px; }
|
|
.topbar nav a { color: var(--muted-fg); text-decoration: none; padding: 6px 12px; border-radius: var(--radius); font-size: 23.2px; }
|
|
.topbar nav a:hover { background: var(--surface-2); color: var(--fg); }
|
|
.topbar nav a.on { background: var(--accent); color: var(--bg); }
|
|
.topbar .spacer { flex: 1; }
|
|
.kbd { font-family: var(--font-mono); font-size: 18.9px; border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 6px; color: var(--muted-fg); }
|
|
|
|
.float {
|
|
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
|
|
box-shadow:
|
|
0 1px 2px rgba(0, 0, 0, .10),
|
|
0 2px 6px rgba(0, 0, 0, .08),
|
|
0 8px 24px rgba(0, 0, 0, .07);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* new paste page */
|
|
.deck {
|
|
display: grid; grid-template-columns: 1fr 300px; gap: 16px;
|
|
padding: 16px 20px 20px; height: calc(100vh - 76px);
|
|
max-width: 1400px; margin: 0 auto;
|
|
}
|
|
.pane-r { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; padding-bottom: 4px; }
|
|
.side-section { padding: 14px 16px; flex-shrink: 0; }
|
|
.side-section h3 { font-size: 18.9px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); margin-bottom: 10px; }
|
|
.pane-l-col { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
|
|
.pane-l-head { flex-shrink: 0; }
|
|
.editor-head {
|
|
display: flex; align-items: center; gap: 12px; padding: 12px 16px;
|
|
}
|
|
.editor-head input {
|
|
border: none; outline: none; background: transparent; color: var(--fg); font: inherit; font-size: 23.2px; flex: 1;
|
|
}
|
|
.editor-head select {
|
|
border: 1px solid var(--border); background: var(--surface-2); color: var(--muted-fg);
|
|
border-radius: var(--radius); padding: 4px 10px; font: inherit; font-size: 21.6px; cursor: pointer;
|
|
}
|
|
.editor-wrap { flex: 1; display: flex; min-height: 0; }
|
|
.gutter {
|
|
padding: 14px 10px; text-align: right; color: var(--muted); font-family: var(--font-mono);
|
|
font-size: 21.6px; line-height: 1.7; user-select: none; white-space: pre; overflow: hidden;
|
|
border-right: 1px solid var(--border);
|
|
}
|
|
.editor {
|
|
flex: 1; padding: 14px 16px; font-family: var(--font-mono); font-size: 21.6px; line-height: 1.7;
|
|
white-space: pre; outline: none; overflow: auto; border: none; background: transparent; color: var(--fg);
|
|
resize: none; width: 100%;
|
|
}
|
|
.editor::placeholder { color: var(--muted); }
|
|
.actionbar {
|
|
display: flex; align-items: center; gap: 14px;
|
|
padding: 10px 4px;
|
|
}
|
|
.actionbar .btn { padding: 10px 26px; }
|
|
.btn {
|
|
background: var(--accent); color: var(--bg); border: none; cursor: pointer;
|
|
padding: 8px 18px; border-radius: var(--radius); font: inherit; font-size: 22.4px; font-weight: 600;
|
|
}
|
|
.btn:hover { filter: brightness(1.08); }
|
|
.hint { font-size: 20.7px; color: var(--muted-fg); }
|
|
.hint b { color: var(--fg); font-weight: 550; }
|
|
.seg { display: flex; flex-direction: column; gap: 2px; }
|
|
.seg label { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: var(--radius); cursor: pointer; font-size: 22.4px; }
|
|
.seg label:hover { background: var(--surface-2); }
|
|
.seg input { accent-color: var(--accent); }
|
|
.toggle { display: flex; align-items: center; gap: 8px; font-size: 22.4px; cursor: pointer; padding: 5px 8px; border-radius: var(--radius); }
|
|
.toggle:hover { background: var(--surface-2); }
|
|
.toggle input { accent-color: var(--accent); }
|
|
.deck .row { display: flex; justify-content: space-between; align-items: center; font-size: 22.4px; padding: 4px 0; }
|
|
.row input[type="text"] {
|
|
border: 1px solid var(--border); border-radius: var(--radius); padding: 5px 8px; background: var(--bg);
|
|
color: var(--fg); font: inherit; font-size: 21.6px; width: 130px;
|
|
}
|
|
.created-banner {
|
|
display: none; padding: 10px 16px; font-size: 22.4px; background: var(--surface-2);
|
|
border-bottom: 1px solid var(--border); word-break: break-all;
|
|
}
|
|
.created-banner a { color: var(--accent); }
|
|
|
|
/* paste view */
|
|
.meta-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; flex-wrap: wrap; }
|
|
.meta-bar h1 { font-size: 29.2px; font-weight: 600; }
|
|
.slug { font-family: var(--font-mono); font-size: 21.6px; color: var(--muted-fg); background: var(--surface-2); padding: 3px 9px; border-radius: var(--radius); }
|
|
.tag { font-size: 19.8px; color: var(--muted-fg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px 9px; }
|
|
.meta-bar .spacer { flex: 1; }
|
|
.iconbtn { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted-fg); border-radius: var(--radius); padding: 5px 12px; font: inherit; font-size: 21.6px; cursor: pointer; text-decoration: none; }
|
|
.iconbtn:hover { color: var(--fg); border-color: var(--muted); }
|
|
.iconbtn.danger:hover { color: #ff8fa3; border-color: #ff8fa3; }
|
|
.code-head {
|
|
display: flex; align-items: center; gap: 10px; padding: 8px 16px;
|
|
border-bottom: 1px solid var(--border); font-size: 21.6px; color: var(--muted-fg);
|
|
}
|
|
.code-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
|
|
.code {
|
|
font-family: var(--font-mono); font-size: 22.4px; line-height: 1.7;
|
|
padding: 14px 0; display: flex; overflow-x: auto;
|
|
}
|
|
.code .gutter { flex-shrink: 0; }
|
|
.codebody { padding: 0 18px; white-space: pre; }
|
|
.footnote { display: flex; gap: 20px; padding: 10px 18px; font-size: 20.7px; color: var(--muted-fg); border-top: 1px solid var(--border); flex-wrap: wrap; }
|
|
|
|
/* history */
|
|
.page { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
|
|
.head-row { display: flex; align-items: baseline; gap: 14px; }
|
|
.head-row h1 { font-size: 34.5px; font-weight: 600; }
|
|
.search {
|
|
display: flex; align-items: center; gap: 8px; background: var(--surface);
|
|
border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 14px; width: 260px;
|
|
}
|
|
.search input { border: none; outline: none; background: transparent; color: var(--fg); font: inherit; font-size: 22.4px; width: 100%; }
|
|
table { width: 100%; border-collapse: collapse; font-size: 22.4px; table-layout: fixed; }
|
|
th {
|
|
text-align: left; font-size: 18.9px; text-transform: uppercase; letter-spacing: .08em;
|
|
color: var(--muted-fg); padding: 10px 16px; border-bottom: 1px solid var(--border); font-weight: 600;
|
|
}
|
|
td { padding: 10px 16px; border-bottom: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
tr:last-child td { border-bottom: none; }
|
|
tr.row { cursor: pointer; }
|
|
tr.row:hover td { background: var(--surface-2); }
|
|
tr.row:hover td a.slug { color: var(--accent); }
|
|
td a.slug { font-family: var(--font-mono); font-size: 21.6px; color: var(--fg); text-decoration: none; }
|
|
td a.slug:hover { color: var(--accent); }
|
|
.badge { font-size: 18.9px; border: 1px solid var(--border); color: var(--muted-fg); border-radius: var(--radius-sm); padding: 1px 8px; }
|
|
.badge.lock { color: var(--accent); border-color: var(--accent); }
|
|
.dim { color: var(--muted-fg); white-space: nowrap; }
|
|
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 21.6px; color: var(--muted-fg); }
|
|
.pager .pg { display: flex; gap: 6px; }
|
|
.pager button { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted-fg); border-radius: var(--radius); padding: 4px 11px; font: inherit; font-size: 21.6px; cursor: pointer; }
|
|
.pager button:hover:not(:disabled) { color: var(--fg); border-color: var(--muted); }
|
|
.pager button.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
|
|
.pager button:disabled { opacity: .4; cursor: default; }
|
|
.empty { text-align: center; padding: 40px 16px; color: var(--muted-fg); font-size: 22.4px; }
|
|
|
|
/* unlock */
|
|
.center { display: flex; align-items: center; justify-content: center; padding: 20px; height: calc(100vh - 52px); }
|
|
.center .float { width: 400px; max-width: 100%; }
|
|
.inner { padding: 28px; text-align: center; }
|
|
.lockring {
|
|
width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
|
|
background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 41.4px;
|
|
}
|
|
.inner h1 { font-size: 29.2px; font-weight: 600; margin-bottom: 6px; }
|
|
.inner .sub { font-size: 22.4px; color: var(--muted-fg); margin-bottom: 20px; }
|
|
.pwinput {
|
|
width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
|
|
background: var(--bg); color: var(--fg); font: inherit; font-size: 23.2px; outline: none; text-align: center;
|
|
letter-spacing: .12em;
|
|
}
|
|
.pwinput:focus { border-color: var(--accent); }
|
|
.center .btn { width: 100%; margin-top: 12px; }
|
|
.err { display: none; margin-top: 12px; font-size: 21.6px; color: #ff8fa3; }
|
|
.center .foot { font-size: 20.7px; color: var(--muted-fg); padding: 14px; border-top: 1px solid var(--border); }
|
|
|
|
.btn-icon {
|
|
padding: 4px 8px; font-size: 24.2px; line-height: 1; overflow: visible;
|
|
display: inline-flex; align-items: center; justify-content: center;
|
|
min-width: 40px; height: 36px;
|
|
}
|
|
|
|
/* selection controls: pill-style selected states (#14) */
|
|
.seg label, .toggle {
|
|
border: 1px solid transparent;
|
|
transition: background .12s ease, border-color .12s ease, color .12s ease;
|
|
}
|
|
.seg label:hover, .toggle:hover {
|
|
background: var(--surface-2);
|
|
color: var(--fg);
|
|
}
|
|
.seg label:has(input:checked),
|
|
.toggle:has(input:checked) {
|
|
background: var(--surface-2);
|
|
border-color: var(--accent);
|
|
color: var(--fg);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
.seg label:has(input:focus-visible),
|
|
.toggle:has(input:focus-visible) {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 1px;
|
|
}
|
|
.seg input, .toggle input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
|
|
|
|
/* toast (#19) */
|
|
.toast {
|
|
position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(8px);
|
|
background: var(--surface-2); color: var(--fg); border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm); padding: 6px 18px; font-size: 20.7px;
|
|
opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 200;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,.25);
|
|
}
|
|
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
|
|
/* protection section rhythm (#20) */
|
|
.protect { display: flex; flex-direction: column; gap: 2px; }
|
|
.protect .pw-row { padding: 2px 8px 4px; }
|
|
.pw-field {
|
|
display: flex; align-items: center; gap: 2px; width: 100%;
|
|
border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
|
|
}
|
|
.pw-field:focus-within { border-color: var(--accent); }
|
|
.pw-field input {
|
|
flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--fg);
|
|
font: inherit; font-size: 21.6px; padding: 7px 12px; letter-spacing: .08em;
|
|
}
|
|
.pw-field input::placeholder { color: var(--muted); letter-spacing: normal; }
|
|
.pw-field .reveal {
|
|
background: none; border: none; color: var(--muted-fg); cursor: pointer;
|
|
display: flex; align-items: center; justify-content: center; padding: 0 10px; height: 100%;
|
|
flex-shrink: 0;
|
|
}
|
|
.pw-field .reveal:hover { color: var(--fg); }
|
|
.pw-field svg { width: 20px; height: 20px; display: block; }
|
|
|
|
/* custom URL input (#22) */
|
|
.deck .row input[type="text"] { width: 100%; }
|
|
.custom-input {
|
|
display: block; width: 100%;
|
|
border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 12px;
|
|
background: var(--bg); color: var(--fg); font: inherit; font-size: 21.6px; outline: none;
|
|
}
|
|
.custom-input:focus { border-color: var(--accent); }
|
|
.custom-input::placeholder { color: var(--muted); }
|
|
|
|
/* btn-icon svg (#24) */
|
|
.btn-icon svg { width: 20px; height: 20px; display: block; }
|
|
|
|
/* search spinner (#32) */
|
|
.search-spinner {
|
|
width: 16px; height: 16px; flex-shrink: 0;
|
|
border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%;
|
|
animation: spin .8s linear infinite; visibility: hidden;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
/* unlock redesign (#27) */
|
|
.unlock-card .pw-field { margin: 18px 0 4px; text-align: left; }
|
|
.unlock-card .pw-field input { text-align: left; }
|
|
.unlock-err { margin-top: 10px; font-size: 20.7px; color: #ff8fa3; }
|