Template:Centered headers/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
/* hide the edit section button */ |
/* hide the edit section button */ |
||
.mw-heading .mw-editsection { |
|||
h3 .mw-editsection { |
|||
display: none; |
display: none; |
||
} |
} |
||
.mw-heading h2, |
|||
.mw-heading h3 { |
|||
/* make this a flexbox */ |
/* make this a flexbox */ |
||
display: flex; |
display: flex; |
||
| Line 21: | Line 20: | ||
/* solid line around h2 */ |
/* solid line around h2 */ |
||
.mw-heading h2::before, |
|||
.mw-heading h2::after { |
|||
content: ''; |
content: ''; |
||
border-top: 1px solid var(--color-emphasized); |
border-top: 1px solid var(--color-emphasized); |
||
| Line 28: | Line 27: | ||
/* dashed line around h3 */ |
/* dashed line around h3 */ |
||
.mw-heading h3::before, |
|||
.mw-heading h3::after { |
|||
content: ''; |
content: ''; |
||
border-top: 1px dashed var(--color-emphasized); |
border-top: 1px dashed var(--color-emphasized); |
||
} |
} |
||
.mw-heading h2 { |
|||
font-size: var(--font-size-xxx-large); |
font-size: var(--font-size-xxx-large); |
||
} |
} |
||
.mw-heading h3 { |
|||
font-size: var(--font-size-x-large); |
font-size: var(--font-size-x-large); |
||
} |
} |
||
/* lines around h2, h3 */ |
/* lines around h2, h3 */ |
||
.mw-heading h2::before, |
|||
.mw-heading h2::after, |
|||
.mw-heading h3::before, |
|||
.mw-heading h3::after { |
|||
/* only grow, minimum 2rem */ |
/* only grow, minimum 2rem */ |
||
flex: 1 0 2rem; |
flex: 1 0 2rem; |
||
} |
} |
||
.mw-heading h2::before, |
|||
.mw-heading h3::before { |
|||
margin-right: auto; |
margin-right: auto; |
||
} |
} |
||
.mw-heading h2::after, |
|||
.mw-heading h3::after { |
|||
margin-left: auto; |
margin-left: auto; |
||
} |
} |
||
Revision as of 04:13, February 6, 2025
/* hide the edit section button */
.mw-heading .mw-editsection {
display: none;
}
.mw-heading h2,
.mw-heading h3 {
/* make this a flexbox */
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
gap: var(--space-md);
/* typography for header */
text-align: center;
font-weight: bold;
/* only shrink */
flex: 0 1 auto;
}
/* solid line around h2 */
.mw-heading h2::before,
.mw-heading h2::after {
content: '';
border-top: 1px solid var(--color-emphasized);
}
/* dashed line around h3 */
.mw-heading h3::before,
.mw-heading h3::after {
content: '';
border-top: 1px dashed var(--color-emphasized);
}
.mw-heading h2 {
font-size: var(--font-size-xxx-large);
}
.mw-heading h3 {
font-size: var(--font-size-x-large);
}
/* lines around h2, h3 */
.mw-heading h2::before,
.mw-heading h2::after,
.mw-heading h3::before,
.mw-heading h3::after {
/* only grow, minimum 2rem */
flex: 1 0 2rem;
}
.mw-heading h2::before,
.mw-heading h3::before {
margin-right: auto;
}
.mw-heading h2::after,
.mw-heading h3::after {
margin-left: auto;
}