Template:Before and after/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 2: | Line 2: | ||
margin: 0 auto; |
margin: 0 auto; |
||
width: 90%; |
width: 90%; |
||
display: |
display: flex; |
||
flex-direction: row; |
|||
flex-wrap: wrap; |
|||
gap: var(--space-xs); |
|||
} |
} |
||
Revision as of 06:39, May 26, 2025
.template--before_and_after {
margin: 0 auto;
width: 90%;
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: var(--space-xs);
}
.template--before_and_after > * {
vertical-align: top;
}
.template--before_and_after > :nth-child(3n-2) {
text-align: left;
}
.template--before_and_after > :nth-child(3n-1) {
text-align: center;
}
.template--before_and_after > :nth-child(3n) {
text-align: right;
}
.template--before_and_after ul {
margin: 0;
list-style: none;
}