Update _mixins.sass

This commit is contained in:
Andros Fenollosa 2020-04-15 08:59:21 +02:00 committed by GitHub
parent b3393e50b3
commit d2aa4412ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,16 +1,24 @@
@mixin pin() /*
* $side: all (default), top, bottom
*/
@mixin pin($side: all)
position: fixed position: fixed
top: 0
left: 0 left: 0
right: 0 right: 0
bottom: 0 @if $side == 'all'
top: 0
bottom: 0
@else if $side == 'top'
top: 0
@else if $side == 'bottom'
bottom: 0
@mixin sizeCube($size: 1rem) @mixin sizeCube($size)
width: $size width: $size
height: $size height: $size
/* /*
* $size: all, top, right, bottom, left * $side: all (default), top, right, bottom, left
*/ */
@mixin border($size: 1px, $color: black, $side: all) @mixin border($size: 1px, $color: black, $side: all)
border: 0 border: 0