diff --git a/app/views/foundation/rails/styleguide/show.html.erb b/app/views/foundation/rails/styleguide/show.html.erb index fbd88b8f..f341bd0e 100644 --- a/app/views/foundation/rails/styleguide/show.html.erb +++ b/app/views/foundation/rails/styleguide/show.html.erb @@ -45,8 +45,8 @@ -
-
+
+
  • Freelancer
  • $99.99
  • @@ -57,7 +57,7 @@
  • Buy Now
-
+
  • Startup
  • $199.99
  • @@ -68,7 +68,7 @@
  • Buy Now
-
+
  • Enterprise
  • $999.99
  • @@ -83,14 +83,14 @@
    -
    -
    +
    +

    Find out more!

    -
    -
    +
    +
    Overview
    Features
    diff --git a/bower.json b/bower.json index 9b700a0b..74f0fcfa 100644 --- a/bower.json +++ b/bower.json @@ -1,8 +1,8 @@ { "name": "foundation-rails", - "version": "6.4.1.0", + "version": "6.4.3.0", "dependencies": { - "foundation-sites": "6.4.1", + "foundation-sites": "6.4.3", "motion-ui": "1.2.3" } } diff --git a/lib/foundation/rails/version.rb b/lib/foundation/rails/version.rb index 9e7379bf..abbda84f 100644 --- a/lib/foundation/rails/version.rb +++ b/lib/foundation/rails/version.rb @@ -1,5 +1,5 @@ module Foundation module Rails - VERSION = "6.4.1.3" + VERSION = "6.4.3" end end diff --git a/lib/generators/foundation/templates/_settings.scss b/lib/generators/foundation/templates/_settings.scss index b67ff00c..26f74f94 100644 --- a/lib/generators/foundation/templates/_settings.scss +++ b/lib/generators/foundation/templates/_settings.scss @@ -95,6 +95,7 @@ $global-menu-nested-margin: 1rem; $global-text-direction: ltr; $global-flexbox: true; $global-prototype-breakpoints: false; +$global-button-cursor: auto; $global-color-pick-contrast-tolerance: 0; $print-transparent-backgrounds: true; @@ -477,6 +478,7 @@ $menu-icon-spacing: 0.25rem; $menu-item-background-hover: $light-gray; $menu-state-back-compat: true; $menu-centered-back-compat: true; +$menu-icons-back-compat: true; // 24. Meter // --------- @@ -491,8 +493,12 @@ $meter-fill-bad: $alert-color; // 25. Off-canvas // -------------- -$offcanvas-size: 250px; -$offcanvas-vertical-size: 250px; +$offcanvas-sizes: ( + small: 250px, +); +$offcanvas-vertical-sizes: ( + small: 250px, +); $offcanvas-background: $light-gray; $offcanvas-shadow: 0 0 10px rgba($black, 0.7); $offcanvas-inner-shadow-size: 20px; @@ -859,5 +865,5 @@ $grid-margin-gutters: ( $grid-padding-gutters: $grid-margin-gutters; $grid-container-padding: $grid-padding-gutters; $grid-container-max: $global-width; -$block-grid-max: 8; +$xy-block-grid-max: 8; diff --git a/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_contain.scss b/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_contain.scss new file mode 100644 index 00000000..87d160b7 --- /dev/null +++ b/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_contain.scss @@ -0,0 +1,31 @@ +/// +/// Returns whether `$list` contains `$value`. +/// +/// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-contain +/// +/// @param {List} $list - list to check +/// @param {*} $value - value to look for +/// +/// @example +/// sl-contain(a b c, a) +/// // true +/// +/// @example +/// sl-contain(a b c, z) +/// // false +/// +/// @return {Bool} +/// + +@function sl-contain($list, $value) { + @return not not index($list, $value); +} + +/// +/// @requires sl-contain +/// @alias sl-contain +/// + +@function sl-include($list, $value) { + @return sl-contain($list, $value); +} diff --git a/vendor/assets/js/foundation.abide.js b/vendor/assets/js/foundation.abide.js index 99d62180..8d94961e 100644 --- a/vendor/assets/js/foundation.abide.js +++ b/vendor/assets/js/foundation.abide.js @@ -155,7 +155,7 @@ var Abide = function (_Plugin) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; this.$element = element; - this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, Abide.defaults, this.$element.data(), options); + this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend(true, {}, Abide.defaults, this.$element.data(), options); this.className = 'Abide'; // ie9 back compat this._init(); diff --git a/vendor/assets/js/foundation.accordionMenu.js b/vendor/assets/js/foundation.accordionMenu.js index 31d91afd..52edfdd5 100644 --- a/vendor/assets/js/foundation.accordionMenu.js +++ b/vendor/assets/js/foundation.accordionMenu.js @@ -174,8 +174,6 @@ var AccordionMenu = function (_Plugin) { this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, AccordionMenu.defaults, this.$element.data(), options); this.className = 'AccordionMenu'; // ie9 back compat - __WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'accordion'); - this._init(); __WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].register('AccordionMenu', { @@ -197,6 +195,8 @@ var AccordionMenu = function (_Plugin) { }, { key: '_init', value: function _init() { + __WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'accordion'); + var _this = this; this.$element.find('[data-submenu]').not('.is-active').slideUp(0); //.find('a').css('padding-left', '1rem'); diff --git a/vendor/assets/js/foundation.core.js b/vendor/assets/js/foundation.core.js index 72cc74a3..aeffe6a6 100644 --- a/vendor/assets/js/foundation.core.js +++ b/vendor/assets/js/foundation.core.js @@ -183,7 +183,7 @@ window.Foundation = __WEBPACK_IMPORTED_MODULE_1__foundation_core__["a" /* Founda -var FOUNDATION_VERSION = '6.4.1'; +var FOUNDATION_VERSION = '6.4.3'; // Global Foundation object // This is attached to the window, or used as a module for AMD/Browserify diff --git a/vendor/assets/js/foundation.drilldown.js b/vendor/assets/js/foundation.drilldown.js index 1285f8ba..a8aae3c3 100644 --- a/vendor/assets/js/foundation.drilldown.js +++ b/vendor/assets/js/foundation.drilldown.js @@ -177,8 +177,6 @@ var Drilldown = function (_Plugin) { this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, Drilldown.defaults, this.$element.data(), options); this.className = 'Drilldown'; // ie9 back compat - __WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'drilldown'); - this._init(); __WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].register('Drilldown', { @@ -202,6 +200,8 @@ var Drilldown = function (_Plugin) { }, { key: '_init', value: function _init() { + __WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'drilldown'); + if (this.options.autoApplyClass) { this.$element.addClass('drilldown'); } @@ -240,7 +240,7 @@ var Drilldown = function (_Plugin) { var $link = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(this); var $sub = $link.parent(); if (_this.options.parentLink) { - $link.clone().prependTo($sub.children('[data-submenu]')).wrap('
  • '); + $link.clone().prependTo($sub.children('[data-submenu]')).wrap(''); } $link.data('savedHref', $link.attr('href')).removeAttr('href').attr('tabindex', 0); $link.children('[data-submenu]').attr({ diff --git a/vendor/assets/js/foundation.dropdown.js b/vendor/assets/js/foundation.dropdown.js index fdd21fe0..7a43c06d 100644 --- a/vendor/assets/js/foundation.dropdown.js +++ b/vendor/assets/js/foundation.dropdown.js @@ -461,16 +461,17 @@ var Dropdown = function (_Positionable) { value: function _init() { var $id = this.$element.attr('id'); - this.$anchor = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-toggle="' + $id + '"]').length ? __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-toggle="' + $id + '"]') : __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-open="' + $id + '"]'); - this.$anchor.attr({ + this.$anchors = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-toggle="' + $id + '"]').length ? __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-toggle="' + $id + '"]') : __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-open="' + $id + '"]'); + this.$anchors.attr({ 'aria-controls': $id, 'data-is-focus': false, 'data-yeti-box': $id, 'aria-haspopup': true, 'aria-expanded': false - }); + this._setCurrentAnchor(this.$anchors.first()); + if (this.options.parentClass) { this.$parent = this.$element.parents('.' + this.options.parentClass); } else { @@ -481,7 +482,7 @@ var Dropdown = function (_Positionable) { 'aria-hidden': 'true', 'data-yeti-box': $id, 'data-resize': $id, - 'aria-labelledby': this.$anchor[0].id || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__foundation_util_core__["GetYoDigits"])(6, 'dd-anchor') + 'aria-labelledby': this.$currentAnchor.id || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__foundation_util_core__["GetYoDigits"])(6, 'dd-anchor') }); _get(Dropdown.prototype.__proto__ || Object.getPrototypeOf(Dropdown.prototype), '_init', this).call(this); this._events(); @@ -501,7 +502,7 @@ var Dropdown = function (_Positionable) { key: '_getDefaultAlignment', value: function _getDefaultAlignment() { // handle legacy float approach - var horizontalPosition = /float-(\S+)/.exec(this.$anchor[0].className); + var horizontalPosition = /float-(\S+)/.exec(this.$currentAnchor.className); if (horizontalPosition) { return horizontalPosition[1]; } @@ -519,7 +520,21 @@ var Dropdown = function (_Positionable) { }, { key: '_setPosition', value: function _setPosition() { - _get(Dropdown.prototype.__proto__ || Object.getPrototypeOf(Dropdown.prototype), '_setPosition', this).call(this, this.$anchor, this.$element, this.$parent); + _get(Dropdown.prototype.__proto__ || Object.getPrototypeOf(Dropdown.prototype), '_setPosition', this).call(this, this.$currentAnchor, this.$element, this.$parent); + } + + /** + * Make it a current anchor. + * Current anchor as the reference for the position of Dropdown panes. + * @param {HTML} el - DOM element of the anchor. + * @function + * @private + */ + + }, { + key: '_setCurrentAnchor', + value: function _setCurrentAnchor(el) { + this.$currentAnchor = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(el); } /** @@ -539,21 +554,27 @@ var Dropdown = function (_Positionable) { 'resizeme.zf.trigger': this._setPosition.bind(this) }); + this.$anchors.off('click.zf.trigger').on('click.zf.trigger', function () { + _this._setCurrentAnchor(this); + }); + if (this.options.hover) { - this.$anchor.off('mouseenter.zf.dropdown mouseleave.zf.dropdown').on('mouseenter.zf.dropdown', function () { + this.$anchors.off('mouseenter.zf.dropdown mouseleave.zf.dropdown').on('mouseenter.zf.dropdown', function () { + _this._setCurrentAnchor(this); + var bodyData = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('body').data(); if (typeof bodyData.whatinput === 'undefined' || bodyData.whatinput === 'mouse') { clearTimeout(_this.timeout); _this.timeout = setTimeout(function () { _this.open(); - _this.$anchor.data('hover', true); + _this.$anchors.data('hover', true); }, _this.options.hoverDelay); } }).on('mouseleave.zf.dropdown', function () { clearTimeout(_this.timeout); _this.timeout = setTimeout(function () { _this.close(); - _this.$anchor.data('hover', false); + _this.$anchors.data('hover', false); }, _this.options.hoverDelay); }); if (this.options.hoverPane) { @@ -563,19 +584,19 @@ var Dropdown = function (_Positionable) { clearTimeout(_this.timeout); _this.timeout = setTimeout(function () { _this.close(); - _this.$anchor.data('hover', false); + _this.$anchors.data('hover', false); }, _this.options.hoverDelay); }); } } - this.$anchor.add(this.$element).on('keydown.zf.dropdown', function (e) { + this.$anchors.add(this.$element).on('keydown.zf.dropdown', function (e) { var $target = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(this), visibleFocusableElements = __WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].findFocusable(_this.$element); __WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].handleKey(e, 'Dropdown', { open: function () { - if ($target.is(_this.$anchor)) { + if ($target.is(_this.$anchors)) { _this.open(); _this.$element.attr('tabindex', -1).focus(); e.preventDefault(); @@ -583,7 +604,7 @@ var Dropdown = function (_Positionable) { }, close: function () { _this.close(); - _this.$anchor.focus(); + _this.$anchors.focus(); } }); }); @@ -601,7 +622,7 @@ var Dropdown = function (_Positionable) { var $body = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(document.body).not(this.$element), _this = this; $body.off('click.zf.dropdown').on('click.zf.dropdown', function (e) { - if (_this.$anchor.is(e.target) || _this.$anchor.find(e.target).length) { + if (_this.$anchors.is(e.target) || _this.$anchors.find(e.target).length) { return; } if (_this.$element.find(e.target).length) { @@ -628,7 +649,7 @@ var Dropdown = function (_Positionable) { * @event Dropdown#closeme */ this.$element.trigger('closeme.zf.dropdown', this.$element.attr('id')); - this.$anchor.addClass('hover').attr({ 'aria-expanded': true }); + this.$anchors.addClass('hover').attr({ 'aria-expanded': true }); // this.$element/*.show()*/; this.$element.addClass('is-opening'); @@ -671,7 +692,7 @@ var Dropdown = function (_Positionable) { } this.$element.removeClass('is-open').attr({ 'aria-hidden': true }); - this.$anchor.removeClass('hover').attr('aria-expanded', false); + this.$anchors.removeClass('hover').attr('aria-expanded', false); /** * Fires once the dropdown is no longer visible. @@ -693,7 +714,7 @@ var Dropdown = function (_Positionable) { key: 'toggle', value: function toggle() { if (this.$element.hasClass('is-open')) { - if (this.$anchor.data('hover')) return; + if (this.$anchors.data('hover')) return; this.close(); } else { this.open(); @@ -709,7 +730,7 @@ var Dropdown = function (_Positionable) { key: '_destroy', value: function _destroy() { this.$element.off('.zf.trigger').hide(); - this.$anchor.off('.zf.dropdown'); + this.$anchors.off('.zf.dropdown'); __WEBPACK_IMPORTED_MODULE_0_jquery___default()(document.body).off('click.zf.dropdown'); } }]); @@ -970,10 +991,9 @@ Triggers.Listeners.Global = { _this.triggerHandler('close.zf.trigger', [_this]); }); } -}; -// Global, parses whole document. -Triggers.Initializers.addClosemeListener = function (pluginName) { + // Global, parses whole document. +};Triggers.Initializers.addClosemeListener = function (pluginName) { var yetiBoxes = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-yeti-box]'), plugNames = ['dropdown', 'tooltip', 'reveal']; diff --git a/vendor/assets/js/foundation.dropdownMenu.js b/vendor/assets/js/foundation.dropdownMenu.js index ca2605b9..c3d88fb1 100644 --- a/vendor/assets/js/foundation.dropdownMenu.js +++ b/vendor/assets/js/foundation.dropdownMenu.js @@ -178,7 +178,6 @@ var DropdownMenu = function (_Plugin) { this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, DropdownMenu.defaults, this.$element.data(), options); this.className = 'DropdownMenu'; // ie9 back compat - __WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'dropdown'); this._init(); __WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].register('DropdownMenu', { @@ -201,6 +200,8 @@ var DropdownMenu = function (_Plugin) { }, { key: '_init', value: function _init() { + __WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'dropdown'); + var subs = this.$element.find('li.is-dropdown-submenu-parent'); this.$element.children('.is-dropdown-submenu-parent').children('.is-dropdown-submenu').addClass('first-sub'); @@ -332,10 +333,8 @@ var DropdownMenu = function (_Plugin) { }); var nextSibling = function () { - if (!$element.is(':last-child')) { - $nextElement.children('a:first').focus(); - e.preventDefault(); - } + $nextElement.children('a:first').focus(); + e.preventDefault(); }, prevSibling = function () { $prevElement.children('a:first').focus(); diff --git a/vendor/assets/js/foundation.offcanvas.js b/vendor/assets/js/foundation.offcanvas.js index 062d555c..da5d31ad 100644 --- a/vendor/assets/js/foundation.offcanvas.js +++ b/vendor/assets/js/foundation.offcanvas.js @@ -343,15 +343,17 @@ var OffCanvas = function (_Plugin) { /** * Removes the CSS transition/position classes of the off-canvas content container. * Removing the classes is important when another off-canvas gets opened that uses the same content container. + * @param {Boolean} hasReveal - true if related off-canvas element is revealed. * @private */ }, { key: '_removeContentClasses', value: function _removeContentClasses(hasReveal) { - this.$content.removeClass(this.contentClasses.base.join(' ')); - if (hasReveal === true) { - this.$content.removeClass(this.contentClasses.reveal.join(' ')); + if (typeof hasReveal !== 'boolean') { + this.$content.removeClass(this.contentClasses.base.join(' ')); + } else if (hasReveal === false) { + this.$content.removeClass('has-reveal-' + this.position); } } @@ -365,9 +367,10 @@ var OffCanvas = function (_Plugin) { }, { key: '_addContentClasses', value: function _addContentClasses(hasReveal) { - this._removeContentClasses(); - this.$content.addClass('has-transition-' + this.options.transition + ' has-position-' + this.position); - if (hasReveal === true) { + this._removeContentClasses(hasReveal); + if (typeof hasReveal !== 'boolean') { + this.$content.addClass('has-transition-' + this.options.transition + ' has-position-' + this.position); + } else if (hasReveal === true) { this.$content.addClass('has-reveal-' + this.position); } } @@ -898,10 +901,9 @@ Triggers.Listeners.Global = { _this.triggerHandler('close.zf.trigger', [_this]); }); } -}; -// Global, parses whole document. -Triggers.Initializers.addClosemeListener = function (pluginName) { + // Global, parses whole document. +};Triggers.Initializers.addClosemeListener = function (pluginName) { var yetiBoxes = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-yeti-box]'), plugNames = ['dropdown', 'tooltip', 'reveal']; diff --git a/vendor/assets/js/foundation.orbit.js b/vendor/assets/js/foundation.orbit.js index 66e6d856..94814ab8 100644 --- a/vendor/assets/js/foundation.orbit.js +++ b/vendor/assets/js/foundation.orbit.js @@ -346,7 +346,7 @@ var Orbit = function (_Plugin) { temp = this.getBoundingClientRect().height; __WEBPACK_IMPORTED_MODULE_0_jquery___default()(this).attr('data-slide', counter); - if (_this.$slides.filter('.is-active')[0] !== _this.$slides.eq(counter)[0]) { + if (!/mui/g.test(__WEBPACK_IMPORTED_MODULE_0_jquery___default()(this)[0].className) && _this.$slides.filter('.is-active')[0] !== _this.$slides.eq(counter)[0]) { //if not the active slide, set css position and display property __WEBPACK_IMPORTED_MODULE_0_jquery___default()(this).css({ 'position': 'relative', 'display': 'none' }); } diff --git a/vendor/assets/js/foundation.reveal.js b/vendor/assets/js/foundation.reveal.js index 82049e5c..ca13c2ba 100644 --- a/vendor/assets/js/foundation.reveal.js +++ b/vendor/assets/js/foundation.reveal.js @@ -912,10 +912,9 @@ Triggers.Listeners.Global = { _this.triggerHandler('close.zf.trigger', [_this]); }); } -}; -// Global, parses whole document. -Triggers.Initializers.addClosemeListener = function (pluginName) { + // Global, parses whole document. +};Triggers.Initializers.addClosemeListener = function (pluginName) { var yetiBoxes = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-yeti-box]'), plugNames = ['dropdown', 'tooltip', 'reveal']; diff --git a/vendor/assets/js/foundation.slider.js b/vendor/assets/js/foundation.slider.js index a1d4d59f..d6872fdb 100644 --- a/vendor/assets/js/foundation.slider.js +++ b/vendor/assets/js/foundation.slider.js @@ -396,6 +396,12 @@ var Slider = function (_Plugin) { var isDbl = this.options.doubleSided; + //this is for single-handled vertical sliders, it adjusts the value to account for the slider being "upside-down" + //for click and drag events, it's weird due to the scale(-1, 1) css property + if (this.options.vertical && !noInvert) { + location = this.options.end - location; + } + if (isDbl) { //this block is to prevent 2 handles from crossing eachother. Could/should be improved. if (this.handles.index($hndl) === 0) { @@ -407,12 +413,6 @@ var Slider = function (_Plugin) { } } - //this is for single-handled vertical sliders, it adjusts the value to account for the slider being "upside-down" - //for click and drag events, it's weird due to the scale(-1, 1) css property - if (this.options.vertical && !noInvert) { - location = this.options.end - location; - } - var _this = this, vert = this.options.vertical, hOrW = vert ? 'height' : 'width', @@ -1082,10 +1082,9 @@ Triggers.Listeners.Global = { _this.triggerHandler('close.zf.trigger', [_this]); }); } -}; -// Global, parses whole document. -Triggers.Initializers.addClosemeListener = function (pluginName) { + // Global, parses whole document. +};Triggers.Initializers.addClosemeListener = function (pluginName) { var yetiBoxes = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-yeti-box]'), plugNames = ['dropdown', 'tooltip', 'reveal']; diff --git a/vendor/assets/js/foundation.sticky.js b/vendor/assets/js/foundation.sticky.js index d1d5d7f4..9082ef41 100644 --- a/vendor/assets/js/foundation.sticky.js +++ b/vendor/assets/js/foundation.sticky.js @@ -847,10 +847,9 @@ Triggers.Listeners.Global = { _this.triggerHandler('close.zf.trigger', [_this]); }); } -}; -// Global, parses whole document. -Triggers.Initializers.addClosemeListener = function (pluginName) { + // Global, parses whole document. +};Triggers.Initializers.addClosemeListener = function (pluginName) { var yetiBoxes = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-yeti-box]'), plugNames = ['dropdown', 'tooltip', 'reveal']; diff --git a/vendor/assets/js/foundation.toggler.js b/vendor/assets/js/foundation.toggler.js index 5aa633fe..7085d856 100644 --- a/vendor/assets/js/foundation.toggler.js +++ b/vendor/assets/js/foundation.toggler.js @@ -448,10 +448,9 @@ Triggers.Listeners.Global = { _this.triggerHandler('close.zf.trigger', [_this]); }); } -}; -// Global, parses whole document. -Triggers.Initializers.addClosemeListener = function (pluginName) { + // Global, parses whole document. +};Triggers.Initializers.addClosemeListener = function (pluginName) { var yetiBoxes = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-yeti-box]'), plugNames = ['dropdown', 'tooltip', 'reveal']; diff --git a/vendor/assets/js/foundation.tooltip.js b/vendor/assets/js/foundation.tooltip.js index cb73a5b7..0a4500c6 100644 --- a/vendor/assets/js/foundation.tooltip.js +++ b/vendor/assets/js/foundation.tooltip.js @@ -1034,10 +1034,9 @@ Triggers.Listeners.Global = { _this.triggerHandler('close.zf.trigger', [_this]); }); } -}; -// Global, parses whole document. -Triggers.Initializers.addClosemeListener = function (pluginName) { + // Global, parses whole document. +};Triggers.Initializers.addClosemeListener = function (pluginName) { var yetiBoxes = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-yeti-box]'), plugNames = ['dropdown', 'tooltip', 'reveal']; diff --git a/vendor/assets/js/foundation.util.box.js b/vendor/assets/js/foundation.util.box.js index 3c0b8a4c..5dbf175e 100644 --- a/vendor/assets/js/foundation.util.box.js +++ b/vendor/assets/js/foundation.util.box.js @@ -122,19 +122,18 @@ var Box = { GetDimensions: GetDimensions, GetOffsets: GetOffsets, GetExplicitOffsets: GetExplicitOffsets -}; -/** - * Compares the dimensions of an element to a container and determines collision events with container. - * @function - * @param {jQuery} element - jQuery object to test for collisions. - * @param {jQuery} parent - jQuery object to use as bounding container. - * @param {Boolean} lrOnly - set to true to check left and right values only. - * @param {Boolean} tbOnly - set to true to check top and bottom values only. - * @default if no parent object passed, detects collisions with `window`. - * @returns {Boolean} - true if collision free, false if a collision in any direction. - */ -function ImNotTouchingYou(element, parent, lrOnly, tbOnly, ignoreBottom) { + /** + * Compares the dimensions of an element to a container and determines collision events with container. + * @function + * @param {jQuery} element - jQuery object to test for collisions. + * @param {jQuery} parent - jQuery object to use as bounding container. + * @param {Boolean} lrOnly - set to true to check left and right values only. + * @param {Boolean} tbOnly - set to true to check top and bottom values only. + * @default if no parent object passed, detects collisions with `window`. + * @returns {Boolean} - true if collision free, false if a collision in any direction. + */ +};function ImNotTouchingYou(element, parent, lrOnly, tbOnly, ignoreBottom) { return OverlapArea(element, parent, lrOnly, tbOnly, ignoreBottom) === 0; }; @@ -181,7 +180,7 @@ function OverlapArea(element, parent, lrOnly, tbOnly, ignoreBottom) { * @returns {Object} - nested object of integer pixel values * TODO - if element is window, return only those values. */ -function GetDimensions(elem, test) { +function GetDimensions(elem) { elem = elem.length ? elem[0] : elem; if (elem === window || elem === document) { diff --git a/vendor/assets/js/foundation.util.mediaQuery.js b/vendor/assets/js/foundation.util.mediaQuery.js index 376b37f2..2d4789d5 100644 --- a/vendor/assets/js/foundation.util.mediaQuery.js +++ b/vendor/assets/js/foundation.util.mediaQuery.js @@ -102,6 +102,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); __WEBPACK_IMPORTED_MODULE_0__foundation_core__["Foundation"].MediaQuery = __WEBPACK_IMPORTED_MODULE_1__foundation_util_mediaQuery__["a" /* MediaQuery */]; +__WEBPACK_IMPORTED_MODULE_0__foundation_core__["Foundation"].MediaQuery._init(); /***/ }), diff --git a/vendor/assets/js/foundation.util.triggers.js b/vendor/assets/js/foundation.util.triggers.js index 7ab950ea..160ce5c6 100644 --- a/vendor/assets/js/foundation.util.triggers.js +++ b/vendor/assets/js/foundation.util.triggers.js @@ -253,10 +253,9 @@ Triggers.Listeners.Global = { _this.triggerHandler('close.zf.trigger', [_this]); }); } -}; -// Global, parses whole document. -Triggers.Initializers.addClosemeListener = function (pluginName) { + // Global, parses whole document. +};Triggers.Initializers.addClosemeListener = function (pluginName) { var yetiBoxes = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-yeti-box]'), plugNames = ['dropdown', 'tooltip', 'reveal']; diff --git a/vendor/assets/scss/_global.scss b/vendor/assets/scss/_global.scss index e161a874..18152fed 100644 --- a/vendor/assets/scss/_global.scss +++ b/vendor/assets/scss/_global.scss @@ -109,6 +109,10 @@ $global-flexbox: true !default; /// @type Boolean $global-prototype-breakpoints: false !default; +/// Button cursor's value, `auto` by default +/// @type Keyword +$global-button-cursor: auto !default; + @if not map-has-key($foundation-palette, primary) { @error 'In $foundation-palette, you must have a color named "primary".'; } @@ -205,15 +209,13 @@ $alert-color: get-color(alert); // Reset