23 lines
653 B
Sass
Raw Normal View History

2020-05-19 11:43:42 +03:00
// stretch element height to specified top and bottom position
=stretch-y($offset-top: 0, $offset-bottom: 0)
+stretch($offset-top, false, $offset-bottom, false)
// stretch element width to specified left and right position
=stretch-x($offset-left: 0, $offset-right: 0)
+stretch(false, $offset-right, false, $offset-left)
// shorthand to stretch element height and width
=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