semantic-ui-sass 2.3.1.2 → 2.4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.travis.yml +4 -2
  4. data/CHANGELOG.md +124 -100
  5. data/README.md +87 -16
  6. data/app/assets/javascripts/semantic-ui/dimmer.js +27 -4
  7. data/app/assets/javascripts/semantic-ui/dropdown.js +41 -9
  8. data/app/assets/javascripts/semantic-ui/embed.js +11 -1
  9. data/app/assets/javascripts/semantic-ui/modal.js +85 -10
  10. data/app/assets/javascripts/semantic-ui/popup.js +14 -5
  11. data/app/assets/javascripts/semantic-ui/search.js +1 -1
  12. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
  13. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +5 -5
  14. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +28 -28
  15. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +11 -11
  16. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +1 -1
  17. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +5 -5
  18. data/app/assets/stylesheets/semantic-ui/elements/_all.scss +2 -0
  19. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +153 -3
  20. data/app/assets/stylesheets/semantic-ui/elements/_container.scss +30 -31
  21. data/app/assets/stylesheets/semantic-ui/elements/_container_variables.scss +48 -0
  22. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +3 -3
  23. data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +2 -1
  24. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +1 -1
  25. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +36 -17
  26. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
  27. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +1 -1
  28. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +22 -22
  29. data/app/assets/stylesheets/semantic-ui/elements/_list.scss +3 -1
  30. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +1 -1
  31. data/app/assets/stylesheets/semantic-ui/elements/_placeholder.scss +239 -0
  32. data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
  33. data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
  34. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +65 -3
  35. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +6 -6
  36. data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +1 -1
  37. data/app/assets/stylesheets/semantic-ui/globals/_site.scss +39 -37
  38. data/app/assets/stylesheets/semantic-ui/globals/_variables.scss +46 -2
  39. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -1
  40. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +1 -1
  41. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +27 -13
  42. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +38 -29
  43. data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +1 -1
  44. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +60 -35
  45. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
  46. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +2 -2
  47. data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
  48. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -1
  49. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +4 -2
  50. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
  51. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +1 -1
  52. data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
  53. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +1 -1
  54. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
  55. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +2 -2
  56. data/app/assets/stylesheets/semantic-ui/views/_card.scss +4 -4
  57. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +1 -1
  58. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +1 -1
  59. data/app/assets/stylesheets/semantic-ui/views/_item.scss +4 -4
  60. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +23 -26
  61. data/lib/semantic-ui-sass.rb +2 -2
  62. data/lib/semantic/ui/sass/version.rb +2 -2
  63. data/package.json +29 -0
  64. data/script.js +56 -0
  65. data/semantic-ui-sass.gemspec +2 -2
  66. data/spec/dummy/app/assets/config/manifest.js +3 -0
  67. data/tasks/converter.rb +29 -2
  68. data/yarn.lock +4 -0
  69. metadata +19 -13
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Video
2
+ * # Semantic UI 2.4.2 - Video
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Modal
2
+ * # Semantic UI 2.4.2 - Modal
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -14,6 +14,7 @@
14
14
  *******************************/
15
15
 
