semantic-ui-sass 2.4.2.0 → 2.4.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +4 -2
  3. data/CHANGELOG.md +108 -105
  4. data/README.md +48 -2
  5. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +2 -2
  6. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +21 -21
  7. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +3 -3
  8. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +2 -2
  9. data/app/assets/stylesheets/semantic-ui/elements/_all.scss +1 -0
  10. data/app/assets/stylesheets/semantic-ui/elements/_container.scss +29 -30
  11. data/app/assets/stylesheets/semantic-ui/elements/_container_variables.scss +48 -0
  12. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +2 -2
  13. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +2 -2
  14. data/app/assets/stylesheets/semantic-ui/globals/_variables.scss +45 -2
  15. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +12 -12
  16. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +30 -30
  17. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +1 -1
  18. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +1 -1
  19. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +1 -1
  20. data/app/assets/stylesheets/semantic-ui/views/_card.scss +3 -3
  21. data/app/assets/stylesheets/semantic-ui/views/_item.scss +3 -3
  22. data/lib/semantic-ui-sass.rb +2 -2
  23. data/lib/semantic/ui/sass/version.rb +2 -2
  24. data/semantic-ui-sass.gemspec +2 -2
  25. data/spec/dummy/app/assets/config/manifest.js +3 -0
  26. data/tasks/converter.rb +17 -1
  27. metadata +15 -13
@@ -114,7 +114,7 @@
114
114
  }
115
115
 
116
116
  /* Inside grid */
