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.
21 lines
446 B
21 lines
446 B
// Shared Container API |
|
// ==================== |
|
|
|
// Container Output |
|
// ---------------- |
|
// - [$width] : <length> |
|
// - [$justify] : left | center | right |
|
// - [$math] : fluid | static |
|
@mixin container-output( |
|
$width, |
|
$justify: auto auto, |
|
$property: max-width |
|
) { |
|
$output: ( |
|
#{$property}: $width or 100%, |
|
margin-left: nth($justify, 1), |
|
margin-right: nth($justify, 2), |
|
); |
|
|
|
@include output($output); |
|
}
|
|
|