Initial project
This commit is contained in:
379
static/surveys/site.css
Normal file
379
static/surveys/site.css
Normal file
@@ -0,0 +1,379 @@
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--ink: #12212f;
|
||||
--muted: #607084;
|
||||
--line: #dbe3ee;
|
||||
--panel: #ffffff;
|
||||
--soft: #f5f8fb;
|
||||
--teal: #0f766e;
|
||||
--blue: #1d4ed8;
|
||||
--gold: #f59e0b;
|
||||
--rose: #be123c;
|
||||
--shadow: 0 20px 60px rgba(18, 33, 47, 0.12);
|
||||
--font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
--mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--soft);
|
||||
color: var(--ink);
|
||||
font-family: var(--font);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
align-items: center;
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
border-bottom: 1px solid var(--line);
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
justify-content: space-between;
|
||||
min-height: 72px;
|
||||
padding: 0 42px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.brand {
|
||||
align-items: center;
|
||||
display: inline-flex;
|
||||
font-weight: 800;
|
||||
gap: 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
align-items: center;
|
||||
background: var(--teal);
|
||||
border-radius: 8px;
|
||||
color: #ffffff;
|
||||
display: inline-flex;
|
||||
height: 34px;
|
||||
justify-content: center;
|
||||
width: 34px;
|
||||
}
|
||||
|
||||
.top-nav {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.top-nav a,
|
||||
.button {
|
||||
border-radius: 8px;
|
||||
font-weight: 750;
|
||||
min-height: 40px;
|
||||
padding: 10px 14px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.top-nav a:hover,
|
||||
.button.secondary:hover {
|
||||
background: #eaf1f8;
|
||||
}
|
||||
|
||||
.top-nav .nav-action,
|
||||
.button.primary {
|
||||
background: var(--ink);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.hero {
|
||||
align-items: center;
|
||||
display: grid;
|
||||
gap: 42px;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
|
||||
min-height: 560px;
|
||||
padding: 72px 42px 54px;
|
||||
}
|
||||
|
||||
.hero-copy {
|
||||
max-width: 740px;
|
||||
}
|
||||
|
||||
.eyebrow,
|
||||
.label {
|
||||
color: var(--teal);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 850;
|
||||
letter-spacing: 0.08em;
|
||||
margin: 0 0 12px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: clamp(3rem, 8vw, 6.5rem);
|
||||
line-height: 0.95;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.hero-text,
|
||||
.lead {
|
||||
color: var(--muted);
|
||||
font-size: 1.18rem;
|
||||
line-height: 1.7;
|
||||
max-width: 680px;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.button {
|
||||
align-items: center;
|
||||
border: 1px solid var(--line);
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.button.primary {
|
||||
border-color: var(--ink);
|
||||
}
|
||||
|
||||
.button.secondary {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.hero-visual {
|
||||
background: #ffffff;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
box-shadow: var(--shadow);
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.status-band {
|
||||
background: var(--ink);
|
||||
color: #ffffff;
|
||||
display: grid;
|
||||
gap: 1px;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.status-band div {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
padding: 24px 42px;
|
||||
}
|
||||
|
||||
.status-band .label {
|
||||
color: #93e2d7;
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.status-band a {
|
||||
font-family: var(--mono);
|
||||
font-size: 0.98rem;
|
||||
}
|
||||
|
||||
.overview {
|
||||
padding: 72px 42px;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
max-width: 780px;
|
||||
}
|
||||
|
||||
.section-heading h2,
|
||||
.doc-content h1 {
|
||||
font-size: clamp(2.4rem, 5vw, 4.6rem);
|
||||
line-height: 1;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.feature-grid {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
margin-top: 34px;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
min-height: 230px;
|
||||
padding: 26px;
|
||||
}
|
||||
|
||||
.feature-card h3 {
|
||||
font-size: 1.3rem;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.feature-card p,
|
||||
.doc-content p,
|
||||
.doc-content li {
|
||||
color: var(--muted);
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.feature-number {
|
||||
color: var(--rose);
|
||||
display: block;
|
||||
font-weight: 850;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.doc-layout {
|
||||
display: grid;
|
||||
gap: 38px;
|
||||
grid-template-columns: 230px minmax(0, 900px);
|
||||
padding: 52px 42px 82px;
|
||||
}
|
||||
|
||||
.doc-toc {
|
||||
align-self: start;
|
||||
background: #ffffff;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
padding: 12px;
|
||||
position: sticky;
|
||||
top: 96px;
|
||||
}
|
||||
|
||||
.doc-toc a {
|
||||
border-radius: 6px;
|
||||
color: var(--muted);
|
||||
font-weight: 750;
|
||||
padding: 10px 12px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.doc-toc a:hover {
|
||||
background: #edf4f8;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.doc-content {
|
||||
background: #ffffff;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
box-shadow: var(--shadow);
|
||||
padding: 42px;
|
||||
}
|
||||
|
||||
.doc-content section {
|
||||
border-top: 1px solid var(--line);
|
||||
margin-top: 34px;
|
||||
padding-top: 34px;
|
||||
}
|
||||
|
||||
.doc-content h2 {
|
||||
font-size: 1.8rem;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
pre {
|
||||
background: #12212f;
|
||||
border-radius: 8px;
|
||||
color: #f8fafc;
|
||||
overflow-x: auto;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: var(--mono);
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
.endpoint-list {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.endpoint-list div {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.endpoint-list span {
|
||||
background: #dff8f3;
|
||||
border-radius: 6px;
|
||||
color: var(--teal);
|
||||
display: inline-block;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 850;
|
||||
margin-bottom: 10px;
|
||||
padding: 5px 8px;
|
||||
}
|
||||
|
||||
.endpoint-list code {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.site-header,
|
||||
.hero,
|
||||
.overview,
|
||||
.doc-layout {
|
||||
padding-left: 22px;
|
||||
padding-right: 22px;
|
||||
}
|
||||
|
||||
.hero {
|
||||
grid-template-columns: 1fr;
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.status-band,
|
||||
.feature-grid,
|
||||
.doc-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.doc-toc {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.site-header {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
padding-bottom: 16px;
|
||||
padding-top: 16px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
.hero {
|
||||
padding-top: 44px;
|
||||
}
|
||||
|
||||
.status-band div,
|
||||
.doc-content {
|
||||
padding: 22px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user