// pattern mixin
@mixin pattern($bg-primary,$bg-secondary) {
background:
repeating-linear-gradient(
-45deg,
transparent,
transparent 1em,
rgba($bg-secondary,0.4) 0,
rgba($bg-secondary,0.1) 2em,
transparent 0,
transparent 1em,
rgba($bg-secondary,0.3) 0,
rgba($bg-secondary,0.2) 4em,
transparent 0,
transparent 1em,
rgba($bg-primary,0.6) 0,
rgba($bg-primary,0.2) 2em
),
repeating-linear-gradient(
45deg,
transparent,
transparent 1em,
rgba($bg-secondary,0.4) 0,
rgba($bg-secondary,0.1) 2em,
transparent 0,
transparent 1em,
rgba($bg-secondary,0.3) 0,
rgba($bg-secondary,0.2) 4em,
transparent 0,
transparent 1em,
rgba($bg-primary,0.4) 0,
rgba($bg-primary,0.1) 2em
), #FFF;
background-blend-mode: multiply;
}
html {
height: 100%;
@include pattern(#c0ebfa, #7FD7F5);
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.