semantic-ui-rails 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/semantic-ui/modules/accordion.js +8 -8
- data/app/assets/javascripts/semantic-ui/modules/behavior/form.js +10 -10
- data/app/assets/javascripts/semantic-ui/modules/behavior/state.js +8 -8
- data/app/assets/javascripts/semantic-ui/modules/checkbox.js +8 -8
- data/app/assets/javascripts/semantic-ui/modules/dimmer.js +2 -2
- data/app/assets/javascripts/semantic-ui/modules/dropdown.js +10 -10
- data/app/assets/javascripts/semantic-ui/modules/modal.js +2 -2
- data/app/assets/javascripts/semantic-ui/modules/nag.js +8 -8
- data/app/assets/javascripts/semantic-ui/modules/popup.js +2 -2
- data/app/assets/javascripts/semantic-ui/modules/rating.js +8 -8
- data/app/assets/javascripts/semantic-ui/modules/search.js +8 -8
- data/app/assets/javascripts/semantic-ui/modules/shape.js +8 -8
- data/app/assets/javascripts/semantic-ui/modules/sidebar.js +8 -8
- data/app/assets/javascripts/semantic-ui/modules/transition.js +32 -23
- data/app/assets/javascripts/semantic-ui/modules/video.js +8 -8
- data/app/assets/stylesheets/semantic-ui/collections/form.less +2 -6
- data/app/assets/stylesheets/semantic-ui/elements/reveal.less +365 -0
- data/lib/generators/semantic/install/templates/semantic-ui.css.less +1 -0
- data/lib/semantic/ui/rails/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb37dd909783b6ad672094c617ede570ee6c73bb
|
4
|
+
data.tar.gz: 5ec26db2ffd155baa8911d522cbe756d5de062e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cbd1f7706a7e1cc0de7caed48b37952c7f9bfc6343186a78f9a51de9cc9390fe806d49cca2861df90d6cc3a15de24e888f8035a2f17eca908cb1c2288319ee5
|
7
|
+
data.tar.gz: 9a4f65027ad39ff9363fa29804ed17bfcca24c41ebf894665dbd7d73a6314089e975735c196717186352f054027e85e460f0c94601c0706d8268bc06b63fd820
|
@@ -319,20 +319,20 @@ $.fn.accordion = function(parameters) {
|
|
319
319
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
320
320
|
: query
|
321
321
|
;
|
322
|
-
if( $.isPlainObject( instance[
|
323
|
-
instance = instance[value];
|
324
|
-
}
|
325
|
-
else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
322
|
+
if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
326
323
|
instance = instance[camelCaseValue];
|
327
324
|
}
|
328
|
-
else if( instance[value] !== undefined ) {
|
329
|
-
found = instance[value];
|
330
|
-
return false;
|
331
|
-
}
|
332
325
|
else if( instance[camelCaseValue] !== undefined ) {
|
333
326
|
found = instance[camelCaseValue];
|
334
327
|
return false;
|
335
328
|
}
|
329
|
+
else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
|
330
|
+
instance = instance[value];
|
331
|
+
}
|
332
|
+
else if( instance[value] !== undefined ) {
|
333
|
+
found = instance[value];
|
334
|
+
return false;
|
335
|
+
}
|
336
336
|
else {
|
337
337
|
module.error(error.method);
|
338
338
|
return false;
|
@@ -246,7 +246,7 @@ $.fn.form = function(fields, parameters) {
|
|
246
246
|
.html(errors[0])
|
247
247
|
;
|
248
248
|
if(!promptExists) {
|
249
|
-
if(settings.transition && $.fn.transition !== undefined) {
|
249
|
+
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
|
250
250
|
module.verbose('Displaying error with css transition', settings.transition);
|
251
251
|
$prompt.transition(settings.transition + ' in', settings.duration);
|
252
252
|
}
|
@@ -279,7 +279,7 @@ $.fn.form = function(fields, parameters) {
|
|
279
279
|
;
|
280
280
|
if(settings.inline && $prompt.is(':visible')) {
|
281
281
|
module.verbose('Removing prompt for field', field);
|
282
|
-
if(settings.transition && $.fn.transition !== undefined) {
|
282
|
+
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
|
283
283
|
$prompt.transition(settings.transition + ' out', settings.duration, function() {
|
284
284
|
$prompt.remove();
|
285
285
|
});
|
@@ -500,20 +500,20 @@ $.fn.form = function(fields, parameters) {
|
|
500
500
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
501
501
|
: query
|
502
502
|
;
|
503
|
-
if( $.isPlainObject( instance[
|
504
|
-
instance = instance[value];
|
505
|
-
}
|
506
|
-
else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
503
|
+
if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
507
504
|
instance = instance[camelCaseValue];
|
508
505
|
}
|
509
|
-
else if( instance[value] !== undefined ) {
|
510
|
-
found = instance[value];
|
511
|
-
return false;
|
512
|
-
}
|
513
506
|
else if( instance[camelCaseValue] !== undefined ) {
|
514
507
|
found = instance[camelCaseValue];
|
515
508
|
return false;
|
516
509
|
}
|
510
|
+
else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
|
511
|
+
instance = instance[value];
|
512
|
+
}
|
513
|
+
else if( instance[value] !== undefined ) {
|
514
|
+
found = instance[value];
|
515
|
+
return false;
|
516
|
+
}
|
517
517
|
else {
|
518
518
|
module.error(error.method);
|
519
519
|
return false;
|
@@ -556,20 +556,20 @@ $.fn.state = function(parameters) {
|
|
556
556
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
557
557
|
: query
|
558
558
|
;
|
559
|
-
if( $.isPlainObject( instance[
|
560
|
-
instance = instance[value];
|
561
|
-
}
|
562
|
-
else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
559
|
+
if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
563
560
|
instance = instance[camelCaseValue];
|
564
561
|
}
|
565
|
-
else if( instance[value] !== undefined ) {
|
566
|
-
found = instance[value];
|
567
|
-
return false;
|
568
|
-
}
|
569
562
|
else if( instance[camelCaseValue] !== undefined ) {
|
570
563
|
found = instance[camelCaseValue];
|
571
564
|
return false;
|
572
565
|
}
|
566
|
+
else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
|
567
|
+
instance = instance[value];
|
568
|
+
}
|
569
|
+
else if( instance[value] !== undefined ) {
|
570
|
+
found = instance[value];
|
571
|
+
return false;
|
572
|
+
}
|
573
573
|
else {
|
574
574
|
module.error(error.method);
|
575
575
|
return false;
|
@@ -250,20 +250,20 @@ $.fn.checkbox = function(parameters) {
|
|
250
250
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
251
251
|
: query
|
252
252
|
;
|
253
|
-
if( $.isPlainObject( instance[
|
254
|
-
instance = instance[value];
|
255
|
-
}
|
256
|
-
else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
253
|
+
if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
257
254
|
instance = instance[camelCaseValue];
|
258
255
|
}
|
259
|
-
else if( instance[value] !== undefined ) {
|
260
|
-
found = instance[value];
|
261
|
-
return false;
|
262
|
-
}
|
263
256
|
else if( instance[camelCaseValue] !== undefined ) {
|
264
257
|
found = instance[camelCaseValue];
|
265
258
|
return false;
|
266
259
|
}
|
260
|
+
else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
|
261
|
+
instance = instance[value];
|
262
|
+
}
|
263
|
+
else if( instance[value] !== undefined ) {
|
264
|
+
found = instance[value];
|
265
|
+
return false;
|
266
|
+
}
|
267
267
|
else {
|
268
268
|
module.error(error.method);
|
269
269
|
return false;
|
@@ -155,7 +155,7 @@ $.fn.dimmer = function(parameters) {
|
|
155
155
|
: function(){}
|
156
156
|
;
|
157
157
|
module.set.dimmed();
|
158
|
-
if($.fn.transition !== undefined &&
|
158
|
+
if(settings.useCSS && $.fn.transition !== undefined && $module.transition('is supported')) {
|
159
159
|
$dimmer
|
160
160
|
.transition({
|
161
161
|
animation : settings.transition + ' in',
|
@@ -190,7 +190,7 @@ $.fn.dimmer = function(parameters) {
|
|
190
190
|
? callback
|
191
191
|
: function(){}
|
192
192
|
;
|
193
|
-
if($.fn.transition !== undefined &&
|
193
|
+
if(settings.useCSS && $.fn.transition !== undefined && $module.transition('is supported')) {
|
194
194
|
module.verbose('Hiding dimmer with css');
|
195
195
|
$dimmer
|
196
196
|
.transition({
|
@@ -434,7 +434,7 @@ $.fn.dropdown = function(parameters) {
|
|
434
434
|
if(settings.transition == 'none') {
|
435
435
|
callback();
|
436
436
|
}
|
437
|
-
else if($.fn.transition !== undefined) {
|
437
|
+
else if($.fn.transition !== undefined && $module.transition('is supported')) {
|
438
438
|
$currentMenu.transition({
|
439
439
|
animation : settings.transition + ' in',
|
440
440
|
duration : settings.duration,
|
@@ -482,7 +482,7 @@ $.fn.dropdown = function(parameters) {
|
|
482
482
|
callback = callback || function(){};
|
483
483
|
if(module.is.visible($currentMenu) ) {
|
484
484
|
module.verbose('Doing menu hide animation', $currentMenu);
|
485
|
-
if($.fn.transition !== undefined) {
|
485
|
+
if($.fn.transition !== undefined && $module.transition('is supported')) {
|
486
486
|
$currentMenu.transition({
|
487
487
|
animation : settings.transition + ' out',
|
488
488
|
duration : settings.duration,
|
@@ -702,20 +702,20 @@ $.fn.dropdown = function(parameters) {
|
|
702
702
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
703
703
|
: query
|
704
704
|
;
|
705
|
-
if( $.isPlainObject( instance[
|
706
|
-
instance = instance[value];
|
707
|
-
}
|
708
|
-
else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
705
|
+
if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
709
706
|
instance = instance[camelCaseValue];
|
710
707
|
}
|
711
|
-
else if( instance[value] !== undefined ) {
|
712
|
-
found = instance[value];
|
713
|
-
return false;
|
714
|
-
}
|
715
708
|
else if( instance[camelCaseValue] !== undefined ) {
|
716
709
|
found = instance[camelCaseValue];
|
717
710
|
return false;
|
718
711
|
}
|
712
|
+
else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
|
713
|
+
instance = instance[value];
|
714
|
+
}
|
715
|
+
else if( instance[value] !== undefined ) {
|
716
|
+
found = instance[value];
|
717
|
+
return false;
|
718
|
+
}
|
719
719
|
else {
|
720
720
|
module.error(error.method);
|
721
721
|
return false;
|
@@ -235,7 +235,7 @@ $.fn.modal = function(parameters) {
|
|
235
235
|
module.hideOthers(module.showModal);
|
236
236
|
}
|
237
237
|
else {
|
238
|
-
if(settings.transition && $.fn.transition !== undefined) {
|
238
|
+
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
|
239
239
|
$module
|
240
240
|
.transition(settings.transition + ' in', settings.duration, function() {
|
241
241
|
module.set.active();
|
@@ -301,7 +301,7 @@ $.fn.modal = function(parameters) {
|
|
301
301
|
if( module.is.active() ) {
|
302
302
|
module.debug('Hiding modal');
|
303
303
|
module.remove.keyboardShortcuts();
|
304
|
-
if(settings.transition && $.fn.transition !== undefined) {
|
304
|
+
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
|
305
305
|
$module
|
306
306
|
.transition(settings.transition + ' out', settings.duration, function() {
|
307
307
|
module.remove.active();
|
@@ -419,20 +419,20 @@ $.fn.nag = function(parameters) {
|
|
419
419
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
420
420
|
: query
|
421
421
|
;
|
422
|
-
if( $.isPlainObject( instance[
|
423
|
-
instance = instance[value];
|
424
|
-
}
|
425
|
-
else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
422
|
+
if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
426
423
|
instance = instance[camelCaseValue];
|
427
424
|
}
|
428
|
-
else if( instance[value] !== undefined ) {
|
429
|
-
found = instance[value];
|
430
|
-
return false;
|
431
|
-
}
|
432
425
|
else if( instance[camelCaseValue] !== undefined ) {
|
433
426
|
found = instance[camelCaseValue];
|
434
427
|
return false;
|
435
428
|
}
|
429
|
+
else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
|
430
|
+
instance = instance[value];
|
431
|
+
}
|
432
|
+
else if( instance[value] !== undefined ) {
|
433
|
+
found = instance[value];
|
434
|
+
return false;
|
435
|
+
}
|
436
436
|
else {
|
437
437
|
module.error(error.method);
|
438
438
|
return false;
|
@@ -256,7 +256,7 @@ $.fn.popup = function(parameters) {
|
|
256
256
|
$module
|
257
257
|
.addClass(className.visible)
|
258
258
|
;
|
259
|
-
if(settings.transition && $.fn.transition !== undefined) {
|
259
|
+
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
|
260
260
|
$popup
|
261
261
|
.transition(settings.transition + ' in', settings.duration, function() {
|
262
262
|
module.bind.close();
|
@@ -278,7 +278,7 @@ $.fn.popup = function(parameters) {
|
|
278
278
|
hide: function(callback) {
|
279
279
|
callback = callback || function(){};
|
280
280
|
module.debug('Hiding pop-up');
|
281
|
-
if(settings.transition && $.fn.transition !== undefined) {
|
281
|
+
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
|
282
282
|
$popup
|
283
283
|
.transition(settings.transition + ' out', settings.duration, function() {
|
284
284
|
module.reset();
|
@@ -309,20 +309,20 @@ $.fn.rating = function(parameters) {
|
|
309
309
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
310
310
|
: query
|
311
311
|
;
|
312
|
-
if( $.isPlainObject( instance[
|
313
|
-
instance = instance[value];
|
314
|
-
}
|
315
|
-
else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
312
|
+
if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
316
313
|
instance = instance[camelCaseValue];
|
317
314
|
}
|
318
|
-
else if( instance[value] !== undefined ) {
|
319
|
-
found = instance[value];
|
320
|
-
return false;
|
321
|
-
}
|
322
315
|
else if( instance[camelCaseValue] !== undefined ) {
|
323
316
|
found = instance[camelCaseValue];
|
324
317
|
return false;
|
325
318
|
}
|
319
|
+
else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
|
320
|
+
instance = instance[value];
|
321
|
+
}
|
322
|
+
else if( instance[value] !== undefined ) {
|
323
|
+
found = instance[value];
|
324
|
+
return false;
|
325
|
+
}
|
326
326
|
else {
|
327
327
|
module.error(error.method);
|
328
328
|
return false;
|
@@ -522,20 +522,20 @@ $.fn.search = function(source, parameters) {
|
|
522
522
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
523
523
|
: query
|
524
524
|
;
|
525
|
-
if( $.isPlainObject( instance[
|
526
|
-
instance = instance[value];
|
527
|
-
}
|
528
|
-
else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
525
|
+
if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
529
526
|
instance = instance[camelCaseValue];
|
530
527
|
}
|
531
|
-
else if( instance[value] !== undefined ) {
|
532
|
-
found = instance[value];
|
533
|
-
return false;
|
534
|
-
}
|
535
528
|
else if( instance[camelCaseValue] !== undefined ) {
|
536
529
|
found = instance[camelCaseValue];
|
537
530
|
return false;
|
538
531
|
}
|
532
|
+
else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
|
533
|
+
instance = instance[value];
|
534
|
+
}
|
535
|
+
else if( instance[value] !== undefined ) {
|
536
|
+
found = instance[value];
|
537
|
+
return false;
|
538
|
+
}
|
539
539
|
else {
|
540
540
|
module.error(error.method);
|
541
541
|
return false;
|
@@ -677,20 +677,20 @@ $.fn.shape = function(parameters) {
|
|
677
677
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
678
678
|
: query
|
679
679
|
;
|
680
|
-
if( $.isPlainObject( instance[
|
681
|
-
instance = instance[value];
|
682
|
-
}
|
683
|
-
else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
680
|
+
if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
684
681
|
instance = instance[camelCaseValue];
|
685
682
|
}
|
686
|
-
else if( instance[value] !== undefined ) {
|
687
|
-
found = instance[value];
|
688
|
-
return false;
|
689
|
-
}
|
690
683
|
else if( instance[camelCaseValue] !== undefined ) {
|
691
684
|
found = instance[camelCaseValue];
|
692
685
|
return false;
|
693
686
|
}
|
687
|
+
else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
|
688
|
+
instance = instance[value];
|
689
|
+
}
|
690
|
+
else if( instance[value] !== undefined ) {
|
691
|
+
found = instance[value];
|
692
|
+
return false;
|
693
|
+
}
|
694
694
|
else {
|
695
695
|
module.error(error.method);
|
696
696
|
return false;
|
@@ -413,20 +413,20 @@ $.fn.sidebar = function(parameters) {
|
|
413
413
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
414
414
|
: query
|
415
415
|
;
|
416
|
-
if( $.isPlainObject( instance[
|
417
|
-
instance = instance[value];
|
418
|
-
}
|
419
|
-
else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
416
|
+
if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
420
417
|
instance = instance[camelCaseValue];
|
421
418
|
}
|
422
|
-
else if( instance[value] !== undefined ) {
|
423
|
-
found = instance[value];
|
424
|
-
return false;
|
425
|
-
}
|
426
419
|
else if( instance[camelCaseValue] !== undefined ) {
|
427
420
|
found = instance[camelCaseValue];
|
428
421
|
return false;
|
429
422
|
}
|
423
|
+
else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
|
424
|
+
instance = instance[value];
|
425
|
+
}
|
426
|
+
else if( instance[value] !== undefined ) {
|
427
|
+
found = instance[value];
|
428
|
+
return false;
|
429
|
+
}
|
430
430
|
else {
|
431
431
|
module.error(error.method);
|
432
432
|
return false;
|
@@ -101,6 +101,10 @@ $.fn.transition = function() {
|
|
101
101
|
|
102
102
|
animate: function(overrideSettings) {
|
103
103
|
settings = overrideSettings || settings;
|
104
|
+
if(!module.is.supported()) {
|
105
|
+
module.error(error.support);
|
106
|
+
return false;
|
107
|
+
}
|
104
108
|
module.debug('Preparing animation', settings.animation);
|
105
109
|
if(module.is.animating()) {
|
106
110
|
if(settings.queue) {
|
@@ -120,7 +124,7 @@ $.fn.transition = function() {
|
|
120
124
|
if(!module.has.direction() && module.can.transition()) {
|
121
125
|
module.set.direction();
|
122
126
|
}
|
123
|
-
if(!module.
|
127
|
+
if(!module.has.transitionAvailable) {
|
124
128
|
module.restore.conditions();
|
125
129
|
module.error(error.noAnimation);
|
126
130
|
return false;
|
@@ -172,6 +176,16 @@ $.fn.transition = function() {
|
|
172
176
|
if( $module.hasClass(className.inward) || $module.hasClass(className.outward) ) {
|
173
177
|
return true;
|
174
178
|
}
|
179
|
+
},
|
180
|
+
transitionAvailable: function() {
|
181
|
+
if($module.css(animationName) !== 'none') {
|
182
|
+
module.debug('CSS definition found');
|
183
|
+
return true;
|
184
|
+
}
|
185
|
+
else {
|
186
|
+
module.debug('Unable to find css definition');
|
187
|
+
return false;
|
188
|
+
}
|
175
189
|
}
|
176
190
|
},
|
177
191
|
|
@@ -332,7 +346,7 @@ $.fn.transition = function() {
|
|
332
346
|
;
|
333
347
|
for(animation in animations){
|
334
348
|
if( element.style[animation] !== undefined ){
|
335
|
-
module.verbose('
|
349
|
+
module.verbose('Determined animation vendor name property', animations[animation]);
|
336
350
|
return animations[animation];
|
337
351
|
}
|
338
352
|
}
|
@@ -352,7 +366,7 @@ $.fn.transition = function() {
|
|
352
366
|
;
|
353
367
|
for(animation in animations){
|
354
368
|
if( element.style[animation] !== undefined ){
|
355
|
-
module.verbose('
|
369
|
+
module.verbose('Determined animation vendor end event', animations[animation]);
|
356
370
|
return animations[animation];
|
357
371
|
}
|
358
372
|
}
|
@@ -362,16 +376,6 @@ $.fn.transition = function() {
|
|
362
376
|
},
|
363
377
|
|
364
378
|
can: {
|
365
|
-
animate: function() {
|
366
|
-
if($module.css(animationName) !== 'none') {
|
367
|
-
module.debug('CSS definition found');
|
368
|
-
return true;
|
369
|
-
}
|
370
|
-
else {
|
371
|
-
module.debug('Unable to find css definition');
|
372
|
-
return false;
|
373
|
-
}
|
374
|
-
},
|
375
379
|
transition: function() {
|
376
380
|
var
|
377
381
|
$clone = $('<div>').addClass( $module.attr('class') ).appendTo($('body')),
|
@@ -400,6 +404,9 @@ $.fn.transition = function() {
|
|
400
404
|
},
|
401
405
|
visible: function() {
|
402
406
|
return $module.is(':visible');
|
407
|
+
},
|
408
|
+
supported: function() {
|
409
|
+
return(animationName !== false && animationEnd !== false);
|
403
410
|
}
|
404
411
|
},
|
405
412
|
|
@@ -555,21 +562,22 @@ $.fn.transition = function() {
|
|
555
562
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
556
563
|
: query
|
557
564
|
;
|
558
|
-
if( $.isPlainObject( instance[
|
559
|
-
instance = instance[value];
|
560
|
-
}
|
561
|
-
else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
565
|
+
if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
562
566
|
instance = instance[camelCaseValue];
|
563
567
|
}
|
564
|
-
else if( instance[value] !== undefined ) {
|
565
|
-
found = instance[value];
|
566
|
-
return false;
|
567
|
-
}
|
568
568
|
else if( instance[camelCaseValue] !== undefined ) {
|
569
569
|
found = instance[camelCaseValue];
|
570
570
|
return false;
|
571
571
|
}
|
572
|
+
else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
|
573
|
+
instance = instance[value];
|
574
|
+
}
|
575
|
+
else if( instance[value] !== undefined ) {
|
576
|
+
found = instance[value];
|
577
|
+
return false;
|
578
|
+
}
|
572
579
|
else {
|
580
|
+
module.error(error.method);
|
573
581
|
return false;
|
574
582
|
}
|
575
583
|
});
|
@@ -589,7 +597,7 @@ $.fn.transition = function() {
|
|
589
597
|
else if(response !== undefined) {
|
590
598
|
returnedValue = response;
|
591
599
|
}
|
592
|
-
return found
|
600
|
+
return found;
|
593
601
|
}
|
594
602
|
};
|
595
603
|
module.initialize();
|
@@ -645,7 +653,8 @@ $.fn.transition.settings = {
|
|
645
653
|
// possible errors
|
646
654
|
error: {
|
647
655
|
noAnimation : 'There is no css animation matching the one you specified.',
|
648
|
-
method : 'The method you called is not defined'
|
656
|
+
method : 'The method you called is not defined',
|
657
|
+
support : 'This browser does not support CSS animations'
|
649
658
|
}
|
650
659
|
|
651
660
|
};
|
@@ -348,20 +348,20 @@ $.fn.video = function(parameters) {
|
|
348
348
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
349
349
|
: query
|
350
350
|
;
|
351
|
-
if( $.isPlainObject( instance[
|
352
|
-
instance = instance[value];
|
353
|
-
}
|
354
|
-
else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
351
|
+
if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
|
355
352
|
instance = instance[camelCaseValue];
|
356
353
|
}
|
357
|
-
else if( instance[value] !== undefined ) {
|
358
|
-
found = instance[value];
|
359
|
-
return false;
|
360
|
-
}
|
361
354
|
else if( instance[camelCaseValue] !== undefined ) {
|
362
355
|
found = instance[camelCaseValue];
|
363
356
|
return false;
|
364
357
|
}
|
358
|
+
else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
|
359
|
+
instance = instance[value];
|
360
|
+
}
|
361
|
+
else if( instance[value] !== undefined ) {
|
362
|
+
found = instance[value];
|
363
|
+
return false;
|
364
|
+
}
|
365
365
|
else {
|
366
366
|
module.error(error.method);
|
367
367
|
return false;
|
@@ -64,7 +64,6 @@
|
|
64
64
|
|
65
65
|
|
66
66
|
.ui.form textarea,
|
67
|
-
.ui.form select,
|
68
67
|
.ui.form input[type="text"],
|
69
68
|
.ui.form input[type="email"],
|
70
69
|
.ui.form input[type="date"],
|
@@ -76,7 +75,6 @@
|
|
76
75
|
}
|
77
76
|
|
78
77
|
.ui.form textarea,
|
79
|
-
.ui.form select,
|
80
78
|
.ui.form input[type="text"],
|
81
79
|
.ui.form input[type="email"],
|
82
80
|
.ui.form input[type="date"],
|
@@ -212,8 +210,7 @@
|
|
212
210
|
.ui.form input[type="password"]:focus,
|
213
211
|
.ui.form input[type="number"]:focus,
|
214
212
|
.ui.form input[type="tel"]:focus,
|
215
|
-
.ui.form textarea:focus
|
216
|
-
.ui.form select:focus{
|
213
|
+
.ui.form textarea:focus{
|
217
214
|
color: rgba(0, 0, 0, 0.85);
|
218
215
|
border-color: rgba(0, 0, 0, 0.2);
|
219
216
|
border-bottom-left-radius: 0;
|
@@ -565,8 +562,7 @@
|
|
565
562
|
.ui.small.form input[type="password"],
|
566
563
|
.ui.small.form input[type="number"],
|
567
564
|
.ui.small.form input[type="tel"],
|
568
|
-
.ui.small.form label
|
569
|
-
.ui.small.form select{
|
565
|
+
.ui.small.form label{
|
570
566
|
font-size: 1em;
|
571
567
|
}
|
572
568
|
|
@@ -0,0 +1,365 @@
|
|
1
|
+
/*
|
2
|
+
* # Semantic - Reveal
|
3
|
+
* http://github.com/jlukic/semantic-ui/
|
4
|
+
*
|
5
|
+
*
|
6
|
+
* Copyright 2013 Contributors
|
7
|
+
* Released under the MIT license
|
8
|
+
* http://opensource.org/licenses/MIT
|
9
|
+
*
|
10
|
+
*/
|
11
|
+
|
12
|
+
/*******************************
|
13
|
+
Reveal
|
14
|
+
*******************************/
|
15
|
+
|
16
|
+
.ui.reveal {
|
17
|
+
display: inline-block;
|
18
|
+
position: relative !important;
|
19
|
+
z-index: 2 !important;
|
20
|
+
font-size: 0em !important;
|
21
|
+
}
|
22
|
+
|
23
|
+
.ui.reveal > .content {
|
24
|
+
font-size: 1rem !important;
|
25
|
+
}
|
26
|
+
|
27
|
+
.ui.reveal > .visible.content {
|
28
|
+
-webkit-transition:
|
29
|
+
all 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s
|
30
|
+
;
|
31
|
+
-moz-transition:
|
32
|
+
all 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s
|
33
|
+
;
|
34
|
+
-ms-transition:
|
35
|
+
all 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s
|
36
|
+
;
|
37
|
+
transition:
|
38
|
+
all 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s
|
39
|
+
;
|
40
|
+
}
|
41
|
+
|
42
|
+
.ui.reveal > .visible.content {
|
43
|
+
position: absolute !important;
|
44
|
+
top: 0em !important;
|
45
|
+
left: 0em !important;
|
46
|
+
z-index: 4 !important;
|
47
|
+
-webkit-transition:
|
48
|
+
all 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s
|
49
|
+
;
|
50
|
+
-moz-transition:
|
51
|
+
all 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s
|
52
|
+
;
|
53
|
+
-ms-transition:
|
54
|
+
all 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s
|
55
|
+
;
|
56
|
+
transition:
|
57
|
+
all 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s
|
58
|
+
;
|
59
|
+
}
|
60
|
+
.ui.reveal > .hidden.content {
|
61
|
+
position: relative !important;
|
62
|
+
z-index: 3 !important;
|
63
|
+
}
|
64
|
+
|
65
|
+
/*------------------
|
66
|
+
Loose Coupling
|
67
|
+
-------------------*/
|
68
|
+
|
69
|
+
.ui.reveal.button {
|
70
|
+
overflow: hidden;
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
/*******************************
|
76
|
+
Types
|
77
|
+
*******************************/
|
78
|
+
|
79
|
+
|
80
|
+
/*--------------
|
81
|
+
Slide
|
82
|
+
---------------*/
|
83
|
+
|
84
|
+
.ui.slide.reveal {
|
85
|
+
position: relative !important;
|
86
|
+
display: block;
|
87
|
+
overflow: hidden !important;
|
88
|
+
|
89
|
+
white-space: nowrap;
|
90
|
+
}
|
91
|
+
|
92
|
+
.ui.slide.reveal > .content {
|
93
|
+
display: block;
|
94
|
+
float: left;
|
95
|
+
|
96
|
+
-webkit-box-sizing: border-box;
|
97
|
+
-moz-box-sizing: border-box;
|
98
|
+
-ms-box-sizing: border-box;
|
99
|
+
box-sizing: border-box;
|
100
|
+
|
101
|
+
margin: 0em;
|
102
|
+
-webkit-transition:
|
103
|
+
top 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s,
|
104
|
+
left 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s,
|
105
|
+
right 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s,
|
106
|
+
bottom 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s
|
107
|
+
;
|
108
|
+
-moz-transition:
|
109
|
+
top 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s,
|
110
|
+
left 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s,
|
111
|
+
right 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s,
|
112
|
+
bottom 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s
|
113
|
+
;
|
114
|
+
-ms-transition:
|
115
|
+
top 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s,
|
116
|
+
left 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s,
|
117
|
+
right 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s,
|
118
|
+
bottom 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s
|
119
|
+
;
|
120
|
+
transition:
|
121
|
+
top 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s,
|
122
|
+
left 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s,
|
123
|
+
right 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s,
|
124
|
+
bottom 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s
|
125
|
+
;
|
126
|
+
}
|
127
|
+
.ui.slide.reveal > .visible.content {
|
128
|
+
position: relative !important;
|
129
|
+
}
|
130
|
+
.ui.slide.reveal > .hidden.content {
|
131
|
+
position: absolute !important;
|
132
|
+
left: 100% !important;
|
133
|
+
width: 100% !important;
|
134
|
+
}
|
135
|
+
.ui.slide.reveal:hover > .visible.content {
|
136
|
+
left: -100% !important;
|
137
|
+
}
|
138
|
+
.ui.slide.reveal:hover > .hidden.content {
|
139
|
+
left: 0% !important;
|
140
|
+
}
|
141
|
+
|
142
|
+
.ui.right.slide.reveal > .visible.content {
|
143
|
+
left: 0%;
|
144
|
+
}
|
145
|
+
.ui.right.slide.reveal > .hidden.content {
|
146
|
+
left: auto !important;
|
147
|
+
right: 100% !important;
|
148
|
+
}
|
149
|
+
.ui.right.slide.reveal:hover > .visible.content {
|
150
|
+
left: 100% !important;
|
151
|
+
right: auto !important;
|
152
|
+
}
|
153
|
+
.ui.right.slide.reveal:hover > .hidden.content {
|
154
|
+
left: auto !important;
|
155
|
+
right: 0% !important;
|
156
|
+
}
|
157
|
+
|
158
|
+
.ui.up.slide.reveal > .visible.content {
|
159
|
+
top: 0% !important;
|
160
|
+
left: 0% !important;
|
161
|
+
right: auto !important;
|
162
|
+
bottom: auto !important;
|
163
|
+
}
|
164
|
+
.ui.up.slide.reveal > .hidden.content {
|
165
|
+
top: 100% !important;
|
166
|
+
left: 0% !important;
|
167
|
+
right: auto !important;
|
168
|
+
bottom: auto !important;
|
169
|
+
}
|
170
|
+
.ui.slide.up.reveal:hover > .visible.content {
|
171
|
+
top: -100% !important;
|
172
|
+
left: 0% !important;
|
173
|
+
}
|
174
|
+
.ui.slide.up.reveal:hover > .hidden.content {
|
175
|
+
top: 0% !important;
|
176
|
+
left: 0% !important;
|
177
|
+
}
|
178
|
+
|
179
|
+
.ui.down.slide.reveal > .visible.content {
|
180
|
+
top: auto !important;
|
181
|
+
right: auto !important;
|
182
|
+
bottom: auto !important;
|
183
|
+
bottom: 0% !important;
|
184
|
+
}
|
185
|
+
.ui.down.slide.reveal > .hidden.content {
|
186
|
+
top: auto !important;
|
187
|
+
right: auto !important;
|
188
|
+
bottom: 100% !important;
|
189
|
+
left: 0% !important;
|
190
|
+
}
|
191
|
+
.ui.slide.down.reveal:hover > .visible.content {
|
192
|
+
left: 0% !important;
|
193
|
+
bottom: -100% !important;
|
194
|
+
}
|
195
|
+
.ui.slide.down.reveal:hover > .hidden.content {
|
196
|
+
left: 0% !important;
|
197
|
+
bottom: 0% !important;
|
198
|
+
}
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
/*--------------
|
203
|
+
Fade
|
204
|
+
---------------*/
|
205
|
+
|
206
|
+
.ui.fade.reveal > .visible.content {
|
207
|
+
opacity: 1;
|
208
|
+
}
|
209
|
+
.ui.fade.reveal:hover > .visible.content {
|
210
|
+
opacity: 0;
|
211
|
+
}
|
212
|
+
|
213
|
+
|
214
|
+
/*--------------
|
215
|
+
Move
|
216
|
+
---------------*/
|
217
|
+
|
218
|
+
.ui.move.reveal > .visible.content,
|
219
|
+
.ui.move.left.reveal > .visible.content {
|
220
|
+
left: auto !important;
|
221
|
+
top: auto !important;
|
222
|
+
bottom: auto !important;
|
223
|
+
right: 0% !important;
|
224
|
+
}
|
225
|
+
.ui.move.reveal:hover > .visible.content,
|
226
|
+
.ui.move.left.reveal:hover > .visible.content {
|
227
|
+
right: 100% !important;
|
228
|
+
}
|
229
|
+
|
230
|
+
.ui.move.right.reveal > .visible.content {
|
231
|
+
right: auto !important;
|
232
|
+
top: auto !important;
|
233
|
+
bottom: auto !important;
|
234
|
+
left: 0% !important;
|
235
|
+
}
|
236
|
+
.ui.move.right.reveal:hover > .visible.content {
|
237
|
+
left: 100% !important;
|
238
|
+
}
|
239
|
+
|
240
|
+
.ui.move.up.reveal > .visible.content {
|
241
|
+
right: auto !important;
|
242
|
+
left: auto !important;
|
243
|
+
top: auto !important;
|
244
|
+
|
245
|
+
bottom: 0% !important;
|
246
|
+
}
|
247
|
+
.ui.move.up.reveal:hover > .visible.content {
|
248
|
+
bottom: 100% !important;
|
249
|
+
}
|
250
|
+
|
251
|
+
.ui.move.down.reveal > .visible.content {
|
252
|
+
right: auto !important;
|
253
|
+
left: auto !important;
|
254
|
+
bottom: auto !important;
|
255
|
+
|
256
|
+
top: 0% !important;
|
257
|
+
bottom: auto !important;
|
258
|
+
}
|
259
|
+
.ui.move.down.reveal:hover > .visible.content {
|
260
|
+
top: 100% !important;
|
261
|
+
}
|
262
|
+
|
263
|
+
|
264
|
+
/*--------------
|
265
|
+
Rotate
|
266
|
+
---------------*/
|
267
|
+
|
268
|
+
.ui.rotate.reveal > .visible.content {
|
269
|
+
-webkit-transition-duration: 0.8s;
|
270
|
+
-moz-transition-duration: 0.8s;
|
271
|
+
-o-transition-duration: 0.8s;
|
272
|
+
-ms-transition-duration: 0.8s;
|
273
|
+
transition-duration: 0.8s;
|
274
|
+
|
275
|
+
-webkit-transform: rotate(0deg);
|
276
|
+
-moz-transform: rotate(0deg);
|
277
|
+
-o-transform: rotate(0deg);
|
278
|
+
-ms-transform: rotate(0deg);
|
279
|
+
transform: rotate(0deg);
|
280
|
+
}
|
281
|
+
|
282
|
+
.ui.rotate.reveal > .visible.content,
|
283
|
+
.ui.rotate.right.reveal > .visible.content {
|
284
|
+
-webkit-transform-origin: bottom right;
|
285
|
+
-moz-transform-origin: bottom right;
|
286
|
+
-o-transform-origin: bottom right;
|
287
|
+
-ms-transform-origin: bottom right;
|
288
|
+
transform-origin: bottom right;
|
289
|
+
}
|
290
|
+
.ui.rotate.reveal:hover > .visible.content,
|
291
|
+
.ui.rotate.right.reveal:hover > .visible.content {
|
292
|
+
-webkit-transform: rotate(110deg);
|
293
|
+
-moz-transform: rotate(110deg);
|
294
|
+
-o-transform: rotate(110deg);
|
295
|
+
-ms-transform: rotate(110deg);
|
296
|
+
transform: rotate(110deg);
|
297
|
+
}
|
298
|
+
|
299
|
+
.ui.rotate.left.reveal > .visible.content {
|
300
|
+
-webkit-transform-origin: bottom left;
|
301
|
+
-moz-transform-origin: bottom left;
|
302
|
+
-o-transform-origin: bottom left;
|
303
|
+
-ms-transform-origin: bottom left;
|
304
|
+
transform-origin: bottom left;
|
305
|
+
}
|
306
|
+
.ui.rotate.left.reveal:hover > .visible.content {
|
307
|
+
-webkit-transform: rotate(-110deg);
|
308
|
+
-moz-transform: rotate(-110deg);
|
309
|
+
-o-transform: rotate(-110deg);
|
310
|
+
-ms-transform: rotate(-110deg);
|
311
|
+
transform: rotate(-110deg);
|
312
|
+
}
|
313
|
+
|
314
|
+
/*******************************
|
315
|
+
States
|
316
|
+
*******************************/
|
317
|
+
|
318
|
+
.ui.disabled.reveal {
|
319
|
+
opacity: 1 !important;
|
320
|
+
}
|
321
|
+
.ui.disabled.reveal > .content {
|
322
|
+
-webkit-transition: none !important;
|
323
|
+
-moz-transition: none !important;
|
324
|
+
-o-transition: none !important;
|
325
|
+
-ms-transition: none !important;
|
326
|
+
transition: none !important;
|
327
|
+
}
|
328
|
+
.ui.disabled.reveal:hover > .visible.content {
|
329
|
+
position: static !important;
|
330
|
+
display: block !important;
|
331
|
+
opacity: 1 !important;
|
332
|
+
top: 0 !important;
|
333
|
+
left: 0 !important;
|
334
|
+
right: auto !important;
|
335
|
+
bottom: auto !important;
|
336
|
+
transform: none !important;
|
337
|
+
}
|
338
|
+
.ui.disabled.reveal:hover > .hidden.content {
|
339
|
+
display: none !important;
|
340
|
+
}
|
341
|
+
|
342
|
+
|
343
|
+
/*******************************
|
344
|
+
Variations
|
345
|
+
*******************************/
|
346
|
+
|
347
|
+
/*--------------
|
348
|
+
Masked
|
349
|
+
---------------*/
|
350
|
+
|
351
|
+
.ui.masked.reveal {
|
352
|
+
overflow: hidden;
|
353
|
+
}
|
354
|
+
|
355
|
+
/*--------------
|
356
|
+
Instant
|
357
|
+
---------------*/
|
358
|
+
|
359
|
+
.ui.instant.reveal > .content {
|
360
|
+
-webkit-transition-delay: 0s !important;
|
361
|
+
-moz-transition-delay: 0s !important;
|
362
|
+
-o-transition-delay: 0s !important;
|
363
|
+
-ms-transition-delay: 0s !important;
|
364
|
+
transition-delay: 0s !important;
|
365
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic-ui-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nd0ut
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: less-rails
|
@@ -158,6 +158,7 @@ files:
|
|
158
158
|
- app/assets/stylesheets/semantic-ui/elements/label.less
|
159
159
|
- app/assets/stylesheets/semantic-ui/elements/loader.less
|
160
160
|
- app/assets/stylesheets/semantic-ui/elements/progress.less
|
161
|
+
- app/assets/stylesheets/semantic-ui/elements/reveal.less
|
161
162
|
- app/assets/stylesheets/semantic-ui/elements/segment.less
|
162
163
|
- app/assets/stylesheets/semantic-ui/elements/step.less
|
163
164
|
- app/assets/stylesheets/semantic-ui/modules/accordion.less
|