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.
24 lines
700 B
24 lines
700 B
|
|
// stretch element height to specified top and bottom position |
|
|
|
@mixin stretch-y($offset-top:0, $offset-bottom:0) { |
|
@include stretch($offset-top, false, $offset-bottom, false); |
|
} |
|
|
|
|
|
// stretch element width to specified left and right position |
|
|
|
@mixin stretch-x($offset-left:0, $offset-right:0) { |
|
@include stretch(false, $offset-right, false, $offset-left); |
|
} |
|
|
|
|
|
// shorthand to stretch element height and width |
|
|
|
@mixin stretch($offset-top:0, $offset-right:0, $offset-bottom:0, $offset-left:0) { |
|
position: absolute; |
|
@if $offset-top { top: $offset-top; } |
|
@if $offset-bottom { bottom: $offset-bottom; } |
|
@if $offset-left { left: $offset-left; } |
|
@if $offset-right { right: $offset-right; } |
|
} |