This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
seepur/resources/sass/mixins.scss

48 lines
1.6 KiB
SCSS
Raw Normal View History

@mixin linearGradient($top, $bottom){
background: $top; /* Old browsers */
background: -moz-linear-gradient(top, $top 0%, $bottom 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, $top 0%,$bottom 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, $top 0%,$bottom 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, $top 0%,$bottom 100%); /* IE10+ */
background: linear-gradient(to bottom, $top 0%,$bottom 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
2020-04-23 02:16:19 +00:00
}
// 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;
2020-04-23 19:47:53 +00:00
// background-attachment: fixed;
2020-04-23 02:16:19 +00:00
}