Admins set the platform's documents, linked in the footer of the console and sign-in pages and served at /legal/<kind>. Organizations set their own for their status pages, falling back to the platform's. Documents travel in the status page snapshot, so status page servers serve them at /<slug>/imprint and /imprint on custom domains during API outages too. Markdown is rendered with goldmark, which drops raw HTML and unsafe links; stored links must be http or https. Closes #67 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
95 lines
2.4 KiB
CSS
95 lines
2.4 KiB
CSS
@import "tailwindcss";
|
|
|
|
@source "../**/*.templ";
|
|
|
|
@font-face {
|
|
font-family: "IBM Plex Sans";
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-display: swap;
|
|
src: url("/static/dist/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "IBM Plex Sans";
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
font-display: swap;
|
|
src: url("/static/dist/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "IBM Plex Sans";
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
font-display: swap;
|
|
src: url("/static/dist/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "IBM Plex Mono";
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-display: swap;
|
|
src: url("/static/dist/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "IBM Plex Mono";
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
font-display: swap;
|
|
src: url("/static/dist/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
|
|
}
|
|
|
|
@theme {
|
|
--font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
|
|
--font-mono: "IBM Plex Mono", ui-monospace, monospace;
|
|
|
|
--color-ink: #1c1d1f;
|
|
--color-paper: #f4f2ee;
|
|
--color-rule: #d9d5cc;
|
|
--color-muted: #6b675f;
|
|
--color-up: #2f7d4f;
|
|
--color-down: #b3361f;
|
|
--color-degraded: #b57b14;
|
|
--color-unknown: #8a8a86;
|
|
|
|
--radius-box: 2px;
|
|
}
|
|
|
|
@layer base {
|
|
html {
|
|
@apply bg-paper text-ink font-sans antialiased;
|
|
font-feature-settings: "tnum";
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
html {
|
|
--color-ink: #e6e3dc;
|
|
--color-paper: #16171a;
|
|
--color-rule: #2c2d31;
|
|
--color-muted: #9a968d;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Markdown of legal documents, written by operators and organizations. */
|
|
@layer components {
|
|
.legal-text {
|
|
@apply text-sm leading-relaxed;
|
|
}
|
|
.legal-text h1 { @apply mb-6 text-xl font-semibold; }
|
|
.legal-text h2 { @apply mb-3 mt-8 text-base font-semibold; }
|
|
.legal-text h3 { @apply mb-2 mt-6 text-sm font-semibold; }
|
|
.legal-text p,
|
|
.legal-text ul,
|
|
.legal-text ol,
|
|
.legal-text table { @apply mb-4; }
|
|
.legal-text ul { @apply list-disc pl-5; }
|
|
.legal-text ol { @apply list-decimal pl-5; }
|
|
.legal-text a { @apply underline underline-offset-2; }
|
|
.legal-text th,
|
|
.legal-text td { @apply border border-rule px-2 py-1 text-left; }
|
|
.legal-text code { @apply font-mono text-xs; }
|
|
}
|