Update _mixins.sass
This commit is contained in:
parent
b3393e50b3
commit
d2aa4412ee
16
_mixins.sass
16
_mixins.sass
@ -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
|
||||||
|
@if $side == 'all'
|
||||||
|
top: 0
|
||||||
|
bottom: 0
|
||||||
|
@else if $side == 'top'
|
||||||
|
top: 0
|
||||||
|
@else if $side == 'bottom'
|
||||||
bottom: 0
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user