fomantic-ui-sass 2.8.8 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/app/assets/fonts/semantic-ui/brand-icons.eot +0 -0
- data/app/assets/fonts/semantic-ui/brand-icons.svg +41 -6
- data/app/assets/fonts/semantic-ui/brand-icons.ttf +0 -0
- data/app/assets/fonts/semantic-ui/brand-icons.woff +0 -0
- data/app/assets/fonts/semantic-ui/brand-icons.woff2 +0 -0
- data/app/assets/fonts/semantic-ui/icons.eot +0 -0
- data/app/assets/fonts/semantic-ui/icons.svg +245 -7
- data/app/assets/fonts/semantic-ui/icons.ttf +0 -0
- data/app/assets/fonts/semantic-ui/icons.woff +0 -0
- data/app/assets/fonts/semantic-ui/icons.woff2 +0 -0
- data/app/assets/fonts/semantic-ui/outline-icons.eot +0 -0
- data/app/assets/fonts/semantic-ui/outline-icons.svg +2 -2
- data/app/assets/fonts/semantic-ui/outline-icons.ttf +0 -0
- data/app/assets/fonts/semantic-ui/outline-icons.woff +0 -0
- data/app/assets/fonts/semantic-ui/outline-icons.woff2 +0 -0
- data/app/assets/javascripts/semantic-ui/accordion.js +9 -3
- data/app/assets/javascripts/semantic-ui/api.js +92 -33
- data/app/assets/javascripts/semantic-ui/calendar.js +200 -82
- data/app/assets/javascripts/semantic-ui/checkbox.js +20 -13
- data/app/assets/javascripts/semantic-ui/dimmer.js +24 -9
- data/app/assets/javascripts/semantic-ui/dropdown.js +250 -205
- data/app/assets/javascripts/semantic-ui/embed.js +13 -9
- data/app/assets/javascripts/semantic-ui/flyout.js +1530 -0
- data/app/assets/javascripts/semantic-ui/form.js +47 -41
- data/app/assets/javascripts/semantic-ui/modal.js +187 -83
- data/app/assets/javascripts/semantic-ui/nag.js +2 -2
- data/app/assets/javascripts/semantic-ui/popup.js +16 -22
- data/app/assets/javascripts/semantic-ui/progress.js +7 -4
- data/app/assets/javascripts/semantic-ui/rating.js +7 -3
- data/app/assets/javascripts/semantic-ui/search.js +47 -20
- data/app/assets/javascripts/semantic-ui/shape.js +3 -3
- data/app/assets/javascripts/semantic-ui/sidebar.js +140 -43
- data/app/assets/javascripts/semantic-ui/site.js +1 -1
- data/app/assets/javascripts/semantic-ui/slider.js +78 -63
- data/app/assets/javascripts/semantic-ui/state.js +2 -2
- data/app/assets/javascripts/semantic-ui/sticky.js +30 -19
- data/app/assets/javascripts/semantic-ui/tab.js +24 -6
- data/app/assets/javascripts/semantic-ui/toast.js +67 -33
- data/app/assets/javascripts/semantic-ui/transition.js +27 -22
- data/app/assets/javascripts/semantic-ui/visibility.js +5 -5
- data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/collections/_form.scss +160 -83
- data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +25 -21
- data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +110 -78
- data/app/assets/stylesheets/semantic-ui/collections/_message.scss +43 -43
- data/app/assets/stylesheets/semantic-ui/collections/_table.scss +1684 -272
- data/app/assets/stylesheets/semantic-ui/elements/_button.scss +204 -157
- data/app/assets/stylesheets/semantic-ui/elements/_container.scss +98 -4
- data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +31 -31
- data/app/assets/stylesheets/semantic-ui/elements/_emoji.scss +10799 -8841
- data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +1021 -915
- data/app/assets/stylesheets/semantic-ui/elements/_header.scss +6 -4
- data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +2110 -2061
- data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_input.scss +759 -22
- data/app/assets/stylesheets/semantic-ui/elements/_label.scss +72 -68
- data/app/assets/stylesheets/semantic-ui/elements/_list.scss +31 -31
- data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +352 -352
- data/app/assets/stylesheets/semantic-ui/elements/_placeholder.scss +33 -33
- data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +118 -34
- data/app/assets/stylesheets/semantic-ui/elements/_step.scss +32 -32
- data/app/assets/stylesheets/semantic-ui/elements/_text.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +5 -4
- data/app/assets/stylesheets/semantic-ui/globals/_site.scss +139 -42
- data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +177 -37
- data/app/assets/stylesheets/semantic-ui/modules/_calendar.scss +18 -1
- data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +93 -92
- data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +33 -18
- data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +101 -51
- data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +5 -5
- data/app/assets/stylesheets/semantic-ui/modules/_flyout.scss +592 -0
- data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +37 -6
- data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +103 -105
- data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +7 -46
- data/app/assets/stylesheets/semantic-ui/modules/_search.scss +6 -6
- data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +23 -9
- data/app/assets/stylesheets/semantic-ui/modules/_slider.scss +17 -17
- data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +5 -5
- data/app/assets/stylesheets/semantic-ui/modules/_toast.scss +49 -1
- data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_ad.scss +4 -4
- data/app/assets/stylesheets/semantic-ui/views/_card.scss +754 -117
- data/app/assets/stylesheets/semantic-ui/views/_comment.scss +12 -12
- data/app/assets/stylesheets/semantic-ui/views/_feed.scss +29 -29
- data/app/assets/stylesheets/semantic-ui/views/_item.scss +17 -17
- data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +4 -4
- data/fomantic-ui-sass.gemspec +1 -1
- data/lib/fomantic/ui/sass/version.rb +2 -2
- metadata +9 -7
@@ -28,6 +28,7 @@ $.fn.sidebar = function(parameters) {
|
|
28
28
|
$allModules = $(this),
|
29
29
|
$window = $(window),
|
30
30
|
$document = $(document),
|
31
|
+
$body = $('body'),
|
31
32
|
$html = $('html'),
|
32
33
|
$head = $('head'),
|
33
34
|
|
@@ -66,7 +67,8 @@ $.fn.sidebar = function(parameters) {
|
|
66
67
|
moduleNamespace = 'module-' + namespace,
|
67
68
|
|
68
69
|
$module = $(this),
|
69
|
-
$context = $(settings.context),
|
70
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $body,
|
71
|
+
isBody = $context[0] === $body[0],
|
70
72
|
|
71
73
|
$sidebars = $module.children(selector.sidebar),
|
72
74
|
$fixed = $context.children(selector.fixed),
|
@@ -80,6 +82,9 @@ $.fn.sidebar = function(parameters) {
|
|
80
82
|
id,
|
81
83
|
currentScroll,
|
82
84
|
transitionEvent,
|
85
|
+
initialBodyMargin = '',
|
86
|
+
tempBodyMargin = '',
|
87
|
+
hadScrollbar = false,
|
83
88
|
|
84
89
|
module
|
85
90
|
;
|
@@ -118,7 +123,7 @@ $.fn.sidebar = function(parameters) {
|
|
118
123
|
|
119
124
|
create: {
|
120
125
|
id: function() {
|
121
|
-
id = (Math.random().toString(16) + '000000000').
|
126
|
+
id = (Math.random().toString(16) + '000000000').slice(2, 10);
|
122
127
|
elementNamespace = '.' + id;
|
123
128
|
module.verbose('Creating unique id for element', id);
|
124
129
|
}
|
@@ -185,9 +190,12 @@ $.fn.sidebar = function(parameters) {
|
|
185
190
|
scrollLock: function() {
|
186
191
|
if(settings.scrollLock) {
|
187
192
|
module.debug('Disabling page scroll');
|
188
|
-
|
189
|
-
|
190
|
-
|
193
|
+
hadScrollbar = module.has.scrollbar();
|
194
|
+
if(hadScrollbar) {
|
195
|
+
module.save.bodyMargin();
|
196
|
+
module.set.bodyMargin();
|
197
|
+
}
|
198
|
+
$context.addClass(className.locked);
|
191
199
|
}
|
192
200
|
module.verbose('Adding events to contain sidebar scroll');
|
193
201
|
$document
|
@@ -205,8 +213,11 @@ $.fn.sidebar = function(parameters) {
|
|
205
213
|
},
|
206
214
|
scrollLock: function() {
|
207
215
|
module.verbose('Removing scroll lock from page');
|
216
|
+
if(hadScrollbar) {
|
217
|
+
module.restore.bodyMargin();
|
218
|
+
}
|
219
|
+
$context.removeClass(className.locked);
|
208
220
|
$document.off(elementNamespace);
|
209
|
-
$window.off(elementNamespace);
|
210
221
|
$module.off('scroll' + eventNamespace);
|
211
222
|
}
|
212
223
|
},
|
@@ -261,7 +272,7 @@ $.fn.sidebar = function(parameters) {
|
|
261
272
|
if(direction === 'left' || direction === 'right') {
|
262
273
|
module.debug('Adding CSS rules for animation distance', width);
|
263
274
|
style += ''
|
264
|
-
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher
|
275
|
+
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
|
265
276
|
+ ' -webkit-transform: translate3d('+ distance[direction] + 'px, 0, 0);'
|
266
277
|
+ ' transform: translate3d('+ distance[direction] + 'px, 0, 0);'
|
267
278
|
+ ' }'
|
@@ -269,7 +280,7 @@ $.fn.sidebar = function(parameters) {
|
|
269
280
|
}
|
270
281
|
else if(direction === 'top' || direction == 'bottom') {
|
271
282
|
style += ''
|
272
|
-
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher
|
283
|
+
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
|
273
284
|
+ ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
274
285
|
+ ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
275
286
|
+ ' }'
|
@@ -277,8 +288,8 @@ $.fn.sidebar = function(parameters) {
|
|
277
288
|
}
|
278
289
|
/* opposite sides visible forces content overlay */
|
279
290
|
style += ''
|
280
|
-
+ ' body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher
|
281
|
-
+ ' body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher
|
291
|
+
+ ' body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher::after,'
|
292
|
+
+ ' body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher::after {'
|
282
293
|
+ ' -webkit-transform: translate3d(0, 0, 0);'
|
283
294
|
+ ' transform: translate3d(0, 0, 0);'
|
284
295
|
+ ' }'
|
@@ -294,8 +305,8 @@ $.fn.sidebar = function(parameters) {
|
|
294
305
|
|
295
306
|
refresh: function() {
|
296
307
|
module.verbose('Refreshing selector cache');
|
297
|
-
$context = $(settings.context);
|
298
|
-
|
308
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $body;
|
309
|
+
module.refreshSidebars();
|
299
310
|
$pusher = $context.children(selector.pusher);
|
300
311
|
$fixed = $context.children(selector.fixed);
|
301
312
|
module.clear.cache();
|
@@ -364,14 +375,32 @@ $.fn.sidebar = function(parameters) {
|
|
364
375
|
module.error(error.notFound, selector);
|
365
376
|
}
|
366
377
|
},
|
367
|
-
|
378
|
+
can: {
|
379
|
+
leftBodyScrollbar: function () {
|
380
|
+
if (module.cache.leftBodyScrollbar === undefined) {
|
381
|
+
module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari() || module.is.edge() || module.is.ie());
|
382
|
+
}
|
383
|
+
return module.cache.leftBodyScrollbar;
|
384
|
+
}
|
385
|
+
},
|
386
|
+
save: {
|
387
|
+
bodyMargin: function() {
|
388
|
+
initialBodyMargin = $context.css((isBody ? 'margin-':'padding-')+(module.can.leftBodyScrollbar() ? 'left':'right'));
|
389
|
+
var bodyMarginRightPixel = parseInt(initialBodyMargin.replace(/[^\d.]/g, '')),
|
390
|
+
bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth;
|
391
|
+
tempBodyMargin = bodyMarginRightPixel + bodyScrollbarWidth;
|
392
|
+
}
|
393
|
+
},
|
368
394
|
show: function(callback) {
|
369
395
|
callback = $.isFunction(callback)
|
370
396
|
? callback
|
371
397
|
: function(){}
|
372
398
|
;
|
373
399
|
if(module.is.hidden()) {
|
374
|
-
|
400
|
+
if(settings.onShow.call(element) === false) {
|
401
|
+
module.verbose('Show callback returned false cancelling show');
|
402
|
+
return;
|
403
|
+
}
|
375
404
|
if(settings.overlay) {
|
376
405
|
module.error(error.overlay);
|
377
406
|
settings.transition = 'overlay';
|
@@ -393,12 +422,12 @@ $.fn.sidebar = function(parameters) {
|
|
393
422
|
settings.transition = 'overlay';
|
394
423
|
}
|
395
424
|
}
|
425
|
+
module.set.dimmerStyles();
|
396
426
|
module.pushPage(function() {
|
397
427
|
callback.call(element);
|
398
|
-
settings.
|
428
|
+
settings.onVisible.call(element);
|
399
429
|
});
|
400
430
|
settings.onChange.call(element);
|
401
|
-
settings.onVisible.call(element);
|
402
431
|
}
|
403
432
|
else {
|
404
433
|
module.debug('Sidebar is already visible');
|
@@ -410,7 +439,7 @@ $.fn.sidebar = function(parameters) {
|
|
410
439
|
? callback
|
411
440
|
: function(){}
|
412
441
|
;
|
413
|
-
if(module.is.visible() || module.is.animating()) {
|
442
|
+
if((module.is.visible() || module.is.animating()) && settings.onHide.call(element) !== false) {
|
414
443
|
module.debug('Hiding sidebar', callback);
|
415
444
|
module.refreshSidebars();
|
416
445
|
module.pullPage(function() {
|
@@ -418,7 +447,6 @@ $.fn.sidebar = function(parameters) {
|
|
418
447
|
settings.onHidden.call(element);
|
419
448
|
});
|
420
449
|
settings.onChange.call(element);
|
421
|
-
settings.onHide.call(element);
|
422
450
|
}
|
423
451
|
},
|
424
452
|
|
@@ -473,9 +501,13 @@ $.fn.sidebar = function(parameters) {
|
|
473
501
|
? callback
|
474
502
|
: function(){}
|
475
503
|
;
|
476
|
-
if(settings.
|
504
|
+
if(settings.returnScroll) {
|
505
|
+
currentScroll = (isBody ? $window : $context).scrollTop();
|
506
|
+
}
|
507
|
+
if(settings.transition === 'scale down') {
|
477
508
|
module.scrollToTop();
|
478
509
|
}
|
510
|
+
module.bind.scrollLock();
|
479
511
|
module.set.transition(transition);
|
480
512
|
module.repaint();
|
481
513
|
animate = function() {
|
@@ -491,7 +523,6 @@ $.fn.sidebar = function(parameters) {
|
|
491
523
|
if( event.target == $transition[0] ) {
|
492
524
|
$transition.off(transitionEvent + elementNamespace, transitionEnd);
|
493
525
|
module.remove.animating();
|
494
|
-
module.bind.scrollLock();
|
495
526
|
callback.call(element);
|
496
527
|
}
|
497
528
|
};
|
@@ -524,20 +555,24 @@ $.fn.sidebar = function(parameters) {
|
|
524
555
|
animate = function() {
|
525
556
|
module.set.transition(transition);
|
526
557
|
module.set.animating();
|
527
|
-
module.remove.visible();
|
528
558
|
if(settings.dimPage && !module.othersVisible()) {
|
529
|
-
|
559
|
+
module.set.closing();
|
530
560
|
}
|
561
|
+
module.remove.visible();
|
531
562
|
};
|
532
563
|
transitionEnd = function(event) {
|
533
564
|
if( event.target == $transition[0] ) {
|
534
565
|
$transition.off(transitionEvent + elementNamespace, transitionEnd);
|
535
566
|
module.remove.animating();
|
567
|
+
module.remove.closing();
|
536
568
|
module.remove.transition();
|
537
569
|
module.remove.inlineCSS();
|
538
|
-
if(transition
|
570
|
+
if(transition === 'scale down' || settings.returnScroll) {
|
539
571
|
module.scrollBack();
|
540
572
|
}
|
573
|
+
if(settings.dimPage && !module.othersVisible()) {
|
574
|
+
$pusher.removeClass(className.dimmed);
|
575
|
+
}
|
541
576
|
callback.call(element);
|
542
577
|
}
|
543
578
|
};
|
@@ -548,14 +583,13 @@ $.fn.sidebar = function(parameters) {
|
|
548
583
|
|
549
584
|
scrollToTop: function() {
|
550
585
|
module.verbose('Scrolling to top of page to avoid animation issues');
|
551
|
-
currentScroll = $(window).scrollTop();
|
552
586
|
$module.scrollTop(0);
|
553
|
-
window.scrollTo(0, 0);
|
587
|
+
(isBody ? $window : $context)[0].scrollTo(0, 0);
|
554
588
|
},
|
555
589
|
|
556
590
|
scrollBack: function() {
|
557
591
|
module.verbose('Scrolling back to original page position');
|
558
|
-
window.scrollTo(0, currentScroll);
|
592
|
+
(isBody ? $window : $context)[0].scrollTo(0, currentScroll);
|
559
593
|
},
|
560
594
|
|
561
595
|
clear: {
|
@@ -566,7 +600,24 @@ $.fn.sidebar = function(parameters) {
|
|
566
600
|
},
|
567
601
|
|
568
602
|
set: {
|
569
|
-
|
603
|
+
bodyMargin: function() {
|
604
|
+
var position = module.can.leftBodyScrollbar() ? 'left':'right';
|
605
|
+
$context.css((isBody ? 'margin-':'padding-')+position, tempBodyMargin + 'px');
|
606
|
+
$context.find(selector.bodyFixed.replace('right',position)).each(function(){
|
607
|
+
var el = $(this),
|
608
|
+
attribute = el.css('position') === 'fixed' ? 'padding-'+position : position
|
609
|
+
;
|
610
|
+
el.css(attribute, 'calc(' + el.css(attribute) + ' + ' + tempBodyMargin + 'px)');
|
611
|
+
});
|
612
|
+
},
|
613
|
+
dimmerStyles: function() {
|
614
|
+
if(settings.blurring) {
|
615
|
+
$pusher.addClass(className.blurring);
|
616
|
+
}
|
617
|
+
else {
|
618
|
+
$pusher.removeClass(className.blurring);
|
619
|
+
}
|
620
|
+
},
|
570
621
|
// ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios
|
571
622
|
// (This is no longer necessary in latest iOS)
|
572
623
|
ios: function() {
|
@@ -593,6 +644,9 @@ $.fn.sidebar = function(parameters) {
|
|
593
644
|
animating: function() {
|
594
645
|
$module.addClass(className.animating);
|
595
646
|
},
|
647
|
+
closing: function() {
|
648
|
+
$pusher.addClass(className.closing);
|
649
|
+
},
|
596
650
|
transition: function(transition) {
|
597
651
|
transition = transition || module.get.transition();
|
598
652
|
$module.addClass(transition);
|
@@ -637,6 +691,9 @@ $.fn.sidebar = function(parameters) {
|
|
637
691
|
animating: function() {
|
638
692
|
$module.removeClass(className.animating);
|
639
693
|
},
|
694
|
+
closing: function() {
|
695
|
+
$pusher.removeClass(className.closing);
|
696
|
+
},
|
640
697
|
transition: function(transition) {
|
641
698
|
transition = transition || module.get.transition();
|
642
699
|
$module.removeClass(transition);
|
@@ -652,7 +709,18 @@ $.fn.sidebar = function(parameters) {
|
|
652
709
|
$module.removeClass(className.overlay);
|
653
710
|
}
|
654
711
|
},
|
655
|
-
|
712
|
+
restore: {
|
713
|
+
bodyMargin: function() {
|
714
|
+
var position = module.can.leftBodyScrollbar() ? 'left':'right';
|
715
|
+
$context.css((isBody ? 'margin-':'padding-')+position, initialBodyMargin);
|
716
|
+
$context.find(selector.bodyFixed.replace('right',position)).each(function(){
|
717
|
+
var el = $(this),
|
718
|
+
attribute = el.css('position') === 'fixed' ? 'padding-'+position : position
|
719
|
+
;
|
720
|
+
el.css(attribute, '');
|
721
|
+
});
|
722
|
+
}
|
723
|
+
},
|
656
724
|
get: {
|
657
725
|
direction: function() {
|
658
726
|
if($module.hasClass(className.top)) {
|
@@ -700,15 +768,42 @@ $.fn.sidebar = function(parameters) {
|
|
700
768
|
}
|
701
769
|
}
|
702
770
|
},
|
703
|
-
|
771
|
+
has: {
|
772
|
+
scrollbar: function() {
|
773
|
+
return isBody || $context.css('overflow-y') !== 'hidden';
|
774
|
+
}
|
775
|
+
},
|
704
776
|
is: {
|
705
|
-
|
777
|
+
safari: function() {
|
778
|
+
if(module.cache.isSafari === undefined) {
|
779
|
+
module.cache.isSafari = /constructor/i.test(window.HTMLElement) || !!window.ApplePaySession;
|
780
|
+
}
|
781
|
+
return module.cache.isSafari;
|
782
|
+
},
|
783
|
+
edge: function(){
|
784
|
+
if(module.cache.isEdge === undefined) {
|
785
|
+
module.cache.isEdge = !!window.setImmediate && !module.is.ie();
|
786
|
+
}
|
787
|
+
return module.cache.isEdge;
|
788
|
+
},
|
789
|
+
firefox: function(){
|
790
|
+
if(module.cache.isFirefox === undefined) {
|
791
|
+
module.cache.isFirefox = !!window.InstallTrigger;
|
792
|
+
}
|
793
|
+
return module.cache.isFirefox;
|
794
|
+
},
|
795
|
+
iframe: function() {
|
796
|
+
return !(self === top);
|
797
|
+
},
|
706
798
|
ie: function() {
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
799
|
+
if(module.cache.isIE === undefined) {
|
800
|
+
var
|
801
|
+
isIE11 = (!(window.ActiveXObject) && 'ActiveXObject' in window),
|
802
|
+
isIE = ('ActiveXObject' in window)
|
803
|
+
;
|
804
|
+
module.cache.isIE = (isIE11 || isIE);
|
805
|
+
}
|
806
|
+
return module.cache.isIE;
|
712
807
|
},
|
713
808
|
|
714
809
|
ios: function() {
|
@@ -758,12 +853,12 @@ $.fn.sidebar = function(parameters) {
|
|
758
853
|
animating: function() {
|
759
854
|
return $context.hasClass(className.animating);
|
760
855
|
},
|
761
|
-
rtl: function
|
762
|
-
if(module.cache.
|
763
|
-
module.cache.
|
856
|
+
rtl: function() {
|
857
|
+
if(module.cache.isRTL === undefined) {
|
858
|
+
module.cache.isRTL = $module.attr('dir') === 'rtl' || $module.css('direction') === 'rtl' || $body.attr('dir') === 'rtl' || $body.css('direction') === 'rtl' || $context.attr('dir') === 'rtl' || $context.css('direction') === 'rtl';
|
764
859
|
}
|
765
|
-
return module.cache.
|
766
|
-
}
|
860
|
+
return module.cache.isRTL;
|
861
|
+
},
|
767
862
|
},
|
768
863
|
|
769
864
|
setting: function(name, value) {
|
@@ -881,7 +976,7 @@ $.fn.sidebar = function(parameters) {
|
|
881
976
|
response
|
882
977
|
;
|
883
978
|
passedArguments = passedArguments || queryArguments;
|
884
|
-
context =
|
979
|
+
context = context || element;
|
885
980
|
if(typeof query == 'string' && object !== undefined) {
|
886
981
|
query = query.split(/[\. ]/);
|
887
982
|
maxDepth = query.length - 1;
|
@@ -986,8 +1081,6 @@ $.fn.sidebar.settings = {
|
|
986
1081
|
returnScroll : false,
|
987
1082
|
delaySetup : false,
|
988
1083
|
|
989
|
-
duration : 500,
|
990
|
-
|
991
1084
|
onChange : function(){},
|
992
1085
|
onShow : function(){},
|
993
1086
|
onHide : function(){},
|
@@ -998,8 +1091,11 @@ $.fn.sidebar.settings = {
|
|
998
1091
|
className : {
|
999
1092
|
active : 'active',
|
1000
1093
|
animating : 'animating',
|
1094
|
+
blurring : 'blurring',
|
1095
|
+
closing : 'closing',
|
1001
1096
|
dimmed : 'dimmed',
|
1002
1097
|
ios : 'ios',
|
1098
|
+
locked : 'locked',
|
1003
1099
|
pushable : 'pushable',
|
1004
1100
|
pushed : 'pushed',
|
1005
1101
|
right : 'right',
|
@@ -1010,6 +1106,7 @@ $.fn.sidebar.settings = {
|
|
1010
1106
|
},
|
1011
1107
|
|
1012
1108
|
selector: {
|
1109
|
+
bodyFixed: '> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close',
|
1013
1110
|
fixed : '.fixed',
|
1014
1111
|
omitted : 'script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed',
|
1015
1112
|
pusher : '.pusher',
|
@@ -359,7 +359,7 @@ $.site = $.fn.site = function(parameters) {
|
|
359
359
|
response
|
360
360
|
;
|
361
361
|
passedArguments = passedArguments || queryArguments;
|
362
|
-
context =
|
362
|
+
context = context || element;
|
363
363
|
if(typeof query == 'string' && object !== undefined) {
|
364
364
|
query = query.split(/[\. ]/);
|
365
365
|
maxDepth = query.length - 1;
|