]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Sass lint: Sort components properties
authorNicolas Coden <nicolas@ncoden.fr>
Tue, 8 Nov 2016 02:55:00 +0000 (03:55 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Sat, 12 Nov 2016 14:58:17 +0000 (15:58 +0100)
Sort components properties following the Specific property sort order.
But keep for `position`/`margin`/`padding` `left` before `right` for
now.

See : https://gist.github.com/ncoden/d42f55df7c7970f548a02cd3468f9c86

26 files changed:
scss/components/_accordion-menu.scss
scss/components/_accordion.scss
scss/components/_badge.scss
scss/components/_breadcrumbs.scss
scss/components/_button.scss
scss/components/_callout.scss
scss/components/_drilldown.scss
scss/components/_dropdown-menu.scss
scss/components/_dropdown.scss
scss/components/_label.scss
scss/components/_media-object.scss
scss/components/_menu.scss
scss/components/_off-canvas.scss
scss/components/_orbit.scss
scss/components/_pagination.scss
scss/components/_progress-bar.scss
scss/components/_responsive-embed.scss
scss/components/_reveal.scss
scss/components/_slider.scss
scss/components/_switch.scss
scss/components/_table.scss
scss/components/_tabs.scss
scss/components/_thumbnail.scss
scss/components/_title-bar.scss
scss/components/_tooltip.scss
scss/components/_top-bar.scss

index 186abee11b88ed049f12d6eb85127ec8b00cd768..eb02e7bd25700dc3915340220b70d34dece2b6c7 100644 (file)
@@ -23,8 +23,8 @@ $accordionmenu-arrow-color: $primary-color !default;
     .is-accordion-submenu-parent > span {
       position: relative;
       display: block;
-      cursor: pointer;
       color: $anchor-color;
+      cursor: pointer;
 
       &:hover {
         color: $anchor-color-hover;
@@ -34,8 +34,8 @@ $accordionmenu-arrow-color: $primary-color !default;
         @include css-triangle(6px, $accordionmenu-arrow-color, down);
         position: absolute;
         top: 50%;
-        margin-top: -4px;
-        #{$global-right}: 1rem;
+        right: 1rem;
+        #{$global-right}: -4px;
       }
 
     }
index d5352e0968b06649e543515f1e8bbd30d8674fee..cfc96ab0def60a8b76aaea45de3980564f643243 100644 (file)
@@ -48,9 +48,9 @@ $accordion-content-padding: 1rem !default;
 
 /// Adds styles for an accordion container. Apply this to the same element that gets `data-accordion`.
 @mixin accordion-container {
-  list-style-type: none;
-  background: $accordion-background;
   margin-#{$global-left}: 0;
+  background: $accordion-background;
+  list-style-type: none;
 }
 
 /// Adds styles for the accordion item. Apply this to the list item within an accordion ul.
@@ -66,15 +66,17 @@ $accordion-content-padding: 1rem !default;
 
 /// Adds styles for the title of an accordion item. Apply this to the link within an accordion item.
 @mixin accordion-title {
+  position: relative;
   display: block;
   padding: $accordion-item-padding;
-  line-height: 1;
-  font-size: $accordion-title-font-size;
-  color: $accordion-item-color;
-  position: relative;
+
   border: $accordion-content-border;
   border-bottom: 0;
 
+  font-size: $accordion-title-font-size;
+  line-height: 1;
+  color: $accordion-item-color;
+
   :last-child:not(.is-active) > & {
     border-radius: 0 0 $global-radius $global-radius;
     border-bottom: $accordion-content-border;
@@ -102,11 +104,13 @@ $accordion-content-padding: 1rem !default;
 
 /// Adds styles for accordion content. Apply this to the content pane below an accordion item's title.
 @mixin accordion-content {
-  padding: $accordion-content-padding;
   display: none;
+  padding: $accordion-content-padding;
+
   border: $accordion-content-border;
   border-bottom: 0;
   background-color: $accordion-content-background;
+
   color: $accordion-content-color;
 
   :last-child > &:last-child {
index c3c0112d2fcedfdd4f02fd1f58820acd6c3bf4af..487f0d7696e944747c061e890ceebaaf335f206f 100644 (file)
@@ -29,11 +29,13 @@ $badge-font-size: 0.6rem !default;
 /// Generates the base styles for a badge.
 @mixin badge {
   display: inline-block;
-  padding: $badge-padding;
   min-width: $badge-minwidth;
+  padding: $badge-padding;
+
+  border-radius: 50%;
+
   font-size: $badge-font-size;
   text-align: center;
-  border-radius: 50%;
 }
 
 @mixin foundation-badge {
index a02f7c261e1d291a9af24b49ebb89c4820e7ad81..ccaa39938f7db2c93cd906c0b6d842c3a4f190ec 100644 (file)
@@ -41,14 +41,15 @@ $breadcrumbs-item-slash: true !default;
 /// Adds styles for a breadcrumbs container, along with the styles for the `<li>` and `<a>` elements inside of it.
 @mixin breadcrumbs-container {
   @include clearfix;
-  list-style: none;
   margin: $breadcrumbs-margin;
+  list-style: none;
 
   // Item wrapper
   li {
     float: #{$global-left};
-    color: $breadcrumbs-item-color-current;
+
     font-size: $breadcrumbs-item-font-size;
+    color: $breadcrumbs-item-color-current;
     cursor: default;
 
     @if $breadcrumbs-item-uppercase {
@@ -60,12 +61,13 @@ $breadcrumbs-item-slash: true !default;
       $slash: if($global-text-direction == 'ltr', '/', '\\');
 
       &:not(:last-child)::after {
-        color: $medium-gray;
-        content: $slash;
-        margin: 0 $breadcrumbs-item-margin;
         position: relative;
         top: 1px;
+        margin: 0 $breadcrumbs-item-margin;
+
         opacity: 1;
+        content: $slash;
+        color: $medium-gray;
       }
     }
     @else {
index 3ee01e80ea60b60328275ac16cbff30d3de38371..e3bc413a70d28f52fa9fb32d8922c0d28db1d8ad 100644 (file)
@@ -72,17 +72,19 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau
 @mixin button-base {
   @include disable-mouse-outline;
   display: inline-block;
-  text-align: center;
-  line-height: 1;
-  cursor: pointer;
-  -webkit-appearance: none;
-  transition: $button-transition;
   vertical-align: middle;
-  border: 1px solid transparent;
-  border-radius: $button-radius;
   padding: $button-padding;
   margin: $button-margin;
+
+  -webkit-appearance: none;
+  border: 1px solid transparent;
+  border-radius: $button-radius;
+  transition: $button-transition;
+
   font-size: map-get($button-sizes, default);
+  text-align: center;
+  line-height: 1;
+  cursor: pointer;
 }
 
 /// Expands a button to make it full-width.
@@ -175,9 +177,10 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau
     @include css-triangle($size, $color, down);
     position: relative;
     top: 0.4em; // Aligns the arrow with the text of the button
+
+    display: inline-block;
     float: #{$global-right};
     margin-#{$global-left}: get-side($button-padding, right);
-    display: inline-block;
   }
 }
 
@@ -279,9 +282,9 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau
 
     // Button with dropdown arrow only
     &.arrow-only::after {
-      margin-#{$global-left}: 0;
-      float: none;
       top: -0.1em;
+      float: none;
+      margin-#{$global-left}: 0;
     }
   }
 }
index cb4665116a10a575a88fcb82c696b3724fa68d1b..37a2022486f15c7d4e1c550493c696b94b83faff 100644 (file)
@@ -44,11 +44,13 @@ $callout-link-tint: 30% !default;
 
 /// Adds basic styles for a callout, including padding and margin.
 @mixin callout-base() {
+  position: relative;
   margin: $callout-margin;
   padding: $callout-padding;
+
   border: $callout-border;
   border-radius: $callout-radius;
-  position: relative;
+
   color: $callout-font-color;
 
   // Respect the padding, fool.
index a9d2d906fa8d07f891f18fe624a6862491f065ed..85e9fbf2317ffafefd7552f447f03f026f0773c2 100644 (file)
@@ -43,6 +43,7 @@ $drilldown-background: $white !default;
     top: 0;
     #{$global-left}: 100%;
     z-index: -1;
+
     // height: 100%;
     width: 100%;
     background: $drilldown-background;
@@ -67,17 +68,18 @@ $drilldown-background: $white !default;
         @include css-triangle(6px, $drilldown-arrow-color, $global-right);
         position: absolute;
         top: 50%;
-        margin-top: -6px;
         #{$global-right}: 1rem;
+        margin-top: -6px;
       }
     }
 
     .js-drilldown-back > a::before {
       @include css-triangle(6px, $drilldown-arrow-color, $global-left);
-      border-#{$global-left}-width: 0;
       display: inline-block;
       vertical-align: middle;
       margin-#{$global-right}: 0.75rem; // Creates space between the arrow and the text
+
+      border-#{$global-left}-width: 0;
     }
   }
 }
index 376c28111a4902a579a2c018e5040809edf189f3..1a0f6142c1e930177e07f0d8455b63a9ffbc33ea 100644 (file)
@@ -66,8 +66,8 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
 
     @if $dropdownmenu-arrows {
       > li.is-dropdown-submenu-parent > a {
-        padding-#{$global-right}: 1.5rem;
         position: relative;
+        padding-#{$global-right}: 1.5rem;
       }
 
       > li.is-dropdown-submenu-parent > a::after {
@@ -186,12 +186,14 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
   }
 
   .is-dropdown-submenu {
-    display: none;
     position: absolute;
     top: 0;
     #{$global-left}: 100%;
-    min-width: $dropdownmenu-min-width;
     z-index: 1;
+
+    display: none;
+    min-width: $dropdownmenu-min-width;
+
     background: $dropdownmenu-background;
     border: $dropdownmenu-border;
 
index b41809f056a3ba75cd7ccbdacf5bedafc1e35ba3..7c791a733202d2f6120a4835dbb0a5e3de7262de 100644 (file)
@@ -40,16 +40,19 @@ $dropdown-sizes: (
 
 /// Applies styles for a basic dropdown.
 @mixin dropdown-container {
-  background-color: $dropdown-background;
-  border: $dropdown-border;
-  border-radius: $dropdown-radius;
+  position: absolute;
+  z-index: 10;
+
   display: block;
-  font-size: $dropdown-font-size;
+  width: $dropdown-width;
   padding: $dropdown-padding;
-  position: absolute;
+
   visibility: hidden;
-  width: $dropdown-width;
-  z-index: 10;
+  border: $dropdown-border;
+  border-radius: $dropdown-radius;
+  background-color: $dropdown-background;
+
+  font-size: $dropdown-font-size;
 
   &.is-open {
     visibility: visible;
index 6fb1864a8b38f702329619f24fc0b6e8bdcee43b..28bbc0ba211fdee6e39699767025619a10c99a37 100644 (file)
@@ -30,11 +30,13 @@ $label-radius: $global-radius !default;
 @mixin label {
   display: inline-block;
   padding: $label-padding;
+
+  border-radius: $label-radius;
+
   font-size: $label-font-size;
   line-height: 1;
   white-space: nowrap;
   cursor: default;
-  border-radius: $label-radius;
 }
 
 @mixin foundation-label {
index a7c74c8e7e76bd775d24f885b5978691187773d4..c8222f61adba8d8a8dbf572b330e774c266abec0 100644 (file)
@@ -20,8 +20,8 @@ $mediaobject-image-width-stacked: 100% !default;
 
 /// Adds styles for a media object container.
 @mixin media-object-container {
-  margin-bottom: $mediaobject-margin-bottom;
   display: if($global-flexbox, flex, block);
+  margin-bottom: $mediaobject-margin-bottom;
 
   @if $global-flexbox {
     flex-wrap: nowrap;
index 544345ce0264b359513f583041fd8c49cb4aeb76..3176935a688e7738138194c56f16d08b9ef5a7d4 100644 (file)
@@ -44,10 +44,10 @@ $menu-border: $light-gray !default;
   list-style-type: none;
 
   @if $global-flexbox {
-    width: 100%;
     display: flex;
     flex-wrap: nowrap;
     align-items: center;
+    width: 100%;
   }
 
   // List items are table cell to allow for vertical alignment
@@ -89,8 +89,8 @@ $menu-border: $light-gray !default;
     }
   }
   @else {
-    width: 100%;
     display: table;
+    width: 100%;
     table-layout: fixed;
   }
 }
@@ -140,9 +140,9 @@ $menu-border: $light-gray !default;
 /// Creates a simple Menu, which has no padding or hover state.
 @mixin menu-simple {
   li {
-    line-height: 1;
     display: inline-block;
     margin-#{$global-right}: get-side($menu-item-padding, $global-right);
+    line-height: 1;
   }
 
   a {
@@ -216,8 +216,8 @@ $menu-border: $light-gray !default;
         }
         @else {
           align-self: stretch;
-          text-align: center;
           margin-bottom: $menu-icon-spacing;
+          text-align: center;
         }
       }
     }
@@ -225,12 +225,13 @@ $menu-border: $light-gray !default;
 }
 
 @mixin menu-text {
-  font-weight: bold;
-  color: inherit;
-  line-height: 1;
   padding-top: 0;
   padding-bottom: 0;
   padding: $menu-item-padding;
+
+  font-weight: bold;
+  line-height: 1;
+  color: inherit;
 }
 
 @mixin foundation-menu {
index 6bf5b92f6530b83d8ea91b31db08ead475abbc35..c282b1df72e6169ae2ee42c01acc9f7db20060dc 100644 (file)
@@ -53,10 +53,11 @@ $maincontent-shadow: 0 0 10px rgba($black, 0.5) !default;
   }
 
   .off-canvas-wrapper {
+    position: relative;
     width: 100%;
+
     overflow-x: hidden;
     overflow-y: hidden;
-    position: relative;
     backface-visibility: hidden;
     -webkit-overflow-scrolling: auto;
   }
@@ -66,18 +67,20 @@ $maincontent-shadow: 0 0 10px rgba($black, 0.5) !default;
     position: relative;
     width: 100%;
     min-height: 100%; 
+
     transition: transform $offcanvas-transition-length $offcanvas-transition-timing;
   }
 
   // Container for page content
   .off-canvas-content,
   .#{$maincontent-class} {
+    z-index: 1;
     min-height: 100%;
+    padding-bottom: 0.1px; // Prevents margin collapsing, which would reveal the box shadow of the wrapper
+
     background: $body-background;
     transition: transform $offcanvas-transition-length $offcanvas-transition-timing;
     backface-visibility: hidden;
-    z-index: 1;
-    padding-bottom: 0.1px; // Prevents margin collapsing, which would reveal the box shadow of the wrapper
 
     @if has-value($maincontent-shadow) {
       box-shadow: $maincontent-shadow;
@@ -86,15 +89,16 @@ $maincontent-shadow: 0 0 10px rgba($black, 0.5) !default;
 
   // Click-to-exit overlay (generated by JavaScript)
   .js-off-canvas-exit {
-    display: none;
     position: absolute;
     top: 0;
     left: 0;
+    display: none;
     width: 100%;
     height: 100%;
+
     background: $offcanvas-exit-background;
-    cursor: pointer;
     transition: background $offcanvas-transition-length $offcanvas-transition-timing;
+    cursor: pointer;
   }
 }
 
@@ -102,10 +106,11 @@ $maincontent-shadow: 0 0 10px rgba($black, 0.5) !default;
 @mixin off-canvas-base {
   @include disable-mouse-outline;
   position: absolute;
-  background: $offcanvas-background;
   z-index: $offcanvas-zindex;
   max-height: 100%;
+
   overflow-y: auto;
+  background: $offcanvas-background;
   transform: translateX(0) translateY(0);
 }
 
index 32ee22208a087eac12c9e0ee027a4b7e63542514..b8a341c471f2cfec5fa5dfcf40f4de39bc6a0652 100644 (file)
@@ -92,10 +92,11 @@ $orbit-control-zindex: 10 !default;
   position: absolute;
   bottom: 0;
   width: 100%;
-  padding: $orbit-caption-padding;
   margin-bottom: 0;
-  color: foreground($orbit-caption-background);
+  padding: $orbit-caption-padding;
+
   background-color: $orbit-caption-background;
+  color: foreground($orbit-caption-background);
 }
 
 /// Adds base styles for the next/previous buttons in an Orbit slider. These styles are shared between the `.orbit-next` and `.orbit-previous` classes in the default CSS.
@@ -136,8 +137,9 @@ $orbit-control-zindex: 10 !default;
     width: $orbit-bullet-diameter;
     height: $orbit-bullet-diameter;
     margin: $orbit-bullet-margin;
-    background-color: $orbit-bullet-background;
+
     border-radius: 50%;
+    background-color: $orbit-bullet-background;
 
     &:hover {
       background-color: $orbit-bullet-background-active;
index 7acbc9fed486029044754cffaf5b49596bc7fb7a..288041f708f03e4ed872d663e5b128014c2435fa 100644 (file)
@@ -73,9 +73,9 @@ $pagination-arrows: true !default;
 
   // List item
   li {
-    font-size: $pagination-font-size;
     margin-#{$global-right}: $pagination-item-spacing;
     border-radius: $pagination-radius;
+    font-size: $pagination-font-size;
 
     @if $pagination-mobile-items {
       display: inline-block;
@@ -103,10 +103,10 @@ $pagination-arrows: true !default;
   // Page links
   a,
   button {
-    color: $pagination-item-color;
     display: block;
     padding: $pagination-item-padding;
     border-radius: $global-radius;
+    color: $pagination-item-color;
 
     &:hover {
       background: $pagination-item-background-hover;
@@ -135,8 +135,8 @@ $pagination-arrows: true !default;
 
 /// Adds styles for an ellipsis for use in a pagination list.
 @mixin pagination-ellipsis {
-  content: '\2026';
   padding: $pagination-item-padding;
+  content: '\2026';
   color: $pagination-ellipsis-color;
 }
 
@@ -160,16 +160,16 @@ $pagination-arrows: true !default;
   @if $pagination-arrows {
     .pagination-previous a::before,
     .pagination-previous.disabled::before {
-      content: '\00ab';
       display: inline-block;
       margin-#{$global-right}: 0.5rem;
+      content: '\00ab';
     }
 
     .pagination-next a::after,
     .pagination-next.disabled::after {
-      content: '\00bb';
       display: inline-block;
       margin-#{$global-left}: 0.5rem;
+      content: '\00bb';
     }
   }
 }
index e74a0c1f2efe02b03add0cf86ad5cb993fda1c6b..cd7b066f5921015154e22e8388f2308773fb7a8a 100644 (file)
@@ -4,9 +4,9 @@
 
 /// Adds styles for a progress bar container.
 @mixin progress-container {
-  background-color: $progress-background;
   height: $progress-height;
   margin-bottom: $progress-margin-bottom;
+  background-color: $progress-background;
   border-radius: $progress-radius;
 }
 
index fb80bd3375e7b16a3261e8bc6fbe4797f436ec59..719d019987496a1b95486ff11848b4a0c122a05c 100644 (file)
@@ -67,8 +67,8 @@ $responsive-embed-ratio-widescreen: 16 by 9 !default;
   @warn 'This mixin is being replaced by responsive-embed(). flex-video() will be removed in Foundation 6.4.';
   position: relative;
   height: 0;
-  padding-bottom: responsive-embed($ratio);
   margin-bottom: $responsive-embed-margin-bottom;
+  padding-bottom: responsive-embed($ratio);
   overflow: hidden;
 
   iframe,
index b53a1f4ec57b2f15853e245a8a4d9d764ab7cc4e..71f125e1e24d831f2cfa37928e261e9209e50391 100644 (file)
@@ -41,13 +41,14 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
 /// Adds styles for a modal overlay.
 /// @param {Color} $background [$reveal-overlay-background] - Background color of the overlay.
 @mixin reveal-overlay($background: $reveal-overlay-background) {
-  display: none;
   position: fixed;
   top: 0;
   bottom: 0;
   left: 0;
   right: 0;
   z-index: $reveal-zindex;
+
+  display: none;
   background-color: $background;
   overflow-y: scroll;
 }
@@ -55,12 +56,14 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
 /// Adds base styles for a modal.
 @mixin reveal-modal-base {
   @include disable-mouse-outline;
-  display: none;
   z-index: $reveal-zindex + 1;
+
+  display: none;
   padding: $reveal-padding;
+
   border: $reveal-border;
-  background-color: $reveal-background;
   border-radius: $reveal-radius;
+  background-color: $reveal-background;
 
   @include breakpoint(medium) {
     min-height: 0;
@@ -97,12 +100,14 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
   // scss-lint:disable DuplicateProperty
   top: 0;
   left: 0;
+
   width: 100%;
+  max-width: none;
   height: 100%;
   height: 100vh;
   min-height: 100vh;
-  max-width: none;
   margin-left: 0;
+
   border: 0;
   border-radius: 0;
 }
index 7813e97fdf27fa9b9b06737d3a92bd179c7f9544..25b28d447c08d3ae7b71d975a64ee920ac5d7ee3 100644 (file)
@@ -23,6 +23,7 @@ $slider-transition: all 0.2s ease-in-out !default;
   height: $slider-height;
   margin-top: 1.25rem;
   margin-bottom: 2.25rem;
+
   background-color: $slider-background;
   cursor: pointer;
   user-select: none;
@@ -34,9 +35,11 @@ $slider-transition: all 0.2s ease-in-out !default;
   position: absolute;
   top: 0;
   left: 0;
+
   display: inline-block;
   max-width: 100%;
   height: $slider-height;
+
   background-color: $slider-fill-background;
   transition: $slider-transition;
 
@@ -52,13 +55,15 @@ $slider-transition: all 0.2s ease-in-out !default;
   position: absolute;
   left: 0;
   z-index: 1;
+
   display: inline-block;
   width: $slider-handle-width;
   height: $slider-handle-height;
+
+  border-radius: $slider-radius;
   background-color: $slider-handle-background;
   transition: $slider-transition;
   touch-action: manipulation;
-  border-radius: $slider-radius;
 
   &:hover {
     background-color: scale-color($slider-handle-background, $lightness: -15%);
index f31fff6d30f831768c3646cbafc37edcd5e79f16..44b430b15ffa951c17f4ce43e478ed50fe4d762a 100644 (file)
@@ -60,43 +60,46 @@ $switch-paddle-transition: all 0.25s ease-out !default;
 
 /// Adds styles for a switch container. Apply this to a container class.
 @mixin switch-container {
+  position: relative;
   margin-bottom: $switch-margin;
   outline: 0;
-  position: relative;
-  user-select: none;
 
   // These properties cascade down to the switch text
-  color: $white;
-  font-weight: bold;
   font-size: rem-calc(14);
+  font-weight: bold;
+  color: $white;
+
+  user-select: none;
 }
 
 /// Adds styles for a switch input. Apply this to an `<input>` within a switch.
 @mixin switch-input {
-  opacity: 0;
   position: absolute;
   margin-bottom: 0;
+  opacity: 0;
 }
 
 /// Adds styles for the background and paddle of a switch. Apply this to a `<label>` within a switch.
 @mixin switch-paddle {
+<<<<<<< HEAD
   $switch-width: $switch-height * 2;
   $paddle-height: $switch-height - ($switch-paddle-offset * 2);
   $paddle-width: $switch-height - ($switch-paddle-offset * 2);
   $paddle-active-offest: $switch-width - $paddle-width - $switch-paddle-offset;
 
-  background: $switch-background;
-  cursor: pointer;
-  display: block;
   position: relative;
+  display: block;
   width: $switch-width;
   height: $switch-height;
-  transition: $switch-paddle-transition;
+
   border-radius: $switch-radius;
+  background: $switch-background;
+  transition: $switch-paddle-transition;
+  cursor: pointer;
 
   // Resetting these <label> presets so type styles cascade down
-  color: inherit;
   font-weight: inherit;
+  color: inherit;
 
   // Needed to override specificity
   input + & {
@@ -105,17 +108,19 @@ $switch-paddle-transition: all 0.25s ease-out !default;
 
   // The paddle itself
   &::after {
-    background: $switch-paddle-background;
-    content: '';
-    display: block;
     position: absolute;
-    width: $paddle-width;
-    height: $paddle-height;
     top: $switch-paddle-offset;
     #{$global-left}: $switch-paddle-offset;
-    transition: $switch-paddle-transition;
+
+    display: block;
+    width: $paddle-width;
+    height: $paddle-height;
+
     transform: translate3d(0, 0, 0);
     border-radius: $switch-paddle-radius;
+    background: $switch-paddle-background;
+    transition: $switch-paddle-transition;
+    content: '';
   }
 
   // Change the visual style when the switch is active
index 2f55fa10e115627d0f099e677a56969843f45d25..57d26a8964c7df742b3d4eaecf4ad21fcdfff47b 100644 (file)
@@ -81,8 +81,8 @@ $show-header-for-stacked: false !default;
     // If stripe is set to even, darken the even rows.
     @if $stripe == even {
       &:nth-child(even) {
-        background-color: $table-striped-background;
         border-bottom: 0;
+        background-color: $table-striped-background;
       }
     }
 
@@ -97,9 +97,9 @@ $show-header-for-stacked: false !default;
 
 @mixin -zf-table-unstripe() {
   tr {
-    background-color: $table-background;
     border-bottom: 0;
     border-bottom: $table-border;
+    background-color: $table-background;
   }
 }
 
@@ -113,8 +113,8 @@ $show-header-for-stacked: false !default;
 
   // Caption
   caption {
-    font-weight: $global-weight-bold;
     padding: $table-padding;
+    font-weight: $global-weight-bold;
   }
 
   // Table head
index 1e545ef5ff8c3f1f734d031356a30eba2682000c..450cd7ae31756556ef8ca19ab4dcc9b0deec7d3a 100644 (file)
@@ -53,17 +53,17 @@ $tab-content-padding: 1rem !default;
 @mixin tabs-container {
   @include clearfix;
   margin: $tab-margin;
-  list-style-type: none;
-  background: $tab-background;
   border: 1px solid $tab-content-border;
+  background: $tab-background;
+  list-style-type: none;
 }
 
 /// Augments a tab container to have vertical tabs. Use this in conjunction with `tabs-container()`.
 @mixin tabs-container-vertical {
   > li {
-    width: auto;
-    float: none;
     display: block;
+    float: none;
+    width: auto;
   }
 }
 
@@ -74,8 +74,8 @@ $tab-content-padding: 1rem !default;
   > a {
     display: block;
     padding: $tab-item-padding;
-    line-height: 1;
     font-size: $tab-item-font-size;
+    line-height: 1;
 
     &:hover {
       background: $tab-item-background-hover;
@@ -90,10 +90,10 @@ $tab-content-padding: 1rem !default;
 
 /// Adds styles for the wrapper that surrounds a tab group's content panes.
 @mixin tabs-content {
-  background: $tab-content-background;
-  transition: all 0.5s ease;
   border: 1px solid $tab-content-border;
   border-top: 0;
+  background: $tab-content-background;
+  transition: all 0.5s ease;
 }
 
 /// Augments a tab content container to have a vertical style, by shifting the border around. Use this in conjunction with `tabs-content()`.
index 25414a16b3305967b884b74d3849d3a9007d0bdf..f77b4c7409e4108b24801dedbad821b7d29451f3 100644 (file)
@@ -32,13 +32,15 @@ $thumbnail-radius: $global-radius !default;
 
 /// Adds thumbnail styles to an element.
 @mixin thumbnail {
-  border: $thumbnail-border;
-  box-shadow: $thumbnail-shadow;
   display: inline-block;
-  line-height: 0;
   max-width: 100%;
-  border-radius: $thumbnail-radius;
   margin-bottom: $thumbnail-margin-bottom;
+
+  border: $thumbnail-border;
+  border-radius: $thumbnail-radius;
+  box-shadow: $thumbnail-shadow;
+
+  line-height: 0;
 }
 
 @mixin thumbnail-link {
index fd05be42fc45a9f43447558b783000d74691ac22..94bd94bec7a2d4b1c23e8f7c25a8edd7920879f2 100644 (file)
@@ -36,14 +36,14 @@ $titlebar-icon-spacing: 0.25rem !default;
 
 @mixin foundation-title-bar {
   .title-bar {
+    padding: $titlebar-padding;
     background: $titlebar-background;
     color: $titlebar-color;
-    padding: $titlebar-padding;
 
     @if $global-flexbox {
       display: flex;
-      align-items: center;
       justify-content: space-between;
+      align-items: center;
     }
     @else {
       @include clearfix;
@@ -78,8 +78,8 @@ $titlebar-icon-spacing: 0.25rem !default;
   }
 
   .title-bar-title {
-    font-weight: $titlebar-text-font-weight;
-    vertical-align: middle;
     display: inline-block;
+    vertical-align: middle;
+    font-weight: $titlebar-text-font-weight;
   }
 }
index af8b7c7c226a231897a02128b298141f677d496c..2e4265c477635d08f7a390a849ada9cca701f71b 100644 (file)
@@ -43,28 +43,31 @@ $tooltip-pip-height: $tooltip-pip-width * 0.866 !default;
 $tooltip-radius: $global-radius !default;
 
 @mixin has-tip {
-  border-bottom: $has-tip-border-bottom;
-  font-weight: $has-tip-font-weight;
   position: relative;
   display: inline-block;
+
+  border-bottom: $has-tip-border-bottom;
+  font-weight: $has-tip-font-weight;
   cursor: help;
 }
 
 @mixin tooltip {
-  background-color: $tooltip-background-color;
-  color: $tooltip-color;
-  font-size: $tooltip-font-size;
-  padding: $tooltip-padding;
   position: absolute;
-  z-index: 1200;
   top: calc(100% + #{$tooltip-pip-height});
+  z-index: 1200;
+
   max-width: 10rem !important;
+  padding: $tooltip-padding;
+
   border-radius: $tooltip-radius;
+  background-color: $tooltip-background-color;
+  font-size: $tooltip-font-size;
+  color: $tooltip-color;
 
   &::before {
     @include css-triangle($tooltip-pip-width, $tooltip-background-color, up);
-    bottom: 100%;
     position: absolute;
+    bottom: 100%;
     left: 50%;
     transform: translateX(-50%);
   }
@@ -77,18 +80,18 @@ $tooltip-radius: $global-radius !default;
 
   &.left::before {
     @include css-triangle($tooltip-pip-width, $tooltip-background-color, right);
+    top: 50%;
     bottom: auto;
     left: 100%;
-    top: 50%;
     transform: translateY(-50%);
   }
 
   &.right::before {
     @include css-triangle($tooltip-pip-width, $tooltip-background-color, left);
+    top: 50%;
+    right: 100%;
     bottom: auto;
     left: auto;
-    right: 100%;
-    top: 50%;
     transform: translateY(-50%);
   }
 }
index ddfe00523498668d13316d8d7c3663d09fb18113..affd86932ef309ca999d07d492795d0702b4161a 100644 (file)
@@ -34,9 +34,9 @@ $topbar-unstack-breakpoint: medium !default;
 @mixin top-bar-container {
   @if $global-flexbox {
     display: flex;
-    align-items: center;
-    justify-content: space-between;
     flex-wrap: nowrap;
+    justify-content: space-between;
+    align-items: center;
   }
   @else {
     @include clearfix;