You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
835 B
24 lines
835 B
@plugin './plugin.js';
|
|
.navigation-color-loop(@ruleset) when (length( @colors ) >= 1) {
|
|
@length: length( @colors ) ;
|
|
.looper( 1 ) ;
|
|
.looper( @index ) when ( @index <= @length ) and (length(extract( @colors, @index )) = 2) {
|
|
@navPair: extract( @colors, @index );
|
|
@navColorName: extract( @navPair, 1 ) ;
|
|
@navColorValue: extract( @navPair, 2 ) ;
|
|
@ruleset();
|
|
.looper( @index + 1 ) ;
|
|
}
|
|
}
|
|
|
|
.pagination-color-loop(@ruleset) when (length( @colors ) >= 1) {
|
|
@length: length( @colors ) ;
|
|
.looper( 1 ) ;
|
|
.looper( @index ) when ( @index <= @length ) and (length(extract( @colors, @index )) = 2) {
|
|
@paginationPair: extract( @colors, @index );
|
|
@paginationColorName: extract( @paginationPair, 1 ) ;
|
|
@paginationColorValue: extract( @paginationPair, 2 ) ;
|
|
@ruleset();
|
|
.looper( @index + 1 ) ;
|
|
}
|
|
}
|
|
|