mixins.less: To pass css lists to less mixins a trailing semicolon is required

This commit is contained in:
Johannes Meyer 2019-07-12 15:20:19 +02:00
parent 24723b662c
commit 923582c5de
1 changed files with 2 additions and 4 deletions

View File

@ -17,11 +17,9 @@
outline: none;
padding: @vertical-padding @horizontal-padding;
@duration: 0.2s;
// Throwaway local variable because transition mixin does not work w/ comma-separated transitions
@transition: background @duration, border @duration ease, color @duration ease;
.transition(@transition);
// The trailing semicolon is needed to be able to pass this as a css list
.transition(background @duration, border @duration ease, color @duration ease;);
&:focus,
&:hover,