Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Centered headers/styles.css: Difference between revisions

Template page
Content deleted Content added
Created page with "#bodyContent h2, #bodyContent h3 { flex: 0 1 auto; padding: 0 15px 0 15px; text-align: center; } #bodyContent h2 .mw-headline, #bodyContent h3 .mw-headline { font-weight: bold; display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: var(--space-md); } #bodyContent h2 .mw-editsection, #bodyContent h3 .mw-editsection { display: none; } #bodyContent h2 .mw-headline { font-size: var(--font-size-xxx-large); } #bodyContent h3 .mw..."
 
No edit summary
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* hide the edit section button */
#bodyContent h2,
.mw-heading .mw-editsection {
#bodyContent h3 {
flex: 0 1 auto;
display: none;
padding: 0 15px 0 15px;
text-align: center;
}
}


.mw-heading {
#bodyContent h2 .mw-headline,
/* make this a flexbox */
#bodyContent h3 .mw-headline {
font-weight: bold;
display: flex;
display: flex;
flex-wrap: nowrap;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
align-items: center;
justify-content: center;
gap: var(--space-md);
gap: var(--space-md);
/* typography for header */
text-align: center;
font-weight: bold;
/* only shrink */
flex: 0 1 auto;
}
}


.mw-heading h2,
#bodyContent h2 .mw-editsection,
.mw-heading h3 {
#bodyContent h3 .mw-editsection {
display: none;
flex-grow: 0;
}
}


/* solid line around h2 */
#bodyContent h2 .mw-headline {
.mw-heading2::before,
.mw-heading2::after {
content: '';
border-top: 1px solid var(--color-emphasized);
}

/* dashed line around h3 */
.mw-heading3::before,
.mw-heading3::after {
content: '';
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 {
#bodyContent h3 .mw-headline {
font-size: var(--font-size-xx-large);
font-size: var(--font-size-x-large);
}
}


/* lines around h2, h3 */
#bodyContent h2 .mw-headline::before,
#bodyContent h3 .mw-headline::before,
.mw-heading2::before,
#bodyContent h2 .mw-headline::after,
.mw-heading2::after,
.mw-heading3::before,
#bodyContent h3 .mw-headline::after {
.mw-heading3::after {
content: '';
/* only grow, minimum 2rem */
height: 1px;
flex: 1 1 100px;
flex: 1 0 2rem;
}
background: var(--color-base--emphasized);

.mw-heading2::before,
.mw-heading3::before {
margin-right: auto;
}

.mw-heading2::after,
.mw-heading3::after {
margin-left: auto;
}
}

Latest revision as of 07:00, May 7, 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 */
	flex: 0 1 auto;
}

.mw-heading h2,
.mw-heading h3 {
	flex-grow: 0;
}

/* solid line around h2 */
.mw-heading2::before,
.mw-heading2::after {
	content: '';
	border-top: 1px solid var(--color-emphasized);
}

/* dashed line around h3 */
.mw-heading3::before,
.mw-heading3::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-heading2::before,
.mw-heading2::after,
.mw-heading3::before,
.mw-heading3::after {
	/* only grow, minimum 2rem */
	flex: 1 0 2rem;
}

.mw-heading2::before,
.mw-heading3::before {
	margin-right: auto;
}

.mw-heading2::after,
.mw-heading3::after {
	margin-left: auto;
}