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 7: | Line 7: | ||
} |
} |
||
.template--before_and_after :nth-child(3n-2) { |
.template--before_and_after > :nth-child(3n-2) { |
||
text-align: left; |
text-align: left; |
||
white-space: pre-wrap; |
white-space: pre-wrap; |
||
} |
} |
||
.template--before_and_after :nth-child(3n- |
.template--before_and_after > :nth-child(3n-1) { |
||
list-style: none; |
|||
} |
|||
.template--before_and_after :nth-child(3n-1) { |
|||
text-align: center; |
text-align: center; |
||
} |
} |
||
.template--before_and_after :nth-child(3n) { |
.template--before_and_after > :nth-child(3n) { |
||
text-align: right; |
text-align: right; |
||
white-space: pre-wrap; |
white-space: pre-wrap; |
||
} |
} |
||
.template--before_and_after |
.template--before_and_after p { |
||
margin-block: 0; |
|||
} |
} |
||
Revision as of 17:36, February 15, 2025
.template--before_and_after {
margin: 0 auto;
width: 80%;
display: grid;
grid-template-columns: 3fr 2fr 3fr;
gap: var(--space-xs);
}
.template--before_and_after > :nth-child(3n-2) {
text-align: left;
white-space: pre-wrap;
}
.template--before_and_after > :nth-child(3n-1) {
text-align: center;
}
.template--before_and_after > :nth-child(3n) {
text-align: right;
white-space: pre-wrap;
}
.template--before_and_after p {
margin-block: 0;
}