From da184012dddbd80c8600512e00209a239f3fb66b Mon Sep 17 00:00:00 2001 From: "Eevee (Alex Munroe)" Date: Thu, 15 Aug 2013 16:09:02 -0700 Subject: Another test for destructing @each. --- scss/tests/files/general/010-destructuring-each-2.css | 15 +++++++++++++++ scss/tests/files/general/010-destructuring-each-2.scss | 9 +++++++++ 2 files changed, 24 insertions(+) create mode 100644 scss/tests/files/general/010-destructuring-each-2.css create mode 100644 scss/tests/files/general/010-destructuring-each-2.scss diff --git a/scss/tests/files/general/010-destructuring-each-2.css b/scss/tests/files/general/010-destructuring-each-2.css new file mode 100644 index 0000000..1537e5d --- /dev/null +++ b/scss/tests/files/general/010-destructuring-each-2.css @@ -0,0 +1,15 @@ +.puma-icon { + background-image: url('/images/puma.png'); + border: 2px solid black; + cursor: default; +} +.sea-slug-icon { + background-image: url('/images/sea-slug.png'); + border: 2px solid blue; + cursor: pointer; +} +.egret-icon { + background-image: url('/images/egret.png'); + border: 2px solid white; + cursor: move; +} diff --git a/scss/tests/files/general/010-destructuring-each-2.scss b/scss/tests/files/general/010-destructuring-each-2.scss new file mode 100644 index 0000000..81c4aaf --- /dev/null +++ b/scss/tests/files/general/010-destructuring-each-2.scss @@ -0,0 +1,9 @@ +@each $animal, $color, $cursor in (puma, black, default), + (sea-slug, blue, pointer), + (egret, white, move) { + .#{$animal}-icon { + background-image: url('/images/#{$animal}.png'); + border: 2px solid $color; + cursor: $cursor; + } +} -- cgit v1.2.1