| 1 |
|
| 2 |
|
| 3 |
@mixin transition($transition: .5s) |
| 4 |
{ |
| 5 |
|
| 6 |
-o-transition: $transition; |
| 7 |
-ms-transition: $transition; |
| 8 |
-moz-transition: $transition; |
| 9 |
-webkit-transition: $transition; |
| 10 |
/* ...and now for the proper property */ |
| 11 |
transition: $transition; |
| 12 |
} |
| 13 |
|
| 14 |
@mixin noboxshadow() |
| 15 |
{ |
| 16 |
-webkit-box-shadow: none; |
| 17 |
-moz-box-shadow: none; |
| 18 |
box-shadow: none; |
| 19 |
|
| 20 |
} |
| 21 |
|
| 22 |
@mixin linear-gradient($start:#000,$end:#000,$stop:45%,$important:null) |
| 23 |
{ |
| 24 |
background: $start $important; |
| 25 |
-pie-background: linear-gradient($start $stop, $end) $important; |
| 26 |
background: -webkit-gradient(linear, left top, left bottom, color-stop($stop, $start), |
| 27 |
color-stop(1, $end)) $important; |
| 28 |
background: -moz-linear-gradient($start $stop, $end) $important; |
| 29 |
background: -o-linear-gradient($start $stop, $end) $important; |
| 30 |
background: linear-gradient( $start $stop, $end) $important; |
| 31 |
|
| 32 |
//filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#{$start}', endColorStr='#{$end}'); |
| 33 |
} |
| 34 |
|
| 35 |
@mixin bp($point) |
| 36 |
{ |
| 37 |
@if $point == 480 |
| 38 |
{ |
| 39 |
@media (max-width: 480px) { @content; } |
| 40 |
} |
| 41 |
@else if $point == 640 { |
| 42 |
@media (max-width: 640px) { @content; } |
| 43 |
} |
| 44 |
@else if $point == 780 { |
| 45 |
@media (max-width: 780px) { @content; } |
| 46 |
} |
| 47 |
@else if $point == 800 { |
| 48 |
@media (max-width: 800px) { @content; } |
| 49 |
} |
| 50 |
|
| 51 |
@else if $point == 960 { |
| 52 |
@media (max-width: 960px) { @content; } |
| 53 |
} |
| 54 |
@else if $point == 1024 { |
| 55 |
@media (max-width: 1024px) { @content; } |
| 56 |
} |
| 57 |
@else if $point == 1200 { |
| 58 |
@media (max-width: 1200px) { @content; } |
| 59 |
} |
| 60 |
} |
| 61 |
|