Update _mixins.sass

This commit is contained in:
Andros Fenollosa 2020-04-14 21:50:39 +02:00 committed by GitHub
parent 86bb09f281
commit 06e389e990
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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