Update _mixins.sass

This commit is contained in:
Andros Fenollosa 2020-04-15 12:53:19 +02:00 committed by GitHub
parent 188e3e3d3d
commit 3c400050e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,14 @@
/* /*
* Fixes an element on the page to take up all the space or only part of it.
* $side: all (default), top, bottom * $side: all (default), top, bottom
*
* Examples: @include pin() , @include pin('top'), @include pin('bottom', 2500)
*/ */
@mixin pin($side: all) @mixin pin($side: all, $z-index: 1000)
position: fixed position: fixed
left: 0 left: 0
right: 0 right: 0
z-index: $z-index
@if $side == 'all' @if $side == 'all'
top: 0 top: 0
bottom: 0 bottom: 0