Hi. I’m trying to recreate the Ethos demo background, in which there’s a lower image background and an upper color background positioned to reveal some of the background – and do it in sync with the site container so no matter the viewport, the reveal falls in the same place.
I’ve tried to dig into the Ethos css and copied this code:
.x-container.main:not(.x-row):not(.x-grid) {
position: relative; }
.x-content-sidebar-active .x-container.main:not(.x-row):not(.x-grid):before { right: calc(100% - 72%); }
x-container.main:not(.x-row):not(.x-grid):before {
content: "";
display: block;
position: absolute;
top: -35px;
bottom: 0;
width: 10000em;
background-color: #fff;
z-index: -1; }
… into my Global css but nothing happens. What does seem to work is something like
.x-bg-layer-upper-color {width:calc(100vw - 32%);}
but that doesn’t lock the background to the site container itself.
How do you do it? Thanks!