]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
chore: resolve Sass linting errors
authorJoe Workman <joe@workmanmail.com>
Mon, 1 Nov 2021 18:22:18 +0000 (11:22 -0700)
committerJoe Workman <joe@workmanmail.com>
Mon, 1 Nov 2021 18:22:18 +0000 (11:22 -0700)
31 files changed:
.sass-lint.yml
scss/components/_close-button.scss
scss/components/_off-canvas.scss
scss/components/_responsive-embed.scss
scss/components/_switch.scss
scss/components/_table.scss
scss/components/_visibility.scss
scss/grid/_column.scss
scss/prototype/_border-none.scss
scss/prototype/_font-styling.scss
scss/prototype/_rotate.scss
scss/prototype/_separator.scss
scss/prototype/_shadow.scss
scss/prototype/_spacing.scss
scss/prototype/_text-transformation.scss
scss/settings/_settings.scss
scss/typography/_base.scss
scss/typography/_helpers.scss
scss/util/_breakpoint.scss
scss/util/_color.scss
scss/util/_flex.scss
scss/util/_math.scss
scss/util/_mixins.scss
scss/util/_selector.scss
scss/util/_typography.scss
scss/util/_value.scss
scss/vendor/normalize.scss
scss/xy-grid/_cell.scss
scss/xy-grid/_classes.scss
scss/xy-grid/_frame.scss
scss/xy-grid/_position.scss

index 3e6403340825420113fc7a981a5311b22738b7a2..75b36b421586b3fa5fb68840c0f68276f0fe6bbb 100644 (file)
@@ -19,8 +19,9 @@ rules:
     - 1
     - convention: '0'
 
+  # Turning this off since it break if/else statements
   brace-style:
-    - 1
+    - 0
     - style: stroustrup
     - allow-single-line: true
 
@@ -34,7 +35,7 @@ rules:
       leading-underscore: false
 
   empty-line-between-blocks:
-    - 1
+    - 0
     - ignore-single-line-rulesets: true
 
   extends-before-declarations: 1
@@ -113,8 +114,8 @@ rules:
 
   no-qualifying-elements:
     - 1
-    - allow-element-with-attribute: false
-      allow-element-with-class: false
+    - allow-element-with-attribute: true
+      allow-element-with-class: true
       allow-element-with-id: false
 
   no-trailing-zero: 1
@@ -131,8 +132,9 @@ rules:
     - 1
     - convention: '([a-z0-9]+-?)+'
 
+  # Disabling this for now. Remembering some arbitrary custom sort order is not sustainable
   property-sort-order:
-    - 1
+    - 0
     -
       ignore-custom-properties: true
       order:
@@ -362,7 +364,7 @@ rules:
         - 'speak'
 
   quotes:
-    - 1
+    - 0
     - style: single
 
   shorthand-values: 1
index 37b501d14f3ca1e1172b10d7cf40d6692709776b..40f737f079188a589474a2d65866f543dcced06b 100644 (file)
@@ -106,6 +106,9 @@ $closebutton-color-hover: $black !default;
 
 @mixin foundation-close-button {
   .close-button {
+    // Use by default the placeholder of the default size
+    @extend %zf-close-button--#{$closebutton-default-size};
+
     @include close-button;
 
     // Generate a placeholder and a class for each size
@@ -120,8 +123,5 @@ $closebutton-color-hover: $black !default;
         @extend %zf-close-button--#{$name};
       }
     }
-
-    // Use by default the placeholder of the default size
-    @extend %zf-close-button--#{$closebutton-default-size};
   }
 }
index e461a54d5d5693228de5cc5617a09fffb0417c55..af78b7ca7933429fdea3fe4ef97ddf0f43db1f6c 100644 (file)
@@ -383,10 +383,10 @@ $maincontent-class: 'off-canvas-content' !default;
 
 /// Adds styles that reveal an off-canvas panel.
 @mixin off-canvas-reveal(
-$position: left,
-$zindex: $offcanvas-reveal-zindex,
-$content: $maincontent-class,
-$breakpoint: small
+  $position: left,
+  $zindex: $offcanvas-reveal-zindex,
+  $content: $maincontent-class,
+  $breakpoint: small
 ) {
   transform: none;
   z-index: $zindex;
@@ -453,10 +453,10 @@ $breakpoint: small
     @include off-canvas-base;
 
     // Force position absolute for nested off-canvas because fixed doesn't work for push transition within the transform scope.
-    @at-root .#{$maincontent-class} & {
-      // NOTE: since overlap transition is currently forced if nested, there's no need to force position absolute until nested push transition is supported.
-      // position: absolute;
-    }
+    // @at-root .#{$maincontent-class} & {
+    //   // NOTE: since overlap transition is currently forced if nested, there's no need to force position absolute until nested push transition is supported.
+    //   position: absolute;
+    // }
   }
 
   // Off-canvas container with absolute position
