Template:VelaCenteredHeaders/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
No edit summary |
No edit summary Tag: Reverted |
||
| Line 35: | Line 35: | ||
} |
} |
||
/* |
/* dashed line around h2 */ |
||
.mw-heading2::before, |
.mw-heading2::before, |
||
.mw-heading2::after { |
.mw-heading2::after { |
||
content: ''; |
content: ''; |
||
border-top: 2px |
border-top: 2px dashed var(--color-emphasized); |
||
} |
} |
||
/* |
/* solid line around h3 */ |
||
.mw-heading3::before, |
.mw-heading3::before, |
||
.mw-heading3::after { |
.mw-heading3::after { |
||
content: ''; |
content: ''; |
||
border-top: 2px |
border-top: 2px solid var(--color-amaranth-legacy-scope); |
||
} |
} |
||
Revision as of 10:32, May 18, 2025
/* hide the edit section button */
.mw-heading .mw-editsection {
display: none;
}
.mw-heading {
/* 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 */
}
.mw-heading h1 {
border-bottom: none !important
}
.mw-heading h1,
.mw-heading h2,
.mw-heading h3,
.mw-heading h4 {
flex-grow: 0;
}
/* solid line around h1 */
.mw-heading1::before,
.mw-heading1::after {
content: '';
border-top: 2px solid var(--color-amaranth-legacy-scope);
}
/* dashed line around h2 */
.mw-heading2::before,
.mw-heading2::after {
content: '';
border-top: 2px dashed var(--color-emphasized);
}
/* solid line around h3 */
.mw-heading3::before,
.mw-heading3::after {
content: '';
border-top: 2px solid var(--color-amaranth-legacy-scope);
}
/* dashed line around h4 */
.mw-heading4::before,
.mw-heading4::after {
content: '';
border-top: 2px dashed var(--color-emphasized);
}
/* lines around h1, h2, h3 */
.mw-heading1::before,
.mw-heading1::after,
.mw-heading2::before,
.mw-heading2::after,
.mw-heading3::before,
.mw-heading3::after,
.mw-heading4::before,
.mw-heading4::after {
/* only grow, minimum 2rem */
flex: 1 0 2rem;
}
.mw-heading1::before,
.mw-heading2::before,
.mw-heading3::before,
.mw-heading4::before{
margin-right: auto;
}
.mw-heading1::after,
.mw-heading2::after,
.mw-heading3::after,
.mw-heading4::before{
margin-left: auto;
}