Template:Accession/FormLanding/styles.css: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) No edit summary |
Eloise Zomia (talk | contribs) No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 398: | Line 398: | ||
/* ============================ | /* ============================ | ||
CTA | CTA | ||
============================ */ | |||
/* ============================ | |||
CTA – final step card | |||
============================ */ | ============================ */ | ||
.cta-box { | .cta-box { | ||
background: # | margin-top: 1.5rem; | ||
border- | padding: 1.3rem 1.6rem 1.4rem; | ||
background: #f9fafb; | |||
border-radius: 12px; | |||
border: 1px solid #e5e7eb; | |||
} | } | ||
.cta-inner { | .cta-inner { | ||
max-width: | max-width: 720px; | ||
} | } | ||
.cta-box h3 { | .cta-box h3 { | ||
margin: 0 0 0. | margin: 0 0 0.4rem; | ||
font-size: 1. | font-size: 1.05rem; | ||
color: # | font-weight: 600; | ||
color: #111827; | |||
} | } | ||
.cta-box p { | .cta-box p { | ||
margin: 0 0 0. | margin: 0 0 0.4rem; | ||
font-size: 0. | font-size: 0.9rem; | ||
color: # | color: #4b5563; | ||
} | } | ||
/* formula pill */ | |||
.cta-formula { | .cta-formula { | ||
display: inline- | display: inline-flex; | ||
margin- | align-items: center; | ||
gap: 0.4rem; | |||
padding: 0.3rem 0.55rem; | |||
border-radius: 999px; | |||
background: #ecfdf3; | |||
border: 1px solid #bbf7d0; | |||
margin: 0.2rem 0 0.9rem; | |||
font-size: 0.8rem; | |||
} | |||
.cta-formula-label { | |||
text-transform: uppercase; | |||
letter-spacing: 0.08em; | |||
font-weight: 600; | |||
color: #15803d; | |||
} | |||
.cta-formula-text { | |||
font-family: monospace; | font-family: monospace; | ||
font-size: 0. | color: #065f46; | ||
} | |||
padding: 0. | |||
border-radius: | /* form layout */ | ||
border: | |||
.cta-form form { | |||
display: flex; | |||
flex-wrap: wrap; | |||
align-items: stretch; | |||
gap: 0.6rem; | |||
margin-bottom: 0.6rem; | |||
} | |||
.cta-form input[type="text"], | |||
.cta-form input[type="search"] { | |||
flex: 1 1 260px; | |||
max-width: 100%; | |||
padding: 0.6rem 0.75rem; | |||
border-radius: 8px; | |||
border: 1px solid #d1d5db; | |||
background: #ffffff; | |||
color: #111827; | |||
font-size: 0.92rem; | |||
box-sizing: border-box; | |||
} | |||
.cta-form input[type="text"]:focus, | |||
.cta-form input[type="search"]:focus { | |||
outline: none; | |||
border-color: #22c55e; | |||
box-shadow: 0 0 0 1px #4ade80; | |||
} | |||
.cta-form input[type="submit"], | |||
.cta-form button { | |||
flex: 0 0 auto; | |||
padding: 0.6rem 1.2rem; | |||
border-radius: 8px; | |||
border: none; | |||
background: #16a34a; | |||
color: #f9fafb; | |||
font-weight: 600; | |||
font-size: 0.9rem; | |||
cursor: pointer; | |||
white-space: nowrap; | |||
} | |||
.cta-form input[type="submit"]:hover, | |||
.cta-form button:hover { | |||
background: #15803d; | |||
} | } | ||
.cta-input { | .cta-form input[type="submit"]:active, | ||
.cta-form button:active { | |||
background: #166534; | |||
} | } | ||
/* tip text */ | |||
.cta-tip { | .cta-tip { | ||
font-size: 0. | font-size: 0.83rem; | ||
color: # | color: #6b7280; | ||
} | } | ||
.cta- | /* responsive */ | ||
.cta- | |||
@media (max-width: 600px) { | |||
.cta-form form { | |||
flex-direction: column; | |||
align-items: stretch; | |||
} | |||
.cta-form input[type="submit"], | |||
.cta-form button { | |||
width: 100%; | |||
text-align: center; | |||
} | |||
} | } | ||
/* ============================ | /* ============================ | ||
| Line 488: | Line 572: | ||
padding: 1.1rem 1rem 2rem; | padding: 1.1rem 1rem 2rem; | ||
} | } | ||
} | |||
/* ============================================ */ | |||
/* Documentation tier cards */ | |||
/* ============================================ */ | |||
.tier-box { | |||
background-color: #ffffff; | |||
border: 1px solid #e2e4ea; | |||
border-radius: 12px; | |||
padding: 1.25rem 1.5rem; | |||
margin-top: 1rem; | |||
} | |||
.tier-box + .tier-box { | |||
margin-top: 1rem; | |||
} | |||
.tier-box-header { | |||
display: flex; | |||
flex-wrap: wrap; | |||
align-items: center; | |||
gap: 0.5rem; | |||
margin-bottom: 0.75rem; | |||
} | |||
.tier-label { | |||
display: inline-block; | |||
font-size: 0.7rem; | |||
font-weight: 600; | |||
letter-spacing: 0.08em; | |||
text-transform: uppercase; | |||
padding: 0.15rem 0.55rem; | |||
border-radius: 999px; | |||
} | |||
.tier-label-1 { | |||
background-color: #e6f7ef; | |||
color: #17654b; | |||
} | |||
.tier-label-2 { | |||
background-color: #e6f0ff; | |||
color: #253b80; | |||
} | |||
.tier-label-3 { | |||
background-color: #fcefee; | |||
color: #8b1f2a; | |||
} | |||
.tier-title { | |||
font-weight: 600; | |||
font-size: 0.9rem; | |||
} | |||
.tier-count { | |||
font-size: 0.8rem; | |||
color: #6b7280; | |||
} | |||
.tier-subtitle { | |||
font-weight: 600; | |||
font-size: 0.85rem; | |||
margin: 0 0 0.4rem; | |||
} | |||
.tier-note { | |||
font-size: 0.8rem; | |||
color: #4b5563; | |||
margin-top: 0.5rem; | |||
} | |||
.tier-warning { | |||
font-size: 0.8rem; | |||
color: #7f1d1d; | |||
background-color: #fef2f2; | |||
border-radius: 8px; | |||
padding: 0.75rem 0.9rem; | |||
margin-top: 0.75rem; | |||
} | } | ||
Latest revision as of 09:54, 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 – final step card
============================ */
.cta-box {
margin-top: 1.5rem;
padding: 1.3rem 1.6rem 1.4rem;
background: #f9fafb;
border-radius: 12px;
border: 1px solid #e5e7eb;
}
.cta-inner {
max-width: 720px;
}
.cta-box h3 {
margin: 0 0 0.4rem;
font-size: 1.05rem;
font-weight: 600;
color: #111827;
}
.cta-box p {
margin: 0 0 0.4rem;
font-size: 0.9rem;
color: #4b5563;
}
/* formula pill */
.cta-formula {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.3rem 0.55rem;
border-radius: 999px;
background: #ecfdf3;
border: 1px solid #bbf7d0;
margin: 0.2rem 0 0.9rem;
font-size: 0.8rem;
}
.cta-formula-label {
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 600;
color: #15803d;
}
.cta-formula-text {
font-family: monospace;
color: #065f46;
}
/* form layout */
.cta-form form {
display: flex;
flex-wrap: wrap;
align-items: stretch;
gap: 0.6rem;
margin-bottom: 0.6rem;
}
.cta-form input[type="text"],
.cta-form input[type="search"] {
flex: 1 1 260px;
max-width: 100%;
padding: 0.6rem 0.75rem;
border-radius: 8px;
border: 1px solid #d1d5db;
background: #ffffff;
color: #111827;
font-size: 0.92rem;
box-sizing: border-box;
}
.cta-form input[type="text"]:focus,
.cta-form input[type="search"]:focus {
outline: none;
border-color: #22c55e;
box-shadow: 0 0 0 1px #4ade80;
}
.cta-form input[type="submit"],
.cta-form button {
flex: 0 0 auto;
padding: 0.6rem 1.2rem;
border-radius: 8px;
border: none;
background: #16a34a;
color: #f9fafb;
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
white-space: nowrap;
}
.cta-form input[type="submit"]:hover,
.cta-form button:hover {
background: #15803d;
}
.cta-form input[type="submit"]:active,
.cta-form button:active {
background: #166534;
}
/* tip text */
.cta-tip {
font-size: 0.83rem;
color: #6b7280;
}
/* responsive */
@media (max-width: 600px) {
.cta-form form {
flex-direction: column;
align-items: stretch;
}
.cta-form input[type="submit"],
.cta-form button {
width: 100%;
text-align: center;
}
}
/* ============================
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;
}
}
/* ============================================ */
/* Documentation tier cards */
/* ============================================ */
.tier-box {
background-color: #ffffff;
border: 1px solid #e2e4ea;
border-radius: 12px;
padding: 1.25rem 1.5rem;
margin-top: 1rem;
}
.tier-box + .tier-box {
margin-top: 1rem;
}
.tier-box-header {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.tier-label {
display: inline-block;
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 0.15rem 0.55rem;
border-radius: 999px;
}
.tier-label-1 {
background-color: #e6f7ef;
color: #17654b;
}
.tier-label-2 {
background-color: #e6f0ff;
color: #253b80;
}
.tier-label-3 {
background-color: #fcefee;
color: #8b1f2a;
}
.tier-title {
font-weight: 600;
font-size: 0.9rem;
}
.tier-count {
font-size: 0.8rem;
color: #6b7280;
}
.tier-subtitle {
font-weight: 600;
font-size: 0.85rem;
margin: 0 0 0.4rem;
}
.tier-note {
font-size: 0.8rem;
color: #4b5563;
margin-top: 0.5rem;
}
.tier-warning {
font-size: 0.8rem;
color: #7f1d1d;
background-color: #fef2f2;
border-radius: 8px;
padding: 0.75rem 0.9rem;
margin-top: 0.75rem;
}