L
L
Larisa2017-04-11 12:58:56
webpack
Larisa, 2017-04-11 12:58:56

How to properly write scss class enum?

.theme-name-1, .theme-lastname-1,
.theme-name-2, .theme-lastname-2,
.theme-name-3, .theme-lastname-3 {
....
}

I understand that a cycle is needed, but I don’t understand how to make an enumeration into a string (
@mixin column-type($name, $number) { 
        @for $i from 1 through $number {
            .col-#{$name}-#{$i}  {
               color: red;
             }
        }
   }

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Kitaev, 2018-03-31
@deliro

https://webpack.js.org/concepts/plugins/

Z
zooks, 2017-04-11
@zooks

blog.teamtreehouse.com/extending-placeholder-select...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question