Files
2026-11-14 18:25:54 +01:00

461 lines
7.2 KiB
CSS

:root {
--background: #fafaf7;
--text: #252823;
--muted: #60675c;
--accent: #376345;
--surface: #eef1e9;
--border: #d8ded2;
}
body {
max-width: 76rem;
margin: 2rem auto;
padding: 0 1rem;
font-family: system-ui, sans-serif;
line-height: 1.6;
color: var(--text);
background: var(--background);
}
.site-header, .brand, .site-header nav {
display: flex;
align-items: center;
}
.site-header {
justify-content: space-between;
gap: 1rem;
padding-bottom: 1.25rem;
border-bottom: 1px solid var(--border);
}
.brand {
gap: 0.65rem;
font-size: 1.3rem;
font-weight: 750;
letter-spacing: -0.04em;
text-decoration: none;
}
.site-header nav {
gap: 1.25rem;
font-size: 0.85rem;
}
.site-header nav a {
color: var(--muted);
text-decoration: none;
}
.site-header nav a[aria-current] {
color: var(--accent);
font-weight: 650;
}
.readme {
max-width: 60rem;
margin-inline: auto;
overflow-wrap: anywhere;
}
.readme h2 {
margin-top: 2.25rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--border);
font-size: 1.5rem;
}
.readme h3 {
margin-top: 1.75rem;
}
.readme h1, .readme h2, .readme h3 {
scroll-margin-top: 1rem;
}
.readme table {
display: block;
margin-block: 1.5rem;
overflow-x: auto;
}
.readme :not(pre) > code {
padding: 0.1rem 0.3rem;
border-radius: 0.2rem;
background: var(--surface);
font-size: 0.9em;
}
.paste-view h1 {
font-size: 1.75rem;
overflow-wrap: anywhere;
}
.view-counter {
display: inline-block;
flex-shrink: 0;
}
a {
color: var(--accent);
}
main {
margin-block: 2rem;
}
pre {
padding: 1rem;
overflow-x: auto;
background: var(--surface);
}
footer {
color: var(--muted);
}
.table-scroll {
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 0.8rem;
border-bottom: 1px solid var(--border);
font-size: 0.8rem;
text-align: left;
vertical-align: top;
}
td pre {
max-width: 24rem;
max-height: 10rem;
margin: 0;
padding: 0.5rem;
}
time {
white-space: nowrap;
}
h1, h2, p {
margin-top: 0;
}
h1 {
margin-bottom: 0.5rem;
font-size: clamp(2rem, 5vw, 3rem);
line-height: 1.15;
letter-spacing: -0.04em;
}
h2 {
font-size: 1.15rem;
letter-spacing: -0.02em;
}
.muted, .hint {
color: var(--muted);
}
.hint {
font-size: 0.85rem;
}
.eyebrow {
margin-bottom: 0.65rem;
font-size: 0.7rem;
font-weight: 750;
letter-spacing: 0.12em;
color: var(--accent);
}
.workspace-heading, .section-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
}
.badge, .count {
padding: 0.2rem 0.65rem;
border-radius: 2rem;
background: var(--surface);
color: var(--accent);
font-size: 0.8rem;
overflow-wrap: anywhere;
}
.card {
padding: clamp(1rem, 3vw, 1.75rem);
border: 1px solid var(--border);
border-radius: 0.75rem;
background: #fff;
}
.account {
margin: 1rem 0 1.5rem;
}
.account summary {
cursor: pointer;
font-weight: 650;
}
.account form {
margin-top: 1rem;
}
.workspace-tabs {
display: flex;
gap: 1.5rem;
margin: 1.75rem 0;
border-bottom: 1px solid var(--border);
overflow-x: auto;
}
.workspace-tabs a {
padding: 0.75rem 0;
border-bottom: 2px solid transparent;
color: var(--muted);
text-decoration: none;
font-size: 0.9rem;
font-weight: 650;
white-space: nowrap;
}
.workspace-tabs a[aria-current] {
border-bottom-color: var(--accent);
color: var(--accent);
}
.editor-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 17rem;
align-items: start;
gap: 1.25rem;
}
.form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
label {
display: block;
margin-bottom: 1rem;
font-size: 0.85rem;
font-weight: 600;
}
input, select, textarea, button {
box-sizing: border-box;
font: inherit;
}
input:not([type="checkbox"]), select, textarea {
display: block;
width: 100%;
margin-top: 0.4rem;
padding: 0.7rem 0.8rem;
border: 1px solid var(--border);
border-radius: 0.4rem;
color: var(--text);
background: var(--background);
font-weight: 400;
}
textarea {
resize: vertical;
font-family: ui-monospace, monospace;
font-size: 0.875rem;
line-height: 1.6;
tab-size: 4;
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 3px;
}
button {
padding: 0.65rem 1rem;
border: 1px solid transparent;
border-radius: 0.4rem;
background: var(--accent);
color: white;
font-size: 0.85rem;
font-weight: 650;
cursor: pointer;
}
button:hover {
filter: brightness(0.94);
}
.secondary {
border-color: var(--border);
background: white;
color: var(--text);
}
.danger {
border-color: #ead5d1;
background: #fff8f6;
color: #923e31;
}
button:disabled {
opacity: 0.55;
cursor: wait;
}
input:disabled, select:disabled {
opacity: 0.65;
}
.actions, .copy-row {
display: flex;
align-items: center;
gap: 0.75rem;
flex-wrap: wrap;
}
.editor-actions {
margin-top: 1.5rem;
}
.copy-row input {
flex: 1;
min-width: 12rem;
margin-top: 0 !important;
}
.check-label {
display: flex;
align-items: center;
gap: 0.5rem;
}
input[type="checkbox"] {
accent-color: var(--accent);
}
hr {
margin: 1.5rem 0;
border: 0;
border-top: 1px solid var(--border);
}
.status {
padding: 0.9rem 1rem;
border: 1px solid #cadacb;
border-radius: 0.5rem;
background: #edf5ee;
color: #254e30;
overflow-wrap: anywhere;
}
.status[data-error="true"] {
border-color: #e8cfc8;
background: #fff1ec;
color: #7f3022;
}
dialog.result {
box-sizing: border-box;
width: min(36rem, calc(100% - 2rem));
max-height: calc(100vh - 2rem);
box-shadow: 0 1.5rem 5rem rgb(20 35 20 / 20%);
}
dialog::backdrop {
background: rgb(20 35 20 / 45%);
backdrop-filter: blur(3px);
}
.result h2 {
font-size: 1.75rem;
}
.result #share-url {
font-family: ui-monospace, monospace;
}
.result-actions {
justify-content: space-between;
margin-block: 1.5rem;
}
.result [data-error="true"] {
color: #7f3022;
}
.result p:last-child {
margin-bottom: 0;
}
.search-label {
max-width: 26rem;
}
.empty-state {
padding: 3rem 1rem;
color: var(--muted);
text-align: center;
}
td small {
display: block;
margin-top: 0.3rem;
color: var(--muted);
}
.content-preview {
min-width: 10rem;
max-width: 18rem;
white-space: pre-wrap;
overflow-wrap: anywhere;
font-family: ui-monospace, monospace;
}
.row-actions {
min-width: 9rem;
}
.row-actions button {
margin: 0 0.4rem 0.4rem 0;
padding: 0.35rem 0.6rem;
}
[hidden] {
display: none !important;
}
@media (max-width: 760px) {
.editor-layout, .form-grid {
grid-template-columns: 1fr;
}
.workspace-heading {
flex-wrap: wrap;
}
.site-header {
flex-wrap: wrap;
}
.workspace-tabs {
gap: 1.1rem;
}
body {
margin-top: 1rem;
}
}