Testing out upgrading some more websites and came across this error:
I have some custom Element CSS that got messed up in the upgrade, with all >
becoming >
.
This is the CSS as it should be (v5.1.5):
@media screen and (min-width: 979px) {
$el.x-grid > .x-cell:nth-child(5n-4) {
grid-column-end: span 3;
}
$el.x-grid > .x-cell:nth-child(5n-3) {
grid-column-end: span 2;
}
$el.x-grid > .x-cell:nth-child(5n-2),
$el.x-grid > .x-cell:nth-child(5n-1) {
grid-column-end: span 1;
}
$el.x-grid > .x-cell:nth-child(5n) {
grid-column-end: span 2;
}
}
And this is how it has ended up after upgrade to v6.0 b4:
@media screen and (min-width: 979px) {
$el.x-grid > .x-cell:nth-child(5n-4) {
grid-column-end: span 3;
}
$el.x-grid > .x-cell:nth-child(5n-3) {
grid-column-end: span 2;
}
$el.x-grid > .x-cell:nth-child(5n-2),
$el.x-grid > .x-cell:nth-child(5n-1) {
grid-column-end: span 1;
}
$el.x-grid > .x-cell:nth-child(5n) {
grid-column-end: span 2;
}
}
I did some further testing, and this is only happening with Element CSS in the Layout Builder
for both archives and single layouts.
The >
is brought across correctly for Element CSS in regular Cornerstone pages, as well as in Header CSS and Global CSS.