117
- @media only screen and (max-width: 767px) {
117
+ @media only screen and (max-width: $largest-mobile-screen) {
118
118
  .ui.stackable.grid .ui.vertical.divider,
119
119
  .ui.grid .stackable.row .ui.vertical.divider {
120
120
  display: table;
@@ -244,7 +244,7 @@
244
244
  .ui.horizontal.divider:after {
245
245
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABaAAAAACCAYAAACuTHuKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1OThBRDY4OUNDMTYxMUU0OUE3NUVGOEJDMzMzMjE2NyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1OThBRDY4QUNDMTYxMUU0OUE3NUVGOEJDMzMzMjE2NyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjU5OEFENjg3Q0MxNjExRTQ5QTc1RUY4QkMzMzMyMTY3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjU5OEFENjg4Q0MxNjExRTQ5QTc1RUY4QkMzMzMyMTY3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+VU513gAAADVJREFUeNrs0DENACAQBDBIWLGBJQby/mUcJn5sJXQmOQMAAAAAAJqt+2prAAAAAACg2xdgANk6BEVuJgyMAAAAAElFTkSuQmCC');
246
246
  }
247
- @media only screen and (max-width: 767px) {
247
+ @media only screen and (max-width: $largest-mobile-screen) {
248
248
  .ui.stackable.grid .ui.vertical.divider:before,
249
249
  .ui.grid .stackable.row .ui.vertical.divider:before,
250
250
  .ui.stackable.grid .ui.vertical.divider:after,
@@ -283,7 +283,7 @@
283
283
 
284
284
 
285
285
  /* Mobile (Default) */
286
- @media only screen and (max-width: 767px) {
286
+ @media only screen and (max-width: $largest-mobile-screen) {
287
287
  .ui.steps:not(.unstackable) {
288
288
  display: -webkit-inline-box;
289
289
  display: -ms-inline-flexbox;
@@ -425,7 +425,7 @@
425
425
 
426
426
 
427
427
  /* Tablet Or Below */
428
- @media only screen and (max-width: 991px) {
428
+ @media only screen and (max-width: $largest-tablet-screen) {
429
429
  .ui[class*="tablet stackable"].steps {
430
430
  display: -webkit-inline-box;
431
431
  display: -ms-inline-flexbox;
@@ -1,5 +1,48 @@
1
- $import-google-fonts: true !default;
2
- $font-url: 'https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic&subset=latin,latin-ext' !default;
1
+ /*******************************
2
+ Site Settings
3
+ *******************************/
4
+
5
+ /*-------------------
6
+ Fonts
7
+ --------------------*/
8
+
3
9
  $font-name: 'Lato' !default;
4
10
  $font-family: $font-name, 'Helvetica Neue', Arial, Helvetica, sans-serif !default;
11
+ $font-url: 'https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic&subset=latin,latin-ext' !default;
12
+ $import-google-fonts: true !default;
13
+
14
+ /*-------------------
15
+ Base Sizes
16
+ --------------------*/
17
+
18
+ /* This is the single variable that controls them all */
19
+ $em-size: 14px;
20
+
21
+ /*-------------------
22
+ Scroll Bars
23
+ --------------------*/
24
+
5
25
  $use-custom-scrollbars: true !default;
26
+
27
+ /*-------------------
28
+ Breakpoints
29
+ --------------------*/
30
+
31
+ $mobile-breakpoint: 320px !default;
32
+ $tablet-breakpoint: 768px !default;
33
+ $computer-breakpoint: 992px !default;
34
+ $large-monitor-breakpoint: 1200px !default;
35
+ $widescreen-monitor-breakpoint: 1920px !default;
36
+
37
+ /*-------------------
38
+ Derived Values
39
+ --------------------*/
40
+
41
+ /* Rendered Scrollbar Width */
42
+ $scrollbar-width: 17px;
43
+
44
+ /* Responsive */
45
+ $largest-mobile-screen: ($tablet-breakpoint - 1px);
46
+ $largest-tablet-screen: ($computer-breakpoint - 1px);
47
+ $largest-small-monitor: ($large-monitor-breakpoint - 1px);
48
+ $largest-large-monitor: ($widescreen-monitor-breakpoint - 1px);
@@ -433,22 +433,22 @@ select.ui.dropdown {
433
433
  .ui.selection.dropdown .menu > .message {
434
434
  padding: 0.78571429rem 1.14285714rem;
435
435
  }
436
- @media only screen and (max-width: 767px) {
436
+ @media only screen and (max-width: $largest-mobile-screen) {
437
437
  .ui.selection.dropdown .menu {
438
438
  max-height: 8.01428571rem;
439
439
  }
440
440
  }
441
- @media only screen and (min-width: 768px) {
441
+ @media only screen and (min-width: $tablet-breakpoint) {
442
442
  .ui.selection.dropdown .menu {
443
443
  max-height: 10.68571429rem;
444
444
  }
445
445
  }
446
- @media only screen and (min-width: 992px) {
446
+ @media only screen and (min-width: $computer-breakpoint) {
447
447
  .ui.selection.dropdown .menu {
448
448
  max-height: 16.02857143rem;
449
449
  }
450
450
  }
451
- @media only screen and (min-width: 1920px) {
451
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
452
452
  .ui.selection.dropdown .menu {
453
453
  max-height: 21.37142857rem;
454
454
  }
@@ -619,22 +619,22 @@ select.ui.dropdown {
619
619
  backface-visibility: hidden;
620
620
  -webkit-overflow-scrolling: touch;
621
621
  }
622
- @media only screen and (max-width: 767px) {
622
+ @media only screen and (max-width: $largest-mobile-screen) {
623
623
  .ui.search.dropdown .menu {
624
624
  max-height: 8.01428571rem;
625
625
  }
626
626
  }
627
- @media only screen and (min-width: 768px) {
627
+ @media only screen and (min-width: $tablet-breakpoint) {
628
628
  .ui.search.dropdown .menu {
629
629
  max-height: 10.68571429rem;
630
630
  }
631
631
  }
632
- @media only screen and (min-width: 992px) {
632
+ @media only screen and (min-width: $computer-breakpoint) {
633
633
  .ui.search.dropdown .menu {
634
634
  max-height: 16.02857143rem;
635
635
  }
636
636
  }
637
- @media only screen and (min-width: 1920px) {
637
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
638
638
  .ui.search.dropdown .menu {
639
639
  max-height: 21.37142857rem;
640
640
  }
@@ -1141,25 +1141,25 @@ select.ui.dropdown {
1141
1141
  min-width: calc(100% - 17px);
1142
1142
  }
1143
1143
  }
1144
- @media only screen and (max-width: 767px) {
1144
+ @media only screen and (max-width: $largest-mobile-screen) {
1145
1145
  .ui.scrolling.dropdown .menu,
1146
1146
  .ui.dropdown .scrolling.menu {
1147
1147
  max-height: 10.28571429rem;
1148
1148
  }
1149
1149
  }
1150
- @media only screen and (min-width: 768px) {
1150
+ @media only screen and (min-width: $tablet-breakpoint) {
1151
1151
  .ui.scrolling.dropdown .menu,
1152
1152
  .ui.dropdown .scrolling.menu {
1153
1153
  max-height: 15.42857143rem;
1154
1154
  }
1155
1155
  }
1156
- @media only screen and (min-width: 992px) {
1156
+ @media only screen and (min-width: $computer-breakpoint) {
1157
1157
  .ui.scrolling.dropdown .menu,
1158
1158
  .ui.dropdown .scrolling.menu {
1159
1159
  max-height: 20.57142857rem;
1160
1160
  }
1161
1161
  }
1162
- @media only screen and (min-width: 1920px) {
1162
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
1163
1163
  .ui.scrolling.dropdown .menu,
1164
1164
  .ui.dropdown .scrolling.menu {
1165
1165
  max-height: 20.57142857rem;
@@ -185,31 +185,31 @@
185
185
 
186
186
 
187
187
  /* Modal Width */
188
- @media only screen and (max-width: 767px) {
188
+ @media only screen and (max-width: $largest-mobile-screen) {
189
189
  .ui.modal {
190
190
  width: 95%;
191
191
  margin: 0em 0em 0em 0em;
192
192
  }
193
193
  }
194
- @media only screen and (min-width: 768px) {
194
+ @media only screen and (min-width: $tablet-breakpoint) {
195
195
  .ui.modal {
196
196
  width: 88%;
197
197
  margin: 0em 0em 0em 0em;
198
198
  }
199
199
  }
200
- @media only screen and (min-width: 992px) {
200
+ @media only screen and (min-width: $computer-breakpoint) {
201
201
  .ui.modal {
202
202
  width: 850px;
203
203
  margin: 0em 0em 0em 0em;
204
204
  }
205
205
  }
206
- @media only screen and (min-width: 1200px) {
206
+ @media only screen and (min-width: $large-monitor-breakpoint) {
207
207
  .ui.modal {
208
208
  width: 900px;
209
209
  margin: 0em 0em 0em 0em;
210
210
  }
211
211
  }
212
- @media only screen and (min-width: 1920px) {
212
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
213
213
  .ui.modal {
214
214
  width: 950px;
215
215
  margin: 0em 0em 0em 0em;
@@ -217,7 +217,7 @@
217
217
  }
218
218
 
219
219
  /* Tablet and Mobile */
220
- @media only screen and (max-width: 991px) {
220
+ @media only screen and (max-width: $largest-tablet-screen) {
221
221
  .ui.modal > .header {
222
222
  padding-right: 2.25rem;
223
223
  }
@@ -229,7 +229,7 @@
229
229
  }
230
230
 
231
231
  /* Mobile */
232
- @media only screen and (max-width: 767px) {
232
+ @media only screen and (max-width: $largest-mobile-screen) {
233
233
  .ui.modal > .header {
234
234
  padding: 0.75rem 1rem !important;
235
235
  padding-right: 2.25rem !important;
@@ -335,7 +335,7 @@
335
335
  }
336
336
 
337
337
  /* Tablet and Mobile */
338
- @media only screen and (max-width: 991px) {
338
+ @media only screen and (max-width: $largest-tablet-screen) {
339
339
  .ui.basic.modal > .close {
340
340
  color: #FFFFFF;
341
341
  }
@@ -370,7 +370,7 @@
370
370
  .modals.dimmer[class*="top aligned"] .modal {
371
371
  margin: 5vh auto;
372
372
  }
373
- @media only screen and (max-width: 767px) {
373
+ @media only screen and (max-width: $largest-mobile-screen) {
374
374
  .modals.dimmer[class*="top aligned"] .modal {
375
375
  margin: 1rem auto;
376
376
  }
@@ -380,7 +380,7 @@
380
380
  .legacy.modals.dimmer[class*="top aligned"] {
381
381
  padding-top: 5vh;
382
382
  }
383
- @media only screen and (max-width: 767px) {
383
+ @media only screen and (max-width: $largest-mobile-screen) {
384
384
  .legacy.modals.dimmer[class*="top aligned"] {
385
385
  padding-top: 1rem;
386
386
  }
@@ -462,31 +462,31 @@
462
462
  }
463
463
 
464
464
  /* Mini Modal Width */
465
- @media only screen and (max-width: 767px) {
465
+ @media only screen and (max-width: $largest-mobile-screen) {
466
466
  .ui.mini.modal {
467
467
  width: 95%;
468
468
  margin: 0em 0em 0em 0em;
469
469
  }
470
470
  }
471
- @media only screen and (min-width: 768px) {
471
+ @media only screen and (min-width: $tablet-breakpoint) {
472
472
  .ui.mini.modal {
473
473
  width: 35.2%;
474
474
  margin: 0em 0em 0em 0em;
475
475
  }
476
476
  }
477
- @media only screen and (min-width: 992px) {
477
+ @media only screen and (min-width: $computer-breakpoint) {
478
478
  .ui.mini.modal {
479
479
  width: 340px;
480
480
  margin: 0em 0em 0em 0em;
481
481
  }
482
482
  }
483
- @media only screen and (min-width: 1200px) {
483
+ @media only screen and (min-width: $large-monitor-breakpoint) {
484
484
  .ui.mini.modal {
485
485
  width: 360px;
486
486
  margin: 0em 0em 0em 0em;
487
487
  }
488
488
  }
489
- @media only screen and (min-width: 1920px) {
489
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
490
490
  .ui.mini.modal {
491
491
  width: 380px;
492
492
  margin: 0em 0em 0em 0em;
@@ -499,31 +499,31 @@
499
499
  }
500
500
 
501
501
  /* Tiny Modal Width */
502
- @media only screen and (max-width: 767px) {
502
+ @media only screen and (max-width: $largest-mobile-screen) {
503
503
  .ui.tiny.modal {
504
504
  width: 95%;
505
505
  margin: 0em 0em 0em 0em;
506
506
  }
507
507
  }
508
- @media only screen and (min-width: 768px) {
508
+ @media only screen and (min-width: $tablet-breakpoint) {
509
509
  .ui.tiny.modal {
510
510
  width: 52.8%;
511
511
  margin: 0em 0em 0em 0em;
512
512
  }
513
513
  }
514
- @media only screen and (min-width: 992px) {
514
+ @media only screen and (min-width: $computer-breakpoint) {
515
515
  .ui.tiny.modal {
516
516
  width: 510px;
517
517
  margin: 0em 0em 0em 0em;
518
518
  }
519
519
  }
520
- @media only screen and (min-width: 1200px) {
520
+ @media only screen and (min-width: $large-monitor-breakpoint) {
521
521
  .ui.tiny.modal {
522
522
  width: 540px;
523
523
  margin: 0em 0em 0em 0em;
524
524
  }
525
525
  }
526
- @media only screen and (min-width: 1920px) {
526
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
527
527
  .ui.tiny.modal {
528
528
  width: 570px;
529
529
  margin: 0em 0em 0em 0em;
@@ -536,31 +536,31 @@
536
536
  }
537
537
 
538
538
  /* Small Modal Width */
539
- @media only screen and (max-width: 767px) {
539
+ @media only screen and (max-width: $largest-mobile-screen) {
540
540
  .ui.small.modal {
541
541
  width: 95%;
542
542
  margin: 0em 0em 0em 0em;
543
543
  }
544
544
  }
545
- @media only screen and (min-width: 768px) {
545
+ @media only screen and (min-width: $tablet-breakpoint) {
546
546
  .ui.small.modal {
547
547
  width: 70.4%;
548
548
  margin: 0em 0em 0em 0em;
549
549
  }
550
550
  }
551
- @media only screen and (min-width: 992px) {
551
+ @media only screen and (min-width: $computer-breakpoint) {
552
552
  .ui.small.modal {
553
553
  width: 680px;
554
554
  margin: 0em 0em 0em 0em;
555
555
  }
556
556
  }
557
- @media only screen and (min-width: 1200px) {
557
+ @media only screen and (min-width: $large-monitor-breakpoint) {
558
558
  .ui.small.modal {
559
559
  width: 720px;
560
560
  margin: 0em 0em 0em 0em;
561
561
  }
562
562
  }
563
- @media only screen and (min-width: 1920px) {
563
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
564
564
  .ui.small.modal {
565
565
  width: 760px;
566
566
  margin: 0em 0em 0em 0em;
@@ -571,31 +571,31 @@
571
571
  .ui.large.modal > .header {
572
572
  font-size: 1.6em;
573
573
  }
574
- @media only screen and (max-width: 767px) {
574
+ @media only screen and (max-width: $largest-mobile-screen) {
575
575
  .ui.large.modal {
576
576
  width: 95%;
577
577
  margin: 0em 0em 0em 0em;
578
578
  }
579
579
  }
580
- @media only screen and (min-width: 768px) {
580
+ @media only screen and (min-width: $tablet-breakpoint) {
581
581
  .ui.large.modal {
582
582
  width: 88%;
583
583
  margin: 0em 0em 0em 0em;
584
584
  }
585
585
  }
586
- @media only screen and (min-width: 992px) {
586
+ @media only screen and (min-width: $computer-breakpoint) {
587
587
  .ui.large.modal {
588
588
  width: 1020px;
589
589
  margin: 0em 0em 0em 0em;
590
590
  }
591
591
  }
592
- @media only screen and (min-width: 1200px) {
592
+ @media only screen and (min-width: $large-monitor-breakpoint) {
593
593
  .ui.large.modal {
594
594
  width: 1080px;
595
595
  margin: 0em 0em 0em 0em;
596
596
  }
597
597
  }
598
- @media only screen and (min-width: 1920px) {
598
+ @media only screen and (min-width: $widescreen-monitor-breakpoint) {
599
599
  .ui.large.modal {
600
600
  width: 1140px;
601
601
  margin: 0em 0em 0em 0em;
@@ -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;
@@ -426,7 +426,7 @@
426
426
  Mobile
427
427
  ---------------*/
428
428
 
429
- @media only screen and (max-width: 767px) {
429
+ @media only screen and (max-width: $largest-mobile-screen) {
430
430
  .ui.search .results {
431
431
  max-width: calc(100vw - 2rem);
432
432
  }
@@ -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
  }
@@ -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
  }