Download this file

_mixins.scss    141 lines (114 with data), 3.4 kB

  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
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// Mixins
@mixin transition($args: all 0.3s ease 0s) {
-webkit-transition: $args;
-moz-transition: $args;
-o-transition: $args;
transition: $args;
}
@mixin transition-duration($args1, $args2) {
-webkit-transition-duration: $args1, $args2;
-moz-transition-duration: $args1, $args2;
-o-transition-duration: $args1, $args2;
transition-duration: $args1, $args2;
}
@mixin transition-delay($args1, $args2) {
-webkit-transition-delay: $args1, $args2;
-moz-transition-delay: $args1, $args2;
-o-transition-delay: $args1, $args2;
transition-delay: $args1, $args2;
}
@mixin transition-property($args1, $args2) {
-webkit-transition-property: $args1, $args2;
-moz-transition-property: $args1, $args2;
-o-transition-property: $args1, $args2;
transition-property: $args1, $args2;
}
// background: -moz-linear-gradient(0deg, #91d1ff, #a387ff);
// background: -webkit-linear-gradient(0deg, #91d1ff, #a387ff);
// background: -ms-linear-gradient(0deg, #91d1ff, #a387ff);
@mixin gradient($args1,$args2){
-webkit-linear-gradient:(0deg, $args1, $args2);
-moz-linear-gradient:(0deg, $args1, $args2);
-o-linear-gradient:(0deg, $args1, $args2);
-linear-gradient:(0deg, $args1, $args2);
}
@mixin filter($filter-type,$filter-amount) {
-webkit-filter: $filter-type+unquote('(#{$filter-amount})');
-moz-filter: $filter-type+unquote('(#{$filter-amount})');
-ms-filter: $filter-type+unquote('(#{$filter-amount})');
-o-filter: $filter-type+unquote('(#{$filter-amount})');
filter: $filter-type+unquote('(#{$filter-amount})');
}
@mixin transform($transform) {
-webkit-transform: $transform;
-moz-transform: $transform;
-ms-transform: $transform;
-o-transform: $transform;
transform: $transform;
}
@mixin transform-origin($value) {
-webkit-transform-origin: $value;
-moz-transform-origin: $value;
-ms-transform-origin: $value;
-o-transform-origin: $value;
transform-origin: $value;
}
@mixin backface-visibility($value) {
-webkit-backface-visibility: $value;
-moz-backface-visibility: $value;
backface-visibility: $value;
}
@mixin calc ( $property, $expression ) {
#{$property}: -webkit-calc(#{$expression});
#{$property}: -moz-calc(#{$expression});
#{$property}: calc(#{$expression});
}
@mixin keyframes ( $animation-name ) {
@-webkit-keyframes #{$animation-name} {
@content;
}
@-moz-keyframes #{$animation-name} {
@content;
}
@-o-keyframes #{$animation-name} {
@content;
}
@keyframes #{$animation-name} {
@content;
}
}
@mixin animation ($args) {
-webkit-animation: $args;
-moz-animation: $args;
-o-animation: $args;
animation: $args;
}
/* Medium Layout: 1280px */
@mixin medium {
@media (min-width: 992px) and (max-width: 1400px) {
@content;
}
}
/* Tablet Layout: 768px */
@mixin tablet {
@media (min-width: 768px) and (max-width: 1200px) {
@content;
}
}
/* Mobile Layout: 320px */
@mixin mobile {
@media (max-width: 767px) {
@content;
}
}
/* Wide Mobile Layout: 480px */
@mixin wide-mobile {
@media (min-width: 480px) and (max-width: 767px) {
@content;
}
}
@mixin cmq ($min, $max) {
@media (min-width: $min) and (max-width: $max) {
@content;
}
}