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

Template:Hr with image/styles.css: Difference between revisions

Template page
Content deleted Content added
Created page with ".hr-with-image { 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; } .hr-with-image::before, .hr-with-image::after { content: ''; border-top: 1px solid var(--color-emphasized); flex: 1 0 2rem; } .hr-with-image::before { margin-right: auto; } .hr-with-image::after { margin-left..."
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 5: Line 5:
align-items: center;
align-items: center;
justify-content: center;
justify-content: center;
gap: var(--space-md);
gap: var(--space-xs);
/* typography for header */
/* typography for header */
text-align: center;
text-align: center;
Line 16: Line 16:
.hr-with-image::after {
.hr-with-image::after {
content: '';
content: '';
border-top: 1px solid var(--color-emphasized);
height: var(--template-arg-linesize, 1px);
background: var(--template-arg-color, var(--color-amaranth-legacy-scope));
flex: 1 0 2rem;
flex: 0 0 25%;
}
}


@media (max-width: 639px) {
.hr-with-image::before {
.hr-with-image::before,
margin-right: auto;
.hr-with-image::after {
}
flex: 1 0 2rem;

}
.hr-with-image::after {
margin-left: auto;
}
}

Latest revision as of 16:44, April 2, 2025

.hr-with-image {
	/* make this a flexbox */
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	/* typography for header */
	text-align: center;
	font-weight: bold;
	/* only shrink */
	flex: 0 1 auto;
}

.hr-with-image::before,
.hr-with-image::after {
	content: '';
	height: var(--template-arg-linesize, 1px);
	background: var(--template-arg-color, var(--color-amaranth-legacy-scope));
	flex: 0 0 25%;
}

@media (max-width: 639px) {
	.hr-with-image::before,
	.hr-with-image::after {
		flex: 1 0 2rem;
	}
}