From 3c400050e20d247aaf8c8bd17b974292054b9781 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Wed, 15 Apr 2020 12:53:19 +0200 Subject: [PATCH] Update _mixins.sass --- _mixins.sass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_mixins.sass b/_mixins.sass index ac5d7b9..d699f50 100644 --- a/_mixins.sass +++ b/_mixins.sass @@ -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 + * + * Examples: @include pin() , @include pin('top'), @include pin('bottom', 2500) */ -@mixin pin($side: all) +@mixin pin($side: all, $z-index: 1000) position: fixed left: 0 right: 0 + z-index: $z-index @if $side == 'all' top: 0 bottom: 0