16
16
  .ui.modal {
17
+ position: absolute;
17
18
  display: none;
18
19
  z-index: 1001;
19
20
  text-align: left;
@@ -184,31 +185,31 @@
184
185
 
185
186
 
186
187
  /* Modal Width */
187
- @media only screen and (max-width: 767px) {
188
+ @media only screen and (max-width: $largest-mobile-screen) {
188
189
  .ui.modal {
189
190
  width: 95%;
190
191
  margin: 0em 0em 0em 0em;
191
192
  }
192
193
  }
193
- @media only screen and (min-width: 768px) {
194
+ @media only screen and (min-width: $tablet-breakpoint) {
194
195
  .ui.modal {
195
196
  width: 88%;
196
197
  margin: 0em 0em 0em 0em;
197
198
  }
198
199
  }
199
- @media only screen and (min-width: 992px) {
200
+ @media only screen and (min-width: $computer-breakpoint) {
200
201
  .ui.modal {
201
202
  width: 850px;
202
203
  margin: 0em 0em 0em 0em;
203
204
  }
204
205
  }
205
- @media only screen and (min-width: 1200px) {
206
+ @media only screen and (min-width: $large-monitor-breakpoint) {
206
207
  .ui.modal {
207
208
  width: 900px;
208
209
  margin: 0em 0em 0em 0em;
209
210
  }
210
211
  }
211
- @media only screen and (min-width: 1920px) {
212
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
212
213
  .ui.modal {
213
214
  width: 950px;
214
215
  margin: 0em 0em 0em 0em;
@@ -216,7 +217,7 @@
216
217
  }
217
218
 
218
219
  /* Tablet and Mobile */
219
- @media only screen and (max-width: 991px) {
220
+ @media only screen and (max-width: $largest-tablet-screen) {
220
221
  .ui.modal > .header {
221
222
  padding-right: 2.25rem;
222
223
  }
@@ -228,7 +229,7 @@
228
229
  }
229
230
 
230
231
  /* Mobile */
231
- @media only screen and (max-width: 767px) {
232
+ @media only screen and (max-width: $largest-mobile-screen) {
232
233
  .ui.modal > .header {
233
234
  padding: 0.75rem 1rem !important;
234
235
  padding-right: 2.25rem !important;
@@ -320,8 +321,21 @@
320
321
  color: rgba(0, 0, 0, 0.85);
321
322
  }
322
323
 
324
+ /* Resort to margin positioning if legacy */
325
+ .ui.legacy.modal,
326
+ .ui.legacy.page.dimmer > .ui.modal {
327
+ top: 50%;
328
+ left: 50%;
329
+ }
330
+ .ui.legacy.page.dimmer > .ui.scrolling.modal,
331
+ .ui.page.dimmer > .ui.scrolling.legacy.modal,
332
+ .ui.top.aligned.legacy.page.dimmer > .ui.modal,
333
+ .ui.top.aligned.dimmer > .ui.legacy.modal {
334
+ top: auto;
335
+ }
336
+
323
337
  /* Tablet and Mobile */
324
- @media only screen and (max-width: 991px) {
338
+ @media only screen and (max-width: $largest-tablet-screen) {
325
339
  .ui.basic.modal > .close {
326
340
  color: #FFFFFF;
327
341
  }
@@ -356,6 +370,21 @@
356
370
  .modals.dimmer[class*="top aligned"] .modal {
357
371
  margin: 5vh auto;
358
372
  }
373
+ @media only screen and (max-width: $largest-mobile-screen) {
374
+ .modals.dimmer[class*="top aligned"] .modal {
375
+ margin: 1rem auto;
376
+ }
377
+ }
378
+
379
+ /* Legacy Top Aligned */
380
+ .legacy.modals.dimmer[class*="top aligned"] {
381
+ padding-top: 5vh;
382
+ }
383
+ @media only screen and (max-width: $largest-mobile-screen) {
384
+ .legacy.modals.dimmer[class*="top aligned"] {
385
+ padding-top: 1rem;
386
+ }
387
+ }
359
388
 
360
389
  /*--------------
361
390
  Scrolling
@@ -379,7 +408,7 @@
379
408
  position: fixed;
380
409
  }
381
410
  .modals.dimmer .ui.scrolling.modal {
382
- margin: 1rem auto !important;
411
+ margin: 1rem auto;
383
412
  }
384
413
 
385
414
  /* Undetached Scrolling */
@@ -398,7 +427,7 @@
398
427
 
399
428
  /* Scrolling Content */
400
429
  .ui.modal .scrolling.content {
401
- max-height: calc(70vh);
430
+ max-height: calc(80vh - 10em);
402
431
  overflow: auto;
403
432
  }
404
433
 
@@ -408,12 +437,8 @@
408
437
 
409
438
  .ui.fullscreen.modal {
410
439
  width: 95% !important;
411
- left: 0em !important;
412
440
  margin: 1em auto;
413
441
  }
414
- .ui.fullscreen.scrolling.modal {
415
- left: 0em !important;
416
- }
417
442
  .ui.fullscreen.modal > .header {
418
443
  padding-right: 2.25rem;
419
444
  }
@@ -437,31 +462,31 @@
437
462
  }
438
463
 
439
464
  /* Mini Modal Width */
440
- @media only screen and (max-width: 767px) {
465
+ @media only screen and (max-width: $largest-mobile-screen) {
441
466
  .ui.mini.modal {
442
467
  width: 95%;
443
468
  margin: 0em 0em 0em 0em;
444
469
  }
445
470
  }
446
- @media only screen and (min-width: 768px) {
471
+ @media only screen and (min-width: $tablet-breakpoint) {
447
472
  .ui.mini.modal {
448
473
  width: 35.2%;
449
474
  margin: 0em 0em 0em 0em;
450
475
  }
451
476
  }
452
- @media only screen and (min-width: 992px) {
477
+ @media only screen and (min-width: $computer-breakpoint) {
453
478
  .ui.mini.modal {
454
479
  width: 340px;
455
480
  margin: 0em 0em 0em 0em;
456
481
  }
457
482
  }
458
- @media only screen and (min-width: 1200px) {
483
+ @media only screen and (min-width: $large-monitor-breakpoint) {
459
484
  .ui.mini.modal {
460
485
  width: 360px;
461
486
  margin: 0em 0em 0em 0em;
462
487
  }
463
488
  }
464
- @media only screen and (min-width: 1920px) {
489
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
465
490
  .ui.mini.modal {
466
491
  width: 380px;
467
492
  margin: 0em 0em 0em 0em;
@@ -474,31 +499,31 @@
474
499
  }
475
500
 
476
501
  /* Tiny Modal Width */
477
- @media only screen and (max-width: 767px) {
502
+ @media only screen and (max-width: $largest-mobile-screen) {
478
503
  .ui.tiny.modal {
479
504
  width: 95%;
480
505
  margin: 0em 0em 0em 0em;
481
506
  }
482
507
  }
483
- @media only screen and (min-width: 768px) {
508
+ @media only screen and (min-width: $tablet-breakpoint) {
484
509
  .ui.tiny.modal {
485
510
  width: 52.8%;
486
511
  margin: 0em 0em 0em 0em;
487
512
  }
488
513
  }
489
- @media only screen and (min-width: 992px) {
514
+ @media only screen and (min-width: $computer-breakpoint) {
490
515
  .ui.tiny.modal {
491
516
  width: 510px;
492
517
  margin: 0em 0em 0em 0em;
493
518
  }
494
519
  }
495
- @media only screen and (min-width: 1200px) {
520
+ @media only screen and (min-width: $large-monitor-breakpoint) {
496
521
  .ui.tiny.modal {
497
522
  width: 540px;
498
523
  margin: 0em 0em 0em 0em;
499
524
  }
500
525
  }
501
- @media only screen and (min-width: 1920px) {
526
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
502
527
  .ui.tiny.modal {
503
528
  width: 570px;
504
529
  margin: 0em 0em 0em 0em;
@@ -511,31 +536,31 @@
511
536
  }
512
537
 
513
538
  /* Small Modal Width */
514
- @media only screen and (max-width: 767px) {
539
+ @media only screen and (max-width: $largest-mobile-screen) {
515
540
  .ui.small.modal {
516
541
  width: 95%;
517
542
  margin: 0em 0em 0em 0em;
518
543
  }
519
544
  }
520
- @media only screen and (min-width: 768px) {
545
+ @media only screen and (min-width: $tablet-breakpoint) {
521
546
  .ui.small.modal {
522
547
  width: 70.4%;
523
548
  margin: 0em 0em 0em 0em;
524
549
  }
525
550
  }
526
- @media only screen and (min-width: 992px) {
551
+ @media only screen and (min-width: $computer-breakpoint) {
527
552
  .ui.small.modal {
528
553
  width: 680px;
529
554
  margin: 0em 0em 0em 0em;
530
555
  }
531
556
  }
532
- @media only screen and (min-width: 1200px) {
557
+ @media only screen and (min-width: $large-monitor-breakpoint) {
533
558
  .ui.small.modal {
534
559
  width: 720px;
535
560
  margin: 0em 0em 0em 0em;
536
561
  }
537
562
  }
538
- @media only screen and (min-width: 1920px) {
563
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
539
564
  .ui.small.modal {
540
565
  width: 760px;
541
566
  margin: 0em 0em 0em 0em;
@@ -546,31 +571,31 @@
546
571
  .ui.large.modal > .header {
547
572
  font-size: 1.6em;
548
573
  }
549
- @media only screen and (max-width: 767px) {
574
+ @media only screen and (max-width: $largest-mobile-screen) {
550
575
  .ui.large.modal {
551
576
  width: 95%;
552
577
  margin: 0em 0em 0em 0em;
553
578
  }
554
579
  }
555
- @media only screen and (min-width: 768px) {
580
+ @media only screen and (min-width: $tablet-breakpoint) {
556
581
  .ui.large.modal {
557
582
  width: 88%;
558
583
  margin: 0em 0em 0em 0em;
559
584
  }
560
585
  }
561
- @media only screen and (min-width: 992px) {
586
+ @media only screen and (min-width: $computer-breakpoint) {
562
587
  .ui.large.modal {
563
588
  width: 1020px;
564
589
  margin: 0em 0em 0em 0em;
565
590
  }
566
591
  }
567
- @media only screen and (min-width: 1200px) {
592
+ @media only screen and (min-width: $large-monitor-breakpoint) {
568
593
  .ui.large.modal {
569
594
  width: 1080px;
570
595
  margin: 0em 0em 0em 0em;
571
596
  }
572
597
  }
573
- @media only screen and (min-width: 1920px) {
598
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
574
599
  .ui.large.modal {
575
600
  width: 1140px;
576
601
  margin: 0em 0em 0em 0em;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Nag
2
+ * # Semantic UI 2.4.2 - Nag
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Popup
2
+ * # Semantic UI 2.4.2 - Popup
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -669,7 +669,7 @@
669
669
  .ui[class*="very wide"].popup {
670
670
  max-width: 550px;
671
671
  }
672
- @media only screen and (max-width: 767px) {
672
+ @media only screen and (max-width: $largest-mobile-screen) {
673
673
  .ui.wide.popup,
674
674
  .ui[class*="very wide"].popup {
675
675
  max-width: 250px;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Progress Bar
2
+ * # Semantic UI 2.4.2 - Progress Bar
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Rating
2
+ * # Semantic UI 2.4.2 - Rating
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Search
2
+ * # Semantic UI 2.4.2 - Search
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -61,6 +61,8 @@
61
61
  -webkit-transform-origin: center top;
62
62
  transform-origin: center top;
63
63
  white-space: normal;
64
+ text-align: left;
65
+ text-transform: none;
64
66
  background: #FFFFFF;
65
67
  margin-top: 0.5em;
66
68
  width: 18em;
@@ -424,7 +426,7 @@
424
426
  Mobile
425
427
  ---------------*/
426
428
 
427
- @media only screen and (max-width: 767px) {
429
+ @media only screen and (max-width: $largest-mobile-screen) {
428
430
  .ui.search .results {
429
431
  max-width: calc(100vw - 2rem);
430
432
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Shape
2
+ * # Semantic UI 2.4.2 - Shape
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Sidebar
2
+ * # Semantic UI 2.4.2 - Sidebar
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Sticky
2
+ * # Semantic UI 2.4.2 - Sticky
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Tab
2
+ * # Semantic UI 2.4.2 - Tab
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Transition
2
+ * # Semantic UI 2.4.2 - Transition
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Ad
2
+ * # Semantic UI 2.4.2 - Ad
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -223,7 +223,7 @@
223
223
  .ui.mobile.ad {
224
224
  display: none;
225
225
  }
226
- @media only screen and (max-width: 767px) {
226
+ @media only screen and (max-width: $largest-mobile-screen) {
227
227
  .ui.mobile.ad {
228
228
  display: block;
229
229
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.3.1 - Item
2
+ * # Semantic UI 2.4.2 - Item
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -787,7 +787,7 @@ a.ui.card:hover,
787
787
 
788
788
 
789
789
  /* Mobile Only */
790
- @media only screen and (max-width: 767px) {
790
+ @media only screen and (max-width: $largest-mobile-screen) {
791
791
  .ui.two.doubling.cards {
792
792
  margin-left: 0em;
793
793
  margin-right: 0em;
@@ -872,7 +872,7 @@ a.ui.card:hover,
872
872
  }
873
873
 
874
874
  /* Tablet Only */
875
- @media only screen and (min-width: 768px) and (max-width: 991px) {
875
+ @media only screen and (min-width: $tablet-breakpoint) and (max-width: $largest-tablet-screen) {
876
876
  .ui.two.doubling.cards {
877
877
  margin-left: 0em;
878
878
  margin-right: 0em;
@@ -960,7 +960,7 @@ a.ui.card:hover,
960
960
  Stackable
961
961
  --------------------*/
962
962
 
963
- @media only screen and (max-width: 767px) {
963
+ @media only screen and (max-width: $largest-mobile-screen) {
964
964
  .ui.stackable.cards {
965
965
  display: block !important;
966
966
  }