R
R
RussianMan2016-09-28 18:26:48
css
RussianMan, 2016-09-28 18:26:48

How to set multiple css properties for a variable in scss?

Hello,
I have a $container-background variable which is responsible for the background.
When I set the linear-gradient property everything is fine. But how do I also set the transform property for $container-background?
PS: if it matters, then we are talking about the foundation

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2016-09-28
@AppFA

Use maps:

$container: (
    background: #ccc,
    transform: translate3d(0, 0, 0)
)

map-get($container, 'background')

https://www.sitepoint.com/using-sass-maps/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question