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 - Transition
|
1
|
+
/*!
|
2
|
+
* # Semantic UI - Transition
|
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
|
*
|
@@ -35,7 +35,7 @@ $.fn.transition = function() {
|
|
35
35
|
returnedValue
|
36
36
|
;
|
37
37
|
$allModules
|
38
|
-
.each(function() {
|
38
|
+
.each(function(index) {
|
39
39
|
var
|
40
40
|
$module = $(this),
|
41
41
|
element = this,
|
@@ -62,32 +62,43 @@ $.fn.transition = function() {
|
|
62
62
|
initialize: function() {
|
63
63
|
|
64
64
|
// get full settings
|
65
|
-
moduleNamespace = 'module-' + namespace;
|
66
65
|
settings = module.get.settings.apply(element, moduleArguments);
|
66
|
+
|
67
|
+
// shorthand
|
67
68
|
className = settings.className;
|
69
|
+
error = settings.error;
|
68
70
|
metadata = settings.metadata;
|
69
71
|
|
70
|
-
|
71
|
-
animationEnd = module.get.animationEndEvent();
|
72
|
-
animationName = module.get.animationName();
|
73
|
-
error = settings.error;
|
74
|
-
namespace = settings.namespace;
|
72
|
+
// define namespace
|
75
73
|
eventNamespace = '.' + settings.namespace;
|
74
|
+
moduleNamespace = 'module-' + settings.namespace;
|
76
75
|
instance = $module.data(moduleNamespace) || module;
|
77
76
|
|
77
|
+
// get vendor specific events
|
78
|
+
animationEnd = module.get.animationEndEvent();
|
79
|
+
animationName = module.get.animationName();
|
80
|
+
animationStart = module.get.animationStartEvent();
|
81
|
+
|
78
82
|
if(methodInvoked) {
|
79
83
|
methodInvoked = module.invoke(query);
|
80
84
|
}
|
81
|
-
|
85
|
+
|
86
|
+
// method not invoked, lets run an animation
|
82
87
|
if(methodInvoked === false) {
|
83
88
|
module.verbose('Converted arguments into settings object', settings);
|
84
|
-
|
89
|
+
if(settings.interval) {
|
90
|
+
module.delay(settings.animate);
|
91
|
+
}
|
92
|
+
else {
|
93
|
+
module.animate();
|
94
|
+
}
|
85
95
|
module.instantiate();
|
86
96
|
}
|
87
97
|
},
|
88
98
|
|
89
99
|
instantiate: function() {
|
90
100
|
module.verbose('Storing instance of module', module);
|
101
|
+
instance = module;
|
91
102
|
$module
|
92
103
|
.data(moduleNamespace, instance)
|
93
104
|
;
|
@@ -126,6 +137,24 @@ $.fn.transition = function() {
|
|
126
137
|
;
|
127
138
|
},
|
128
139
|
|
140
|
+
delay: function(interval) {
|
141
|
+
var
|
142
|
+
isReverse = (settings.reverse === true),
|
143
|
+
shouldReverse = (settings.reverse == 'auto' && module.get.direction() == className.outward),
|
144
|
+
delay
|
145
|
+
;
|
146
|
+
interval = (typeof interval !== undefined)
|
147
|
+
? interval
|
148
|
+
: settings.interval
|
149
|
+
;
|
150
|
+
delay = (isReverse || shouldReverse)
|
151
|
+
? ($allModules.length - index) * settings.interval
|
152
|
+
: index * settings.interval
|
153
|
+
;
|
154
|
+
module.debug('Delaying animation by', delay);
|
155
|
+
setTimeout(module.animate, delay);
|
156
|
+
},
|
157
|
+
|
129
158
|
animate: function(overrideSettings) {
|
130
159
|
settings = overrideSettings || settings;
|
131
160
|
if(!module.is.supported()) {
|
@@ -147,6 +176,10 @@ $.fn.transition = function() {
|
|
147
176
|
module.debug('Animation is already occurring, will not execute repeated animation', settings.animation);
|
148
177
|
return false;
|
149
178
|
}
|
179
|
+
else {
|
180
|
+
module.debug('New animation started, completing previous early', settings.animation);
|
181
|
+
module.complete();
|
182
|
+
}
|
150
183
|
}
|
151
184
|
if( module.can.animate() ) {
|
152
185
|
module.set.animating(settings.animation);
|
@@ -158,7 +191,7 @@ $.fn.transition = function() {
|
|
158
191
|
|
159
192
|
reset: function() {
|
160
193
|
module.debug('Resetting animation to beginning conditions');
|
161
|
-
module.remove.
|
194
|
+
module.remove.animationCallbacks();
|
162
195
|
module.restore.conditions();
|
163
196
|
module.remove.animating();
|
164
197
|
},
|
@@ -167,7 +200,7 @@ $.fn.transition = function() {
|
|
167
200
|
module.debug('Queueing animation of', animation);
|
168
201
|
module.queuing = true;
|
169
202
|
$module
|
170
|
-
.one(animationEnd + eventNamespace, function() {
|
203
|
+
.one(animationEnd + '.queue' + eventNamespace, function() {
|
171
204
|
module.queuing = false;
|
172
205
|
module.repaint();
|
173
206
|
module.animate.apply(this, settings);
|
@@ -175,9 +208,9 @@ $.fn.transition = function() {
|
|
175
208
|
;
|
176
209
|
},
|
177
210
|
|
178
|
-
complete: function () {
|
179
|
-
module.
|
180
|
-
module.remove.
|
211
|
+
complete: function (event) {
|
212
|
+
module.debug('Animation complete', settings.animation);
|
213
|
+
module.remove.completeCallback();
|
181
214
|
module.remove.failSafe();
|
182
215
|
if(!module.is.looping()) {
|
183
216
|
if( module.is.outward() ) {
|
@@ -190,7 +223,6 @@ $.fn.transition = function() {
|
|
190
223
|
module.verbose('Animation is outward, showing element');
|
191
224
|
module.restore.conditions();
|
192
225
|
module.show();
|
193
|
-
module.set.display();
|
194
226
|
settings.onShow.call(this);
|
195
227
|
}
|
196
228
|
else {
|
@@ -233,7 +265,7 @@ $.fn.transition = function() {
|
|
233
265
|
module.save.conditions();
|
234
266
|
}
|
235
267
|
module.remove.direction();
|
236
|
-
module.remove.
|
268
|
+
module.remove.completeCallback();
|
237
269
|
if(module.can.transition() && !module.has.direction()) {
|
238
270
|
module.set.direction();
|
239
271
|
}
|
@@ -257,8 +289,8 @@ $.fn.transition = function() {
|
|
257
289
|
? duration + 'ms'
|
258
290
|
: duration
|
259
291
|
;
|
260
|
-
module.verbose('Setting animation duration', duration);
|
261
292
|
if(duration || duration === 0) {
|
293
|
+
module.verbose('Setting animation duration', duration);
|
262
294
|
$module
|
263
295
|
.css({
|
264
296
|
'-webkit-animation-duration': duration,
|
@@ -313,12 +345,12 @@ $.fn.transition = function() {
|
|
313
345
|
.addClass(className.transition)
|
314
346
|
.addClass(className.hidden)
|
315
347
|
;
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
348
|
+
}
|
349
|
+
if($module.css('display') !== 'none') {
|
350
|
+
module.verbose('Overriding default display to hide element');
|
351
|
+
$module
|
352
|
+
.css('display', 'none')
|
353
|
+
;
|
322
354
|
}
|
323
355
|
},
|
324
356
|
visible: function() {
|
@@ -340,7 +372,7 @@ $.fn.transition = function() {
|
|
340
372
|
conditions: function() {
|
341
373
|
var
|
342
374
|
clasName = $module.attr('class') || false,
|
343
|
-
style
|
375
|
+
style = $module.attr('style') || ''
|
344
376
|
;
|
345
377
|
$module.removeClass(settings.animation);
|
346
378
|
module.remove.direction();
|
@@ -367,8 +399,9 @@ $.fn.transition = function() {
|
|
367
399
|
module.verbose('Restoring original style attribute', module.cache.style);
|
368
400
|
$module.attr('style', module.cache.style);
|
369
401
|
}
|
370
|
-
|
371
|
-
module.
|
402
|
+
else {
|
403
|
+
module.verbose('Clearing style attribute');
|
404
|
+
$module.removeAttr('style');
|
372
405
|
}
|
373
406
|
module.verbose('Restoring original attributes', module.cache);
|
374
407
|
}
|
@@ -379,7 +412,9 @@ $.fn.transition = function() {
|
|
379
412
|
var
|
380
413
|
duration = module.get.duration()
|
381
414
|
;
|
382
|
-
module.timer = setTimeout(
|
415
|
+
module.timer = setTimeout(function() {
|
416
|
+
$module.trigger(animationEnd);
|
417
|
+
}, duration + settings.failSafeDelay);
|
383
418
|
module.verbose('Adding fail safe timer', module.timer);
|
384
419
|
}
|
385
420
|
},
|
@@ -399,8 +434,15 @@ $.fn.transition = function() {
|
|
399
434
|
})
|
400
435
|
;
|
401
436
|
},
|
402
|
-
|
403
|
-
|
437
|
+
animationCallbacks: function() {
|
438
|
+
module.remove.queueCallback();
|
439
|
+
module.remove.completeCallback();
|
440
|
+
},
|
441
|
+
queueCallback: function() {
|
442
|
+
$module.off('.queue' + eventNamespace)
|
443
|
+
},
|
444
|
+
completeCallback: function() {
|
445
|
+
$module.off('.complete' + eventNamespace);
|
404
446
|
},
|
405
447
|
display: function() {
|
406
448
|
$module.css('display', '');
|
@@ -425,10 +467,12 @@ $.fn.transition = function() {
|
|
425
467
|
},
|
426
468
|
looping: function() {
|
427
469
|
module.debug('Transitions are no longer looping');
|
428
|
-
|
429
|
-
.
|
430
|
-
|
431
|
-
|
470
|
+
if( module.is.looping() ) {
|
471
|
+
module.reset();
|
472
|
+
$module
|
473
|
+
.removeClass(className.looping)
|
474
|
+
;
|
475
|
+
}
|
432
476
|
},
|
433
477
|
transition: function() {
|
434
478
|
$module
|
@@ -479,6 +523,31 @@ $.fn.transition = function() {
|
|
479
523
|
}
|
480
524
|
return $.fn.transition.settings;
|
481
525
|
},
|
526
|
+
direction: function(animation) {
|
527
|
+
// quickest manually specified direction
|
528
|
+
animation = animation || settings.animation;
|
529
|
+
if(typeof animation === 'string') {
|
530
|
+
animation = animation.split(' ');
|
531
|
+
$.each(animation, function(index, word){
|
532
|
+
if(word === className.inward) {
|
533
|
+
return className.inward;
|
534
|
+
}
|
535
|
+
else if(word === className.outward) {
|
536
|
+
return className.outward;
|
537
|
+
}
|
538
|
+
});
|
539
|
+
}
|
540
|
+
// slower backup
|
541
|
+
if( !module.can.transition() ) {
|
542
|
+
return 'static';
|
543
|
+
}
|
544
|
+
if($module.is(':visible') && !module.is.hidden()) {
|
545
|
+
return className.outward;
|
546
|
+
}
|
547
|
+
else {
|
548
|
+
return className.inward;
|
549
|
+
}
|
550
|
+
},
|
482
551
|
duration: function(duration) {
|
483
552
|
duration = duration || settings.duration;
|
484
553
|
if(duration === false) {
|
@@ -604,6 +673,8 @@ $.fn.transition = function() {
|
|
604
673
|
.css('display')
|
605
674
|
;
|
606
675
|
module.verbose('Determining final display state', displayType);
|
676
|
+
module.save.displayType(displayType);
|
677
|
+
|
607
678
|
$clone.remove();
|
608
679
|
if(currentAnimation != inAnimation) {
|
609
680
|
module.debug('Direction exists for animation', animation);
|
@@ -617,7 +688,6 @@ $.fn.transition = function() {
|
|
617
688
|
module.debug('Static animation found', animation, displayType);
|
618
689
|
directionExists = false;
|
619
690
|
}
|
620
|
-
module.save.displayType(displayType);
|
621
691
|
module.save.transitionExists(animation, directionExists);
|
622
692
|
}
|
623
693
|
return (transitionExists !== undefined)
|
@@ -675,24 +745,47 @@ $.fn.transition = function() {
|
|
675
745
|
module.verbose('Showing element', display);
|
676
746
|
module.remove.hidden();
|
677
747
|
module.set.visible();
|
748
|
+
module.set.display();
|
678
749
|
module.repaint();
|
679
750
|
},
|
680
751
|
|
681
|
-
|
752
|
+
toggle: function() {
|
753
|
+
if( module.is.visible() ) {
|
754
|
+
module.hide();
|
755
|
+
}
|
756
|
+
else {
|
757
|
+
module.show();
|
758
|
+
}
|
759
|
+
},
|
760
|
+
|
761
|
+
stop: function() {
|
762
|
+
module.debug('Stopping current animation');
|
763
|
+
$module.trigger(animationEnd);
|
764
|
+
},
|
765
|
+
|
766
|
+
stopAll: function() {
|
767
|
+
module.debug('Stopping all animation');
|
768
|
+
module.remove.queueCallback();
|
769
|
+
$module.trigger(animationEnd);
|
770
|
+
},
|
771
|
+
|
772
|
+
clear: {
|
773
|
+
queue: function() {
|
774
|
+
module.debug('Clearing animation queue')
|
775
|
+
module.remove.queueCallback();
|
776
|
+
}
|
777
|
+
},
|
778
|
+
|
779
|
+
enable: function() {
|
682
780
|
module.verbose('Starting animation');
|
683
781
|
$module.removeClass(className.disabled);
|
684
782
|
},
|
685
783
|
|
686
|
-
|
784
|
+
disable: function() {
|
687
785
|
module.debug('Stopping animation');
|
688
786
|
$module.addClass(className.disabled);
|
689
787
|
},
|
690
788
|
|
691
|
-
toggle: function() {
|
692
|
-
module.debug('Toggling play status');
|
693
|
-
$module.toggleClass(className.disabled);
|
694
|
-
},
|
695
|
-
|
696
789
|
setting: function(name, value) {
|
697
790
|
module.debug('Changing setting', name, value);
|
698
791
|
if( $.isPlainObject(name) ) {
|
@@ -762,7 +855,7 @@ $.fn.transition = function() {
|
|
762
855
|
});
|
763
856
|
}
|
764
857
|
clearTimeout(module.performance.timer);
|
765
|
-
module.performance.timer = setTimeout(module.performance.display,
|
858
|
+
module.performance.timer = setTimeout(module.performance.display, 100);
|
766
859
|
},
|
767
860
|
display: function() {
|
768
861
|
var
|
@@ -870,41 +963,50 @@ $.fn.transition.exists = {};
|
|
870
963
|
$.fn.transition.settings = {
|
871
964
|
|
872
965
|
// module info
|
873
|
-
name
|
966
|
+
name : 'Transition',
|
874
967
|
|
875
968
|
// debug content outputted to console
|
876
|
-
debug
|
969
|
+
debug : false,
|
877
970
|
|
878
971
|
// verbose debug output
|
879
|
-
verbose
|
972
|
+
verbose : true,
|
880
973
|
|
881
974
|
// performance data output
|
882
|
-
performance
|
975
|
+
performance : true,
|
883
976
|
|
884
977
|
// event namespace
|
885
|
-
namespace
|
978
|
+
namespace : 'transition',
|
979
|
+
|
980
|
+
// delay between animations in group
|
981
|
+
interval : 0,
|
886
982
|
|
887
|
-
//
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
983
|
+
// whether group animations should be reversed
|
984
|
+
reverse : 'auto',
|
985
|
+
|
986
|
+
// animation callback event
|
987
|
+
onStart : function() {},
|
988
|
+
onComplete : function() {},
|
989
|
+
onShow : function() {},
|
990
|
+
onHide : function() {},
|
892
991
|
|
893
992
|
// whether timeout should be used to ensure callback fires in cases animationend does not
|
894
|
-
useFailSafe
|
993
|
+
useFailSafe : true,
|
994
|
+
|
995
|
+
// delay in ms for fail safe
|
996
|
+
failSafeDelay : 100,
|
895
997
|
|
896
998
|
// whether EXACT animation can occur twice in a row
|
897
|
-
allowRepeats
|
999
|
+
allowRepeats : false,
|
898
1000
|
|
899
1001
|
// Override final display type on visible
|
900
|
-
displayType
|
1002
|
+
displayType : false,
|
901
1003
|
|
902
1004
|
// animation duration
|
903
|
-
animation
|
904
|
-
duration
|
1005
|
+
animation : 'fade',
|
1006
|
+
duration : false,
|
905
1007
|
|
906
1008
|
// new animations will occur after previous ones
|
907
|
-
queue
|
1009
|
+
queue : true,
|
908
1010
|
|
909
1011
|
metadata : {
|
910
1012
|
displayType: 'display'
|
@@ -1,9 +1,9 @@
|
|
1
|
-
|
2
|
-
* # Semantic - Video
|
1
|
+
/*!
|
2
|
+
* # Semantic UI - Video
|
3
3
|
* http://github.com/semantic-org/semantic-ui/
|
4
4
|
*
|
5
5
|
*
|
6
|
-
* Copyright 2014
|
6
|
+
* Copyright 2014 Contributorss
|
7
7
|
* Released under the MIT license
|
8
8
|
* http://opensource.org/licenses/MIT
|
9
9
|
*
|
@@ -448,7 +448,7 @@ $.fn.video = function(parameters) {
|
|
448
448
|
}
|
449
449
|
else {
|
450
450
|
if(instance !== undefined) {
|
451
|
-
|
451
|
+
instance.invoke('destroy');
|
452
452
|
}
|
453
453
|
module.initialize();
|
454
454
|
}
|