Answer the question
In order to leave comments, you need to log in
How to use the value of a variable from a list of variables?
Good afternoon.
I have a list of variables like
$list:(
accept: #339966,
warning: #FF0000
);
.accept{
color: $list: accept;
}
Answer the question
In order to leave comments, you need to log in
.accept{
color: map-get($list, 'accept');
/* или */
color: map-get($list, accept);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question