Browse code

Remove old version 5

Benjamin Roth authored on14/03/2021 15:27:00
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,24 +0,0 @@
1
-@plugin './plugin.js';
2
-.navigation-color-loop(@ruleset) when (length( @colors ) >= 1) {
3
-  @length: length( @colors ) ;
4
-  .looper( 1 ) ;
5
-  .looper( @index ) when ( @index <= @length ) and (length(extract( @colors, @index )) = 2) {
6
-    @navPair: extract( @colors, @index );
7
-    @navColorName: extract( @navPair, 1 ) ;
8
-    @navColorValue: extract( @navPair, 2 ) ;
9
-    @ruleset();
10
-    .looper( @index + 1 ) ;
11
-  }
12
-}
13
-
14
-.pagination-color-loop(@ruleset) when (length( @colors ) >= 1) {
15
-  @length: length( @colors ) ;
16
-  .looper( 1 ) ;
17
-  .looper( @index ) when ( @index <= @length ) and (length(extract( @colors, @index )) = 2) {
18
-    @paginationPair: extract( @colors, @index );
19
-    @paginationColorName: extract( @paginationPair, 1 ) ;
20
-    @paginationColorValue: extract( @paginationPair, 2 ) ;
21
-    @ruleset();
22
-    .looper( @index + 1 ) ;
23
-  }
24
-}
Browse code

Initial commit

Benjamin Roth authored on19/05/2020 21:59:44
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,24 @@
1
+@plugin './plugin.js';
2
+.navigation-color-loop(@ruleset) when (length( @colors ) >= 1) {
3
+  @length: length( @colors ) ;
4
+  .looper( 1 ) ;
5
+  .looper( @index ) when ( @index <= @length ) and (length(extract( @colors, @index )) = 2) {
6
+    @navPair: extract( @colors, @index );
7
+    @navColorName: extract( @navPair, 1 ) ;
8
+    @navColorValue: extract( @navPair, 2 ) ;
9
+    @ruleset();
10
+    .looper( @index + 1 ) ;
11
+  }
12
+}
13
+
14
+.pagination-color-loop(@ruleset) when (length( @colors ) >= 1) {
15
+  @length: length( @colors ) ;
16
+  .looper( 1 ) ;
17
+  .looper( @index ) when ( @index <= @length ) and (length(extract( @colors, @index )) = 2) {
18
+    @paginationPair: extract( @colors, @index );
19
+    @paginationColorName: extract( @paginationPair, 1 ) ;
20
+    @paginationColorValue: extract( @paginationPair, 2 ) ;
21
+    @ruleset();
22
+    .looper( @index + 1 ) ;
23
+  }
24
+}