File: D:/HostingSpaces/SBogers10/csb.komma.pro/resources/sass/9-Utilities/_utilities.visibleGrid.scss
/* ==========================================================================
* This grid can be turned on and off when you want to check
* if everything is nice in place.
* Set flag 'show_grid' to true in site.php
* ========================================================================== */
// Color: Set a hue value that has enough contrast
$vg-hue1: 90; // 0-360
$vg-hue2: 90;
$vg-column-count: $site-columns - 2;
// Do some calculations and put them in variables for reuse
$vg-column-width: percentage(1 / $vg-column-count);
$vg-color-1: hsla($vg-hue1, 100, 50, 0.15);
$vg-color-2: hsla($vg-hue2, 100, 50, 0.06);
.u-visible-grid {
@include z(z-visible-grid);
@include contain();
position: fixed;
left: 0;
right: 0;
pointer-events: none;
@include mq(m, l) {
padding: 0;
}
}
.u-visible-grid__main {
height: 100vh;
background: repeating-linear-gradient(
to right,
$vg-color-1,
$vg-color-1 $vg-column-width,
$vg-color-2 $vg-column-width,
$vg-color-2 ($vg-column-width * 2)
);
}