Update _mixins.sass
This commit is contained in:
parent
86bb09f281
commit
06e389e990
17
_mixins.sass
17
_mixins.sass
@ -5,6 +5,23 @@
|
|||||||
right: 0
|
right: 0
|
||||||
bottom: 0
|
bottom: 0
|
||||||
|
|
||||||
|
/*
|
||||||
|
* $size: all, top, right, bottom, left
|
||||||
|
*/
|
||||||
|
@mixin border($size: 1px, $color: black, $side: all)
|
||||||
|
border: 0
|
||||||
|
-webkit-appearance: none
|
||||||
|
@if $side == 'all'
|
||||||
|
box-shadow: inset 0 0 0 $size $color
|
||||||
|
@else if $side == 'top'
|
||||||
|
box-shadow: inset 0 $size 0 0 $color
|
||||||
|
@else if $side == 'right'
|
||||||
|
box-shadow: inset -#{$size} 0 0 0 $color
|
||||||
|
@else if $side == 'left'
|
||||||
|
box-shadow: inset $size 0 0 0 $color
|
||||||
|
@else if $side == 'bottom'
|
||||||
|
box-shadow: inset 0 -#{$size} 0 0 $color
|
||||||
|
|
||||||
@mixin animationRotate($speed: 1s)
|
@mixin animationRotate($speed: 1s)
|
||||||
@keyframes animationRotate
|
@keyframes animationRotate
|
||||||
from
|
from
|
||||||
|
Loading…
Reference in New Issue
Block a user