58 lines
2 KiB
SCSS
58 lines
2 KiB
SCSS
|
|
||
|
@mixin box-shadow($shadow) {
|
||
|
-webkit-box-shadow: $shadow;
|
||
|
-moz-box-shadow: $shadow;
|
||
|
box-shadow: $shadow;
|
||
|
}
|
||
|
|
||
|
@mixin box-sizing($boxmodel) {
|
||
|
-webkit-box-sizing: $boxmodel;
|
||
|
-moz-box-sizing: $boxmodel;
|
||
|
box-sizing: $boxmodel;
|
||
|
}
|
||
|
|
||
|
@mixin user-select($allow) {
|
||
|
-webkit-user-select: $allow;
|
||
|
-moz-user-select: $allow;
|
||
|
-ms-user-select: $allow;
|
||
|
user-select: $allow;
|
||
|
}
|
||
|
|
||
|
@mixin gpimg( $name, $right, $top ){
|
||
|
background:url('../../include/imgs/' + $name) no-repeat $right $top;
|
||
|
}
|
||
|
|
||
|
@mixin transition($transition) {
|
||
|
-webkit-transition: $transition;
|
||
|
-moz-transition: $transition;
|
||
|
-o-transition: $transition;
|
||
|
transition: $transition;
|
||
|
}
|
||
|
|
||
|
@mixin background-size($size) {
|
||
|
-webkit-background-size: $size;
|
||
|
-moz-background-size: $size;
|
||
|
-o-background-size: $size;
|
||
|
background-size: $size;
|
||
|
}
|
||
|
|
||
|
@mixin gradient-horizontal( $startColor: #555, $endColor: #333 ){
|
||
|
background-color: $endColor;
|
||
|
background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
|
||
|
background-image: -webkit-gradient(linear, 0 0, 100% 0, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
|
||
|
background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
||
|
background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
|
||
|
background-image: linear-gradient(to right, $startColor, $endColor); // Standard, IE10
|
||
|
background-repeat: repeat-x;
|
||
|
}
|
||
|
|
||
|
@mixin gradient-vertical( $startColor: #555, $endColor: #333 ){
|
||
|
background-color: mix($startColor, $endColor, 60%);
|
||
|
background-image: -moz-linear-gradient(top, $startColor, $endColor); // FF 3.6+
|
||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
|
||
|
background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
||
|
background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
|
||
|
background-image: linear-gradient(to bottom, $startColor, $endColor); // Standard, IE10
|
||
|
background-repeat: repeat-x;
|
||
|
}
|