| 1 |
// ---- CSS3 SASS MIXINS ---- |
| 2 |
// https://github.com/madr/css3-sass-mixins |
| 3 |
// |
| 4 |
// Copyright (C) 2011 by Anders Ytterström |
| 5 |
// |
| 6 |
// Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 |
// of this software and associated documentation files (the "Software"), to deal |
| 8 |
// in the Software without restriction, including without limitation the rights |
| 9 |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 |
// copies of the Software, and to permit persons to whom the Software is |
| 11 |
// furnished to do so, subject to the following conditions: |
| 12 |
// |
| 13 |
// The above copyright notice and this permission notice shall be included in |
| 14 |
// all copies or substantial portions of the Software. |
| 15 |
// |
| 16 |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 |
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 |
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 |
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 |
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 22 |
// THE SOFTWARE. |
| 23 |
// |
| 24 |
|
| 25 |
// requires sass 3.2 |
| 26 |
@mixin keyframes($name){ |
| 27 |
@-moz-keyframes #{$name} { @content; } |
| 28 |
@-ms-keyframes #{$name} { @content; } |
| 29 |
@-o-keyframes #{$name} { @content; } |
| 30 |
@-webkit-keyframes #{$name} { @content; } |
| 31 |
@keyframes #{$name} { @content; } |
| 32 |
} |
| 33 |
|
| 34 |
@mixin transform($transforms) { |
| 35 |
transform: $transforms; |
| 36 |
} |
| 37 |
|
| 38 |
@mixin rotate($deg) { |
| 39 |
@include transform(rotate(#{$deg}deg)); |
| 40 |
} |
| 41 |
|
| 42 |
@mixin scale($size) { |
| 43 |
@include transform(scale(#{$size})); |
| 44 |
} |
| 45 |
|
| 46 |
@mixin translate($x, $y) { |
| 47 |
@include transform(translate($x, $y)); |
| 48 |
} |
| 49 |
|
| 50 |
// ==== /CSS3 SASS MIXINS ==== |
| 51 |
@mixin clearfix |
| 52 |
{ |
| 53 |
&:after { |
| 54 |
content: ""; |
| 55 |
display: table; |
| 56 |
clear: both; |
| 57 |
} |
| 58 |
} |
| 59 |
|
| 60 |
// Placeholder text |
| 61 |
@mixin placeholder($color: $input-color-placeholder) { |
| 62 |
&::placeholder { |
| 63 |
color: $color; |
| 64 |
} |
| 65 |
} |
| 66 |
|