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.
26 lines
404 B
26 lines
404 B
7 years ago
|
// Debugging
|
||
|
// =========
|
||
|
|
||
|
// Susy Inspect
|
||
|
// ------------
|
||
|
// Output arguments passed to a inspect.
|
||
|
// - $mixin : <susy mixin>
|
||
|
// - $inspec : <mixin arguments>
|
||
|
|
||
|
@mixin susy-inspect(
|
||
|
$mixin,
|
||
|
$inspect
|
||
|
) {
|
||
|
$show: false;
|
||
|
|
||
|
@each $item in $inspect {
|
||
|
@if index($item, inspect) {
|
||
|
$show: true;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@if $show or susy-get(debug inspect) {
|
||
|
-susy-#{$mixin}: inspect($inspect);
|
||
|
}
|
||
|
}
|