Skip to content

Commit

Permalink
Rename looping fonction
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgaudin committed Oct 25, 2013
1 parent 4359e7f commit 4ef39a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flag-webicons.less
Expand Up @@ -14,7 +14,7 @@
// Specify the path to the webicons directory here. Include trailing slash.
@flag-webicons-url: "flags/";

.loop-strings(@list, @index: 1) when (isstring(extract(@list, @index))) {
.flag-webicons-loop(@list, @index: 1) when (isstring(extract(@list, @index))) {
@flag-webicons-icon: extract(@list, @index);

.no-svg .flag-webicon.@{flag-webicons-icon} {background: url("@{flag-webicons-url}@{flag-webicons-icon}.png");}
Expand All @@ -24,6 +24,6 @@
.no-svg .flag-webicon.@{flag-webicons-icon}.xlarge {background: url("@{flag-webicons-url}@{flag-webicons-icon}-xl.png");}
.svg .flag-webicon.@{flag-webicons-icon} {background: url("@{flag-webicons-url}@{flag-webicons-icon}.svg");}

.loop-strings(@list, (@index + 1));
.flag-webicons-loop(@list, (@index + 1));
}
.loop-strings(@flag-webicons-icons);
.flag-webicons-loop(@flag-webicons-icons);

0 comments on commit 4ef39a3

Please sign in to comment.