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";
@@ -6,21 +6,21 @@
UI.component('alert', {
defaults: {
"fade": true,
"duration": 200,
"trigger": ".uk-alert-close"
fade: true,
duration: 200,
trigger: '.uk-alert-close'
},
boot: function() {
// init code
UI.$html.on("click.alert.uikit", "[data-uk-alert]", function(e) {
UI.$html.on('click.alert.uikit', '[data-uk-alert]', function(e) {
var ele = UI.$(this);
if (!ele.data("alert")) {
if (!ele.data('alert')) {
var alert = UI.alert(ele, UI.Utils.options(ele.attr("data-uk-alert")));
var alert = UI.alert(ele, UI.Utils.options(ele.attr('data-uk-alert')));
if (UI.$(e.target).is(alert.options.trigger)) {
e.preventDefault();
@@ -34,7 +34,7 @@
var $this = this;
this.on("click", this.options.trigger, function(e) {
this.on('click', this.options.trigger, function(e) {
e.preventDefault();
$this.close();
});
@@ -42,19 +42,19 @@
close: function() {
var element = this.trigger("close.uk.alert"),
var element = this.trigger('close.uk.alert'),
removeElement = function () {
this.trigger("closed.uk.alert").remove();
this.trigger('closed.uk.alert').remove();
}.bind(this);
if (this.options.fade) {
element.css("overflow", "hidden").css("max-height", element.height()).animate({
"height" : 0,
"opacity" : 0,
"padding-top" : 0,
"padding-bottom" : 0,
"margin-top" : 0,
"margin-bottom" : 0
element.css('overflow', 'hidden').css("max-height", element.height()).animate({
height : 0,
opacity : 0,
paddingTop : 0,
paddingBottom : 0,
marginTop : 0,
marginBottom : 0
}, this.options.duration, removeElement);
} else {
removeElement();
@@ -63,4 +63,4 @@
});
})(UIkit);
})(UIkit2);