Template:Accession/FormLanding/styles.css: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) Created page with "→Container: .form-landing { max-width: 900px; margin: 0 auto; font-family: system-ui, -apple-system, sans-serif; } →Header: .landing-header { background: linear-gradient(135deg, #2d5016 0%, #3d6622 100%); color: white; padding: 2rem; border-radius: 12px; margin-bottom: 2rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); } .landing-header h1 { margin: 0 0 0.5rem 0; font-size: 2rem; } .landing-header p { margin: 0; fo..." |
Eloise Zomia (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
.form-landing { | .form-landing { | ||
max-width: 1100px; | |||
margin: 0 auto 2.5rem; | |||
padding: 1.5rem 1.5rem 2.5rem; | |||
box-sizing: border-box; | |||
background: #f9fafb; | |||
border: 1px solid #d1d5db; | |||
border-radius: 12px; | |||
box-shadow: 0 4px 18px rgba(15, 23, 42, 0.10); | |||
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; | |||
color: #0f172a; | |||
} | } | ||
/* Header */ | .form-landing code { | ||
font-family: monospace; | |||
font-size: 0.9em; | |||
background: #111827; | |||
color: #e5e7eb; | |||
padding: 0.08em 0.4em; | |||
border-radius: 4px; | |||
} | |||
/* ============================ | |||
Header | |||
============================ */ | |||
.landing-header { | .landing-header { | ||
padding: 0.5rem 0 1.5rem; | |||
border-bottom: 1px solid #e5e7eb; | |||
margin-bottom: 1.5rem; | |||
} | |||
.landing-kicker { | |||
display: inline-block; | |||
font-size: 0.75rem; | |||
letter-spacing: 0.08em; | |||
text-transform: uppercase; | |||
color: #4b5563; | |||
margin-bottom: 0.25rem; | |||
} | } | ||
.landing-header h1 { | .landing-header h1 { | ||
margin: 0 0 0.4rem; | |||
font-size: 1.75rem; | |||
line-height: 1.2; | |||
color: #0b1120; | |||
} | } | ||
.landing-header p { | .landing-header p { | ||
margin: 0; | |||
color: #4b5563; | |||
font-size: 0.95rem; | |||
} | |||
/* ============================ | |||
Generic cards | |||
============================ */ | |||
.warning-box, | |||
.content-box, | |||
.cta-box { | |||
background: #ffffff; | |||
border-radius: 10px; | |||
border: 1px solid #e5e7eb; | |||
padding: 1.15rem 1.25rem; | |||
margin-bottom: 1.25rem; | |||
box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04); | |||
} | |||
.warning-box h3, | |||
.content-box h2, | |||
.cta-box h3 { | |||
margin-top: 0; | |||
margin-bottom: 0.5rem; | |||
} | } | ||
/* Warning box */ | /* ============================ | ||
Warning box | |||
============================ */ | |||
.warning-box { | .warning-box { | ||
border-left: 4px solid #b91c1c; | |||
background: #fef2f2; | |||
} | } | ||
.warning-box h3 { | .warning-box h3 { | ||
font-size: 1.05rem; | |||
font-weight: 600; | |||
color: #7f1d1d; | |||
} | |||
.warning-box ul { | |||
margin-top: 0.4rem; | |||
margin-bottom: 0.4rem; | |||
padding-left: 1.25rem; | |||
} | |||
.warning-box li { | |||
margin-bottom: 0.15rem; | |||
} | |||
/* ============================ | |||
Content sections | |||
============================ */ | |||
.content-header { | |||
margin-bottom: 0.6rem; | |||
} | |||
.content-header h2 { | |||
margin: 0 0 0.2rem; | |||
font-size: 1.25rem; | |||
color: #111827; | |||
} | } | ||
.content-header p { | |||
.content- | margin: 0; | ||
font-size: 0.9rem; | |||
color: #6b7280; | |||
} | } | ||
.content- | .content-intro { | ||
margin-top: 0.4rem; | |||
font-size: 0.95rem; | |||
color: #111827; | |||
} | } | ||
/* | /* ============================ | ||
Naming examples | |||
============================ */ | |||
.name-examples { | .name-examples { | ||
display: grid; | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
gap: 0.9rem; | |||
margin-top: 0.75rem; | |||
} | |||
.name-card { | |||
border-radius: 10px; | |||
border: 1px solid #e5e7eb; | |||
padding: 0.75rem 0.8rem; | |||
background: #f9fafb; | |||
display: flex; | |||
flex-direction: column; | |||
gap: 0.4rem; | |||
} | |||
.name-card-header { | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
gap: 0.5rem; | |||
margin-bottom: 0.2rem; | |||
} | } | ||
.name- | .name-card-title { | ||
font-weight: 600; | |||
font-size: 0.9rem; | |||
color: #111827; | |||
} | } | ||
.name- | .name-pill { | ||
font-size: 0.68rem; | |||
text-transform: uppercase; | |||
letter-spacing: 0.08em; | |||
padding: 0.15rem 0.5rem; | |||
border-radius: 999px; | |||
font-weight: 600; | |||
white-space: nowrap; | |||
} | } | ||
.name-good | .name-pill-good { | ||
background: #dcfce7; | |||
color: #166534; | |||
border: 1px solid #bbf7d0; | |||
} | } | ||
.name-bad { | .name-pill-bad { | ||
background: #fee2e2; | |||
color: #b91c1c; | |||
border: 1px solid #fecaca; | |||
} | } | ||
.name- | .name-card ul { | ||
margin: 0; | |||
padding-left: 1.1rem; | |||
font-size: 0.9rem; | |||
color: #111827; | |||
} | } | ||
.name- | .name-card li { | ||
margin-bottom: 0.1rem; | |||
} | } | ||
.name- | .name-why { | ||
font-size: 0.85rem; | |||
color: #4b5563; | |||
margin-top: 0.2rem; | |||
} | } | ||
.formula-box { | .formula-box { | ||
margin-top: 0.9rem; | |||
padding: 0.7rem 0.8rem; | |||
border-radius: 8px; | |||
border: 1px dashed #cbd5e1; | |||
background: #eff6ff; | |||
font-size: 0.9rem; | |||
} | |||
.formula-label { | |||
font-size: 0.75rem; | |||
text-transform: uppercase; | |||
letter-spacing: 0.09em; | |||
color: #1d4ed8; | |||
margin-bottom: 0.25rem; | |||
font-weight: 600; | |||
} | } | ||
.formula-box code { | .formula-box code { | ||
display: inline-block; | |||
margin-bottom: 0.25rem; | |||
} | |||
.formula-example { | |||
font-size: 0.85rem; | |||
color: #4b5563; | |||
} | |||
.formula-example span { | |||
font-family: monospace; | |||
} | |||
/* ============================ | |||
Tiers | |||
============================ */ | |||
.tier-grid { | |||
display: grid; | |||
grid-template-columns: repeat(3, minmax(0, 1fr)); | |||
gap: 0.75rem; | |||
margin-top: 0.75rem; | |||
} | } | ||
.tier-box { | .tier-box { | ||
border-radius: 10px; | |||
border: 1px solid #e5e7eb; | |||
background: #f9fafb; | |||
padding: 0.45rem 0.6rem 0.6rem; | |||
} | } | ||
.tier- | .tier-box summary { | ||
list-style: none; | |||
cursor: pointer; | |||
display: flex; | |||
align-items: baseline; | |||
gap: 0.4rem; | |||
padding: 0.15rem 0; | |||
} | } | ||
.tier- | .tier-box[open] { | ||
background: #ffffff; | |||
} | } | ||
.tier- | .tier-box[open] summary { | ||
border-bottom: 1px solid #e5e7eb; | |||
margin-bottom: 0.4rem; | |||
padding-bottom: 0.3rem; | |||
} | } | ||
.tier- | .tier-pill { | ||
font-size: 0.7rem; | |||
text-transform: uppercase; | |||
letter-spacing: 0.08em; | |||
padding: 0.12rem 0.45rem; | |||
border-radius: 999px; | |||
font-weight: 600; | |||
} | } | ||
.tier- | .tier-pill-1 { | ||
background: #dcfce7; | |||
color: #166534; | |||
border: 1px solid #bbf7d0; | |||
} | } | ||
.tier-3 | .tier-pill-2 { | ||
background: #e0f2fe; | |||
color: #1d4ed8; | |||
border: 1px solid #bfdbfe; | |||
} | |||
.tier-pill-3 { | |||
background: #f3e8ff; | |||
color: #6b21a8; | |||
border: 1px solid #e9d5ff; | |||
} | |||
.tier-title { | |||
font-size: 0.9rem; | |||
font-weight: 600; | |||
color: #111827; | |||
} | |||
.tier-count { | |||
font-size: 0.75rem; | |||
color: #6b7280; | |||
} | } | ||
.tier-content { | .tier-content { | ||
margin-top: 0.3rem; | |||
font-size: 0.9rem; | |||
color: #111827; | |||
} | |||
.tier-content ul { | |||
margin: 0.2rem 0 0.3rem; | |||
padding-left: 1.1rem; | |||
} | |||
.tier-content li { | |||
margin-bottom: 0.15rem; | |||
} | } | ||
.tier-warning { | .tier-warning { | ||
margin: 0.2rem 0 0; | |||
font-size: 0.85rem; | |||
color: #b91c1c; | |||
} | |||
/* ============================ | |||
Mistakes | |||
============================ */ | |||
.mistake-grid { | |||
display: grid; | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
gap: 0.75rem; | |||
margin-top: 0.6rem; | |||
} | } | ||
.mistake-box { | .mistake-box { | ||
border-radius: 10px; | |||
border: 1px solid #fee2e2; | |||
background: #fef2f2; | |||
padding: 0.7rem 0.75rem; | |||
} | } | ||
.mistake-title { | .mistake-title { | ||
font-weight: 600; | |||
font-size: 0.9rem; | |||
color: #7f1d1d; | |||
margin-bottom: 0.2rem; | |||
} | } | ||
.mistake-text { | .mistake-text { | ||
font-size: 0.85rem; | |||
color: #7f1d1d; | |||
} | |||
/* ============================ | |||
Best practices | |||
============================ */ | |||
.practice-list { | |||
display: grid; | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
gap: 0.6rem; | |||
margin-top: 0.6rem; | |||
} | } | ||
.practice-box { | .practice-box { | ||
display: flex; | |||
align-items: flex-start; | |||
gap: 0.55rem; | |||
padding: 0.55rem 0.65rem; | |||
border-radius: 10px; | |||
border: 1px solid #e0f2fe; | |||
background: #eff6ff; | |||
} | |||
.practice-icon { | |||
font-size: 1rem; | |||
flex-shrink: 0; | |||
} | |||
.practice-body strong { | |||
display: block; | |||
font-size: 0.9rem; | |||
color: #1f2937; | |||
} | } | ||
/* CTA | .practice-body span { | ||
display: block; | |||
font-size: 0.85rem; | |||
color: #4b5563; | |||
} | |||
/* ============================ | |||
CTA | |||
============================ */ | |||
.cta-box { | .cta-box { | ||
background: #0b1120; | |||
border-color: #111827; | |||
color: #e5e7eb; | |||
margin-top: 1rem; | |||
} | |||
.cta-inner { | |||
max-width: 620px; | |||
} | } | ||
.cta-box h3 { | .cta-box h3 { | ||
margin: 0 0 0.35rem; | |||
font-size: 1.15rem; | |||
color: #f9fafb; | |||
} | |||
.cta-box p { | |||
margin: 0 0 0.6rem; | |||
font-size: 0.92rem; | |||
color: #e5e7eb; | |||
} | |||
.cta-formula { | |||
display: inline-block; | |||
margin-top: 0.15rem; | |||
font-family: monospace; | |||
font-size: 0.85rem; | |||
background: #020617; | |||
padding: 0.12rem 0.4rem; | |||
border-radius: 4px; | |||
border: 1px solid #1e293b; | |||
} | |||
.cta-input { | |||
margin: 0.7rem 0 0.6rem; | |||
} | } | ||
.cta-tip { | .cta-tip { | ||
font-size: 0.85rem; | |||
color: #cbd5f5; | |||
} | } | ||
/* Footer */ | .cta-box input[type="text"], | ||
.cta-box input[type="search"] { | |||
max-width: 100%; | |||
} | |||
/* ============================ | |||
Footer | |||
============================ */ | |||
.landing-footer { | .landing-footer { | ||
margin-top: 1.25rem; | |||
font-size: 0.85rem; | |||
color: #6b7280; | |||
text-align: right; | |||
} | |||
.footer-label { | |||
font-weight: 600; | |||
color: #4b5563; | |||
} | |||
/* ============================ | |||
Responsive tweaks | |||
============================ */ | |||
@media (max-width: 900px) { | |||
.name-examples { | |||
grid-template-columns: minmax(0, 1fr); | |||
} | |||
.tier-grid { | |||
grid-template-columns: minmax(0, 1fr); | |||
} | |||
.mistake-grid { | |||
grid-template-columns: minmax(0, 1fr); | |||
} | |||
.practice-list { | |||
grid-template-columns: minmax(0, 1fr); | |||
} | |||
.form-landing { | |||
padding: 1.1rem 1rem 2rem; | |||
} | |||
} | } | ||
Revision as of 09:25, 20 November 2025
.form-landing {
max-width: 1100px;
margin: 0 auto 2.5rem;
padding: 1.5rem 1.5rem 2.5rem;
box-sizing: border-box;
background: #f9fafb;
border: 1px solid #d1d5db;
border-radius: 12px;
box-shadow: 0 4px 18px rgba(15, 23, 42, 0.10);
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: #0f172a;
}
.form-landing code {
font-family: monospace;
font-size: 0.9em;
background: #111827;
color: #e5e7eb;
padding: 0.08em 0.4em;
border-radius: 4px;
}
/* ============================
Header
============================ */
.landing-header {
padding: 0.5rem 0 1.5rem;
border-bottom: 1px solid #e5e7eb;
margin-bottom: 1.5rem;
}
.landing-kicker {
display: inline-block;
font-size: 0.75rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #4b5563;
margin-bottom: 0.25rem;
}
.landing-header h1 {
margin: 0 0 0.4rem;
font-size: 1.75rem;
line-height: 1.2;
color: #0b1120;
}
.landing-header p {
margin: 0;
color: #4b5563;
font-size: 0.95rem;
}
/* ============================
Generic cards
============================ */
.warning-box,
.content-box,
.cta-box {
background: #ffffff;
border-radius: 10px;
border: 1px solid #e5e7eb;
padding: 1.15rem 1.25rem;
margin-bottom: 1.25rem;
box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.warning-box h3,
.content-box h2,
.cta-box h3 {
margin-top: 0;
margin-bottom: 0.5rem;
}
/* ============================
Warning box
============================ */
.warning-box {
border-left: 4px solid #b91c1c;
background: #fef2f2;
}
.warning-box h3 {
font-size: 1.05rem;
font-weight: 600;
color: #7f1d1d;
}
.warning-box ul {
margin-top: 0.4rem;
margin-bottom: 0.4rem;
padding-left: 1.25rem;
}
.warning-box li {
margin-bottom: 0.15rem;
}
/* ============================
Content sections
============================ */
.content-header {
margin-bottom: 0.6rem;
}
.content-header h2 {
margin: 0 0 0.2rem;
font-size: 1.25rem;
color: #111827;
}
.content-header p {
margin: 0;
font-size: 0.9rem;
color: #6b7280;
}
.content-intro {
margin-top: 0.4rem;
font-size: 0.95rem;
color: #111827;
}
/* ============================
Naming examples
============================ */
.name-examples {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.9rem;
margin-top: 0.75rem;
}
.name-card {
border-radius: 10px;
border: 1px solid #e5e7eb;
padding: 0.75rem 0.8rem;
background: #f9fafb;
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.name-card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin-bottom: 0.2rem;
}
.name-card-title {
font-weight: 600;
font-size: 0.9rem;
color: #111827;
}
.name-pill {
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.08em;
padding: 0.15rem 0.5rem;
border-radius: 999px;
font-weight: 600;
white-space: nowrap;
}
.name-pill-good {
background: #dcfce7;
color: #166534;
border: 1px solid #bbf7d0;
}
.name-pill-bad {
background: #fee2e2;
color: #b91c1c;
border: 1px solid #fecaca;
}
.name-card ul {
margin: 0;
padding-left: 1.1rem;
font-size: 0.9rem;
color: #111827;
}
.name-card li {
margin-bottom: 0.1rem;
}
.name-why {
font-size: 0.85rem;
color: #4b5563;
margin-top: 0.2rem;
}
.formula-box {
margin-top: 0.9rem;
padding: 0.7rem 0.8rem;
border-radius: 8px;
border: 1px dashed #cbd5e1;
background: #eff6ff;
font-size: 0.9rem;
}
.formula-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.09em;
color: #1d4ed8;
margin-bottom: 0.25rem;
font-weight: 600;
}
.formula-box code {
display: inline-block;
margin-bottom: 0.25rem;
}
.formula-example {
font-size: 0.85rem;
color: #4b5563;
}
.formula-example span {
font-family: monospace;
}
/* ============================
Tiers
============================ */
.tier-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.75rem;
margin-top: 0.75rem;
}
.tier-box {
border-radius: 10px;
border: 1px solid #e5e7eb;
background: #f9fafb;
padding: 0.45rem 0.6rem 0.6rem;
}
.tier-box summary {
list-style: none;
cursor: pointer;
display: flex;
align-items: baseline;
gap: 0.4rem;
padding: 0.15rem 0;
}
.tier-box[open] {
background: #ffffff;
}
.tier-box[open] summary {
border-bottom: 1px solid #e5e7eb;
margin-bottom: 0.4rem;
padding-bottom: 0.3rem;
}
.tier-pill {
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.08em;
padding: 0.12rem 0.45rem;
border-radius: 999px;
font-weight: 600;
}
.tier-pill-1 {
background: #dcfce7;
color: #166534;
border: 1px solid #bbf7d0;
}
.tier-pill-2 {
background: #e0f2fe;
color: #1d4ed8;
border: 1px solid #bfdbfe;
}
.tier-pill-3 {
background: #f3e8ff;
color: #6b21a8;
border: 1px solid #e9d5ff;
}
.tier-title {
font-size: 0.9rem;
font-weight: 600;
color: #111827;
}
.tier-count {
font-size: 0.75rem;
color: #6b7280;
}
.tier-content {
margin-top: 0.3rem;
font-size: 0.9rem;
color: #111827;
}
.tier-content ul {
margin: 0.2rem 0 0.3rem;
padding-left: 1.1rem;
}
.tier-content li {
margin-bottom: 0.15rem;
}
.tier-warning {
margin: 0.2rem 0 0;
font-size: 0.85rem;
color: #b91c1c;
}
/* ============================
Mistakes
============================ */
.mistake-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.75rem;
margin-top: 0.6rem;
}
.mistake-box {
border-radius: 10px;
border: 1px solid #fee2e2;
background: #fef2f2;
padding: 0.7rem 0.75rem;
}
.mistake-title {
font-weight: 600;
font-size: 0.9rem;
color: #7f1d1d;
margin-bottom: 0.2rem;
}
.mistake-text {
font-size: 0.85rem;
color: #7f1d1d;
}
/* ============================
Best practices
============================ */
.practice-list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.6rem;
margin-top: 0.6rem;
}
.practice-box {
display: flex;
align-items: flex-start;
gap: 0.55rem;
padding: 0.55rem 0.65rem;
border-radius: 10px;
border: 1px solid #e0f2fe;
background: #eff6ff;
}
.practice-icon {
font-size: 1rem;
flex-shrink: 0;
}
.practice-body strong {
display: block;
font-size: 0.9rem;
color: #1f2937;
}
.practice-body span {
display: block;
font-size: 0.85rem;
color: #4b5563;
}
/* ============================
CTA
============================ */
.cta-box {
background: #0b1120;
border-color: #111827;
color: #e5e7eb;
margin-top: 1rem;
}
.cta-inner {
max-width: 620px;
}
.cta-box h3 {
margin: 0 0 0.35rem;
font-size: 1.15rem;
color: #f9fafb;
}
.cta-box p {
margin: 0 0 0.6rem;
font-size: 0.92rem;
color: #e5e7eb;
}
.cta-formula {
display: inline-block;
margin-top: 0.15rem;
font-family: monospace;
font-size: 0.85rem;
background: #020617;
padding: 0.12rem 0.4rem;
border-radius: 4px;
border: 1px solid #1e293b;
}
.cta-input {
margin: 0.7rem 0 0.6rem;
}
.cta-tip {
font-size: 0.85rem;
color: #cbd5f5;
}
.cta-box input[type="text"],
.cta-box input[type="search"] {
max-width: 100%;
}
/* ============================
Footer
============================ */
.landing-footer {
margin-top: 1.25rem;
font-size: 0.85rem;
color: #6b7280;
text-align: right;
}
.footer-label {
font-weight: 600;
color: #4b5563;
}
/* ============================
Responsive tweaks
============================ */
@media (max-width: 900px) {
.name-examples {
grid-template-columns: minmax(0, 1fr);
}
.tier-grid {
grid-template-columns: minmax(0, 1fr);
}
.mistake-grid {
grid-template-columns: minmax(0, 1fr);
}
.practice-list {
grid-template-columns: minmax(0, 1fr);
}
.form-landing {
padding: 1.1rem 1rem 2rem;
}
}