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) Undo revision 161642 by Tesinormed (talk) |
||
| Line 2: | Line 2: | ||
margin: 0 auto; |
margin: 0 auto; |
||
width: 90%; |
width: 90%; |
||
display: |
display: grid; |
||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); |
|||
flex-direction: row; |
|||
| ⚫ | |||
flex-wrap: wrap; |
|||
| ⚫ | |||
} |
} |
||
Revision as of 06:40, May 26, 2025
.template--before_and_after {
margin: 0 auto;
width: 90%;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
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;
}