Compare commits

..

1 Commits

Author SHA1 Message Date
Thomas Jund edbd13db32 scss: introduce stretch-to-edge util class (#88600)
gitea/publik-base-theme/pipeline/head This commit looks good Details
2024-04-17 11:40:46 +02:00
1 changed files with 0 additions and 20 deletions

View File

@ -1,23 +1,3 @@
//
// UTILS
//
// Stretch element background to the edge
@mixin stretch-to-edge {
width: 100vw;
margin-left: calc(-50vw + 50%);
padding-right: calc(50vw - 50%);
padding-left: calc(50vw - 50%);
// for flex-grid context on .size--1-1 element
&.size--1-1 {
flex-basis: 100vw;
margin-left: calc(-50vw + 50% + (var(--grid-gutter, 0px) / 2));
padding-left: calc(50vw - 50% + (var(--grid-gutter, 0px) / 2));
margin-right: calc(-50vw + 50% - (var(--grid-gutter, 0px) / 2));
padding-right: calc(50vw - 50% + (var(--grid-gutter, 0px) / 2));
}
}
//
// TYPO
//