]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Merge pull request #11379 from absolunet/fix-elseif
authorNicolas Coden <nicolas@ncoden.fr>
Wed, 4 Jul 2018 19:20:20 +0000 (21:20 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Thu, 5 Jul 2018 20:42:35 +0000 (22:42 +0200)
Replace deprecated `@elseif` for `@else if`

scss/components/_table.scss
scss/xy-grid/_cell.scss
scss/xy-grid/_gutters.scss

index bf6df2659e89a74025141a71dd8840230d6a76ee..256f165c3641d92d961f5d4af5c3320784caf686 100644 (file)
@@ -246,7 +246,7 @@ $table-stack-breakpoint: medium !default;
     }
 
     // Darkens the odd striped table rows.
-    @elseif($table-stripe == odd) {
+    @else if($table-stripe == odd) {
       &:not(.unstriped) tr:nth-of-type(odd):hover {
         background-color: $table-row-stripe-hover;
       }
@@ -262,7 +262,7 @@ $table-stack-breakpoint: medium !default;
     }
 
     // Darkens the odd striped table rows.
-    @elseif($table-stripe == odd) {
+    @else if($table-stripe == odd) {
       &.striped tr:nth-of-type(odd):hover {
         background-color: $table-row-stripe-hover;
       }
index 6e811e9e9bd8980f2f94c40ccb7ed02d3a1d4378..5ed44c80c11f809cec9d9241cc5c218c7a2deba5 100644 (file)
@@ -26,7 +26,7 @@
   }
 
   // Parsing "n of n" or "n/n" expressions
-  @elseif type-of($size) == 'list' {
+  @else if type-of($size) == 'list' {
     @if length($size) != 3 {
       @error 'Wrong syntax for xy-cell-size(). Use the format "n of n" or "n/n".';
     }
     min-height: 0px;
     min-width: 0px;
   }
-  @elseif ($size == 'auto') {
+  @else if ($size == 'auto') {
     flex: 1 1 0px; // sass-lint:disable-line zero-unit
   }
-  @elseif ($size == 'shrink') {
+  @else if ($size == 'shrink') {
     flex: 0 0 auto;
   }
-  @elseif ($size == 'grow') {
+  @else if ($size == 'grow') {
     flex: 1 0 auto;
   }
 }
     $val: if($margin-gutter == 0, 100%, calc(100% - #{rem-calc($margin-gutter)}));
     #{$direction}: $val;
   }
-  @elseif ($size == 'auto') {
+  @else if ($size == 'auto') {
     #{$direction}: auto;
     $val: if($margin-gutter == 0, 100%, calc(100% - #{rem-calc($margin-gutter)}));
   }
-  @elseif ($size == 'shrink') {
+  @else if ($size == 'shrink') {
     #{$direction}: auto;
   }
   @else {
index e8efb714d54d77a5902214d21619803320839d06..19e1db8ef423aa057e820ba21a06f064ed247588 100644 (file)
@@ -34,7 +34,7 @@
       }
     }
   }
-  @elseif (type-of($gutters) == 'number') {
+  @else if (type-of($gutters) == 'number') {
     $gutter: rem-calc($gutters) / 2;
 
     // Loop through each gutter position