2019-10-29 08:22:51 +00:00
|
|
|
//
|
|
|
|
// Mixins: Miscellaneous
|
|
|
|
//
|
|
|
|
|
|
|
|
// ETC
|
|
|
|
@mixin translate($x, $y) {
|
|
|
|
transform: translate($x, $y);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Different radius each side
|
|
|
|
@mixin border-radius-sides($top-left, $top-right, $bottom-left, $bottom-right) {
|
|
|
|
border-radius: $top-left $top-right $bottom-left $bottom-right;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin calc($property, $expression) {
|
|
|
|
#{$property}: calc(#{$expression});
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin rotate($value) {
|
|
|
|
transform: rotate($value);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin animation($animation) {
|
|
|
|
animation: $animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Gradient background
|
2020-05-30 13:06:11 +00:00
|
|
|
@mixin gradient($color: #f5f5f5, $start: #eee, $stop: $white) {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $color;
|
|
|
|
background-image: gradient(linear, left bottom, left top, color-stop(0, $start), color-stop(1, $stop));
|
2019-10-29 08:22:51 +00:00
|
|
|
}
|
|
|
|
|
2021-01-13 08:12:15 +00:00
|
|
|
//
|