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.
40 lines
658 B
40 lines
658 B
// Float Ends API |
|
// ============== |
|
|
|
// Susy End Defaults |
|
// ----------------- |
|
// - PRIVATE |
|
@include susy-defaults(( |
|
last-flow: to, |
|
)); |
|
|
|
// Float Last |
|
// ---------- |
|
// - [$flow] : ltr | rtl |
|
@mixin float-last( |
|
$flow: map-get($susy-defaults, flow), |
|
$last-flow: map-get($susy-defaults, last-flow), |
|
$margin: 0 |
|
) { |
|
$to: to($flow); |
|
|
|
$output: ( |
|
float: if($last-flow == to, $to, null), |
|
margin-#{$to}: $margin, |
|
); |
|
|
|
@include output($output); |
|
} |
|
|
|
// Float First |
|
// ----------- |
|
// - [$flow] : ltr | rtl |
|
@mixin float-first( |
|
$flow: map-get($susy-defaults, flow) |
|
) { |
|
$output: ( |
|
margin-#{from($flow)}: 0, |
|
); |
|
|
|
@include output($output); |
|
}
|
|
|