https://github.com/sha-red/compass-mixins/tree/master/lib
extended with more sass frameworks and as django app.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
419 B
22 lines
419 B
// rem Support |
|
// =========== |
|
|
|
// rem |
|
// --- |
|
// Check for an existing support mixin, or output directly. |
|
// - $prop : <css property> |
|
// - $val : <css value> |
|
@mixin susy-rem( |
|
$prop, |
|
$val |
|
) { |
|
$_reqs: ( |
|
variable: rhythm-unit rem-with-px-fallback, |
|
mixin: rem, |
|
); |
|
@if susy-support(rem, $_reqs, $warn: false) and $rhythm-unit == rem { |
|
@include rem($prop, $val); |
|
} @else { |
|
#{$prop}: $val; |
|
} |
|
}
|
|
|