Template:Category/FAQ/styles.css
From Miniscope
< Template:Category | FAQ
/* TemplateStyles for {{Category/FAQ}} — per-FAQ masthead (question,
answer, facet chip strip, byline, see-also line). See
{{UI/card}}/styles.css for the var() / fallback / geometry
rationale.
The back-links section appended by SemanticSchemas's category
footer (driven by show_backlinks_for=Has FAQ on Category:FAQ) is
not styled here — it renders inside the extension's own
.ss-backlinks wrapper and inherits the wiki's default heading +
list styling. */
.faq-page {
margin: 0 0 1.75em 0;
}
.faq-page-question {
font-size: 1.4rem;
font-weight: 600;
line-height: 1.3;
color: var(--labki-text, #2c2c2c);
margin: 0 0 0.5em 0;
padding-left: 1.6em;
position: relative;
}
/* "Q." marker rendered as a positioned pseudo-element so the
question text wraps cleanly without a hanging indent. */
.faq-page-question::before {
content: "Q.";
position: absolute;
left: 0;
top: 0.05em;
color: var(--labki-accent, #2774AE);
font-weight: 700;
font-size: 1.15rem;
}
.faq-page-answer {
font-size: 1rem;
line-height: 1.55;
color: var(--labki-text, #2c2c2c);
margin: 0 0 1em 0;
padding-left: 1.6em;
position: relative;
}
.faq-page-answer::before {
content: "A.";
position: absolute;
left: 0;
top: 0;
color: var(--labki-text-muted, #5a6a7a);
font-weight: 700;
font-size: 1.15rem;
}
/* ---------- Facet chip strip ---------- */
.faq-page-facets {
display: flex;
flex-wrap: wrap;
gap: 0.4em;
margin: 0.6em 0 0.5em 0;
font-size: 0.8rem;
}
.faq-page-facet {
display: inline-block;
padding: 1px 8px;
border-radius: 999px;
background: var(--labki-bg-subtle, #f4f6f8);
border: 1px solid var(--labki-border, #d8dde2);
color: var(--labki-text, #2c2c2c);
}
.faq-page-facet a,
.faq-page-facet a:visited {
color: inherit;
text-decoration: none;
}
/* Topic chip — accent-bordered to read as the primary tag.
Restating the full `border:` shorthand (instead of overriding just
`border-color:`) sidesteps MW's TemplateStyles sanitizer rejecting
var() inside border-color — same level-4-shorthand restriction
documented in Template:Category/Forum/styles.css and worked around
in Template:Category/Publication/styles.css (commit ad2983e). */
.faq-page-facet-topic {
border: 1px solid var(--labki-accent, #2774AE);
color: var(--labki-accent, #2774AE);
}
/* Audience-level chip — muted; conveys skill prereq, not topic. */
.faq-page-facet-level {
font-style: italic;
color: var(--labki-text-muted, #5a6a7a);
}
/* ---------- Byline + see-also ---------- */
.faq-page-byline {
font-size: 0.85rem;
color: var(--labki-text-muted, #5a6a7a);
margin-top: 0.5em;
}
.faq-page-seealso {
font-size: 0.85rem;
color: var(--labki-text-muted, #5a6a7a);
margin-top: 0.3em;
}
.faq-page-seealso-label {
font-weight: 600;
}