Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RussellBishop/e5c2d497a6ca8dad9ca5a7e974acea56 to your computer and use it in GitHub Desktop.
Save RussellBishop/e5c2d497a6ca8dad9ca5a7e974acea56 to your computer and use it in GitHub Desktop.
/*
<div class="_container-lines"><div></div></div>
*/
._container-lines {
position: fixed;
top: 0;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: var(--ContainerWidth);
display: grid;
grid-template-columns: repeat(var(--grid-columns), var(--column-unit));
grid-column-gap: var(--gutter-unit);
&:before,
&:after,
& *:before,
& *:after {
content: '';
background: rgba(255,230,251, .2);
border: 1px dashed rgba(217,169,209, .4);
}
* {
display: contents;
}
&:before {
grid-column: 1 / span 1;
}
&:after {
grid-column: -2 / span 1;
}
*:before {
grid-column: 2 / span 1;
}
*:after {
grid-column: -3 / span 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment