-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_utils.scss
25 lines (23 loc) · 889 Bytes
/
_utils.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// image with width & height
@mixin sata-image($image, $display: false) {
@if $display {
display: $display;
}
@include background(image-url($image));
width: image-width($image);
height: image-height($image);
}
// cross browser gradient (only 2 colors)
@mixin sata-cross-gradient($start-color, $end-color, $orientation: vertical) {
$orientation-modern: if($orientation == vertical, top, left);
@include background-image(linear-gradient($orientation-modern, color-stops($start-color, $end-color)));
@include filter-gradient($start-color, $end-color, $orientation);
}
// font-face
@mixin sata-font-face($name, $locals, $font-files, $eot: false, $weight: false, $style: false) {
@each $local in $locals {
$font-files: local(quote($local)), $font-files;
}
$font-files: local('☺'), $font-files;
@include font-face($name, $font-files, $eot, $weight, $style);
}