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
No edit summary
No edit summary
Line 1: Line 1:
/* hide the edit section button */
h2,
h2 .mw-editsection,
h3 {
h3 .mw-editsection {
text-align: center;
display: none;
}
}


/* increase the font size to xxx-large */
h2 {
h2 .mw-headline {
font-size: var(--font-size-xxx-large);
font-size: var(--font-size-xxx-large);
}
}


/* increase the font size to x-large */
h3 {
h3 .mw-headline {
font-size: var(--font-size-x-large);
font-size: var(--font-size-x-large);
}
}


h2, h3 {
h2 .mw-headline,
h3 .mw-headline {
font-weight: bold;
display: flex;
display: flex;
flex-wrap: nowrap;
flex-wrap: nowrap;
Line 20: Line 21:
align-items: center;
align-items: center;
gap: var(--space-md);
gap: var(--space-md);
flex: 0 2 auto;
}
}


/* typography for header */
h2 .mw-editsection,
h3 .mw-editsection {
h2 .mw-headline,
h3 .mw-headline {
display: none;
text-align: center;
font-weight: bold;
flex: 0 2 auto;
}
}


h2 .mw-headline::before,
h2::before,
h2 .mw-headline::after {
h2::after {
content: '';
content: '';
border-top: 1px solid var(--color-base--emphasized);
border-top: 1px solid var(--color-base--emphasized);
Line 35: Line 38:
}
}


h3 .mw-headline::before,
h3::before,
h3 .mw-headline::after {
h3::after {
content: '';
content: '';
border-top: 1px dashed var(--color-base--emphasized);
border-top: 1px dashed var(--color-base--emphasized);

Revision as of 16:13, December 3, 2024

/* hide the edit section button */
h2 .mw-editsection,
h3 .mw-editsection {
	display: none;
}

/* increase the font size to xxx-large */
h2 .mw-headline {
	font-size: var(--font-size-xxx-large);
}

/* increase the font size to x-large */
h3 .mw-headline {
	font-size: var(--font-size-x-large);
}

h2, h3 {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	gap: var(--space-md);
}

/* typography for header */
h2 .mw-headline,
h3 .mw-headline {
	text-align: center;
	font-weight: bold;
	flex: 0 2 auto;
}

h2::before,
h2::after {
	content: '';
	border-top: 1px solid var(--color-base--emphasized);
	flex: 1 1 100px;
}

h3::before,
h3::after {
	content: '';
	border-top: 1px dashed var(--color-base--emphasized);
	flex: 1 1 100px;
}