From 270ed816657548defa328ea51a10658945bb5d86 Mon Sep 17 00:00:00 2001 From: Karan Khanna Date: Wed, 18 Nov 2020 12:22:53 +0530 Subject: [PATCH 1/5] update: what-input latest release update --- .../static/libs/what-input/.gitattributes | 1 - .../static/libs/what-input/what-input.min.js | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/what-input/.gitattributes diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/what-input/.gitattributes b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/what-input/.gitattributes deleted file mode 100644 index 36fe3a5315..0000000000 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/what-input/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* linguist-vendored \ No newline at end of file diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/what-input/what-input.min.js b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/what-input/what-input.min.js index f99e7b7058..70188dddf3 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/what-input/what-input.min.js +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/what-input/what-input.min.js @@ -1,7 +1,8 @@ /** * what-input - A global utility for tracking the current input method (mouse, keyboard or touch). - * @version v4.1.6 + * @version v5.2.10 * @link https://github.com/ten1seven/what-input * @license MIT */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("whatInput",[],t):"object"==typeof exports?exports.whatInput=t():e.whatInput=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t){"use strict";e.exports=function(){var e="initial",t=null,n=document.documentElement,o=["input","select","textarea"],i=[],r=[16,17,18,91,93],u={keydown:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch"},d=[],s=!1,a=!1,c={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},f=!1;try{var v=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("test",null,v)}catch(e){}var m=function(){window.PointerEvent?(n.addEventListener("pointerdown",w),n.addEventListener("pointermove",h)):window.MSPointerEvent?(n.addEventListener("MSPointerDown",w),n.addEventListener("MSPointerMove",h)):(n.addEventListener("mousedown",w),n.addEventListener("mousemove",h),"ontouchstart"in window&&(n.addEventListener("touchstart",y),n.addEventListener("touchend",y))),n.addEventListener(L(),h,!!f&&{passive:!0}),n.addEventListener("keydown",w)},w=function(n){if(!s){var i=n.which,d=u[n.type];if("pointer"===d&&(d=E(n)),e!==d||t!==d){var a=document.activeElement,c=!1;a&&a.nodeName&&-1===o.indexOf(a.nodeName.toLowerCase())&&(c=!0),("touch"===d||"mouse"===d||"keyboard"===d&&i&&c&&-1===r.indexOf(i))&&(e=t=d,l())}}},l=function(){n.setAttribute("data-whatinput",e),n.setAttribute("data-whatintent",e),-1===d.indexOf(e)&&(d.push(e),n.className+=" whatinput-types-"+e),x("input")},h=function(e){if(c.x!==e.screenX||c.y!==e.screenY?(a=!1,c.x=e.screenX,c.y=e.screenY):a=!0,!s&&!a){var o=u[e.type];"pointer"===o&&(o=E(e)),t!==o&&(t=o,n.setAttribute("data-whatintent",t),x("intent"))}},y=function(e){"touchstart"===e.type?(s=!1,w(e)):s=!0},x=function(e){for(var n=0,o=i.length;n Date: Wed, 18 Nov 2020 12:23:08 +0530 Subject: [PATCH 2/5] update:bump to version 6.6.3 --- .../libs/foundation-sites/.gitattributes | 1 - .../normalize-scss/sass/_normalize.scss | 3 - .../sass/normalize/_import-now.scss | 11 - .../sass/normalize/_normalize-mixin.scss | 676 ------------------ .../sass/normalize/_variables.scss | 36 - .../sass/normalize/_vertical-rhythm.scss | 61 -- .../libs/foundation-sites/scss/_global.scss | 29 +- .../scss/components/_accordion-menu.scss | 9 +- .../scss/components/_accordion.scss | 17 +- .../scss/components/_badge.scss | 4 +- .../scss/components/_breadcrumbs.scss | 18 +- .../scss/components/_button-group.scss | 97 ++- .../scss/components/_button.scss | 251 ++++--- .../scss/components/_callout.scss | 26 +- .../scss/components/_card.scss | 8 +- .../scss/components/_close-button.scss | 35 +- .../scss/components/_drilldown.scss | 16 +- .../scss/components/_dropdown-menu.scss | 29 +- .../scss/components/_dropdown.scss | 15 +- .../scss/components/_flex.scss | 14 +- .../scss/components/_float.scss | 4 +- .../scss/components/_label.scss | 4 +- .../scss/components/_media-object.scss | 70 +- .../scss/components/_menu.scss | 14 +- .../scss/components/_off-canvas.scss | 19 +- .../scss/components/_orbit.scss | 5 +- .../scss/components/_pagination.scss | 16 +- .../scss/components/_progress-bar.scss | 5 +- .../scss/components/_responsive-embed.scss | 17 +- .../scss/components/_reveal.scss | 37 +- .../scss/components/_slider.scss | 4 +- .../scss/components/_sticky.scss | 4 +- .../scss/components/_switch.scss | 18 +- .../scss/components/_table.scss | 14 +- .../scss/components/_tabs.scss | 9 +- .../scss/components/_thumbnail.scss | 6 +- .../scss/components/_title-bar.scss | 4 +- .../scss/components/_tooltip.scss | 4 +- .../scss/components/_top-bar.scss | 4 +- .../scss/components/_visibility.scss | 11 +- .../scss/forms/_checkbox.scss | 4 +- .../foundation-sites/scss/forms/_error.scss | 5 +- .../scss/forms/_fieldset.scss | 4 +- .../foundation-sites/scss/forms/_forms.scss | 4 +- .../scss/forms/_help-text.scss | 4 +- .../scss/forms/_input-group.scss | 24 +- .../foundation-sites/scss/forms/_label.scss | 4 +- .../foundation-sites/scss/forms/_meter.scss | 14 +- .../scss/forms/_progress.scss | 16 +- .../foundation-sites/scss/forms/_range.scss | 14 +- .../foundation-sites/scss/forms/_select.scss | 8 +- .../foundation-sites/scss/forms/_text.scss | 18 +- .../foundation-sites/scss/foundation.scss | 144 ++-- .../foundation-sites/scss/grid/_classes.scss | 41 +- .../foundation-sites/scss/grid/_column.scss | 44 +- .../scss/grid/_flex-grid.scss | 5 +- .../foundation-sites/scss/grid/_grid.scss | 4 +- .../foundation-sites/scss/grid/_gutter.scss | 19 +- .../foundation-sites/scss/grid/_layout.scss | 4 +- .../foundation-sites/scss/grid/_position.scss | 36 +- .../libs/foundation-sites/scss/grid/_row.scss | 4 +- .../foundation-sites/scss/grid/_size.scss | 4 +- .../scss/prototype/_arrow.scss | 4 +- .../scss/prototype/_border-box.scss | 4 +- .../scss/prototype/_border-none.scss | 4 +- .../scss/prototype/_bordered.scss | 4 +- .../foundation-sites/scss/prototype/_box.scss | 4 +- .../scss/prototype/_display.scss | 4 +- .../scss/prototype/_font-styling.scss | 4 +- .../scss/prototype/_list-style-type.scss | 4 +- .../scss/prototype/_overflow.scss | 4 +- .../scss/prototype/_position.scss | 4 +- .../scss/prototype/_prototype.scss | 4 +- .../scss/prototype/_relation.scss | 2 +- .../scss/prototype/_rotate.scss | 4 +- .../scss/prototype/_rounded.scss | 11 +- .../scss/prototype/_separator.scss | 4 +- .../scss/prototype/_shadow.scss | 4 +- .../scss/prototype/_sizing.scss | 4 +- .../scss/prototype/_spacing.scss | 223 +++--- .../scss/prototype/_text-decoration.scss | 4 +- .../scss/prototype/_text-transformation.scss | 4 +- .../scss/prototype/_text-utilities.scss | 4 +- .../scss/settings/_settings.scss | 56 +- .../scss/typography/_alignment.scss | 4 +- .../scss/typography/_base.scss | 75 +- .../scss/typography/_helpers.scss | 106 ++- .../scss/typography/_print.scss | 18 +- .../scss/typography/_typography.scss | 4 +- .../scss/util/_breakpoint.scss | 291 +++++--- .../foundation-sites/scss/util/_color.scss | 16 +- .../scss/util/_direction.scss | 6 +- .../foundation-sites/scss/util/_flex.scss | 19 +- .../foundation-sites/scss/util/_math.scss | 79 +- .../foundation-sites/scss/util/_mixins.scss | 120 +++- .../foundation-sites/scss/util/_selector.scss | 4 +- .../scss/util/_typography.scss | 4 +- .../foundation-sites/scss/util/_unit.scss | 10 +- .../foundation-sites/scss/util/_util.scss | 4 +- .../foundation-sites/scss/util/_value.scss | 44 +- .../scss/vendor/normalize.scss | 281 ++++++++ .../foundation-sites/scss/xy-grid/_cell.scss | 277 ++++--- .../scss/xy-grid/_classes.scss | 99 +-- .../scss/xy-grid/_collapse.scss | 11 +- .../foundation-sites/scss/xy-grid/_frame.scss | 3 +- .../foundation-sites/scss/xy-grid/_grid.scss | 8 +- .../scss/xy-grid/_gutters.scss | 10 +- .../scss/xy-grid/_layout.scss | 23 +- .../scss/xy-grid/_position.scss | 45 +- .../scss/xy-grid/_xy-grid.scss | 4 +- 110 files changed, 2078 insertions(+), 1900 deletions(-) delete mode 100644 {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/.gitattributes delete mode 100644 {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/_normalize.scss delete mode 100644 {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_import-now.scss delete mode 100644 {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss delete mode 100644 {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_variables.scss delete mode 100644 {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss create mode 100644 {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/vendor/normalize.scss diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/.gitattributes b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/.gitattributes deleted file mode 100644 index 36fe3a5315..0000000000 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* linguist-vendored \ No newline at end of file diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/_normalize.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/_normalize.scss deleted file mode 100644 index fd669eb9bc..0000000000 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/_normalize.scss +++ /dev/null @@ -1,3 +0,0 @@ -@import 'normalize/variables'; -@import 'normalize/vertical-rhythm'; -@import 'normalize/normalize-mixin'; diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_import-now.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_import-now.scss deleted file mode 100644 index aac5d2b698..0000000000 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_import-now.scss +++ /dev/null @@ -1,11 +0,0 @@ -// Import Now -// -// If you import this module directly, it will immediately output all the CSS -// needed to normalize default HTML elements across all browsers. -// -// ``` -// @import "normalize/import-now"; -// ``` - -@import '../normalize'; -@include normalize(); diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss deleted file mode 100644 index 70a8d3d371..0000000000 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +++ /dev/null @@ -1,676 +0,0 @@ -// Helper function for the normalize() mixin. -@function _normalize-include($section, $exclude: null) { - // Initialize the global variables needed by this function. - @if not global_variable_exists(_normalize-include) { - $_normalize-include: () !global; - $_normalize-exclude: () !global; - } - // Since we are given 2 parameters, set the global variables. - @if $exclude != null { - $include: $section; - // Sass doesn't have static variables, so the work-around is to stuff these - // values into global variables so we can access them in future calls. - $_normalize-include: if(type-of($include) == 'list', $include, ($include)) !global; - $_normalize-exclude: if(type-of($exclude) == 'list', $exclude, ($exclude)) !global; - @return true; - } - - // Check if $section is in the $include list. - @if index($_normalize-include, $section) { - @return true; - } - // If $include is set to (all), make sure $section is not in $exclude. - @else if not index($_normalize-exclude, $section) and index($_normalize-include, all) { - @return true; - } - @return false; -} - -@mixin normalize($include: (all), $exclude: ()) { - // Initialize the helper function by passing it this mixin's parameters. - $init: _normalize-include($include, $exclude); - - // If we've customized any font variables, we'll need extra properties. - @if $base-font-size != 16px - or $base-line-height != 24px - or $base-unit != 'em' - or $h1-font-size != 2 * $base-font-size - or $h2-font-size != 1.5 * $base-font-size - or $h3-font-size != 1.17 * $base-font-size - or $h4-font-size != 1 * $base-font-size - or $h5-font-size != 0.83 * $base-font-size - or $h6-font-size != 0.67 * $base-font-size { - $normalize-vertical-rhythm: true !global; - } - - /*! normalize-scss | MIT/GPLv2 License | bit.ly/normalize-scss */ - - @if _normalize-include(document) { - /* Document - ========================================================================== */ - - /** - * 1. Change the default font family in all browsers (opinionated). - * 2. Correct the line height in all browsers. - * 3. Prevent adjustments of font size after orientation changes in - * IE on Windows Phone and in iOS. - */ - - html { - font-family: $base-font-family; /* 1 */ - @if $normalize-vertical-rhythm { - // Correct old browser bug that prevented accessible resizing of text - // when root font-size is set with px or em. - font-size: ($base-font-size / 16px) * 100%; - line-height: ($base-line-height / $base-font-size) * 1em; /* 2 */ - } - @else { - line-height: 1.15; /* 2 */ - } - -ms-text-size-adjust: 100%; /* 3 */ - -webkit-text-size-adjust: 100%; /* 3 */ - } - } - - @if _normalize-include(sections) { - /* Sections - ========================================================================== */ - - /** - * Remove the margin in all browsers (opinionated). - */ - - body { - margin: 0; - } - - /** - * Add the correct display in IE 9-. - */ - - article, - aside, - footer, - header, - nav, - section { - display: block; - } - - /** - * Correct the font size and margin on `h1` elements within `section` and - * `article` contexts in Chrome, Firefox, and Safari. - */ - - h1 { - @include normalize-font-size($h1-font-size); - @if $normalize-vertical-rhythm { - @include normalize-line-height($h1-font-size); - } - - @if $normalize-vertical-rhythm { - /* Set 1 unit of vertical rhythm on the top and bottom margins. */ - @include normalize-margin(1 0, $h1-font-size); - } - @else { - margin: 0.67em 0; - } - } - - @if $normalize-vertical-rhythm { - h2 { - @include normalize-font-size($h2-font-size); - @include normalize-line-height($h2-font-size); - @include normalize-margin(1 0, $h2-font-size); - } - - h3 { - @include normalize-font-size($h3-font-size); - @include normalize-line-height($h3-font-size); - @include normalize-margin(1 0, $h3-font-size); - } - - h4 { - @include normalize-font-size($h4-font-size); - @include normalize-line-height($h4-font-size); - @include normalize-margin(1 0, $h4-font-size); - } - - h5 { - @include normalize-font-size($h5-font-size); - @include normalize-line-height($h5-font-size); - @include normalize-margin(1 0, $h5-font-size); - } - - h6 { - @include normalize-font-size($h6-font-size); - @include normalize-line-height($h6-font-size); - @include normalize-margin(1 0, $h6-font-size); - } - } - } - - @if _normalize-include(grouping) { - /* Grouping content - ========================================================================== */ - - @if $normalize-vertical-rhythm { - /** - * Set 1 unit of vertical rhythm on the top and bottom margin. - */ - - blockquote { - @include normalize-margin(1 $indent-amount); - } - - dl, - ol, - ul { - @include normalize-margin(1 0); - } - - /** - * Turn off margins on nested lists. - */ - - ol, - ul { - ol, - ul { - margin: 0; - } - } - - dd { - margin: 0 0 0 $indent-amount; - } - - ol, - ul { - padding: 0 0 0 $indent-amount; - } - } - - /** - * Add the correct display in IE 9-. - */ - - figcaption, - figure { - display: block; - } - - /** - * Add the correct margin in IE 8. - */ - - figure { - @if $normalize-vertical-rhythm { - @include normalize-margin(1 $indent-amount); - } - @else { - margin: 1em $indent-amount; - } - } - - /** - * 1. Add the correct box sizing in Firefox. - * 2. Show the overflow in Edge and IE. - */ - - hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ - } - - /** - * Add the correct display in IE. - */ - - main { - display: block; - } - - @if $normalize-vertical-rhythm { - /** - * Set 1 unit of vertical rhythm on the top and bottom margin. - */ - - p, - pre { - @include normalize-margin(1 0); - } - } - - /** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - - pre { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ - } - } - - @if _normalize-include(links) { - /* Links - ========================================================================== */ - - /** - * 1. Remove the gray background on active links in IE 10. - * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. - */ - - a { - background-color: transparent; /* 1 */ - -webkit-text-decoration-skip: objects; /* 2 */ - } - - /** - * Remove the outline on focused links when they are also active or hovered - * in all browsers (opinionated). - */ - - a:active, - a:hover { - outline-width: 0; - } - } - - @if _normalize-include(text) { - /* Text-level semantics - ========================================================================== */ - - /** - * 1. Remove the bottom border in Firefox 39-. - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ - - abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - text-decoration: underline dotted; /* 2 */ - } - - /** - * Prevent the duplicate application of `bolder` by the next rule in Safari 6. - */ - - b, - strong { - font-weight: inherit; - } - - /** - * Add the correct font weight in Chrome, Edge, and Safari. - */ - - b, - strong { - font-weight: bolder; - } - - /** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - - code, - kbd, - samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ - } - - /** - * Add the correct font style in Android 4.3-. - */ - - dfn { - font-style: italic; - } - - /** - * Add the correct background and color in IE 9-. - */ - - mark { - background-color: #ff0; - color: #000; - } - - /** - * Add the correct font size in all browsers. - */ - - small { - font-size: 80%; - } - - /** - * Prevent `sub` and `sup` elements from affecting the line height in - * all browsers. - */ - - sub, - sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - sub { - bottom: -0.25em; - } - - sup { - top: -0.5em; - } - } - - @if _normalize-include(embedded) { - /* Embedded content - ========================================================================== */ - - /** - * Add the correct display in IE 9-. - */ - - audio, - video { - display: inline-block; - } - - /** - * Add the correct display in iOS 4-7. - */ - - audio:not([controls]) { - display: none; - height: 0; - } - - /** - * Remove the border on images inside links in IE 10-. - */ - - img { - border-style: none; - } - - /** - * Hide the overflow in IE. - */ - - svg:not(:root) { - overflow: hidden; - } - } - - @if _normalize-include(forms) { - /* Forms - ========================================================================== */ - - /** - * 1. Change the font styles in all browsers (opinionated). - * 2. Remove the margin in Firefox and Safari. - */ - - button, - input, - optgroup, - select, - textarea { - font-family: $base-font-family; /* 1 */ - font-size: 100%; /* 1 */ - @if $normalize-vertical-rhythm { - line-height: ($base-line-height / $base-font-size) * 1em; /* 1 */ - } - @else { - line-height: 1.15; /* 1 */ - } - margin: 0; /* 2 */ - } - - /** - * Show the overflow in IE. - */ - - button { - overflow: visible; - } - - /** - * Remove the inheritance of text transform in Edge, Firefox, and IE. - * 1. Remove the inheritance of text transform in Firefox. - */ - - button, - select { /* 1 */ - text-transform: none; - } - - /** - * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` - * controls in Android 4. - * 2. Correct the inability to style clickable types in iOS and Safari. - */ - - button, - html [type="button"], /* 1 */ - [type="reset"], - [type="submit"] { - -webkit-appearance: button; /* 2 */ - } - - button, - [type="button"], - [type="reset"], - [type="submit"] { - - /** - * Remove the inner border and padding in Firefox. - */ - - &::-moz-focus-inner { - border-style: none; - padding: 0; - } - - /** - * Restore the focus styles unset by the previous rule. - */ - - &:-moz-focusring { - outline: 1px dotted ButtonText; - } - } - - /** - * Show the overflow in Edge. - */ - - input { - overflow: visible; - } - - /** - * 1. Add the correct box sizing in IE 10-. - * 2. Remove the padding in IE 10-. - */ - - [type="checkbox"], - [type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ - } - - /** - * Correct the cursor style of increment and decrement buttons in Chrome. - */ - - [type="number"]::-webkit-inner-spin-button, - [type="number"]::-webkit-outer-spin-button { - height: auto; - } - - /** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ - - [type="search"] { - -webkit-appearance: textfield; /* 1 */ - outline-offset: -2px; /* 2 */ - - /** - * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. - */ - - &::-webkit-search-cancel-button, - &::-webkit-search-decoration { - -webkit-appearance: none; - } - } - - /** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ - - ::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ - font: inherit; /* 2 */ - } - - /** - * Change the border, margin, and padding in all browsers (opinionated). - */ - - fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; - } - - /** - * 1. Correct the text wrapping in Edge and IE. - * 2. Correct the color inheritance from `fieldset` elements in IE. - * 3. Remove the padding so developers are not caught out when they zero out - * `fieldset` elements in all browsers. - */ - - legend { - box-sizing: border-box; /* 1 */ - display: table; /* 1 */ - max-width: 100%; /* 1 */ - padding: 0; /* 3 */ - color: inherit; /* 2 */ - white-space: normal; /* 1 */ - } - - /** - * 1. Add the correct display in IE 9-. - * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. - */ - - progress { - display: inline-block; /* 1 */ - vertical-align: baseline; /* 2 */ - } - - /** - * Remove the default vertical scrollbar in IE. - */ - - textarea { - overflow: auto; - } - } - - @if _normalize-include(interactive) { - /* Interactive - ========================================================================== */ - - /* - * Add the correct display in Edge, IE, and Firefox. - */ - - details { - display: block; - } - - /* - * Add the correct display in all browsers. - */ - - summary { - display: list-item; - } - - /* - * Add the correct display in IE 9-. - */ - - menu { - display: block; - - @if $normalize-vertical-rhythm { - /* - * 1. Set 1 unit of vertical rhythm on the top and bottom margin. - * 2. Set consistent space for the list style image. - */ - - @include normalize-margin(1 0); /* 1 */ - padding: 0 0 0 $indent-amount; /* 2 */ - - /** - * Turn off margins on nested lists. - */ - - menu &, - ol &, - ul & { - margin: 0; - } - } - } - } - - @if _normalize-include(scripting) { - /* Scripting - ========================================================================== */ - - /** - * Add the correct display in IE 9-. - */ - - canvas { - display: inline-block; - } - - /** - * Add the correct display in IE. - */ - - template { - display: none; - } - } - - @if _normalize-include(hidden) { - /* Hidden - ========================================================================== */ - - /** - * Add the correct display in IE 10-. - */ - - [hidden] { - display: none; - } - } -} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_variables.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_variables.scss deleted file mode 100644 index 2f06b25388..0000000000 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_variables.scss +++ /dev/null @@ -1,36 +0,0 @@ -// -// Variables -// -// You can override the default values by setting the variables in your Sass -// before importing the normalize-scss library. - -// The font size set on the root html element. -$base-font-size: 16px !default; - -// The base line height determines the basic unit of vertical rhythm. -$base-line-height: 24px !default; - -// The length unit in which to output vertical rhythm values. -// Supported values: px, em, rem. -$base-unit: 'em' !default; - -// The default font family. -$base-font-family: sans-serif !default; - -// The font sizes for h1-h6. -$h1-font-size: 2 * $base-font-size !default; -$h2-font-size: 1.5 * $base-font-size !default; -$h3-font-size: 1.17 * $base-font-size !default; -$h4-font-size: 1 * $base-font-size !default; -$h5-font-size: 0.83 * $base-font-size !default; -$h6-font-size: 0.67 * $base-font-size !default; - -// The amount lists and blockquotes are indented. -$indent-amount: 40px !default; - -// The following variable controls whether normalize-scss will output -// font-sizes, line-heights and block-level top/bottom margins that form a basic -// vertical rhythm on the page, which differs from the original Normalize.css. -// However, changing any of the variables above will cause -// $normalize-vertical-rhythm to be automatically set to true. -$normalize-vertical-rhythm: false !default; diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss deleted file mode 100644 index 4f53647ca0..0000000000 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +++ /dev/null @@ -1,61 +0,0 @@ -// -// Vertical Rhythm -// -// This is the minimal amount of code needed to create vertical rhythm in our -// CSS. If you are looking for a robust solution, look at the excellent Typey -// library. @see https://github.com/jptaranto/typey - -@function normalize-rhythm($value, $relative-to: $base-font-size, $unit: $base-unit) { - @if unit($value) != px { - @error "The normalize vertical-rhythm module only supports px inputs. The typey library is better."; - } - @if $unit == rem { - @return ($value / $base-font-size) * 1rem; - } - @else if $unit == em { - @return ($value / $relative-to) * 1em; - } - @else { // $unit == px - @return $value; - } -} - -@mixin normalize-font-size($value, $relative-to: $base-font-size) { - @if unit($value) != 'px' { - @error "normalize-font-size() only supports px inputs. The typey library is better."; - } - font-size: normalize-rhythm($value, $relative-to); -} - -@mixin normalize-rhythm($property, $values, $relative-to: $base-font-size) { - $value-list: $values; - $sep: space; - @if type-of($values) == 'list' { - $sep: list-separator($values); - } - @else { - $value-list: append((), $values); - } - - $normalized-values: (); - @each $value in $value-list { - @if unitless($value) and $value != 0 { - $value: $value * normalize-rhythm($base-line-height, $relative-to); - } - $normalized-values: append($normalized-values, $value, $sep); - } - #{$property}: $normalized-values; -} - -@mixin normalize-margin($values, $relative-to: $base-font-size) { - @include normalize-rhythm(margin, $values, $relative-to); -} - -@mixin normalize-line-height($font-size, $min-line-padding: 2px) { - $lines: ceil($font-size / $base-line-height); - // If lines are cramped include some extra leading. - @if ($lines * $base-line-height - $font-size) < ($min-line-padding * 2) { - $lines: $lines + 1; - } - @include normalize-rhythm(line-height, $lines, $font-size); -} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/_global.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/_global.scss index 18152fedd5..dad62e6b59 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/_global.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/_global.scss @@ -1,13 +1,15 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source -// sass-lint:disable force-attribute-nesting, force-pseudo-nesting, no-color-literals, no-qualifying-elements +// sass-lint:disable no-color-literals, no-qualifying-elements //// /// @group global //// +@import 'util/util'; + /// Font size attribute applied to `` and ``. We use 100% by default so the value is inherited from the user's browser settings. /// @type Number $global-font-size: 100% !default; @@ -121,19 +123,18 @@ $global-button-cursor: auto !default; $global-left: if($global-text-direction == rtl, right, left); $global-right: if($global-text-direction == rtl, left, right); +// Internal variable that contains the flex justifying options +$-zf-flex-justify: -zf-flex-justify($global-text-direction); + /// Global tolerance for color pick contrast. /// @type Number $global-color-pick-contrast-tolerance: 0 !default; // Internal variables used for colors -$primary-color: get-color(primary); -$secondary-color: get-color(secondary); -$success-color: get-color(success); -$warning-color: get-color(warning); -$alert-color: get-color(alert); +@include add-foundation-colors; @mixin foundation-global-styles { - @include -zf-normalize; + @include foundation-normalize; // These styles are applied to a tag, which is read by the Foundation JavaScript .foundation-mq { @@ -165,8 +166,8 @@ $alert-color: get-color(alert); color: $body-font-color; @if ($body-antialiased) { - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; // sass-lint:disable-line no-vendor-prefixes + -moz-osx-font-smoothing: grayscale; // sass-lint:disable-line no-vendor-prefixes } } @@ -241,9 +242,3 @@ $alert-color: get-color(alert); display: none !important; } } - -/// Loads normalize.css. -/// @access private -@mixin -zf-normalize { - @include normalize(); -} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_accordion-menu.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_accordion-menu.scss index 7d25446607..1e05469c86 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_accordion-menu.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_accordion-menu.scss @@ -62,10 +62,12 @@ $accordionmenu-arrow-size: 6px !default; #{$global-right}: 1rem; } } + &.align-left .is-accordion-submenu-parent > a::after { - left: auto; right: 1rem; + left: auto; } + &.align-right .is-accordion-submenu-parent > a::after { right: auto; left: 1rem; @@ -93,7 +95,7 @@ $accordionmenu-arrow-size: 6px !default; } padding: $accordionmenu-padding; } - + .is-accordion-submenu a { padding: $accordionmenu-submenu-padding; } @@ -138,11 +140,12 @@ $accordionmenu-arrow-size: 6px !default; position: absolute; top: 0; #{$global-right}: 0; - cursor: pointer; width: $accordionmenu-submenu-toggle-width; height: $accordionmenu-submenu-toggle-height; + cursor: pointer; + border-#{$global-left}: $accordion-submenu-toggle-border; @if $accordionmenu-submenu-toggle-background { diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_accordion.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_accordion.scss index c646be7d15..6ec5ccdcd8 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_accordion.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_accordion.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -14,6 +14,14 @@ $accordion-background: $white !default; /// @type Boolean $accordion-plusminus: true !default; +/// Content for the plus icon when `$accordion-plusminus` is `true` +/// @type String +$accordion-plus-content: '\002B' !default; + +/// Content for the minus icon when `$accordion-plusminus` is `true` +/// @type String +$accordion-minus-content: '\2013' !default; + /// Font size of accordion titles. /// @type Number $accordion-title-font-size: rem-calc(12) !default; @@ -53,6 +61,7 @@ $accordion-content-padding: 1rem !default; margin-#{$global-left}: 0; background: $background; list-style-type: none; + &[disabled] { .accordion-title { cursor: not-allowed; @@ -106,11 +115,11 @@ $accordion-content-padding: 1rem !default; top: 50%; #{$global-right}: 1rem; margin-top: -0.5rem; - content: '+'; + content: $accordion-plus-content; } .is-active > &::before { - content: '\2013'; + content: $accordion-minus-content; } } } diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_badge.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_badge.scss index 3d5b6bab79..f3b69a4693 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_badge.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_badge.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_breadcrumbs.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_breadcrumbs.scss index 75eb9a1569..e9e08c8c72 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_breadcrumbs.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_breadcrumbs.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -82,12 +82,14 @@ $breadcrumbs-item-separator-color: $medium-gray !default; // Need to escape the backslash $separator: if($global-text-direction == 'ltr', $breadcrumbs-item-separator-item, $breadcrumbs-item-separator-item-rtl); - &:not(:last-child)::after { - position: relative; - margin: 0 $breadcrumbs-item-margin; - opacity: 1; - content: $separator; - color: $breadcrumbs-item-separator-color; + &:not(:last-child) { + &::after { + position: relative; + margin: 0 $breadcrumbs-item-margin; + opacity: 1; + content: $separator; + color: $breadcrumbs-item-separator-color; + } } } @else { diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_button-group.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_button-group.scss index 6705e9c9e7..d3be6262a6 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_button-group.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_button-group.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -18,7 +18,7 @@ $buttongroup-spacing: 1px !default; /// @type String $buttongroup-child-selector: '.button' !default; -/// Maximum number of buttons that can be in an even-width button group. +/// Maximum number of buttons that can be in an even-width button group. (Only needed when $global-flexbox: false;) /// @type Number $buttongroup-expand-max: 6 !default; @@ -38,8 +38,14 @@ $buttongroup-radius-on-each: true !default; @if $global-flexbox { display: flex; - flex-wrap: nowrap; + flex-wrap: wrap; align-items: stretch; + flex-grow: 1; + + &::before, + &::after { + display: none; // Disable clearfix + } } @else { font-size: 0; @@ -72,7 +78,21 @@ $buttongroup-radius-on-each: true !default; border-bottom-#{$global-right}-radius: $button-radius; } } + } +} +/// Make buttons bonded without gap between them. Borders between buttons are merged +/// @param {String} $selector [$buttongroup-child-selector] - Selector for the buttons inside a button group. +@mixin button-group-no-gaps( + $selector: $buttongroup-child-selector, + $border-width: $button-hollow-border-width +) { + #{$selector} { + margin-#{$global-right}: rem-calc(-$border-width); + + + #{$selector} { + border-#{$global-left}-color: transparent; + } } } @@ -89,18 +109,21 @@ $buttongroup-radius-on-each: true !default; &::before, &::after { - display: none; + display: none; // Disable clearfix } } #{$selector} { @if $global-flexbox { flex: 1 1 0px; // sass-lint:disable-line zero-unit + margin-right: 0; } @else { // One child - &:first-child:last-child { - width: 100%; + &:first-child { + &:last-child { + width: calc(100% - #{$spacing}); + } } // Two or more childreen @@ -142,11 +165,10 @@ $buttongroup-radius-on-each: true !default; margin-bottom: 0; } - @if not $buttongroup-radius-on-each { border-radius: 0; - &:first-child{ + &:first-child { border-top-#{$global-left}-radius: $global-radius; border-top-#{$global-right}-radius: $global-radius; } @@ -157,7 +179,6 @@ $buttongroup-radius-on-each: true !default; border-bottom-#{$global-right}-radius: $global-radius; } } - } } @@ -168,7 +189,7 @@ $buttongroup-radius-on-each: true !default; ) { #{$selector} { @if $global-flexbox { - flex: 1 1 0px; // sass-lint:disable-line zero-unit + flex: 0 0 auto; } @else { width: auto; @@ -204,27 +225,46 @@ $buttongroup-radius-on-each: true !default; } // Even-width Group - &.expanded { @include button-group-expand; } + &.expanded { + @include button-group-expand; + } - // Colors - @each $name, $color in $foundation-palette { - @if $button-fill != hollow { - &.#{$name} #{$buttongroup-child-selector} { - @include button-style($color, auto, auto); + // Solid, hollow & clear styles + @each $filling in (solid hollow clear) { + $base-selector: if($button-fill == $filling, null, '.#{$filling}'); + + &#{$base-selector} { + // Do not generate button base styles for the default filling + @if($button-fill != $filling) { + #{$buttongroup-child-selector} { + @include button-fill($filling); + @include button-fill-style($filling); + } } - } - @else { - &.#{$name} #{$buttongroup-child-selector} { - @include button-hollow; - @include button-hollow-style($color); + + @each $name, $color in $button-palette { + $individual-selector: if($button-fill == $filling, null, ' #{$buttongroup-child-selector}.#{$name}'); + + &.#{$name} #{$buttongroup-child-selector}, #{$individual-selector} { + @include button-fill-style($filling, $color, auto, auto); + } } } + + } + + &.no-gaps { + @include button-group-no-gaps; } &.stacked, &.stacked-for-small, &.stacked-for-medium { @include button-group-stack; + + &.expanded { + @include button-group-expand; + } } &.stacked-for-small { @@ -239,7 +279,7 @@ $buttongroup-radius-on-each: true !default; } } - &.stacked-for-small.expanded { // sass-lint:disable-line force-element-nesting + &.stacked-for-small.expanded { @include breakpoint(small only) { display: block; @@ -249,5 +289,16 @@ $buttongroup-radius-on-each: true !default; } } } + + &.stacked-for-medium.expanded { + @include breakpoint(medium down) { + display: block; + + #{$buttongroup-child-selector} { + display: block; + margin-#{$global-right}: 0; + } + } + } } } diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_button.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_button.scss index e71f264931..8e7a231b04 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_button.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_button.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -10,6 +10,11 @@ /// @type Font $button-font-family: inherit !default; +/// Font weight for button elements. +/// Ignored if null (default) +/// @type Font-Weight +$button-font-weight: null !default; + /// Padding inside buttons. /// @type List $button-padding: 0.85em 1em !default; @@ -42,6 +47,10 @@ $button-color-alt: $black !default; /// @type Number $button-radius: $global-radius !default; +/// Border for buttons, transparent by default +/// @type List +$button-border: 1px solid transparent !default; + /// Border width for hollow outline buttons /// @type Number $button-hollow-border-width: 1px !default; @@ -80,13 +89,16 @@ $button-hollow-hover-lightness: -50% !default; /// @type List $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !default; +/// Additional responsive classes for .expanded +/// @type Boolean +$button-responsive-expanded: false !default; + // TODO: Document button-base() mixin @mixin button-base { @include disable-mouse-outline; display: inline-block; vertical-align: middle; margin: $button-margin; - font-family: $button-font-family; @if (type-of($button-padding) == 'map') { @each $size, $padding in $button-padding { @@ -99,12 +111,13 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau padding: $button-padding; } - -webkit-appearance: none; - border: 1px solid transparent; + border: $button-border; border-radius: $button-radius; transition: $button-transition; - + font-family: $button-font-family; font-size: map-get($button-sizes, default); + font-weight: $button-font-weight; + -webkit-appearance: none; // sass-lint:disable-line no-vendor-prefixes line-height: 1; text-align: center; cursor: pointer; @@ -126,6 +139,43 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau } } +/// Sets the base styles of a hollow or clear button filling according to `$fill`. +/// See mixin `button-fill-style` for the filling styles. +/// @param {Keyword} $fill [$button-fill] - Type of filling between `hollow` and `clear`. `solid` has no effects. +@mixin button-fill( + $fill: $button-fill +) { + @if $fill == hollow { + @include button-hollow; + } + @else if $fill == clear { + @include button-clear; + } +} + +/// Sets the visual styles of a solid/hollow/clear button filling according to `$fill`. +/// See mixins `button-style`, `button-hollow-style` and `button-clear-style` for effects of visual styling parameters. +/// @param {Keyword} $fill [$button-fill] - Type of filling between `hollow` and `clear`. +/// @param {Color} $background [$button-background] - - +/// @param {Color} $background-hover [$button-background-hover] - - +/// @param {Color} $color [$button-color] - - +@mixin button-fill-style( + $fill: $button-fill, + $background: $button-background, + $background-hover: $button-background-hover, + $color: $button-color +) { + @if $fill == solid { + @include button-style($background, $background-hover, $color); + } + @else if $fill == hollow { + @include button-hollow-style($background); + } + @else if $fill == clear { + @include button-clear-style($background); + } +} + /// Sets the visual style of a button. /// @param {Color} $background [$button-background] - Background color of the button. /// @param {Color} $background-hover [$button-background-hover] - Background color of the button on hover. Set to `auto` to have the mixin automatically generate a hover color. @@ -144,8 +194,14 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau $background-hover: scale-color($background, $lightness: $background-hover-lightness); } - background-color: $background; - color: $color; + // Default and disabled states + &, + &.disabled, &[disabled], + &.disabled:hover, &[disabled]:hover, + &.disabled:focus, &[disabled]:focus { + background-color: $background; + color: $color; + } &:hover, &:focus { background-color: $background-hover; @@ -153,22 +209,20 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau } } -/// Removes background fill on hover and focus for hollow buttons. +/// Sets the base styles of a hollow button. +/// See mixin `button-hollow-style` for the filling styles. @mixin button-hollow { - &, - &:hover, &:focus { - background-color: transparent; - } - - &.disabled, - &[disabled] { - &, - &:hover, &:focus { + &, &.disabled, &[disabled] { + &, &:hover, &:focus { background-color: transparent; } } } +/// Sets the visual style of a hollow button. +/// @param {Color} $color [$button-background] - Text and border color of the button. +/// @param {Color} $hover-lightness [$button-hollow-hover-lightness] - Color lightness on hover. +/// @param {Color} $border-width [$button-hollow-border-width] - Border width of the button. @mixin button-hollow-style( $color: $button-background, $hover-lightness: $button-hollow-hover-lightness, @@ -176,38 +230,61 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau ) { $color-hover: scale-color($color, $lightness: $hover-lightness); - border: $border-width solid $color; - color: $color; + // Default and disabled states + &, + &.disabled, &[disabled], + &.disabled:hover, &[disabled]:hover, + &.disabled:focus, &[disabled]:focus { + border: $border-width solid $color; + color: $color; + } &:hover, &:focus { border-color: $color-hover; color: $color-hover; - &.disabled, - &[disabled] { - border: $border-width solid $color; - color: $color; + } +} + +/// Sets the base styles of a clear button. +/// See mixin `button-clear-style` for the filling styles. +@mixin button-clear { + &, &.disabled, &[disabled] { + &, &:hover, &:focus { + border-color: transparent; + background-color: transparent; } } } -/// Adds disabled styles to a button by fading the element, reseting the cursor, and disabling pointer events. -/// @param [Color] $background [$button-background] - Background color of the disabled button. -/// @param [Color] $color [$button-color] - Text color of the disabled button. Set to `auto` to have the mixin automatically generate a color based on the background color. -@mixin button-disabled( - $background: $button-background, - $color: $button-color +/// Sets the visual style of a clear button. +/// @param {Color} $color [$button-background] - Text color of the button. +/// @param {Color} $hover-lightness [$button-hollow-hover-lightness] - Color lightness on hover. +@mixin button-clear-style( + $color: $button-background, + $hover-lightness: $button-hollow-hover-lightness ) { - @if $color == auto { - $color: color-pick-contrast($background, ($button-color, $button-color-alt)); + $color-hover: scale-color($color, $lightness: $hover-lightness); + + // Default and disabled states + &, + &.disabled, &[disabled], + &.disabled:hover, &[disabled]:hover, + &.disabled:focus, &[disabled]:focus { + color: $color; + } + + &:hover, &:focus { + color: $color-hover; } +} +/// Adds disabled styles to a button by fading the element and reseting the cursor. +/// @param {Number} $opacity [$button-opacity-disabled] - Opacity of the disabled button. +@mixin button-disabled( + $opacity: $button-opacity-disabled +) { opacity: $button-opacity-disabled; cursor: not-allowed; - - &, &:hover, &:focus { - background-color: $background; - color: $color; - } } /// Adds a dropdown arrow to a button. @@ -244,14 +321,8 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau $style: $button-fill ) { @include button-base; - - @if $style == solid { - @include button-style($background, $background-hover, $color); - } - @else if $style == hollow { - @include button-hollow; - @include button-hollow-style($background); - } + @include button-fill($style); + @include button-fill-style($style, $background, $background-hover, $color); @if $expand { @include button-expand; @@ -260,7 +331,7 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau @mixin foundation-button { .button { - @include button; + @include button($style: none); // Sizes @each $size, $value in map-remove($button-sizes, default) { @@ -271,77 +342,48 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau &.expanded { @include button-expand; } - // Colors - @each $name, $color in $button-palette { - @if $button-fill != hollow { - &.#{$name} { - @include button-style($color, auto, auto); - } - } - @else { - &.#{$name} { - @include button-hollow-style($color); + @if $button-responsive-expanded { + @each $size in $breakpoint-classes { + @include breakpoint(#{$size} only) { + &.#{$size}-only-expanded { + @include button-expand; + } } + @if $size != $-zf-zero-breakpoint { + @include breakpoint(#{$size} down) { + &.#{$size}-down-expanded { + @include button-expand; + } + } - &.#{$name}.dropdown::after { - border-top-color: $color; + @include breakpoint(#{$size}) { + &.#{$size}-expanded { + @include button-expand; + } + } } } } - // Disabled style - &.disabled, - &[disabled] { - @include button-disabled; + // Solid, hollow & clear styles + @each $filling in (solid hollow clear) { + $selector: if($button-fill == $filling, null, '.#{$filling}'); - @each $name, $color in $button-palette { - &.#{$name} { - @include button-disabled($color, auto); - } - } - } - - // Hollow style - @if $button-fill != hollow { - &.hollow { - @include button-hollow; - @include button-hollow-style; + &#{$selector} { + @include button-fill($filling); + @include button-fill-style($filling); @each $name, $color in $button-palette { &.#{$name} { - @include button-hollow-style($color); + @include button-fill-style($filling, $color, auto, auto); } } } } - // Clear style - @if $button-fill != clear { - &.clear { - @include button-hollow; - @include button-hollow-style; - - &, &:hover, &:focus { - &, &.disabled, &[disabled] { - border-color: transparent; - } - } - - @each $name, $color in $button-palette { - &.#{$name} { - @include button-hollow-style($color); - - &, &:hover, - &:focus { - &, - &.disabled, - &[disabled] { - border-color: transparent; - } - } - } - } - } + // Disabled state + &.disabled, &[disabled] { + @include button-disabled; } // Dropdown arrow @@ -354,7 +396,7 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau } } - &.hollow { + &.hollow, &.clear { &::after { border-top-color: $button-background; } @@ -376,7 +418,8 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau margin-#{$global-left}: 0; } } - a.button { + + a.button { // sass-lint:disable-line no-qualifying-elements &:hover, &:focus { text-decoration: none; diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_callout.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_callout.scss index 5a0842c41e..c8472c04a1 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_callout.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_callout.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -22,9 +22,13 @@ $callout-border: 1px solid rgba($black, 0.25) !default; /// @type Number $callout-margin: 0 0 1rem 0 !default; -/// Default inner padding for callouts. -/// @type Number -$callout-padding: 1rem !default; +/// Sizes for Callout paddings. +/// @type Map +$callout-sizes: ( + small: 0.5rem, + default: 1rem, + large: 3rem, +) !default; /// Default font color for callouts. /// @type Color @@ -46,7 +50,7 @@ $callout-link-tint: 30% !default; @mixin callout-base() { position: relative; margin: $callout-margin; - padding: $callout-padding; + padding: map-get($callout-sizes, default); border: $callout-border; border-radius: $callout-radius; @@ -95,12 +99,10 @@ $callout-link-tint: 30% !default; } } - &.small { - @include callout-size(0.5rem); - } - - &.large { - @include callout-size(3rem); + @each $size, $padding in map-remove($callout-sizes, default) { + &.#{$size} { + @include callout-size($padding); + } } } } diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_card.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_card.scss index d3ba77e500..809e18f7e0 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_card.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_card.scss @@ -1,12 +1,12 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// /// @group card //// -/// Defualt background color. +/// Default background color. /// @type Color $card-background: $white !default; @@ -81,8 +81,8 @@ $card-margin-bottom: $global-margin !default; $padding: $card-padding ) { @if $global-flexbox { - flex: 0 1 auto; display: flex; + flex: 0 1 auto; } padding: $padding; diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_close-button.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_close-button.scss index 927741f01b..37b501d14f 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_close-button.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_close-button.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -10,6 +10,17 @@ /// @type List $closebutton-position: right top !default; +/// Default z-index for a close button. +/// @type Number +$closebutton-z-index: 10 !default; + +/// Button size to use as default +/// @type String +/// @see $closebutton-size +/// @see $closebutton-offset-horizontal +/// @see $closebutton-offset-vertical +$closebutton-default-size: medium !default; + /// Right (or left) offset(s) for a close button. /// @type Number|Map $closebutton-offset-horizontal: ( @@ -24,7 +35,7 @@ $closebutton-offset-vertical: ( medium: 0.5rem, ) !default; -/// Default font size(s) of the close button. +/// Size(s) of the close button. Used to generate sizing modifiers. /// @type Number|Map $closebutton-size: ( small: 1.5em, @@ -83,6 +94,7 @@ $closebutton-color-hover: $black !default; @include disable-mouse-outline; position: absolute; + z-index: $closebutton-z-index; color: $closebutton-color; cursor: pointer; @@ -96,7 +108,20 @@ $closebutton-color-hover: $black !default; .close-button { @include close-button; - &.small { @include close-button-size(small) } - &, &.medium { @include close-button-size(medium) } + // Generate a placeholder and a class for each size + @each $name, $size in $closebutton-size { + @at-root { + %zf-close-button--#{$name} { + @include close-button-size($name); + } + } + + &.#{$name} { + @extend %zf-close-button--#{$name}; + } + } + + // Use by default the placeholder of the default size + @extend %zf-close-button--#{$closebutton-default-size}; } } diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_drilldown.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_drilldown.scss index 1719080780..3dcdf327af 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_drilldown.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_drilldown.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -45,25 +45,26 @@ $drilldown-arrow-size: 6px !default; @mixin zf-drilldown-left-right-arrows { .is-drilldown-submenu-parent > a { position: relative; + &::after { + @include css-triangle($drilldown-arrow-size, $drilldown-arrow-color, $global-right); position: absolute; top: 50%; margin-top: -1 * $drilldown-arrow-size; #{$global-right}: 1rem; - @include css-triangle($drilldown-arrow-size, $drilldown-arrow-color, $global-right); } } &.align-left .is-drilldown-submenu-parent > a::after { - left: auto; - right: 1rem; @include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, right); + right: 1rem; + left: auto; } &.align-right .is-drilldown-submenu-parent > a::after { + @include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, left); right: auto; left: 1rem; - @include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, left); } } @@ -130,12 +131,9 @@ $drilldown-arrow-size: 6px !default; .js-drilldown-back > a::before { @include css-triangle($drilldown-arrow-size, $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; } } } diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_dropdown-menu.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_dropdown-menu.scss index 463f78a9ba..3aa14cdd64 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_dropdown-menu.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_dropdown-menu.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -28,11 +28,11 @@ $dropdownmenu-min-width: 200px !default; /// Background color for top level items. /// @type Color -$dropdownmenu-background: $white !default; +$dropdownmenu-background: null !default; /// Background color for dropdowns. /// @type Color -$dropdownmenu-submenu-background: $dropdownmenu-background !default; +$dropdownmenu-submenu-background: $white !default; /// Padding for top level items. /// @type Number @@ -69,9 +69,9 @@ $dropdown-menu-item-background-active: transparent !default; } &.opens-left > a::after { + @include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, left); right: auto; left: 5px; - @include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, left); } &.opens-right > a::after { @@ -81,7 +81,7 @@ $dropdown-menu-item-background-active: transparent !default; @mixin dropdown-menu-direction($dir: horizontal) { @if $dir == horizontal { - > li.opens-left { + > li.opens-left { // sass-lint:disable-line no-qualifying-elements > .is-dropdown-submenu { top: 100%; right: 0; @@ -89,7 +89,7 @@ $dropdown-menu-item-background-active: transparent !default; } } - > li.opens-right { + > li.opens-right { // sass-lint:disable-line no-qualifying-elements > .is-dropdown-submenu { top: 100%; right: auto; @@ -98,12 +98,12 @@ $dropdown-menu-item-background-active: transparent !default; } @if $dropdownmenu-arrows { - > li.is-dropdown-submenu-parent > a { + > li.is-dropdown-submenu-parent > a { // sass-lint:disable-line no-qualifying-elements position: relative; padding-#{$global-right}: $dropdownmenu-arrow-padding; } - > li.is-dropdown-submenu-parent > a::after { + > li.is-dropdown-submenu-parent > a::after { // sass-lint:disable-line no-qualifying-elements @include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, down); #{$global-right}: 5px; #{$global-left}: auto; @@ -119,9 +119,9 @@ $dropdown-menu-item-background-active: transparent !default; &.opens-left { > .is-dropdown-submenu { + top: 0; right: 100%; left: auto; - top: 0; } } @@ -148,11 +148,16 @@ $dropdown-menu-item-background-active: transparent !default; a { @include disable-mouse-outline; + } + + // Top-level item + > li > a { + background: $dropdownmenu-background; padding: $dropdownmenu-padding; } - // Active state - .is-active > a { + // Top-level item active state + > li.is-active > a { background: $dropdown-menu-item-background-active; color: $dropdown-menu-item-color-active; } diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_dropdown.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_dropdown.scss index 2d6366e943..974f9c630f 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_dropdown.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_dropdown.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -43,11 +43,12 @@ $dropdown-sizes: ( position: absolute; z-index: 10; + display: none; + width: $dropdown-width; padding: $dropdown-padding; visibility: hidden; - display: none; border: $dropdown-border; border-radius: $dropdown-radius; background-color: $dropdown-background; @@ -61,8 +62,8 @@ $dropdown-sizes: ( } &.is-open { - visibility: visible; display: block; + visibility: visible; } } @@ -72,8 +73,10 @@ $dropdown-sizes: ( } @each $name, $size in $dropdown-sizes { - .dropdown-pane.#{$name} { - width: $size; + .dropdown-pane { + &.#{$name} { + width: $size; + } } } } diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_flex.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_flex.scss index 32b79ba581..7d46d079de 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_flex.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_flex.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -71,17 +71,19 @@ $flexbox-responsive-breakpoints: true !default; @mixin foundation-flex-classes { // Horizontal alignment using justify-content - @each $hdir, $prop in map-remove($-zf-flex-justify, 'left') { + @each $hdir, $prop in $-zf-flex-justify { .align-#{$hdir} { @include flex-align($x: $hdir); } } // Horizontal alignment Specifically for Vertical Menu - @each $hdir, $prop in map-remove($-zf-flex-justify, 'left', 'justify', 'spaced') { + @each $hdir, $prop in map-remove($-zf-flex-justify, 'justify', 'spaced') { .align-#{$hdir} { - &.vertical.menu > li > a { - @include flex-align($x: $hdir); + &.vertical { + &.menu > li > a { + @include flex-align($x: $hdir); + } } } } diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_float.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_float.scss index 3f81f3d1a5..fb80032bd4 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_float.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_float.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_label.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_label.scss index cf7cf7da4c..3ec8eed13a 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_label.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_label.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_media-object.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_media-object.scss index 3c85f46f55..7f3170c878 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_media-object.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_media-object.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -26,6 +26,18 @@ $mediaobject-image-width-stacked: 100% !default; @if $global-flexbox { flex-wrap: nowrap; } + + img { + max-width: none; + } + + @if $global-flexbox { + &.stack-for-#{$-zf-zero-breakpoint} { + @include breakpoint($-zf-zero-breakpoint only) { + flex-wrap: wrap; + } + } + } } /// Adds styles for sections within a media object. @@ -50,6 +62,27 @@ $mediaobject-image-width-stacked: 100% !default; > :last-child { margin-bottom: 0; } + + .stack-for-#{$-zf-zero-breakpoint} & { + @include breakpoint($-zf-zero-breakpoint only) { + @include media-object-stack; + } + } + + @if $global-flexbox { + &.main-section { + flex: 1 1 0px; // sass-lint:disable-line zero-unit + } + } + @else { + &.middle { + vertical-align: middle; + } + + &.bottom { + vertical-align: bottom; + } + } } /// Adds styles to stack sections of a media object. Apply this to the section elements, not the container. @@ -73,42 +106,9 @@ $mediaobject-image-width-stacked: 100% !default; @mixin foundation-media-object { .media-object { @include media-object-container; - - img { - max-width: none; - } - - @if $global-flexbox { - &.stack-for-#{$-zf-zero-breakpoint} { - @include breakpoint($-zf-zero-breakpoint only) { - flex-wrap: wrap; - } - } - } - - &.stack-for-#{$-zf-zero-breakpoint} .media-object-section { - @include breakpoint($-zf-zero-breakpoint only) { - @include media-object-stack; - } - } } .media-object-section { @include media-object-section; - - @if $global-flexbox { - &.main-section { - flex: 1 1 0px; // sass-lint:disable-line zero-unit - } - } - @else { - &.middle { - vertical-align: middle; - } - - &.bottom { - vertical-align: bottom; - } - } } } diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_menu.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_menu.scss index fa100c6e6d..bdfa3358fd 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_menu.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_menu.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -26,6 +26,10 @@ $menu-simple-margin: 1rem !default; /// @type Color $menu-item-color-active: $white !default; +/// Alternative text color of an active menu item.. +/// @type Color +$menu-item-color-alt-active: $black !default; + /// Background color of an active menu item. /// @type Color $menu-item-background-active: get-color(primary) !default; @@ -34,10 +38,6 @@ $menu-item-background-active: get-color(primary) !default; /// @type Number $menu-icon-spacing: 0.25rem !default; -/// Background color for an hovered menu item. -/// @type Color -$menu-item-background-hover: $light-gray !default; - /// Backward compatibility for menu state. If true, this duplicate `active` with `is-active`. /// But please note that `active` will be removed in upcoming versions. /// @type Boolean @@ -354,7 +354,7 @@ $menu-icons-back-compat: true !default; @mixin menu-state-active { background: $menu-item-background-active; - color: $menu-item-color-active; + color: color-pick-contrast($menu-item-background-active, ($menu-item-color-active, $menu-item-color-alt-active)); } @mixin foundation-menu { diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_off-canvas.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_off-canvas.scss index 03a12155d0..e461a54d5d 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_off-canvas.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_off-canvas.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -362,9 +362,14 @@ $maincontent-class: 'off-canvas-content' !default; /// Sets the styles for the content container. @mixin off-canvas-content() { transform: none; - transition: transform $offcanvas-transition-length $offcanvas-transition-timing; backface-visibility: hidden; + // Bind to has-transition-X class to prevent transition for transform:none + &.has-transition-overlap, + &.has-transition-push { + transition: transform $offcanvas-transition-length $offcanvas-transition-timing; + } + // Transform scope until the element is closed (makes sure transitionend gets triggered) &.has-transition-push { transform: translate(0, 0); @@ -416,10 +421,10 @@ $breakpoint: small visibility: visible; height: auto; position: static; - background: inherit; - width: inherit; - overflow: inherit; - transition: inherit; + background: none; + width: auto; + overflow: visible; + transition: none; // Increase CSS specificity &.position-left, diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_orbit.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_orbit.scss index 9b43fcdd45..06761cc470 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_orbit.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_orbit.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -67,6 +67,7 @@ $orbit-control-zindex: 10 !default; /// Adds styles for the individual slides of an Orbit slider. These styles are used on the `.orbit-slide` class. @mixin orbit-slide { width: 100%; + position: absolute; &.no-motionui { &.is-active { diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_pagination.scss b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_pagination.scss index d02ae03fa2..f8a8c14770 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_pagination.scss +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/static/libs/foundation-sites/scss/components/_pagination.scss @@ -1,5 +1,5 @@ -// Foundation for Sites by ZURB -// foundation.zurb.com +// Foundation for Sites +// https://get.foundation // Licensed under MIT Open Source //// @@ -65,6 +65,14 @@ $pagination-mobile-current-item: false !default; /// @type Boolean $pagination-arrows: true !default; +/// Content for the previous arrow when `$pagination-arrows` is `true` +/// @type String +$pagination-arrow-previous: '\00AB' !default; + +/// Content for the next arrow when `$pagination-arrows` is `true` +/// @type String +$pagination-arrow-next: '\00BB' !default; + /// Adds styles for a pagination container. Apply this to a `