MediaWiki:Common.css: Difference between revisions
Wikibackup (talk | contribs) (Differentiate H4 and H5 headings) |
No edit summary |
||
| (7 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
/* | /* Consistent black heading hierarchy */ | ||
#firstHeading, | |||
.mw-parser-output h1, | |||
.mw-parser-output h2, | |||
.mw-parser-output h3, | |||
.mw-parser-output h4, | |||
.mw-parser-output h5, | |||
.mw-parser-output h6 { | |||
color: #000; | |||
} | |||
#firstHeading, | |||
.mw-parser-output h1 { | |||
font-size: 2.25em; | |||
line-height: 1.2; | |||
font-weight: 400; | |||
border-bottom: none; | |||
} | |||
.mw-parser-output h2 { | |||
font-size: 1.7em; | |||
line-height: 1.25; | |||
border-bottom: 1px solid #000; | |||
} | |||
.mw-parser-output h3 { | |||
font-size: 1.4em; | |||
line-height: 1.3; | |||
border-bottom: none; | |||
} | |||
.mw-parser-output h4 { | .mw-parser-output h4 { | ||
margin-top: 1. | margin-top: 1.6em; | ||
margin-bottom: 0. | margin-bottom: 0.45em; | ||
padding-bottom: 0. | padding-bottom: 0.2em; | ||
font-size: 1. | font-size: 1.2em; | ||
line-height: 1.3; | line-height: 1.3; | ||
font-weight: 700; | font-weight: 700; | ||
border-bottom: none; | |||
border-bottom: | |||
} | } | ||
.mw-parser-output h5 { | .mw-parser-output h5 { | ||
margin-top: | margin-top: 1em; | ||
margin-bottom: 0. | margin-bottom: 0.35em; | ||
padding: 0; | |||
padding | |||
font-size: 1.08em; | font-size: 1.08em; | ||
line-height: 1.35; | line-height: 1.35; | ||
font-weight: | font-weight: 700; | ||
font- | border-bottom: none; | ||
} | |||
border- | |||
.mw-parser-output h6 { | |||
margin-top: 0.9em; | |||
margin-bottom: 0.3em; | |||
padding-bottom: 0.15em; | |||
font-size: 1em; | |||
line-height: 1.35; | |||
font-weight: 700; | |||
border-bottom: none; | |||
} | } | ||
@media (max-width: 640px) { | @media (max-width: 640px) { | ||
#firstHeading, | |||
.mw-parser-output h1 { | |||
font-size: 1.9em; | |||
} | |||
.mw-parser-output h2 { | |||
font-size: 1.5em; | |||
} | |||
.mw-parser-output h3 { | |||
font-size: 1.3em; | |||
} | |||
.mw-parser-output h4 { | .mw-parser-output h4 { | ||
font-size: 1. | font-size: 1.15em; | ||
} | } | ||
.mw-parser-output h5 { | .mw-parser-output h5 { | ||
font-size: 1.04em; | |||
font-size: 1. | |||
} | } | ||
} | } | ||
Latest revision as of 00:51, 9 October 2026
/* Consistent black heading hierarchy */
#firstHeading,
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6 {
color: #000;
}
#firstHeading,
.mw-parser-output h1 {
font-size: 2.25em;
line-height: 1.2;
font-weight: 400;
border-bottom: none;
}
.mw-parser-output h2 {
font-size: 1.7em;
line-height: 1.25;
border-bottom: 1px solid #000;
}
.mw-parser-output h3 {
font-size: 1.4em;
line-height: 1.3;
border-bottom: none;
}
.mw-parser-output h4 {
margin-top: 1.6em;
margin-bottom: 0.45em;
padding-bottom: 0.2em;
font-size: 1.2em;
line-height: 1.3;
font-weight: 700;
border-bottom: none;
}
.mw-parser-output h5 {
margin-top: 1em;
margin-bottom: 0.35em;
padding: 0;
font-size: 1.08em;
line-height: 1.35;
font-weight: 700;
border-bottom: none;
}
.mw-parser-output h6 {
margin-top: 0.9em;
margin-bottom: 0.3em;
padding-bottom: 0.15em;
font-size: 1em;
line-height: 1.35;
font-weight: 700;
border-bottom: none;
}
@media (max-width: 640px) {
#firstHeading,
.mw-parser-output h1 {
font-size: 1.9em;
}
.mw-parser-output h2 {
font-size: 1.5em;
}
.mw-parser-output h3 {
font-size: 1.3em;
}
.mw-parser-output h4 {
font-size: 1.15em;
}
.mw-parser-output h5 {
font-size: 1.04em;
}
}