From: Joe Workman Date: Tue, 12 Jul 2022 00:14:31 +0000 (-0700) Subject: fix: updated sass map syntax X-Git-Tag: v6.7.5^2~7 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Ffoundation%2Ffoundation-sites.git;a=commitdiff_plain;h=e6ed962a8d3bc5f4b6cf0654f18e05c70e76378c fix: updated sass map syntax --- diff --git a/scss/settings/_settings.scss b/scss/settings/_settings.scss index 93225369e..054c3cd55 100644 --- a/scss/settings/_settings.scss +++ b/scss/settings/_settings.scss @@ -107,18 +107,18 @@ $print-hrefs: true; // -------------- $breakpoints: ( - small: 0, - medium: 640px, - large: 1024px, - xlarge: 1200px, - xxlarge: 1440px, + "small": 0, + "medium": 640px, + "large": 1024px, + "xlarge": 1200px, + "xxlarge": 1440px, ); $breakpoints-hidpi: ( - hidpi-1: 1, - hidpi-1-5: 1.5, - hidpi-2: 2, - retina: 2, - hidpi-3: 3 + "hidpi-1": 1, + "hidpi-1-5": 1.5, + "hidpi-2": 2, + "retina": 2, + "hidpi-3": 3 ); $print-breakpoint: large; $breakpoint-classes: (small medium large); @@ -129,8 +129,8 @@ $breakpoint-classes: (small medium large); $grid-row-width: $global-width; $grid-column-count: 12; $grid-column-gutter: ( - small: 20px, - medium: 30px, + "small": 20px, + "medium": 30px, ); $grid-column-align-edge: true; $grid-column-alias: 'columns'; @@ -147,7 +147,7 @@ $header-color: inherit; $header-lineheight: 1.4; $header-margin-bottom: 0.5rem; $header-styles: ( - small: ( + "small": ( 'h1': ('font-size': 24), 'h2': ('font-size': 20), 'h3': ('font-size': 19), @@ -155,7 +155,7 @@ $header-styles: ( 'h5': ('font-size': 17), 'h6': ('font-size': 16), ), - medium: ( + "medium": ( 'h1': ('font-size': 48), 'h2': ('font-size': 40), 'h3': ('font-size': 31), @@ -306,10 +306,10 @@ $button-radius: $global-radius; $button-border: 1px solid transparent; $button-hollow-border-width: 1px; $button-sizes: ( - tiny: 0.6rem, - small: 0.75rem, - default: 0.9rem, - large: 1.25rem, + "tiny": 0.6rem, + "small": 0.75rem, + "default": 0.9rem, + "large": 1.25rem, ); $button-palette: $foundation-palette; $button-opacity-disabled: 0.25; @@ -335,9 +335,9 @@ $callout-background-fade: 85%; $callout-border: 1px solid rgba($black, 0.25); $callout-margin: 0 0 1rem 0; $callout-sizes: ( - small: 0.5rem, - default: 1rem, - large: 3rem, + "small": 0.5rem, + "default": 1rem, + "large": 3rem, ); $callout-font-color: $body-font-color; $callout-font-color-alt: $body-background; @@ -363,16 +363,16 @@ $closebutton-position: right top; $closebutton-z-index: 10; $closebutton-default-size: medium; $closebutton-offset-horizontal: ( - small: 0.66rem, - medium: 1rem, + "small": 0.66rem, + "medium": 1rem, ); $closebutton-offset-vertical: ( - small: 0.33em, - medium: 0.5rem, + "small": 0.33em, + "medium": 0.5rem, ); $closebutton-size: ( - small: 1.5em, - medium: 2em, + "small": 1.5em, + "medium": 2em, ); $closebutton-lineheight: 1; $closebutton-color: $dark-gray; @@ -401,9 +401,9 @@ $dropdown-font-size: 1rem; $dropdown-width: 300px; $dropdown-radius: $global-radius; $dropdown-sizes: ( - tiny: 100px, - small: 200px, - large: 400px, + "tiny": 100px, + "small": 200px, + "large": 400px, ); // 18. Dropdown Menu @@ -518,10 +518,10 @@ $meter-fill-bad: $alert-color; // -------------- $offcanvas-sizes: ( - small: 250px, + "small": 250px, ); $offcanvas-vertical-sizes: ( - small: 250px, + "small": 250px, ); $offcanvas-background: $light-gray; $offcanvas-shadow: 0 0 10px rgba($black, 0.7); @@ -885,8 +885,8 @@ $xy-grid: true; $grid-container: $global-width; $grid-columns: 12; $grid-margin-gutters: ( - small: 20px, - medium: 30px + "small": 20px, + "medium": 30px ); $grid-padding-gutters: $grid-margin-gutters; $grid-container-padding: $grid-padding-gutters; diff --git a/scss/util/_breakpoint.scss b/scss/util/_breakpoint.scss index febb11b87..c8fa336d5 100644 --- a/scss/util/_breakpoint.scss +++ b/scss/util/_breakpoint.scss @@ -12,22 +12,22 @@ $-zf-size: null; /// A list of named breakpoints. You can use these with the `breakpoint()` mixin to quickly create media queries. /// @type Map $breakpoints: ( - small: 0, - medium: 640px, - large: 1024px, - xlarge: 1200px, - xxlarge: 1440px, + "small": 0, + "medium": 640px, + "large": 1024px, + "xlarge": 1200px, + "xxlarge": 1440px, ) !default; /// A list of named HiDPI breakpoints. You can use these with the `breakpoint()` mixin to quickly create media queries for resolutions. /// Values must represent the device pixels / web pixels ration and be unitless or in DPPX. /// @type Map $breakpoints-hidpi: ( - hidpi-1: 1, - hidpi-1-5: 1.5, - hidpi-2: 2, - retina: 2, - hidpi-3: 3 + "hidpi-1": 1, + "hidpi-1-5": 1.5, + "hidpi-2": 2, + "retina": 2, + "hidpi-3": 3 ) !default; /// The largest named breakpoint in which to include print as a media type diff --git a/scss/xy-grid/_xy-grid.scss b/scss/xy-grid/_xy-grid.scss index 1699697d8..13951a644 100644 --- a/scss/xy-grid/_xy-grid.scss +++ b/scss/xy-grid/_xy-grid.scss @@ -21,8 +21,8 @@ $grid-columns: 12 !default; /// The amount of margin between cells at different screen sizes when using the margin grid. To use just one size, set the variable to a number instead of a map. /// @type Map | Length $grid-margin-gutters: ( - small: 20px, - medium: 30px + "small": 20px, + "medium": 30px ) !default; /// The amount of padding in cells at different screen sizes when using the padding grid. To use just one size, set the variable to a number instead of a map.