updated Uikit v2

This commit is contained in:
2017-11-12 02:33:10 +02:00
parent 7d27af5d59
commit 1cc40dbfe4
437 changed files with 9171 additions and 5797 deletions

View File

@@ -1,4 +1,4 @@
/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
/*! UIkit 2.27.4 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(UI) {
"use strict";
@@ -8,9 +8,10 @@
UI.component('gridMatchHeight', {
defaults: {
"target" : false,
"row" : true,
"ignorestacked" : false
target : false,
row : true,
ignorestacked : false,
observe : false
},
boot: function() {
@@ -18,11 +19,11 @@
// init code
UI.ready(function(context) {
UI.$("[data-uk-grid-match]", context).each(function() {
UI.$('[data-uk-grid-match]', context).each(function() {
var grid = UI.$(this), obj;
if (!grid.data("gridMatchHeight")) {
obj = UI.gridMatchHeight(grid, UI.Utils.options(grid.attr("data-uk-grid-match")));
if (!grid.data('gridMatchHeight')) {
obj = UI.gridMatchHeight(grid, UI.Utils.options(grid.attr('data-uk-grid-match')));
}
});
});
@@ -40,7 +41,7 @@
UI.$win.on('load resize orientationchange', (function() {
var fn = function() {
$this.match();
if ($this.element.is(':visible')) $this.match();
};
UI.$(function() { fn(); });
@@ -48,14 +49,15 @@
return UI.Utils.debounce(fn, 50);
})());
UI.$html.on("changed.uk.dom", function(e) {
$this.columns = $this.element.children();
$this.elements = $this.options.target ? $this.find($this.options.target) : $this.columns;
$this.match();
});
if (this.options.observe) {
this.on("display.uk.check", function(e) {
if(this.element.is(":visible")) this.match();
UI.domObserve(this.element, function(e) {
if ($this.element.is(':visible')) $this.match();
});
}
this.on('display.uk.check', function(e) {
if(this.element.is(':visible')) this.match();
}.bind(this));
grids.push(this);
@@ -63,7 +65,7 @@
match: function() {
var firstvisible = this.columns.filter(":visible:first");
var firstvisible = this.columns.filter(':visible:first');
if (!firstvisible.length) return;
@@ -96,11 +98,11 @@
// init code
UI.ready(function(context) {
UI.$("[data-uk-grid-margin]", context).each(function() {
UI.$('[data-uk-grid-margin]', context).each(function() {
var grid = UI.$(this), obj;
if (!grid.data("gridMargin")) {
obj = UI.gridMargin(grid, UI.Utils.options(grid.attr("data-uk-grid-margin")));
if (!grid.data('gridMargin')) {
obj = UI.gridMargin(grid, UI.Utils.options(grid.attr('data-uk-grid-margin')));
}
});
});
@@ -112,4 +114,4 @@
}
});
})(UIkit);
})(UIkit2);