Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Releases: madyankin/postcss-each

0.6.0

04 Aug 07:53
Compare
Choose a tag to compare

Added multiple variable assignment (by Ryan Tsao @rtsao):

@each $animal, $color in (puma, black), (sea-slug, blue) {
  .$(animal)-icon {
    background-image: url('/images/$(animal).png');
    border: 2px solid $color;
  }
}

```css
.puma-icon {
  background-image: url('/images/puma.png');
  border: 2px solid black;  
}

.sea-slug-icon {
  background-image: url('/images/sea-slug.png');
  border: 2px solid blue;
}

0.4.1

10 Jul 11:18
Compare
Choose a tag to compare

Internal improvements

0.4.0

10 Jul 03:06
Compare
Choose a tag to compare

Added nested iteration (by Ryan Tsao @rtsao)

0.3.1

09 Jul 12:13
Compare
Choose a tag to compare

Fixed #4: Do not search the in keyword inside vars

0.3.0

01 Jul 11:53
Compare
Choose a tag to compare

Added index iteration (by Anton Winogradov @verybigman):

@each $val, $i in foo, bar {
  .icon-$(val) {
    background: url("$(val)_$(i).png");
  }
}
.icon-foo {
  background: url("foo_0.png");
}

.icon-bar {
  background: url("bar_1.png");
}

0.2.1

30 Jun 14:24
Compare
Choose a tag to compare

0.2.1

Fixed short vars issue #2

0.1.0

18 May 08:46
Compare
Choose a tag to compare

Initial release