index e57619e438cb38cf3b8357af15999a137862f721..c710fca8e0e250d0274be29dac8447604d8f00de 100644 (file)
@@ -46,7 +46,7 @@ $responsive-embed-ratios: (
   .flex-video {
     @include responsive-embed($ratio: default);
 
-    $ratios: map-remove($responsive-embed-ratios,default);
+    $ratios: map-remove($responsive-embed-ratios, default);
 
     @each $name, $ratio in $ratios {
       &.#{$name} {
index 381703683f349f1c95e65ef60682894f7e09d694..9451777b3d6b9f46122961dd82d55aefa24d73b1 100644 (file)
@@ -56,7 +56,7 @@ $switch-paddle-transition: all 0.25s ease-out !default;
 
 /// Opacity of a disabled switch.
 /// @type Number
-$switch-opacity-disabled: .5 !default;
+$switch-opacity-disabled: 0.5 !default;
 
 /// Cursor for a disabled switch.
 /// @type Cursor
@@ -215,8 +215,8 @@ $switch-cursor-disabled: not-allowed !default;
 @mixin foundation-switch {
   // Container class
   .switch {
-    height: $switch-height;
     @include switch-container;
+    height: $switch-height;
   }
 
   // <input> element
index d09bc7a1b2dc82261c757e9ee01efcaef9ac6ddf..1a46d33109dde39ef8844917203566426daee2cc 100644 (file)
@@ -101,7 +101,6 @@ $table-stack-breakpoint: medium !default;
 
 @mixin -zf-table-unstripe() {
   tr {
-    border-bottom: 0;
     border-bottom: $table-border;
     background-color: $table-background;
   }
index 3217e7f198f1fbb59d4ff5bd46984dfef671b71e..a4dc42e0e97bac840ed1bc4885c72e42835d1193 100644 (file)
@@ -9,7 +9,7 @@
   // Max value is 0.2px under the next breakpoint (0.02 / 16 = 0.00125).
   // Use a precision under 1px to support browser zoom, but not to low to avoid rounding.
   // See https://github.com/foundation/foundation-sites/issues/11313
-  $size: -zf-bp-to-em($size) - .00125;
+  $size: -zf-bp-to-em($size) - 0.00125;
 
   @include breakpoint($size down) {
     display: none !important;
@@ -23,7 +23,7 @@
   $upper-bound-size: -zf-map-next($breakpoints, $size);
 
   // more often than not this will be correct, just one time round the loop it won't so set in scope here
-  $lower-bound: -zf-bp-to-em($lower-bound-size) - .00125;
+  $lower-bound: -zf-bp-to-em($lower-bound-size) - 0.00125;
   // test actual lower-bound-size, if 0 set it to 0em
   @if strip-unit($lower-bound-size) == 0 {
     $lower-bound: -zf-bp-to-em($lower-bound-size);
index be3c06dc9a653d5ddbc96151ea98afeb03e1bcb6..90b9ce2a0f27a384c2c717cd2bac4a248d738c48 100644 (file)
   $columns: $grid-column-count,
   $gutters: $grid-column-gutter
 ) {
-  @include grid-column-size($columns);
-  float: $global-left;
-
   // Gutters
   @include grid-column-gutter($gutters: $gutters);
-
   // Position
   @include grid-col-pos(auto);
+
+  @include grid-column-size($columns);
+  float: $global-left;
 }
 
 /// Creates a grid column row. This is the equivalent of adding `.row` and `.column` to the same element.
index 9a561eedeb0264a61ad03becc95bb1479d14b014..cb0f6cc07ef05c44881cbef3c77730a3cf1787cd 100644 (file)
@@ -12,7 +12,7 @@ $prototype-border-none-breakpoints: $global-prototype-breakpoints !default;
 
 /// Border none utility
 @mixin border-none {
-  border: none !important;
+  border: 0 !important;
 }
 
 @mixin foundation-prototype-border-none {
index 191d4a8885db64b695f8559fa680de092fa47cc9..cb46e89bc4006b3ab7146c1d4216e25169ce73cb 100644 (file)
@@ -52,7 +52,7 @@ $prototype-font-bold: $global-weight-bold !default;
 }
 
 @mixin foundation-prototype-font-styling {
-  .font-wide{
+  .font-wide {
     @include font-wide;
   }
 
@@ -73,7 +73,7 @@ $prototype-font-bold: $global-weight-bold !default;
     @each $size in $breakpoint-classes {
       @include breakpoint($size) {
         @if $size != $-zf-zero-breakpoint {
-          .#{$size}-font-wide{
+          .#{$size}-font-wide {
             @include font-wide;
           }
 
index 8e13a7de3165a83ef9a197b8083a01173facf666..dae595d35c4a07e45035754529315fedea591810 100644 (file)
@@ -2,6 +2,8 @@
 // https://get.foundation
 // Licensed under MIT Open Source
 
+// sass-lint:disable mixin-name-format
+
 ////
 /// @group prototype-rotate
 ////
 /// Rotate Mixin: Rotate an element to a certain deg
 /// @param {Number} $deg[] Degree of rotation
 @mixin rotate($deg) {
-       transform:rotate($deg + deg);
+  transform: rotate($deg + deg);
 }
 
 /// RotateX Mixin: Rotate an element to a certain deg on X-Axis
 /// @param {Number} $deg[] Degree of rotation
 @mixin rotateX($deg) {
-       transform:rotateX($deg + deg);
+  transform: rotateX($deg + deg);
 }
 
 /// RotateY Mixin: Rotate an element to a certain deg on Y-Axis
 /// @param {Number} $deg[] Degree of rotation
 @mixin rotateY($deg) {
-       transform:rotateY($deg + deg);
+  transform: rotateY($deg + deg);
 }
 
 /// RotateZ Mixin: Rotate an element to a certain deg on Z-Axis
 /// @param {Number} $deg[] Degree of rotation
 @mixin rotateZ($deg) {
-       transform:rotateZ($deg + deg);
-}
\ No newline at end of file
+  transform: rotateZ($deg + deg);
+}
index ec83aec0000766c3fc505cfd17d23e41314f9908..62876a2b9c391b1a33c5f1c4ced7fb3ec4d6b49f 100644 (file)
@@ -43,8 +43,8 @@ $prototype-separator-margin-top: $global-margin !default;
   $background: $prototype-separator-background,
   $top: $prototype-separator-margin-top
 ) {
+  @include clearfix;
   text-align: $align !important;
-       @include clearfix;
 
   &::after {
     @include position(relative);
@@ -63,9 +63,9 @@ $prototype-separator-margin-top: $global-margin !default;
 }
 
 @mixin foundation-prototype-separator {
-       .separator-center {
-               @include separator(center);
-       }
+  .separator-center {
+    @include separator(center);
+  }
 
   .separator-left {
     @include separator(left);
@@ -75,7 +75,7 @@ $prototype-separator-margin-top: $global-margin !default;
     @include separator(right);
   }
 
-       @if ($prototype-separator-breakpoints) {
+  @if ($prototype-separator-breakpoints) {
     // Loop through Responsive Breakpoints
     @each $size in $breakpoint-classes {
       @include breakpoint($size) {
index 3f571f847a2517987414e44e1238ca5c8fd05763..c7e4ff706db4fdf28dd90ccd6b997ff4fd67c5aa 100644 (file)
@@ -12,8 +12,7 @@ $prototype-shadow-breakpoints: $global-prototype-breakpoints !default;
 
 /// Default value for `prototype-box-shadow`
 /// @type Number
-$prototype-box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),
-                       0 2px 10px 0 rgba(0,0,0,.12) !default;
+$prototype-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !default;
 
 /// Shadow Utility: Adds a light box shadow to an element by default.
 /// @param {Number} $shadow [$prototype-box-shadow] Box Shadow of a component
index f0887c3cc3d5279cc9933d13a9f2eb99adbe6fed..3955ee0ce8ffabae31885058c6c97ddfa104c761 100644 (file)
@@ -68,23 +68,23 @@ $prototype-spacers-count: 3 !default;
 /// @param {String} $dir [] Direction
 /// @param {Number} $spacer [] Spacer
 @mixin margin-direction($dir, $spacer) {
-  @if ($dir == top) { 
-    @include margin($top: $spacer); 
+  @if ($dir == top) {
+    @include margin($top: $spacer);
   }
-  @else if ($dir == right) { 
-    @include margin($right: $spacer); 
+  @else if ($dir == right) {
+    @include margin($right: $spacer);
   }
-  @else if ($dir == bottom) { 
-    @include margin($bottom: $spacer); 
+  @else if ($dir == bottom) {
+    @include margin($bottom: $spacer);
   }
-  @else if ($dir == left) { 
-    @include margin($left: $spacer); 
+  @else if ($dir == left) {
+    @include margin($left: $spacer);
   }
-  @else if ($dir == horizontal) { 
-    @include margin($right: $spacer, $left: $spacer); 
+  @else if ($dir == horizontal) {
+    @include margin($right: $spacer, $left: $spacer);
   }
-  @else if ($dir == vertical) { 
-    @include margin($top: $spacer, $bottom: $spacer); 
+  @else if ($dir == vertical) {
+    @include margin($top: $spacer, $bottom: $spacer);
   }
 }
 
@@ -92,36 +92,36 @@ $prototype-spacers-count: 3 !default;
 /// @param {String} $dir [] Direction
 /// @param {Number} $spacer [] Spacer
 @mixin padding-direction($dir, $spacer) {
-  @if ($dir == top) { 
-    @include padding($top: $spacer); 
+  @if ($dir == top) {
+    @include padding($top: $spacer);
   }
-  @else if ($dir == right) { 
-    @include padding($right: $spacer); 
+  @else if ($dir == right) {
+    @include padding($right: $spacer);
   }
-  @else if ($dir == bottom) { 
-    @include padding($bottom: $spacer); 
+  @else if ($dir == bottom) {
+    @include padding($bottom: $spacer);
   }
-  @else if ($dir == left) { 
-    @include padding($left: $spacer); 
+  @else if ($dir == left) {
+    @include padding($left: $spacer);
   }
-  @else if ($dir == horizontal) { 
-    @include padding($right: $spacer, $left: $spacer); 
+  @else if ($dir == horizontal) {
+    @include padding($right: $spacer, $left: $spacer);
   }
-  @else if ($dir == vertical) { 
-    @include padding($top: $spacer, $bottom: $spacer); 
+  @else if ($dir == vertical) {
+    @include padding($top: $spacer, $bottom: $spacer);
   }
 }
 
 @mixin foundation-prototype-spacing {
   @for $spacer from 0 through $prototype-spacers-count {
-    
+
     @each $prop in (margin, padding) {
       // All Sides
       .#{$prop}-#{$spacer} {
-        @if ($prop == margin) { 
+        @if ($prop == margin) {
           margin: $spacer * $global-margin !important;
         }
-        @else if ($prop == padding) { 
+        @else if ($prop == padding) {
           padding: $spacer * $global-padding !important;
         }
       }
@@ -129,7 +129,7 @@ $prototype-spacers-count: 3 !default;
       @each $dir in (top, right, bottom, left, horizontal, vertical) {
         // Top Side
         .#{$prop}-#{$dir}-#{$spacer} {
-          @if ($prop == margin) { 
+          @if ($prop == margin) {
             @include margin-direction($dir, $spacer);
           }
           @else if ($prop == padding) {
@@ -142,7 +142,7 @@ $prototype-spacers-count: 3 !default;
 
   @if ($prototype-spacing-breakpoints) {
     @for $spacer from 0 through $prototype-spacers-count {
-    // Loop through Responsive Breakpoints
+      // Loop through Responsive Breakpoints
       @each $size in $breakpoint-classes {
         @include breakpoint($size) {
           @if $size != $-zf-zero-breakpoint {
@@ -150,10 +150,10 @@ $prototype-spacers-count: 3 !default;
               @each $prop in (margin, padding) {
                 // All Sides
                 &-#{$prop}-#{$spacer} {
-                  @if ($prop == margin) { 
+                  @if ($prop == margin) {
                     margin: $spacer * $global-margin !important;
                   }
-                  @else if ($prop == padding) { 
+                  @else if ($prop == padding) {
                     padding: $spacer * $global-padding !important;
                   }
                 }
@@ -161,10 +161,10 @@ $prototype-spacers-count: 3 !default;
                 @each $dir in (top, right, bottom, left, horizontal, vertical) {
                   // Top Side
                   &-#{$prop}-#{$dir}-#{$spacer} {
-                    @if ($prop == margin) { 
+                    @if ($prop == margin) {
                       @include margin-direction($dir, $spacer);
                     }
-                    @else if ($prop == padding) { 
+                    @else if ($prop == padding) {
                       @include padding-direction($dir, $spacer);
                     }
                   }
index 48532bf3ecd6225fa1a86f3aceaf9971a3acef76..90dd24be7580f3cce728574af50c398c44c43cb3 100644 (file)
@@ -33,13 +33,13 @@ $prototype-text-transformation: (
 
   @if ($prototype-transformation-breakpoints) {
     // Loop through Responsive Breakpoints
-       @each $size in $breakpoint-classes {
+    @each $size in $breakpoint-classes {
       @include breakpoint($size) {
         @each $transformation in $prototype-text-transformation {
           @if $size != $-zf-zero-breakpoint {
             .#{$size}-text-#{$transformation} {
-                             @include text-transform($transformation);
-                           }
+              @include text-transform($transformation);
+            }
           }
         }
       }
index 64166d5e571d71134a384fa4368fa6067ef0fb3b..92b3737ff204eaec453b5850525fc2aecad58c37 100644 (file)
@@ -692,8 +692,7 @@ $prototype-separator-margin-top: $global-margin;
 // --------------------
 
 $prototype-shadow-breakpoints: $global-prototype-breakpoints;
-$prototype-box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),
-                       0 2px 10px 0 rgba(0,0,0,.12);
+$prototype-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
 
 // 41. Prototype Sizing
 // --------------------
@@ -792,7 +791,7 @@ $switch-paddle-background: $white;
 $switch-paddle-offset: 0.25rem;
 $switch-paddle-radius: $global-radius;
 $switch-paddle-transition: all 0.25s ease-out;
-$switch-opacity-disabled: .5;
+$switch-opacity-disabled: 0.5;
 $switch-cursor-disabled: not-allowed;
 
 // 50. Table
index fe064196bacb9f9c64e88433e668382a425a372a..db68e52d3cb875e948e5f39e3aad3d81752d4273 100644 (file)
@@ -73,7 +73,7 @@ $header-styles: (
 
 // $header-styles map is built from $header-sizes in order to ensure downward compatibility
 // when $header-sizes is depreciated, $header-styles needs to get !default values like settings.scss
-@function build_from_header-sizes($header-sizes) {
+@function build-from-header-sizes($header-sizes) {
   @warn 'Note, that $header-sizes has been replaced with $header-styles. $header-sizes still works, but it is going to be depreciated.';
   $header-styles: ();
   @each $size, $headers in $header-sizes {
@@ -88,7 +88,7 @@ $header-styles: (
 
 // If it exists $headers-sizes is used to build $header-styles. See the documentation.
 @if variable-exists(header-sizes) {
-  $header-styles: build_from_header-sizes($header-sizes);
+  $header-styles: build-from-header-sizes($header-sizes);
 }
 
 /// Text rendering method of headers.
@@ -434,7 +434,7 @@ $abbr-underline: 1px dotted $black !default;
     cite {
       // Extending a class is not recommended.
       // TODO: Break the typography-base/typography-helpers separation
-      @extend .cite-block;
+      @extend %cite-block;
     }
   }
 
@@ -453,7 +453,7 @@ $abbr-underline: 1px dotted $black !default;
   // Code
   @if ($enable-code-inline == true) {
     code {
-      @extend .code-inline;
+      @extend %code-inline;
     }
   }
 
index 323b285ce05c17a680e17b0ce64b584f10867310..903dab7c5873ae650382b4df698771ad69452301 100644 (file)
@@ -164,15 +164,23 @@ $code-block-margin-bottom: 1.5rem !default;
     }
   }
 
-  .cite-block {
+  %cite-block {
     @include cite-block;
   }
 
-  .code-inline {
+  .cite-block {
+    @extend %cite-block;
+  }
+
+  %code-inline {
     @include code-style;
     @include code-inline;
   }
 
+  .code-inline {
+    @extend %code-inline;
+  }
+
   .code-block {
     @include code-style;
     @include code-block;
index 08fbdef7a7464cc19b099b406f249b2a3290be97..d3fa64e85fd09e3c717547332c991272310aa6a2 100644 (file)
@@ -250,15 +250,15 @@ $breakpoint-classes: (small medium large) !default;
 /// @returns {Mixed} The number following `$number`, if `$number` was found. If `$number` was not found, or `$number` was the biggest number in the map, returns `null`.
 @function -zf-map-next-number($map, $number) {
 
-  $next_number: null;
+  $next-number: null;
 
   @each $k, $v in $map {
-    @if type-of($v) == 'number' and $v > $number and ($next_number == null or $v < $next_number) {
-      $next_number: $v;
+    @if type-of($v) == 'number' and $v > $number and ($next-number == null or $v < $next-number) {
+      $next-number: $v;
     }
   }
 
-  @return $next_number;
+  @return $next-number;
 }
 
 /// Return a list of our named breakpoints less than $key. Useful for dealing with
@@ -270,13 +270,13 @@ $breakpoint-classes: (small medium large) !default;
 /// @returns {Array} The list of breakpoints up to and. If $key is auto, returns breakpoints above the zero
 @function -zf-breakpoints-less-than($key) {
   $list: ();
-  $found_key: false;
+  $found-key: false;
 
   @each $name in $-zf-breakpoints-keys {
     @if ($name == $key) {
-      $found_key: true;
+      $found-key: true;
     }
-    @if not $found_key {
+    @if not $found-key {
       $list: append($list, $name);
     }
   }
index 18e2b5f5bd532e89ec752276ca1bfa94172a0cfe..1eb50e70c952d41c166dbd6beb3d0155a3733c47 100644 (file)
@@ -9,11 +9,11 @@ $contrast-warnings: true !default;
 ////
 /// Patch to fix issue #12080
 
-$primary-color   : null !default;
-$secondary-color : null !default;
-$warning-color   : null !default;
-$alert-color     : null !default;
-$success-color   : null !default;
+$primary-color: null !default;
+$secondary-color: null !default;
+$warning-color: null !default;
+$alert-color: null !default;
+$success-color: null !default;
 ////
 
 ////
@@ -85,7 +85,7 @@ $success-color   : null !default;
   }
 
   @if ($contrast-warnings and $contrast < 3) {
-    @warn "Contrast ratio of #{$best} on #{$base} is pretty bad, just #{$contrast}";
+    @warn 'Contrast ratio of #{$best} on #{$base} is pretty bad, just #{$contrast}';
   }
 
   @return $best;
index 2a48b6dbdb2f9dbfbb6d35513ec680226e02297d..06e31a0e8904da77f8913ab9ac662ac29f218678 100644 (file)
@@ -1,4 +1,4 @@
-@function -zf-flex-justify($text-direction){
+@function -zf-flex-justify($text-direction) {
   $-zf-flex-justify: (
     'left': if($text-direction == rtl, flex-end, flex-start),
     'right': if($text-direction == rtl, flex-start, flex-end),
index 24d71722bf0fcb7573e2ff6acb16eb1f004ed38e..c5e9e7cbd1a9282119b06999a7efceb2d7fdf4d4 100644 (file)
@@ -30,7 +30,7 @@
 /// @returns {Number} The product of the exponentiation.
 @function pow($base, $exponent, $prec: 16) {
   @if (floor($exponent) != $exponent) {
-    $prec2 : pow(10, $prec);
+    $prec2: pow(10, $prec);
     $exponent: round($exponent * $prec2);
     $denominator: gcd($exponent, $prec2);
     @return nth-root(pow($base, divide($exponent, $denominator)), divide($prec2, $denominator), $prec);
@@ -98,8 +98,8 @@
   @else if type-of($fraction) == 'list' {
     // "50 of 100", "50/100"...
     @if length($fraction) == 3
-      and type-of(nth($fraction, 1) == 'number')
-      and type-of(nth($fraction, 3) == 'number') {
+    and type-of(nth($fraction, 1) == 'number')
+    and type-of(nth($fraction, 3) == 'number') {
       @return (nth($fraction, 1), nth($fraction, 3));
     }
   }
     @return 0;
   }
   @if $divisor == 0 {
-    @error "Cannot divide by 0";
+    @error 'Cannot divide by 0';
   }
   $remainder: $dividend;
   $result: 0;
       $quotient: $quotient + 1;
     }
     $result: $result * 10 + $quotient;
-    $factor: $factor * .1;
+    $factor: $factor * 0.1;
     $remainder: $remainder * 10;
     $precision: $precision - 1;
     @if ($precision < 0 and $remainder >= $divisor * 5) {
   $dividend-unit: unit($dividend);
   $divisor-unit: unit($divisor);
   $unit-map: (
-    "px": 1px,
-    "rem": 1rem,
-    "em": 1em,
-    "%": 1%
+    'px': 1px,
+    'rem': 1rem,
+    'em': 1em,
+    '%': 1%
   );
   @if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) {
     $result: $result * map-get($unit-map, $dividend-unit);
index 77918b4b03d4a2e728ded1f077a1401f0b2f9896..c87a6a1958560de7141e3aea68f09b6969a57759 100644 (file)
@@ -150,9 +150,9 @@ $-zf-pb-value: null;
 @mixin background-triangle($color: $black) {
   $rgb: 'rgb%28#{round(red($color))}, #{round(green($color))}, #{round(blue($color))}%29';
 
-  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: #{$rgb}'></polygon></svg>");
+  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="32" height="24" viewBox="0 0 32 24"><polygon points="0,0 32,0 16,24" style="fill: #{$rgb}"></polygon></svg>');
 
-  @media screen and (min-width:0\0) {
+  @media screen and (min-width: 0\0) {
     @if lightness($color) < 60% {
       // White triangle
       background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAYAAACbU/80AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIpJREFUeNrEkckNgDAMBBfRkEt0ObRBBdsGXUDgmQfK4XhH2m8czQAAy27R3tsw4Qfe2x8uOO6oYLb6GlOor3GF+swURAOmUJ+RwtEJs9WvTGEYxBXqI1MQAZhCfUQKRzDMVj+TwrAIV6jvSUEkYAr1LSkcyTBb/V+KYfX7xAeusq3sLDtGH3kEGACPWIflNZfhRQAAAABJRU5ErkJggg==');
@@ -221,7 +221,7 @@ $-zf-pb-value: null;
   height: 1px #{$important};
   padding: 0 #{$important};
   overflow: hidden #{$important};
-  clip: rect(0,0,0,0) #{$important};
+  clip: rect(0, 0, 0, 0) #{$important};
   white-space: nowrap #{$important};
   border: 0 #{$important};
 }
@@ -325,8 +325,7 @@ $-zf-pb-value: null;
     }
     $-zf-size: $bp !global;
 
-    @if ($media-queries == true
-      or ($media-queries == 'for-lists' and $-breakpoints-is-a-list)) {
+    @if ($media-queries == true or ($media-queries == 'for-lists' and $-breakpoints-is-a-list)) {
       @include breakpoint($bp) {
         @content;
       }
index 626f86c4e907c3dbc75e85c7483c45aadd0554c5..dfe4c778049e862f123798420cbe476ab4b360d6 100644 (file)
 @function text-inputs($types: (), $modifier: '') {
   $return: ();
 
-  $all-types:
-    text
-    password
-    date
-    datetime
-    datetime-local
-    month
-    week
-    email
-    number
-    search
-    tel
-    time
-    url
-    color;
+  $all-types: text password date datetime datetime-local month week email number search tel time url color;
 
   @if not has-value($types) {
     $types: $all-types;
index 19e253eb77b93a0f84ecb3e96b4b0a61c850500c..e6ad6767ce8263c89aee08e248679800c15d81cb 100644 (file)
@@ -7,12 +7,12 @@
 ////
 
 $-zf-font-stack: (
-  'georgia': (Georgia, "URW Bookman L", serif),
-  'helvetica': (Helvetica, Arial, "Nimbus Sans L", sans-serif),
-  'lucida-grande': ("Lucida Grande", "Lucida Sans Unicode", "Bitstream Vera Sans", sans-serif),
-  'monospace': ("Courier New", Courier, "Nimbus Sans L", monospace),
-  'system': (-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif),
-  'verdana': (Verdana, Geneva, "DejaVu Sans", sans-serif),
+  'georgia': (Georgia, 'URW Bookman L', serif),
+  'helvetica': (Helvetica, Arial, 'Nimbus Sans L', sans-serif),
+  'lucida-grande': ('Lucida Grande', 'Lucida Sans Unicode', 'Bitstream Vera Sans', sans-serif),
+  'monospace': ('Courier New', Courier, 'Nimbus Sans L', monospace),
+  'system': (-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif),
+  'verdana': (Verdana, Geneva, 'DejaVu Sans', sans-serif),
 );
 
 /// Return a font stack list from a map. Equivalent to `map-safe-get($name, $-zf-font-stack)`.
index d7605bd81bcf446d8c882c4b3e4e3189d39b91ff..419dbf33ea143a0cefa0f305d9bea4dcc22d7a35 100644 (file)
     @return $val;
   }
   @if $length == 2 {
-    @return map-get((
-      top: nth($val, 1),
-      bottom: nth($val, 1),
-      left: nth($val, 2),
-      right: nth($val, 2),
-    ), $side);
+    @return map-get((top: nth($val, 1), bottom: nth($val, 1), left: nth($val, 2), right: nth($val, 2), ), $side);
   }
   @if $length == 3 {
-    @return map-get((
-      top: nth($val, 1),
-      left: nth($val, 2),
-      right: nth($val, 2),
-      bottom: nth($val, 3),
-    ), $side);
+    @return map-get((top: nth($val, 1), left: nth($val, 2), right: nth($val, 2), bottom: nth($val, 3), ), $side);
   }
   @if $length == 4 {
-    @return map-get((
-      top: nth($val, 1),
-      right: nth($val, 2),
-      bottom: nth($val, 3),
-      left: nth($val, 4),
-    ), $side);
+    @return map-get((top: nth($val, 1), right: nth($val, 2), bottom: nth($val, 3), left: nth($val, 4), ), $side);
   }
 }
 
index 1023303a0bd6fd56339abbbf19655b2d5bc8100f..9de163339050aa4f371fd4ae9a3628d8fc5dfa6a 100644 (file)
@@ -1,3 +1,5 @@
+// sass-lint:disable no-vendor-prefixes
+
 @mixin foundation-normalize() {
   /*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
 
@@ -62,8 +64,7 @@
   // 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 
   abbr[title] {
-    border-bottom: none; // 1
-    text-decoration: underline; // 2
+    border-bottom: 0; // 1
     text-decoration: underline dotted; // 2
   }
 
index 94d1b05a66a9ec542c19a6f96e6939415c1ea3e8..626f430efad4ecfcdff941e0ee0bf8154b29ed07 100644 (file)
@@ -13,7 +13,7 @@
 /// @returns {List} The cell flex property value.
 @function xy-cell-base($size: full) {
   @if ($size == 'auto') {
-    @return 1 1 0px;
+    @return 1 1 0;
   }
   @else if ($size == 'grow') {
     @return 1 0 auto;
 
   // Set base styles for "full" only
   @if($size == 'full') {
-    min-height: 0px;
-    min-width: 0px;
+    min-height: 0;
+    min-width: 0;
   }
 }
 
index 29477068b0f605f105fcc8aba73da1668d1fa022..cfee971429e2d48944f287673bea43da625fce19 100644 (file)
@@ -58,7 +58,7 @@
     .grid-x {
       $str: "> .#{$-zf-size}-shrink, > .#{$-zf-size}-full";
       @for $i from 1 through $grid-columns {
-        $str: $str + ", > .#{$-zf-size}-#{$i}"
+        $str: $str + ", > .#{$-zf-size}-#{$i}";
       }
       #{$str} {
         flex-basis: auto;
   $padding-grid: true
 ) {
 
-  @include -zf-each-breakpoint() {
-    @if not($-zf-size == $-zf-zero-breakpoint) {
-    }
-  }
+  // @include -zf-each-breakpoint() {
+  //   @if not($-zf-size == $-zf-zero-breakpoint) {
+  //   }
+  // }
 
   .grid-y {
     @include xy-grid(vertical, false);
       // https://github.com/foundation/foundation-sites/pull/10164
       $str: "> .#{$-zf-size}-shrink, > .#{$-zf-size}-full";
       @for $i from 1 through $grid-columns {
-        $str: $str + ", > .#{$-zf-size}-#{$i}"
+        $str: $str + ", > .#{$-zf-size}-#{$i}";
       }
       #{$str} {
         flex-basis: auto;
   @if $vertical-grid {
     .grid-y {
       &.grid-frame {
-        width: auto;
         @include xy-grid-frame(true);
+        width: auto;
       }
 
       @include -zf-each-breakpoint(false) {
         &.#{$-zf-size}-grid-frame {
-          width: auto;
           @include xy-grid-frame(true);
+          width: auto;
         }
 
       }
index 9bd1d11e294117c25240422b45cb37a24d3f0895..b0e802abf31935c2a455d7e6099e6f85445f470d 100644 (file)
@@ -1,3 +1,5 @@
+// sass-lint:disable no-vendor-prefixes
+
 /// Modifies a grid to give it "frame" behavior (no overflow, no wrap, stretch behavior)
 ///
 /// @param {Boolean} $vertical [false] - Is grid vertical or horizontal. Should match grid.
index c7a753ed8b1dc286970c0ff51df9d4a1d34ba830..e52e6d5c08141901dbfe119b9026df5f9759ae85 100644 (file)
 /// @param {Number|Array|Keyword} $breakpoint [null] - Breakpoint to use for `$gutters`. It can be a breakpoint name, list of breakpoints or `auto` for all breakpoints. If a list is given, media-queries will be generated. If using with the `breakpoint()` mixin this will be set automatically unless manually entered.
 /// @param {Boolean} $vertical [false] Sets the direction of the offset. If set to true will apply margin-top instead.
 @mixin xy-cell-offset(
- $n,
- $gutters: $grid-margin-gutters,
- $gutter-type: margin,
- $breakpoint: null,
- $vertical: false
 $n,
 $gutters: $grid-margin-gutters,
 $gutter-type: margin,
 $breakpoint: null,
 $vertical: false
 ) {
   $breakpoint: -zf-current-breakpoint($breakpoint, $default: $-zf-zero-breakpoint);
   $direction: if($vertical, 'top', $global-left);