@mixin transition-base($property:false){
@if(not $property){
transition:all 250ms ease 0s;
}
@else{
transition:$property 250ms ease 0s;
}
}
@include transition-base(padding, color, border-color);
transition:padding 0s ease 0s, color 0s ease 0s, border-color 250ms ease 0s;
@mixin transition-base($properties...){
// Свойство transition-property по-умолчанию равно значению all
// т.е. запись transition: 250ms ease 0s; будет
// эквивалентна записи transition: all 250ms ease 0s;
transition: 250ms ease 0s;
@if length($properties) > 0 {
transition-property: $properties;
}
}
@include transition-base();
@include transition-base(padding, color, border-color);