mixins - Sass loop: start from second instance of this element -


I have a series of divs in a phase type layout. I am currently learning to use SCSS and I thought maybe A mixer can work through 12 devices and can organize them for me so far I have found:

  @mixin step () {$ stepBlocks: 12; @ $ 1 to $ step blocks for $. Steps - # {$ i} {Status: Completed; Head: (($ i * 296 + px); Display area; }}}   

This looks my div structure: Enter image details here

I also created an HTML mockup:

As you can see, Bella works fine, but how can I deny the effect of the previous one? I should first have the element top: 0; Can I use any if statement? If you feel that you have a better way in which I can do this, then I appreciate any help.

Do you want that the probability starts with the offset of 0. Instead of 296 px

  @mixin step () {$ stepBlocks: 12; @ $ 1 to $ step blocks for $. Steps - # {$ i} {Status: Completed; Top: ($ i - 1) * 296 px; Display area; }}}    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -