]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Use pull request #11379 from absolunet/fix-elseif for v6.5.0
authorJb Landry <jb@jblandry.info>
Fri, 6 Jul 2018 20:40:17 +0000 (22:40 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Fri, 6 Jul 2018 20:51:41 +0000 (22:51 +0200)
28c348b38 Replace deprecated `@elseif` for `@else if`

Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
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 e20e8a11292eb02e2d5b845458eb8a3754ac1a98..aafc80905759ef937b721618cf0f04c67a2c5fc7 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