Template:Hr with image/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 16: | Line 16: | ||
.hr-with-image::after { |
.hr-with-image::after { |
||
content: ''; |
content: ''; |
||
height: 1px; |
height: var(--template-arg-linesize, 1px); |
||
background: var(--color-amaranth-legacy-scope); |
background: var(--template-arg-color, var(--color-amaranth-legacy-scope)); |
||
flex: 0 0 25%; |
flex: 0 0 25%; |
||
} |
} |
||
Revision as of 16:38, April 2, 2025
.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: '';
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;
}
}