Created
August 10, 2016 07:30
-
-
Save AndrewKotin/60fa80161a9f8a6b9dd24ba8af795935 to your computer and use it in GitHub Desktop.
Цвет границ (border-left, right…) Функция получает цвет границы и место (сверху, снизу, слева, справа или со всех сторон), куда его применить к объекту.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin border($place, $color, $width) { | |
@if $place == 'all' { | |
border: $width solid $color; | |
} @else { | |
border-#{$place}: $width solid $color; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mixin border($place, $color) {...}