semantic-ui-sass 1.8.1.0 → 1.11.4.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 +4 -0
- data/app/assets/fonts/semantic-ui/icons.eot +0 -0
- data/app/assets/fonts/semantic-ui/icons.otf +0 -0
- data/app/assets/fonts/semantic-ui/icons.svg +526 -465
- data/app/assets/fonts/semantic-ui/icons.ttf +0 -0
- data/app/assets/fonts/semantic-ui/icons.woff +0 -0
- data/app/assets/javascripts/semantic-ui/accordion.js +63 -43
- data/app/assets/javascripts/semantic-ui/api.js +38 -18
- data/app/assets/javascripts/semantic-ui/checkbox.js +6 -4
- data/app/assets/javascripts/semantic-ui/colorize.js +3 -3
- data/app/assets/javascripts/semantic-ui/dimmer.js +57 -15
- data/app/assets/javascripts/semantic-ui/dropdown.js +65 -27
- data/app/assets/javascripts/semantic-ui/form.js +108 -29
- data/app/assets/javascripts/semantic-ui/modal.js +31 -31
- data/app/assets/javascripts/semantic-ui/nag.js +4 -4
- data/app/assets/javascripts/semantic-ui/popup.js +74 -37
- data/app/assets/javascripts/semantic-ui/progress.js +4 -4
- data/app/assets/javascripts/semantic-ui/rating.js +4 -4
- data/app/assets/javascripts/semantic-ui/search.js +67 -26
- data/app/assets/javascripts/semantic-ui/shape.js +4 -4
- data/app/assets/javascripts/semantic-ui/sidebar.js +22 -17
- data/app/assets/javascripts/semantic-ui/site.js +3 -3
- data/app/assets/javascripts/semantic-ui/state.js +30 -25
- data/app/assets/javascripts/semantic-ui/sticky.js +89 -72
- data/app/assets/javascripts/semantic-ui/tab.js +37 -22
- data/app/assets/javascripts/semantic-ui/transition.js +163 -61
- data/app/assets/javascripts/semantic-ui/video.js +4 -4
- data/app/assets/javascripts/semantic-ui/visibility.js +186 -124
- data/app/assets/javascripts/semantic-ui/visit.js +6 -4
- data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +6 -7
- data/app/assets/stylesheets/semantic-ui/collections/_form.scss +56 -40
- data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +100 -45
- data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +28 -16
- data/app/assets/stylesheets/semantic-ui/collections/_message.scss +4 -5
- data/app/assets/stylesheets/semantic-ui/collections/_table.scss +8 -7
- data/app/assets/stylesheets/semantic-ui/elements/_button.scss +11 -11
- data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +5 -8
- data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +11 -4
- data/app/assets/stylesheets/semantic-ui/elements/_header.scss +34 -10
- data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +391 -51
- data/app/assets/stylesheets/semantic-ui/elements/_image.scss +18 -5
- data/app/assets/stylesheets/semantic-ui/elements/_input.scss +33 -49
- data/app/assets/stylesheets/semantic-ui/elements/_label.scss +47 -14
- data/app/assets/stylesheets/semantic-ui/elements/_list.scss +7 -8
- data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +10 -5
- data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +5 -6
- data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +4 -5
- data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +52 -7
- data/app/assets/stylesheets/semantic-ui/elements/_step.scss +5 -6
- data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +4 -5
- data/app/assets/stylesheets/semantic-ui/globals/_site.scss +20 -7
- data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +5 -6
- data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +4 -5
- data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +4 -5
- data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +31 -13
- data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +9 -8
- data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +4 -5
- data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +4 -5
- data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +21 -9
- data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +6 -17
- data/app/assets/stylesheets/semantic-ui/modules/_search.scss +4 -5
- data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +4 -5
- data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +15 -11
- data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +4 -5
- data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +4 -5
- data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +161 -323
- data/app/assets/stylesheets/semantic-ui/modules/_video.scss +4 -5
- data/app/assets/stylesheets/semantic-ui/views/_ad.scss +5 -6
- data/app/assets/stylesheets/semantic-ui/views/_card.scss +202 -51
- data/app/assets/stylesheets/semantic-ui/views/_comment.scss +5 -6
- data/app/assets/stylesheets/semantic-ui/views/_feed.scss +5 -6
- data/app/assets/stylesheets/semantic-ui/views/_item.scss +10 -12
- data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +5 -6
- data/lib/semantic/ui/sass/version.rb +2 -2
- metadata +3 -4
@@ -1,9 +1,9 @@
|
|
1
|
-
|
2
|
-
* # Semantic - Visibility
|
1
|
+
/*!
|
2
|
+
* # Semantic UI - Visibility
|
3
3
|
* http://github.com/semantic-org/semantic-ui/
|
4
4
|
*
|
5
5
|
*
|
6
|
-
* Copyright 2014
|
6
|
+
* Copyright 2014 Contributors
|
7
7
|
* Released under the MIT license
|
8
8
|
* http://opensource.org/licenses/MIT
|
9
9
|
*
|
@@ -11,6 +11,8 @@
|
|
11
11
|
|
12
12
|
;(function ( $, window, document, undefined ) {
|
13
13
|
|
14
|
+
"use strict";
|
15
|
+
|
14
16
|
$.fn.visibility = function(parameters) {
|
15
17
|
var
|
16
18
|
$allModules = $(this),
|
@@ -28,7 +30,9 @@ $.fn.visibility = function(parameters) {
|
|
28
30
|
$allModules
|
29
31
|
.each(function() {
|
30
32
|
var
|
31
|
-
settings =
|
33
|
+
settings = ( $.isPlainObject(parameters) )
|
34
|
+
? $.extend(true, {}, $.fn.visibility.settings, parameters)
|
35
|
+
: $.extend({}, $.fn.visibility.settings),
|
32
36
|
|
33
37
|
className = settings.className,
|
34
38
|
namespace = settings.namespace,
|
@@ -52,19 +56,20 @@ $.fn.visibility = function(parameters) {
|
|
52
56
|
|| function(callback) { setTimeout(callback, 0); },
|
53
57
|
|
54
58
|
element = this,
|
59
|
+
observer,
|
55
60
|
module
|
56
61
|
;
|
57
62
|
|
58
|
-
module
|
63
|
+
module = {
|
59
64
|
|
60
65
|
initialize: function() {
|
61
|
-
module.
|
66
|
+
module.debug('Initializing', settings);
|
62
67
|
|
63
68
|
module.setup.cache();
|
64
69
|
module.save.position();
|
65
70
|
|
66
71
|
if( module.should.trackChanges() ) {
|
67
|
-
module.
|
72
|
+
module.bind.events();
|
68
73
|
if(settings.type == 'image') {
|
69
74
|
module.setup.image();
|
70
75
|
}
|
@@ -72,16 +77,21 @@ $.fn.visibility = function(parameters) {
|
|
72
77
|
module.setup.fixed();
|
73
78
|
}
|
74
79
|
}
|
75
|
-
|
80
|
+
if(settings.initialCheck) {
|
81
|
+
module.checkVisibility();
|
82
|
+
}
|
83
|
+
if(settings.observeChanges) {
|
84
|
+
module.observeChanges();
|
85
|
+
}
|
76
86
|
module.instantiate();
|
77
87
|
},
|
78
88
|
|
79
89
|
instantiate: function() {
|
80
|
-
module.
|
81
|
-
instance = module;
|
90
|
+
module.debug('Storing instance', module);
|
82
91
|
$module
|
83
92
|
.data(moduleNamespace, module)
|
84
93
|
;
|
94
|
+
instance = module;
|
85
95
|
},
|
86
96
|
|
87
97
|
destroy: function() {
|
@@ -90,16 +100,37 @@ $.fn.visibility = function(parameters) {
|
|
90
100
|
.off(eventNamespace)
|
91
101
|
.removeData(moduleNamespace)
|
92
102
|
;
|
103
|
+
$window.off('resize' + eventNamespace, module.event.refresh);
|
104
|
+
$context.off('scroll' + eventNamespace, module.event.scroll);
|
93
105
|
},
|
94
106
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
.on('resize' + eventNamespace, module.event.refresh)
|
99
|
-
;
|
100
|
-
$context
|
101
|
-
.on('scroll' + eventNamespace, module.event.scroll)
|
107
|
+
observeChanges: function() {
|
108
|
+
var
|
109
|
+
context = $context[0]
|
102
110
|
;
|
111
|
+
if('MutationObserver' in window) {
|
112
|
+
observer = new MutationObserver(function(mutations) {
|
113
|
+
module.verbose('DOM tree modified, updating visibility calculations');
|
114
|
+
module.refresh();
|
115
|
+
});
|
116
|
+
observer.observe(element, {
|
117
|
+
childList : true,
|
118
|
+
subtree : true
|
119
|
+
});
|
120
|
+
module.debug('Setting up mutation observer', observer);
|
121
|
+
}
|
122
|
+
},
|
123
|
+
|
124
|
+
bind: {
|
125
|
+
events: function() {
|
126
|
+
module.verbose('Binding visibility events to scroll and resize');
|
127
|
+
$window
|
128
|
+
.on('resize' + eventNamespace, module.event.refresh)
|
129
|
+
;
|
130
|
+
$context
|
131
|
+
.on('scroll' + eventNamespace, module.event.scroll)
|
132
|
+
;
|
133
|
+
}
|
103
134
|
},
|
104
135
|
|
105
136
|
event: {
|
@@ -110,10 +141,14 @@ $.fn.visibility = function(parameters) {
|
|
110
141
|
module.verbose('Scroll position changed');
|
111
142
|
if(settings.throttle) {
|
112
143
|
clearTimeout(module.timer);
|
113
|
-
module.timer = setTimeout(
|
144
|
+
module.timer = setTimeout(function() {
|
145
|
+
module.checkVisibility();
|
146
|
+
}, settings.throttle);
|
114
147
|
}
|
115
148
|
else {
|
116
|
-
requestAnimationFrame(
|
149
|
+
requestAnimationFrame(function() {
|
150
|
+
module.checkVisibility();
|
151
|
+
});
|
117
152
|
}
|
118
153
|
}
|
119
154
|
},
|
@@ -146,16 +181,14 @@ $.fn.visibility = function(parameters) {
|
|
146
181
|
},
|
147
182
|
|
148
183
|
should: {
|
149
|
-
|
150
184
|
trackChanges: function() {
|
151
185
|
if(methodInvoked && queryArguments.length > 0) {
|
152
186
|
module.debug('One time query, no need to bind events');
|
153
187
|
return false;
|
154
188
|
}
|
155
|
-
module.debug('
|
189
|
+
module.debug('Callbacks being attached');
|
156
190
|
return true;
|
157
191
|
}
|
158
|
-
|
159
192
|
},
|
160
193
|
|
161
194
|
setup: {
|
@@ -172,8 +205,10 @@ $.fn.visibility = function(parameters) {
|
|
172
205
|
;
|
173
206
|
if(src) {
|
174
207
|
module.verbose('Lazy loading image', src);
|
208
|
+
settings.observeChanges = false;
|
175
209
|
// show when top visible
|
176
210
|
module.topVisible(function() {
|
211
|
+
module.debug('Image top visible', element);
|
177
212
|
module.precache(src, function() {
|
178
213
|
module.set.image(src);
|
179
214
|
settings.onTopVisible = false;
|
@@ -183,33 +218,29 @@ $.fn.visibility = function(parameters) {
|
|
183
218
|
},
|
184
219
|
fixed: function() {
|
185
220
|
module.verbose('Setting up fixed on element pass');
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
;
|
198
|
-
if(settings.animation && $.fn.transition !== undefined) {
|
199
|
-
$module.transition(settings.transition, settings.duration);
|
200
|
-
}
|
201
|
-
},
|
202
|
-
onTopPassedReverse: function() {
|
203
|
-
$module
|
204
|
-
.removeClass(className.fixed)
|
205
|
-
.css({
|
206
|
-
position: '',
|
207
|
-
top: ''
|
208
|
-
})
|
209
|
-
;
|
221
|
+
settings.once = false;
|
222
|
+
settings.onTopPassed = function() {
|
223
|
+
$module
|
224
|
+
.addClass(className.fixed)
|
225
|
+
.css({
|
226
|
+
top: settings.offset + 'px'
|
227
|
+
})
|
228
|
+
;
|
229
|
+
if(settings.transition) {
|
230
|
+
if($.fn.transition !== undefined) {
|
231
|
+
$module.transition(settings.transition, settings.duration);
|
210
232
|
}
|
211
|
-
}
|
212
|
-
;
|
233
|
+
}
|
234
|
+
};
|
235
|
+
settings.onTopPassedReverse = function() {
|
236
|
+
$module
|
237
|
+
.removeClass(className.fixed)
|
238
|
+
.css({
|
239
|
+
position: '',
|
240
|
+
top: ''
|
241
|
+
})
|
242
|
+
;
|
243
|
+
};
|
213
244
|
}
|
214
245
|
},
|
215
246
|
|
@@ -226,16 +257,30 @@ $.fn.visibility = function(parameters) {
|
|
226
257
|
$module.show();
|
227
258
|
}
|
228
259
|
else {
|
229
|
-
if(settings.transition
|
230
|
-
|
260
|
+
if(settings.transition) {
|
261
|
+
if( $.fn.transition !== undefined ) {
|
262
|
+
$module.transition(settings.transition, settings.duration);
|
263
|
+
}
|
264
|
+
else {
|
265
|
+
$module.fadeIn(settings.duration);
|
266
|
+
}
|
231
267
|
}
|
232
268
|
else {
|
233
|
-
$module.
|
269
|
+
$module.show();
|
234
270
|
}
|
235
271
|
}
|
236
272
|
}
|
237
273
|
},
|
238
274
|
|
275
|
+
is: {
|
276
|
+
visible: function() {
|
277
|
+
if(module.cache && module.cache.element) {
|
278
|
+
return (module.cache.element.width > 0);
|
279
|
+
}
|
280
|
+
return false;
|
281
|
+
}
|
282
|
+
},
|
283
|
+
|
239
284
|
refresh: function() {
|
240
285
|
module.debug('Refreshing constants (element width/height)');
|
241
286
|
module.reset();
|
@@ -254,24 +299,34 @@ $.fn.visibility = function(parameters) {
|
|
254
299
|
|
255
300
|
checkVisibility: function() {
|
256
301
|
module.verbose('Checking visibility of element', module.cache.element);
|
257
|
-
module.save.calculations();
|
258
302
|
|
259
|
-
|
260
|
-
|
303
|
+
if( module.is.visible() ) {
|
304
|
+
|
305
|
+
// update calculations derived from scroll
|
306
|
+
module.save.calculations();
|
261
307
|
|
262
|
-
|
263
|
-
|
264
|
-
module.topVisibleReverse();
|
265
|
-
module.bottomVisibleReverse();
|
266
|
-
module.topPassedReverse();
|
267
|
-
module.bottomPassedReverse();
|
308
|
+
// percentage
|
309
|
+
module.passed();
|
268
310
|
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
311
|
+
// reverse (must be first)
|
312
|
+
module.passingReverse();
|
313
|
+
module.topVisibleReverse();
|
314
|
+
module.bottomVisibleReverse();
|
315
|
+
module.topPassedReverse();
|
316
|
+
module.bottomPassedReverse();
|
317
|
+
|
318
|
+
// one time
|
319
|
+
module.passing();
|
320
|
+
module.topVisible();
|
321
|
+
module.bottomVisible();
|
322
|
+
module.topPassed();
|
323
|
+
module.bottomPassed();
|
324
|
+
|
325
|
+
// on update callback
|
326
|
+
if(settings.onUpdate) {
|
327
|
+
settings.onUpdate.call(element, module.get.elementCalculations());
|
328
|
+
}
|
329
|
+
}
|
275
330
|
},
|
276
331
|
|
277
332
|
passed: function(amount, newCallback) {
|
@@ -525,7 +580,7 @@ $.fn.visibility = function(parameters) {
|
|
525
580
|
calculations = module.get.elementCalculations(),
|
526
581
|
screen = module.get.screenCalculations()
|
527
582
|
;
|
528
|
-
callback
|
583
|
+
callback = callback || false;
|
529
584
|
if(callback) {
|
530
585
|
if(settings.continuous) {
|
531
586
|
module.debug('Callback being called continuously', callbackName, calculations);
|
@@ -592,72 +647,66 @@ $.fn.visibility = function(parameters) {
|
|
592
647
|
},
|
593
648
|
elementPosition: function() {
|
594
649
|
var
|
595
|
-
|
650
|
+
element = module.cache.element,
|
651
|
+
screen = module.get.screenSize()
|
596
652
|
;
|
597
653
|
module.verbose('Saving element position');
|
598
|
-
$.extend
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
height : $module.outerHeight()
|
607
|
-
});
|
608
|
-
return module.cache.element;
|
654
|
+
// (quicker than $.extend)
|
655
|
+
element.fits = (element.height < screen.height);
|
656
|
+
element.offset = $module.offset();
|
657
|
+
element.width = $module.outerWidth();
|
658
|
+
element.height = $module.outerHeight();
|
659
|
+
// store
|
660
|
+
module.cache.element = element;
|
661
|
+
return element;
|
609
662
|
},
|
610
663
|
elementCalculations: function() {
|
611
664
|
var
|
612
|
-
screen
|
613
|
-
element
|
665
|
+
screen = module.get.screenCalculations(),
|
666
|
+
element = module.get.elementPosition()
|
614
667
|
;
|
615
668
|
// offset
|
616
669
|
if(settings.includeMargin) {
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
670
|
+
element.margin = {};
|
671
|
+
element.margin.top = parseInt($module.css('margin-top'), 10);
|
672
|
+
element.margin.bottom = parseInt($module.css('margin-bottom'), 10);
|
673
|
+
element.top = element.offset.top - element.margin.top;
|
674
|
+
element.bottom = element.offset.top + element.height + element.margin.bottom;
|
621
675
|
}
|
622
676
|
else {
|
623
|
-
|
624
|
-
|
625
|
-
bottom : element.offset.top + element.height
|
626
|
-
});
|
677
|
+
element.top = element.offset.top;
|
678
|
+
element.bottom = element.offset.top + element.height;
|
627
679
|
}
|
680
|
+
|
628
681
|
// visibility
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
});
|
682
|
+
element.topVisible = (screen.bottom >= element.top);
|
683
|
+
element.topPassed = (screen.top >= element.top);
|
684
|
+
element.bottomVisible = (screen.bottom >= element.bottom);
|
685
|
+
element.bottomPassed = (screen.top >= element.bottom);
|
686
|
+
element.pixelsPassed = 0;
|
687
|
+
element.percentagePassed = 0;
|
688
|
+
|
637
689
|
// meta calculations
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
if(
|
644
|
-
|
645
|
-
|
690
|
+
element.visible = (element.topVisible || element.bottomVisible);
|
691
|
+
element.passing = (element.topPassed && !element.bottomPassed);
|
692
|
+
element.hidden = (!element.topVisible && !element.bottomVisible);
|
693
|
+
|
694
|
+
// passing calculations
|
695
|
+
if(element.passing) {
|
696
|
+
element.pixelsPassed = (screen.top - element.top);
|
697
|
+
element.percentagePassed = (screen.top - element.top) / element.height;
|
646
698
|
}
|
647
|
-
module.
|
699
|
+
module.cache.element = element;
|
700
|
+
module.verbose('Updated element calculations', element);
|
701
|
+
return element;
|
648
702
|
},
|
649
703
|
screenCalculations: function() {
|
650
704
|
var
|
651
|
-
scroll =
|
705
|
+
scroll = module.get.scroll()
|
652
706
|
;
|
653
|
-
if(module.cache.scroll === undefined) {
|
654
|
-
module.cache.scroll = $context.scrollTop() + settings.offset;
|
655
|
-
}
|
656
707
|
module.save.direction();
|
657
|
-
|
658
|
-
|
659
|
-
bottom : scroll + module.cache.screen.height
|
660
|
-
});
|
708
|
+
module.cache.screen.top = scroll;
|
709
|
+
module.cache.screen.bottom = scroll + module.cache.screen.height;
|
661
710
|
return module.cache.screen;
|
662
711
|
},
|
663
712
|
screenSize: function() {
|
@@ -896,7 +945,7 @@ $.fn.visibility = function(parameters) {
|
|
896
945
|
}
|
897
946
|
else {
|
898
947
|
if(instance !== undefined) {
|
899
|
-
|
948
|
+
instance.invoke('destroy');
|
900
949
|
}
|
901
950
|
module.initialize();
|
902
951
|
}
|
@@ -914,19 +963,31 @@ $.fn.visibility.settings = {
|
|
914
963
|
name : 'Visibility',
|
915
964
|
namespace : 'visibility',
|
916
965
|
|
917
|
-
className: {
|
918
|
-
fixed: 'fixed'
|
919
|
-
},
|
920
|
-
|
921
966
|
debug : false,
|
922
967
|
verbose : false,
|
923
968
|
performance : true,
|
924
969
|
|
970
|
+
// whether to use mutation observers to follow changes
|
971
|
+
observeChanges : true,
|
972
|
+
|
973
|
+
// callback should only occur one time
|
974
|
+
once : true,
|
975
|
+
|
976
|
+
// callback should fire continuously whe evaluates to true
|
977
|
+
continuous : false,
|
978
|
+
|
979
|
+
// offset to use with scroll top
|
925
980
|
offset : 0,
|
981
|
+
|
982
|
+
// whether to include margin in elements position
|
926
983
|
includeMargin : false,
|
927
984
|
|
985
|
+
// scroll context for visibility checks
|
928
986
|
context : window,
|
929
987
|
|
988
|
+
// check position immediately on init
|
989
|
+
initialCheck : true,
|
990
|
+
|
930
991
|
// visibility check delay in ms (defaults to animationFrame)
|
931
992
|
throttle : false,
|
932
993
|
|
@@ -935,7 +996,7 @@ $.fn.visibility.settings = {
|
|
935
996
|
|
936
997
|
// image only animation settings
|
937
998
|
transition : false,
|
938
|
-
duration :
|
999
|
+
duration : 1000,
|
939
1000
|
|
940
1001
|
// array of callbacks for percentage
|
941
1002
|
onPassed : {},
|
@@ -954,12 +1015,13 @@ $.fn.visibility.settings = {
|
|
954
1015
|
onTopPassedReverse : false,
|
955
1016
|
onBottomPassedReverse : false,
|
956
1017
|
|
957
|
-
once : true,
|
958
|
-
continuous : false,
|
959
|
-
|
960
1018
|
// utility callbacks
|
1019
|
+
onUpdate : false, // disabled by default for performance
|
961
1020
|
onRefresh : function(){},
|
962
|
-
|
1021
|
+
|
1022
|
+
className: {
|
1023
|
+
fixed: 'fixed'
|
1024
|
+
},
|
963
1025
|
|
964
1026
|
error : {
|
965
1027
|
method : 'The method you called is not defined.'
|
@@ -1,9 +1,9 @@
|
|
1
|
-
|
2
|
-
* # Semantic - Visit
|
1
|
+
/*!
|
2
|
+
* # Semantic UI - Visit
|
3
3
|
* http://github.com/semantic-org/semantic-ui/
|
4
4
|
*
|
5
5
|
*
|
6
|
-
* Copyright 2014
|
6
|
+
* Copyright 2014 Contributors
|
7
7
|
* Released under the MIT license
|
8
8
|
* http://opensource.org/licenses/MIT
|
9
9
|
*
|
@@ -11,6 +11,8 @@
|
|
11
11
|
|
12
12
|
;(function ($, window, document, undefined) {
|
13
13
|
|
14
|
+
"use strict";
|
15
|
+
|
14
16
|
$.visit = $.fn.visit = function(parameters) {
|
15
17
|
var
|
16
18
|
$allModules = $.isFunction(this)
|
@@ -459,7 +461,7 @@ $.visit = $.fn.visit = function(parameters) {
|
|
459
461
|
}
|
460
462
|
else {
|
461
463
|
if(instance !== undefined) {
|
462
|
-
|
464
|
+
instance.invoke('destroy');
|
463
465
|
}
|
464
466
|
module.initialize();
|
465
467
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
* # Semantic UI
|
3
|
-
*
|
4
|
-
*
|
1
|
+
/*!
|
2
|
+
* # Semantic UI 1.11.4 - Breadcrumb
|
3
|
+
* http://github.com/semantic-org/semantic-ui/
|
4
|
+
*
|
5
5
|
*
|
6
6
|
* Copyright 2014 Contributors
|
7
7
|
* Released under the MIT license
|
@@ -10,7 +10,6 @@
|
|
10
10
|
*/
|
11
11
|
|
12
12
|
|
13
|
-
|
14
13
|
/*******************************
|
15
14
|
Breadcrumb
|
16
15
|
*******************************/
|
@@ -53,8 +52,8 @@
|
|
53
52
|
|
54
53
|
/* Icon Divider */
|
55
54
|
.ui.breadcrumb .icon.divider {
|
56
|
-
font-size: 0.
|
57
|
-
vertical-align:
|
55
|
+
font-size: 0.85714286em;
|
56
|
+
vertical-align: baseline;
|
58
57
|
}
|
59
58
|
|
60
59
|
/* Section */
|