Issue #3446078 by mherchel, javi-er: Olivero content shift on page load

merge-requests/7973/head
Cristina Chumillas 2024-05-08 13:36:30 -07:00
parent 6e8fd96b5c
commit d436711365
No known key found for this signature in database
4 changed files with 21 additions and 4 deletions

View File

@ -65,3 +65,12 @@ body.is-fixed .container {
padding-block-start: var(--sp5);
}
}
/*
* Contextual link wrappers load without the ".contextual" CSS class, which
* causes layout shifts. We fix this by setting this to position: absolute;
*/
[data-contextual-id]:not(.contextual) {
position: absolute;
}

View File

@ -55,3 +55,11 @@
padding-block-start: var(--sp5);
}
}
/*
* Contextual link wrappers load without the ".contextual" CSS class, which
* causes layout shifts. We fix this by setting this to position: absolute;
*/
[data-contextual-id]:not(.contextual) {
position: absolute;
}

View File

@ -10,18 +10,18 @@
* Region default layout.
*/
.region > * {
.region > *:where(:not([data-big-pipe-placeholder-id])) {
margin-block-end: var(--sp);
}
@media (min-width: 43.75rem) {
.region > * {
.region > *:where(:not([data-big-pipe-placeholder-id])) {
margin-block-end: var(--sp2);
}
}
@media (min-width: 62.5rem) {
.region > * {
.region > *:where(:not([data-big-pipe-placeholder-id])) {
margin-block-end: var(--sp3);
}
}

View File

@ -5,7 +5,7 @@
@import "../base/media-queries.pcss.css";
.region > * {
.region > *:where(:not([data-big-pipe-placeholder-id])) {
margin-block-end: var(--sp);
@media (--md) {