uikit2-rails 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uikit2/rails/version.rb +1 -1
- data/vendor/assets/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/vendor/assets/javascripts/uikit/components/accordion.js +1 -1
- data/vendor/assets/javascripts/uikit/components/autocomplete.js +1 -1
- data/vendor/assets/javascripts/uikit/components/datepicker.js +1 -1
- data/vendor/assets/javascripts/uikit/components/form-password.js +1 -1
- data/vendor/assets/javascripts/uikit/components/form-select.js +1 -1
- data/vendor/assets/javascripts/uikit/components/grid.js +1 -1
- data/vendor/assets/javascripts/uikit/components/htmleditor.js +1 -1
- data/vendor/assets/javascripts/uikit/components/lightbox.js +1 -1
- data/vendor/assets/javascripts/uikit/components/nestable.js +1 -1
- data/vendor/assets/javascripts/uikit/components/notify.js +1 -1
- data/vendor/assets/javascripts/uikit/components/pagination.js +1 -1
- data/vendor/assets/javascripts/uikit/components/parallax.js +4 -4
- data/vendor/assets/javascripts/uikit/components/search.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slider.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slideset.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slideshow-fx.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slideshow.js +11 -4
- data/vendor/assets/javascripts/uikit/components/sortable.js +2 -2
- data/vendor/assets/javascripts/uikit/components/sticky.js +14 -8
- data/vendor/assets/javascripts/uikit/components/timepicker.js +1 -1
- data/vendor/assets/javascripts/uikit/components/tooltip.js +1 -1
- data/vendor/assets/javascripts/uikit/components/upload.js +1 -1
- data/vendor/assets/javascripts/uikit/core/alert.js +1 -1
- data/vendor/assets/javascripts/uikit/core/button.js +1 -1
- data/vendor/assets/javascripts/uikit/core/core.js +2 -2
- data/vendor/assets/javascripts/uikit/core/cover.js +1 -1
- data/vendor/assets/javascripts/uikit/core/dropdown.js +4 -1
- data/vendor/assets/javascripts/uikit/core/grid.js +1 -1
- data/vendor/assets/javascripts/uikit/core/modal.js +10 -7
- data/vendor/assets/javascripts/uikit/core/nav.js +1 -1
- data/vendor/assets/javascripts/uikit/core/offcanvas.js +1 -1
- data/vendor/assets/javascripts/uikit/core/scrollspy.js +2 -2
- data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +1 -1
- data/vendor/assets/javascripts/uikit/core/switcher.js +1 -1
- data/vendor/assets/javascripts/uikit/core/tab.js +1 -1
- data/vendor/assets/javascripts/uikit/core/toggle.js +1 -1
- data/vendor/assets/javascripts/uikit/core/touch.js +1 -1
- data/vendor/assets/javascripts/uikit/core/utility.js +2 -2
- data/vendor/assets/stylesheets/uikit.almost-flat.css +68 -1
- data/vendor/assets/stylesheets/uikit.css +68 -1
- data/vendor/assets/stylesheets/uikit.gradient.css +68 -1
- data/vendor/assets/stylesheets/uikit/components/accordion.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/accordion.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/accordion.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/autocomplete.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/autocomplete.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/autocomplete.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/datepicker.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/datepicker.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/datepicker.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/dotnav.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/dotnav.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/dotnav.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-advanced.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-advanced.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-advanced.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-file.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-file.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-file.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-password.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-password.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-password.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-select.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-select.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-select.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/htmleditor.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/htmleditor.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/htmleditor.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/nestable.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/nestable.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/nestable.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/notify.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/notify.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/notify.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/placeholder.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/placeholder.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/placeholder.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/progress.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/progress.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/progress.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/search.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/search.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/search.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slidenav.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slidenav.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slidenav.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slider.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slider.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slider.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slideshow.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slideshow.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slideshow.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sortable.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sortable.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sortable.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sticky.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sticky.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sticky.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/tooltip.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/tooltip.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/tooltip.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/upload.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/upload.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/upload.gradient.css +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35f43cc4e5b412a795a8e22dc80163c482dbd1ff
|
4
|
+
data.tar.gz: 9e8fcc6a21ded31e21caf2581d4dc51adf2c52a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01ae5bf83dbe1ca0308e3ccf8d9c1c258c07e61d2355866cd0a70528a838786986d1c72dd9d025c52c7aadddb2b0ff4cdfd7f5faa16912a2c4123f0b164a2301
|
7
|
+
data.tar.gz: 5e13121840a9ce05d2a9ddad20032735a86ef81c8902f3e41e057b3074811a468f0dbfc6f9b09c301d8bf64337fad449e8dc8de7778220a16a05e24d7669ce5e
|
data/lib/uikit2/rails/version.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.24.
|
1
|
+
/*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
/*
|
3
3
|
* Based on simplePagination - Copyright (c) 2012 Flavius Matis - http://flaviusmatis.github.com/simplePagination.js/ (MIT)
|
4
4
|
*/
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.24.
|
1
|
+
/*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -239,9 +239,9 @@
|
|
239
239
|
case "bg":
|
240
240
|
|
241
241
|
// don't move if image height is too small
|
242
|
-
if ($this.element.data('bgsize') && ($this.element.data('bgsize').h + val - window.innerHeight) < 0) {
|
243
|
-
|
244
|
-
}
|
242
|
+
// if ($this.element.data('bgsize') && ($this.element.data('bgsize').h + val - window.innerHeight) < 0) {
|
243
|
+
// break;
|
244
|
+
// }
|
245
245
|
|
246
246
|
css['background-position'] = '50% '+val+'px';
|
247
247
|
break;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.24.
|
1
|
+
/*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -105,7 +105,14 @@
|
|
105
105
|
|
106
106
|
var cover = UI.$('<div class="uk-cover-background uk-position-cover"></div>').css({'background-image':'url('+ media.attr('src') + ')'});
|
107
107
|
|
108
|
-
media.
|
108
|
+
if (media.attr('width') && media.attr('height')) {
|
109
|
+
placeholder = UI.$('<canvas></canvas>').attr({width:media.attr('width'), height:media.attr('height')});
|
110
|
+
media.replaceWith(placeholder);
|
111
|
+
media = placeholder;
|
112
|
+
placeholder = undefined;
|
113
|
+
}
|
114
|
+
|
115
|
+
media.css({width: '100%',height: 'auto', opacity:0});
|
109
116
|
slide.prepend(cover).data('cover', cover);
|
110
117
|
break;
|
111
118
|
|
@@ -347,11 +354,11 @@
|
|
347
354
|
},
|
348
355
|
|
349
356
|
next: function() {
|
350
|
-
this.show(this.slides[this.current + 1] ? (this.current + 1) : 0);
|
357
|
+
this.show(this.slides[this.current + 1] ? (this.current + 1) : 0, 1);
|
351
358
|
},
|
352
359
|
|
353
360
|
previous: function() {
|
354
|
-
this.show(this.slides[this.current - 1] ? (this.current - 1) : (this.slides.length - 1));
|
361
|
+
this.show(this.slides[this.current - 1] ? (this.current - 1) : (this.slides.length - 1), -1);
|
355
362
|
},
|
356
363
|
|
357
364
|
start: function() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.24.
|
1
|
+
/*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
/*
|
3
3
|
* Based on nativesortable - Copyright (c) Brian Grinstead - https://github.com/bgrins/nativesortable
|
4
4
|
*/
|
@@ -386,7 +386,7 @@
|
|
386
386
|
|
387
387
|
dragMove: function(e, elem) {
|
388
388
|
|
389
|
-
overElement = UI.$(document.elementFromPoint(e.pageX - document.body.scrollLeft, e.pageY - document.body.scrollTop));
|
389
|
+
overElement = UI.$(document.elementFromPoint(e.pageX - (document.body.scrollLeft || document.scrollLeft || 0), e.pageY - (document.body.scrollTop || document.documentElement.scrollTop || 0)));
|
390
390
|
|
391
391
|
var overRoot = overElement.closest('.'+this.options.baseClass),
|
392
392
|
groupOver = overRoot.data("sortable-group"),
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.24.
|
1
|
+
/*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -53,8 +53,8 @@
|
|
53
53
|
if (!sticked.length) return;
|
54
54
|
|
55
55
|
for (var i = 0; i < sticked.length; i++) {
|
56
|
-
|
57
|
-
sticked[i].self.computeWrapper();
|
56
|
+
sticked[i].reset(true);
|
57
|
+
//sticked[i].self.computeWrapper();
|
58
58
|
}
|
59
59
|
|
60
60
|
checkscrollposition();
|
@@ -106,7 +106,7 @@
|
|
106
106
|
currentTop : null,
|
107
107
|
wrapper : this.wrapper,
|
108
108
|
init : false,
|
109
|
-
getWidthFrom : this.options.getWidthFrom || this.wrapper,
|
109
|
+
getWidthFrom : UI.$(this.options.getWidthFrom || this.wrapper),
|
110
110
|
boundary : boundary,
|
111
111
|
boundtoparent : boundtoparent,
|
112
112
|
top : 0,
|
@@ -237,6 +237,12 @@
|
|
237
237
|
'float' : this.element.css('float') != 'none' ? this.element.css('float') : '',
|
238
238
|
'margin' : this.element.css('margin')
|
239
239
|
});
|
240
|
+
|
241
|
+
if (this.element.css('position') == 'fixed') {
|
242
|
+
this.element.css({
|
243
|
+
width: this.sticky.getWidthFrom.length ? this.sticky.getWidthFrom.width() : this.element.width()
|
244
|
+
});
|
245
|
+
}
|
240
246
|
}
|
241
247
|
});
|
242
248
|
|
@@ -294,10 +300,10 @@
|
|
294
300
|
if (sticky.currentTop != newTop) {
|
295
301
|
|
296
302
|
sticky.element.css({
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
303
|
+
position : "fixed",
|
304
|
+
top : newTop,
|
305
|
+
width : sticky.getWidthFrom.length ? sticky.getWidthFrom.width() : sticky.element.width(),
|
306
|
+
left : sticky.wrapper.offset().left
|
301
307
|
});
|
302
308
|
|
303
309
|
if (!sticky.init) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.24.
|
1
|
+
/*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(core) {
|
3
3
|
|
4
4
|
if (typeof define == "function" && define.amd) { // AMD
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
var UI = {}, _UI = global.UIkit ? Object.create(global.UIkit) : undefined;
|
46
46
|
|
47
|
-
UI.version = '2.24.
|
47
|
+
UI.version = '2.24.2';
|
48
48
|
|
49
49
|
UI.noConflict = function() {
|
50
50
|
// restore UIkit version
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.24.
|
1
|
+
/*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(UI) {
|
3
3
|
|
4
4
|
"use strict";
|
@@ -190,6 +190,9 @@
|
|
190
190
|
}
|
191
191
|
|
192
192
|
if (active && active == $this) {
|
193
|
+
if (!$this.dropdown.find(e.target).length || $target.is(".uk-dropdown-close") || $target.parents(".uk-dropdown-close").length) {
|
194
|
+
$this.hide();
|
195
|
+
}
|
193
196
|
return;
|
194
197
|
}
|
195
198
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.24.
|
1
|
+
/*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(UI) {
|
3
3
|
|
4
4
|
"use strict";
|
@@ -144,14 +144,17 @@
|
|
144
144
|
|
145
145
|
if (scrollable.length) {
|
146
146
|
|
147
|
-
scrollable.css(
|
147
|
+
scrollable.css('height', 0);
|
148
148
|
|
149
|
-
var offset = Math.abs(parseInt(this.dialog.css(
|
149
|
+
var offset = Math.abs(parseInt(this.dialog.css('margin-top'), 10)),
|
150
150
|
dh = this.dialog.outerHeight(),
|
151
151
|
wh = window.innerHeight,
|
152
152
|
h = wh - 2*(offset < 20 ? 20:offset) - dh;
|
153
153
|
|
154
|
-
scrollable.css(
|
154
|
+
scrollable.css({
|
155
|
+
'max-height': (h < this.options.minScrollHeight ? '':h),
|
156
|
+
'height':''
|
157
|
+
});
|
155
158
|
|
156
159
|
return true;
|
157
160
|
}
|
@@ -165,19 +168,19 @@
|
|
165
168
|
if (activeCount > 0) activeCount--;
|
166
169
|
else activeCount = 0;
|
167
170
|
|
168
|
-
this.element.hide().removeClass(
|
171
|
+
this.element.hide().removeClass('uk-open');
|
169
172
|
|
170
173
|
// Update ARIA
|
171
174
|
this.element.attr('aria-hidden', 'true');
|
172
175
|
|
173
176
|
if (!activeCount) {
|
174
|
-
$html.removeClass(
|
177
|
+
$html.removeClass('uk-modal-page');
|
175
178
|
body.css(this.paddingdir, "");
|
176
179
|
}
|
177
180
|
|
178
181
|
if(active===this) active = false;
|
179
182
|
|
180
|
-
this.trigger(
|
183
|
+
this.trigger('hide.uk.modal');
|
181
184
|
},
|
182
185
|
|
183
186
|
isActive: function() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.24.
|
1
|
+
/*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(UI) {
|
3
3
|
|
4
4
|
"use strict";
|
@@ -179,7 +179,7 @@
|
|
179
179
|
if (!target) return;
|
180
180
|
|
181
181
|
if ($this.options.closest) {
|
182
|
-
links.closest(clsClosest).removeClass(clsActive);
|
182
|
+
links.blur().closest(clsClosest).removeClass(clsActive);
|
183
183
|
navitems = links.filter("a[href='#"+target.attr("id")+"']").closest(clsClosest).addClass(clsActive);
|
184
184
|
} else {
|
185
185
|
navitems = links.removeClass(clsActive).filter("a[href='#"+target.attr("id")+"']").addClass(clsActive);
|