fomantic-ui 2.9.0-beta.8 → 2.9.0-beta.80

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 (217) hide show
  1. package/.all-contributorsrc +188 -3
  2. package/CONTRIBUTING.md +1 -1
  3. package/CONTRIBUTORS.md +71 -37
  4. package/README.md +1 -1
  5. package/dist/components/accordion.css +50 -6
  6. package/dist/components/accordion.js +1 -1
  7. package/dist/components/accordion.min.css +2 -2
  8. package/dist/components/accordion.min.js +1 -1
  9. package/dist/components/ad.css +1 -1
  10. package/dist/components/ad.min.css +1 -1
  11. package/dist/components/api.js +26 -24
  12. package/dist/components/api.min.js +2 -2
  13. package/dist/components/breadcrumb.css +1 -1
  14. package/dist/components/breadcrumb.min.css +1 -1
  15. package/dist/components/button.css +6 -6
  16. package/dist/components/button.min.css +2 -2
  17. package/dist/components/calendar.css +1 -1
  18. package/dist/components/calendar.js +106 -10
  19. package/dist/components/calendar.min.css +1 -1
  20. package/dist/components/calendar.min.js +2 -2
  21. package/dist/components/card.css +26 -19
  22. package/dist/components/card.min.css +2 -2
  23. package/dist/components/checkbox.css +2 -1
  24. package/dist/components/checkbox.js +2 -4
  25. package/dist/components/checkbox.min.css +2 -2
  26. package/dist/components/checkbox.min.js +2 -2
  27. package/dist/components/comment.css +11 -11
  28. package/dist/components/comment.min.css +1 -1
  29. package/dist/components/container.css +1 -1
  30. package/dist/components/container.min.css +1 -1
  31. package/dist/components/dimmer.css +28 -14
  32. package/dist/components/dimmer.js +1 -1
  33. package/dist/components/dimmer.min.css +2 -2
  34. package/dist/components/dimmer.min.js +1 -1
  35. package/dist/components/divider.css +1 -1
  36. package/dist/components/divider.min.css +1 -1
  37. package/dist/components/dropdown.css +28 -5
  38. package/dist/components/dropdown.js +15 -19
  39. package/dist/components/dropdown.min.css +2 -2
  40. package/dist/components/dropdown.min.js +2 -2
  41. package/dist/components/embed.css +1 -1
  42. package/dist/components/embed.js +1 -1
  43. package/dist/components/embed.min.css +1 -1
  44. package/dist/components/embed.min.js +1 -1
  45. package/dist/components/emoji.css +2 -2
  46. package/dist/components/feed.css +28 -28
  47. package/dist/components/feed.min.css +2 -2
  48. package/dist/components/flag.css +731 -625
  49. package/dist/components/flag.min.css +2 -2
  50. package/dist/components/form.css +103 -54
  51. package/dist/components/form.js +24 -22
  52. package/dist/components/form.min.css +2 -2
  53. package/dist/components/form.min.js +2 -2
  54. package/dist/components/grid.css +11 -8
  55. package/dist/components/grid.min.css +2 -2
  56. package/dist/components/header.css +1 -1
  57. package/dist/components/header.min.css +1 -1
  58. package/dist/components/icon.css +6 -1
  59. package/dist/components/icon.min.css +2 -2
  60. package/dist/components/image.css +1 -1
  61. package/dist/components/image.min.css +1 -1
  62. package/dist/components/input.css +17 -2
  63. package/dist/components/input.min.css +2 -2
  64. package/dist/components/item.css +13 -13
  65. package/dist/components/item.min.css +1 -1
  66. package/dist/components/label.css +1 -1
  67. package/dist/components/label.min.css +1 -1
  68. package/dist/components/list.css +1 -1
  69. package/dist/components/list.min.css +1 -1
  70. package/dist/components/loader.css +1 -1
  71. package/dist/components/loader.min.css +1 -1
  72. package/dist/components/menu.css +31 -7
  73. package/dist/components/menu.min.css +1 -1
  74. package/dist/components/message.css +1 -1
  75. package/dist/components/message.min.css +1 -1
  76. package/dist/components/modal.css +3 -1
  77. package/dist/components/modal.js +94 -30
  78. package/dist/components/modal.min.css +2 -2
  79. package/dist/components/modal.min.js +2 -2
  80. package/dist/components/nag.css +1 -1
  81. package/dist/components/nag.js +1 -1
  82. package/dist/components/nag.min.css +1 -1
  83. package/dist/components/nag.min.js +1 -1
  84. package/dist/components/placeholder.css +1 -1
  85. package/dist/components/placeholder.min.css +1 -1
  86. package/dist/components/popup.css +5 -3
  87. package/dist/components/popup.js +1 -1
  88. package/dist/components/popup.min.css +2 -2
  89. package/dist/components/popup.min.js +1 -1
  90. package/dist/components/progress.css +1 -1
  91. package/dist/components/progress.js +3 -3
  92. package/dist/components/progress.min.css +1 -1
  93. package/dist/components/progress.min.js +2 -2
  94. package/dist/components/rail.css +1 -1
  95. package/dist/components/rail.min.css +1 -1
  96. package/dist/components/rating.css +7 -46
  97. package/dist/components/rating.js +1 -1
  98. package/dist/components/rating.min.css +2 -2
  99. package/dist/components/rating.min.js +1 -1
  100. package/dist/components/reset.css +1 -1
  101. package/dist/components/reset.min.css +1 -1
  102. package/dist/components/reveal.css +1 -1
  103. package/dist/components/reveal.min.css +1 -1
  104. package/dist/components/search.css +1 -1
  105. package/dist/components/search.js +1 -1
  106. package/dist/components/search.min.css +1 -1
  107. package/dist/components/search.min.js +1 -1
  108. package/dist/components/segment.css +12 -6
  109. package/dist/components/segment.min.css +2 -2
  110. package/dist/components/shape.css +1 -1
  111. package/dist/components/shape.js +1 -1
  112. package/dist/components/shape.min.css +1 -1
  113. package/dist/components/shape.min.js +1 -1
  114. package/dist/components/sidebar.css +1 -1
  115. package/dist/components/sidebar.js +1 -1
  116. package/dist/components/sidebar.min.css +1 -1
  117. package/dist/components/sidebar.min.js +1 -1
  118. package/dist/components/site.css +61 -39
  119. package/dist/components/site.js +1 -1
  120. package/dist/components/site.min.css +2 -2
  121. package/dist/components/site.min.js +1 -1
  122. package/dist/components/slider.js +1 -1
  123. package/dist/components/slider.min.js +1 -1
  124. package/dist/components/state.js +1 -1
  125. package/dist/components/state.min.js +1 -1
  126. package/dist/components/statistic.css +1 -1
  127. package/dist/components/statistic.min.css +1 -1
  128. package/dist/components/step.css +4 -4
  129. package/dist/components/step.min.css +2 -2
  130. package/dist/components/sticky.css +1 -1
  131. package/dist/components/sticky.js +2 -2
  132. package/dist/components/sticky.min.css +1 -1
  133. package/dist/components/sticky.min.js +2 -2
  134. package/dist/components/tab.css +1 -1
  135. package/dist/components/tab.js +1 -1
  136. package/dist/components/tab.min.css +1 -1
  137. package/dist/components/tab.min.js +1 -1
  138. package/dist/components/table.css +5 -3
  139. package/dist/components/table.min.css +2 -2
  140. package/dist/components/text.css +1 -1
  141. package/dist/components/text.min.css +1 -1
  142. package/dist/components/toast.css +7 -1
  143. package/dist/components/toast.js +3 -3
  144. package/dist/components/toast.min.css +2 -2
  145. package/dist/components/toast.min.js +2 -2
  146. package/dist/components/transition.css +1 -1
  147. package/dist/components/transition.js +2 -2
  148. package/dist/components/transition.min.css +1 -1
  149. package/dist/components/transition.min.js +2 -2
  150. package/dist/components/visibility.js +2 -2
  151. package/dist/components/visibility.min.js +1 -1
  152. package/dist/semantic.css +1323 -981
  153. package/dist/semantic.js +293 -135
  154. package/dist/semantic.min.css +2 -2
  155. package/dist/semantic.min.js +2 -2
  156. package/examples/assets/library/iframe-content.js +8 -8
  157. package/examples/assets/library/iframe.js +3 -3
  158. package/package.json +2 -2
  159. package/src/definitions/behaviors/api.js +25 -23
  160. package/src/definitions/behaviors/form.js +23 -21
  161. package/src/definitions/behaviors/visibility.js +1 -1
  162. package/src/definitions/collections/form.less +184 -133
  163. package/src/definitions/collections/grid.less +704 -669
  164. package/src/definitions/collections/menu.less +128 -85
  165. package/src/definitions/collections/message.less +8 -7
  166. package/src/definitions/collections/table.less +186 -174
  167. package/src/definitions/elements/button.less +130 -119
  168. package/src/definitions/elements/container.less +16 -8
  169. package/src/definitions/elements/emoji.less +15 -9
  170. package/src/definitions/elements/flag.less +7 -17
  171. package/src/definitions/elements/header.less +14 -8
  172. package/src/definitions/elements/icon.less +16 -10
  173. package/src/definitions/elements/input.less +17 -1
  174. package/src/definitions/elements/list.less +55 -45
  175. package/src/definitions/elements/segment.less +15 -8
  176. package/src/definitions/elements/step.less +52 -48
  177. package/src/definitions/globals/site.less +23 -2
  178. package/src/definitions/modules/accordion.less +55 -5
  179. package/src/definitions/modules/calendar.js +105 -9
  180. package/src/definitions/modules/checkbox.js +1 -3
  181. package/src/definitions/modules/checkbox.less +1 -146
  182. package/src/definitions/modules/dimmer.less +21 -8
  183. package/src/definitions/modules/dropdown.js +14 -18
  184. package/src/definitions/modules/dropdown.less +96 -64
  185. package/src/definitions/modules/modal.js +93 -29
  186. package/src/definitions/modules/modal.less +2 -0
  187. package/src/definitions/modules/popup.less +5 -1
  188. package/src/definitions/modules/progress.js +2 -2
  189. package/src/definitions/modules/rating.less +18 -12
  190. package/src/definitions/modules/search.less +32 -16
  191. package/src/definitions/modules/sidebar.less +30 -18
  192. package/src/definitions/modules/sticky.js +1 -1
  193. package/src/definitions/modules/toast.js +2 -2
  194. package/src/definitions/modules/toast.less +5 -0
  195. package/src/definitions/modules/transition.js +1 -1
  196. package/src/definitions/views/card.less +373 -333
  197. package/src/definitions/views/comment.less +92 -81
  198. package/src/definitions/views/feed.less +164 -144
  199. package/src/definitions/views/item.less +249 -196
  200. package/src/definitions/views/statistic.less +71 -70
  201. package/src/themes/default/collections/menu.variables +6 -0
  202. package/src/themes/default/elements/button.variables +2 -1
  203. package/src/themes/default/elements/flag.overrides +1635 -986
  204. package/src/themes/default/elements/flag.variables +7 -5
  205. package/src/themes/default/elements/icon.overrides +35 -28
  206. package/src/themes/default/elements/icon.variables +1 -0
  207. package/src/themes/default/elements/step.overrides +1 -1
  208. package/src/themes/default/globals/site.variables +6 -0
  209. package/src/themes/default/globals/variation.variables +74 -1
  210. package/src/themes/default/modules/accordion.variables +15 -0
  211. package/src/themes/default/modules/dimmer.variables +1 -1
  212. package/src/themes/default/modules/dropdown.variables +1 -1
  213. package/src/themes/famfamfam/elements/flag.overrides +1026 -0
  214. package/src/themes/famfamfam/elements/flag.variables +13 -0
  215. package/tasks/admin/components/init.js +2 -2
  216. package/tasks/admin/distributions/init.js +2 -2
  217. package/test/helpers/sinon.js +1 -1
@@ -185,22 +185,25 @@ ol.ui.list ol li,
185
185
  margin-left: 0;
186
186
  padding-left: 0;
187
187
  }
188
-
189
- /* Header */
190
- .ui.list .list > .item .header,
191
- .ui.list > .item .header {
192
- display: block;
193
- margin: 0;
194
- font-family: @itemHeaderFontFamily;
195
- font-weight: @itemHeaderFontWeight;
196
- color: @itemHeaderColor;
188
+ & when (@variationListHeader) {
189
+ /* Header */
190
+ .ui.list .list > .item .header,
191
+ .ui.list > .item .header {
192
+ display: block;
193
+ margin: 0;
194
+ font-family: @itemHeaderFontFamily;
195
+ font-weight: @itemHeaderFontWeight;
196
+ color: @itemHeaderColor;
197
+ }
197
198
  }
198
199
 
199
- /* Description */
200
- .ui.list .list > .item .description,
201
- .ui.list > .item .description {
202
- display: block;
203
- color: @itemDescriptionColor;
200
+ & when (@variationListDescription) {
201
+ /* Description */
202
+ .ui.list .list > .item .description,
203
+ .ui.list > .item .description {
204
+ display: block;
205
+ color: @itemDescriptionColor;
206
+ }
204
207
  }
205
208
 
206
209
  /* Child Link */
@@ -230,15 +233,17 @@ ol.ui.list ol li,
230
233
  }
231
234
  }
232
235
 
233
- /* Header Link */
234
- .ui.list .list > .item a.header,
235
- .ui.list > .item a.header {
236
- cursor: pointer;
237
- color: @itemHeaderLinkColor !important;
238
- }
239
- .ui.list .list > .item > a.header:hover,
240
- .ui.list > .item > a.header:hover {
241
- color: @itemHeaderLinkHoverColor !important;
236
+ & when (@variationListHeader) {
237
+ /* Header Link */
238
+ .ui.list .list > .item a.header,
239
+ .ui.list > .item a.header {
240
+ cursor: pointer;
241
+ color: @itemHeaderLinkColor !important;
242
+ }
243
+ .ui.list .list > .item > a.header:hover,
244
+ .ui.list > .item > a.header:hover {
245
+ color: @itemHeaderLinkHoverColor !important;
246
+ }
242
247
  }
243
248
 
244
249
  & when (@variationListFloated) {
@@ -406,13 +411,17 @@ ol.ui.list ol li,
406
411
  color: @invertedIconLinkColor;
407
412
  }
408
413
  }
409
- .ui.inverted.list .list > .item .header,
410
- .ui.inverted.list > .item .header {
411
- color: @invertedHeaderColor;
414
+ & when (@variationListHeader) {
415
+ .ui.inverted.list .list > .item .header,
416
+ .ui.inverted.list > .item .header {
417
+ color: @invertedHeaderColor;
418
+ }
412
419
  }
413
- .ui.inverted.list .list > .item .description,
414
- .ui.inverted.list > .item .description {
415
- color: @invertedDescriptionColor;
420
+ & when (@variationListDescription) {
421
+ .ui.inverted.list .list > .item .description,
422
+ .ui.inverted.list > .item .description {
423
+ color: @invertedDescriptionColor;
424
+ }
416
425
  }
417
426
  .ui.inverted.list .list > .item > .content,
418
427
  .ui.inverted.list > .item > .content {
@@ -974,23 +983,24 @@ ol.ui.list ol li,
974
983
  padding-right: @relaxedHorizontalPadding;
975
984
  }
976
985
  }
977
-
978
- /* Very Relaxed */
979
- .ui[class*="very relaxed"].list:not(.horizontal) > .item:not(:first-child) {
980
- padding-top: @veryRelaxedItemVerticalPadding;
981
- }
982
- .ui[class*="very relaxed"].list:not(.horizontal) > .item:not(:last-child) {
983
- padding-bottom: @veryRelaxedItemVerticalPadding;
984
- }
985
-
986
- & when (@variationListHorizontal) {
987
- .ui.horizontal[class*="very relaxed"].list .list > .item:not(:first-child),
988
- .ui.horizontal[class*="very relaxed"].list > .item:not(:first-child) {
989
- padding-left: @veryRelaxedHorizontalPadding;
986
+ & when (@variationListVeryRelaxed) {
987
+ /* Very Relaxed */
988
+ .ui[class*="very relaxed"].list:not(.horizontal) > .item:not(:first-child) {
989
+ padding-top: @veryRelaxedItemVerticalPadding;
990
+ }
991
+ .ui[class*="very relaxed"].list:not(.horizontal) > .item:not(:last-child) {
992
+ padding-bottom: @veryRelaxedItemVerticalPadding;
990
993
  }
991
- .ui.horizontal[class*="very relaxed"].list .list > .item:not(:last-child),
992
- .ui.horizontal[class*="very relaxed"].list > .item:not(:last-child) {
993
- padding-right: @veryRelaxedHorizontalPadding;
994
+
995
+ & when (@variationListHorizontal) {
996
+ .ui.horizontal[class*="very relaxed"].list .list > .item:not(:first-child),
997
+ .ui.horizontal[class*="very relaxed"].list > .item:not(:first-child) {
998
+ padding-left: @veryRelaxedHorizontalPadding;
999
+ }
1000
+ .ui.horizontal[class*="very relaxed"].list .list > .item:not(:last-child),
1001
+ .ui.horizontal[class*="very relaxed"].list > .item:not(:last-child) {
1002
+ padding-right: @veryRelaxedHorizontalPadding;
1003
+ }
994
1004
  }
995
1005
  }
996
1006
  }
@@ -49,10 +49,10 @@
49
49
  border-radius: 0;
50
50
  box-shadow: none;
51
51
  border: none;
52
- border-bottom: @borderWidth solid @borderColor;
52
+ border-top: @borderWidth solid @borderColor;
53
53
  }
54
- .ui.vertical.segment:last-child {
55
- border-bottom: none;
54
+ .ui.vertical.segment:first-child {
55
+ border-top: none;
56
56
  }
57
57
  }
58
58
 
@@ -299,9 +299,10 @@
299
299
  .ui.padded.segment {
300
300
  padding: @paddedSegmentPadding;
301
301
  }
302
-
303
- .ui[class*="very padded"].segment {
304
- padding: @veryPaddedSegmentPadding;
302
+ & when (@variationSegmentVeryPadded) {
303
+ .ui[class*="very padded"].segment {
304
+ padding: @veryPaddedSegmentPadding;
305
+ }
305
306
  }
306
307
 
307
308
  & when (@variationSegmentVertical) {
@@ -730,12 +731,12 @@ each(@colors,{
730
731
  box-shadow: @attachedBoxShadow;
731
732
  border: @attachedBorder;
732
733
  }
733
- .ui.attached:not(.message) + .ui.attached.segment:not(.top) {
734
+ .ui.attached:not(.message):not(.text) + .ui.attached.segment:not(.top) {
734
735
  border-top: none;
735
736
  }
736
737
 
737
738
  /* Top */
738
- .ui[class*="top attached"].segment {
739
+ .ui.segment[class*="top attached"] {
739
740
  bottom: 0;
740
741
  margin-bottom: 0;
741
742
  top: @attachedTopOffset;
@@ -745,6 +746,9 @@ each(@colors,{
745
746
  .ui.segment[class*="top attached"]:first-child {
746
747
  margin-top: 0;
747
748
  }
749
+ .ui.tab.segment[class*="top attached"]:first-child {
750
+ margin-top: @verticalMargin;
751
+ }
748
752
 
749
753
  /* Bottom */
750
754
  .ui.segment[class*="bottom attached"] {
@@ -756,6 +760,9 @@ each(@colors,{
756
760
  border-radius: 0 0 @borderRadius @borderRadius;
757
761
  }
758
762
  .ui.segment[class*="bottom attached"]:last-child {
763
+ margin-bottom: 0;
764
+ }
765
+ .ui.tab.segment[class*="bottom attached"]:last-child {
759
766
  margin-bottom: @verticalMargin;
760
767
  }
761
768
  }
@@ -290,8 +290,10 @@
290
290
  right: 50%;
291
291
  transform: translateY(-50%) translateX(50%) rotate(45deg);
292
292
  }
293
- .ui.vertical.steps .active.step:last-child:after {
294
- display: none;
293
+ & when (@variationStepVertical) {
294
+ .ui.vertical.steps .active.step:last-child:after {
295
+ display: none;
296
+ }
295
297
  }
296
298
  /* Content */
297
299
  .ui.steps:not(.unstackable) .step .content {
@@ -493,53 +495,55 @@
493
495
  }
494
496
  }
495
497
 
496
- /*-------------------
497
- Evenly Divided
498
- --------------------*/
498
+ & when (@variationStepEqualWidth) {
499
+ /*-------------------
500
+ Evenly Divided
501
+ --------------------*/
499
502
 
500
- .ui.one.steps,
501
- .ui.two.steps,
502
- .ui.three.steps,
503
- .ui.four.steps,
504
- .ui.five.steps,
505
- .ui.six.steps,
506
- .ui.seven.steps,
507
- .ui.eight.steps {
508
- width: 100%;
509
- }
510
- .ui.one.steps > .step,
511
- .ui.two.steps > .step,
512
- .ui.three.steps > .step,
513
- .ui.four.steps > .step,
514
- .ui.five.steps > .step,
515
- .ui.six.steps > .step,
516
- .ui.seven.steps > .step,
517
- .ui.eight.steps > .step {
518
- flex-wrap: nowrap;
519
- }
520
- .ui.one.steps > .step {
521
- width: 100%;
522
- }
523
- .ui.two.steps > .step {
524
- width: 50%;
525
- }
526
- .ui.three.steps > .step {
527
- width: 33.333%;
528
- }
529
- .ui.four.steps > .step {
530
- width: 25%;
531
- }
532
- .ui.five.steps > .step {
533
- width: 20%;
534
- }
535
- .ui.six.steps > .step {
536
- width: 16.666%;
537
- }
538
- .ui.seven.steps > .step {
539
- width: 14.285%;
540
- }
541
- .ui.eight.steps > .step {
542
- width: 12.500%;
503
+ .ui.one.steps,
504
+ .ui.two.steps,
505
+ .ui.three.steps,
506
+ .ui.four.steps,
507
+ .ui.five.steps,
508
+ .ui.six.steps,
509
+ .ui.seven.steps,
510
+ .ui.eight.steps {
511
+ width: 100%;
512
+ }
513
+ .ui.one.steps > .step,
514
+ .ui.two.steps > .step,
515
+ .ui.three.steps > .step,
516
+ .ui.four.steps > .step,
517
+ .ui.five.steps > .step,
518
+ .ui.six.steps > .step,
519
+ .ui.seven.steps > .step,
520
+ .ui.eight.steps > .step {
521
+ flex-wrap: nowrap;
522
+ }
523
+ .ui.one.steps > .step {
524
+ width: 100%;
525
+ }
526
+ .ui.two.steps > .step {
527
+ width: 50%;
528
+ }
529
+ .ui.three.steps > .step {
530
+ width: 33.333%;
531
+ }
532
+ .ui.four.steps > .step {
533
+ width: 25%;
534
+ }
535
+ .ui.five.steps > .step {
536
+ width: 20%;
537
+ }
538
+ .ui.six.steps > .step {
539
+ width: 16.666%;
540
+ }
541
+ .ui.seven.steps > .step {
542
+ width: 14.285%;
543
+ }
544
+ .ui.eight.steps > .step {
545
+ width: 12.500%;
546
+ }
543
547
  }
544
548
 
545
549
  /*-------------------
@@ -128,7 +128,7 @@ a:hover {
128
128
  Scrollbars
129
129
  *******************************/
130
130
 
131
- .addScrollbars() when (@useCustomScrollbars) {
131
+ & when (@useCustomScrollbars) {
132
132
 
133
133
  /* Force Simple Scrollbars */
134
134
  body ::-webkit-scrollbar {
@@ -152,6 +152,17 @@ a:hover {
152
152
  body ::-webkit-scrollbar-thumb:hover {
153
153
  background: @thumbHoverBackground;
154
154
  }
155
+ body .ui {
156
+ /* IE11 */
157
+ scrollbar-face-color: @thumbBackgroundHex;
158
+ scrollbar-shadow-color: @thumbBackgroundHex;
159
+ scrollbar-track-color: @trackBackgroundHex;
160
+ scrollbar-arrow-color: @trackBackgroundHex;
161
+
162
+ /* firefox : first color thumb, second track*/
163
+ scrollbar-color: @thumbBackground @trackBackground;
164
+ scrollbar-width: thin;
165
+ }
155
166
 
156
167
  /* Inverted UI */
157
168
  body .ui.inverted:not(.dimmer)::-webkit-scrollbar-track {
@@ -166,6 +177,17 @@ a:hover {
166
177
  body .ui.inverted:not(.dimmer)::-webkit-scrollbar-thumb:hover {
167
178
  background: @thumbInvertedHoverBackground;
168
179
  }
180
+
181
+ body .ui.inverted:not(.dimmer) {
182
+ /* IE11 */
183
+ scrollbar-face-color: @thumbInvertedBackgroundHex;
184
+ scrollbar-shadow-color: @thumbInvertedBackgroundHex;
185
+ scrollbar-track-color: @trackInvertedBackgroundHex;
186
+ scrollbar-arrow-color: @trackInvertedBackgroundHex;
187
+
188
+ /* firefox : first color thumb, second track */
189
+ scrollbar-color: @thumbInvertedBackground @trackInvertedBackground;
190
+ }
169
191
  }
170
192
 
171
193
  /*******************************
@@ -203,5 +225,4 @@ input::selection {
203
225
  color: @inputHighlightColor;
204
226
  }
205
227
 
206
- .addScrollbars();
207
228
  .loadUIOverrides();
@@ -37,7 +37,7 @@
37
37
  }
38
38
 
39
39
  /* Default Styling */
40
- .ui.accordion .title:not(.ui) {
40
+ .ui.accordion .title {
41
41
  padding: @titlePadding;
42
42
  font-family: @titleFont;
43
43
  font-size: @titleFontSize;
@@ -45,12 +45,12 @@
45
45
  }
46
46
 
47
47
  /* Default Styling */
48
- .ui.accordion:not(.styled) .title ~ .content:not(.ui),
49
- .ui.accordion:not(.styled) .accordion .title ~ .content:not(.ui) {
48
+ .ui.accordion:not(.styled) .title ~ .content,
49
+ .ui.accordion:not(.styled) .accordion .title ~ .content {
50
50
  margin: @contentMargin;
51
51
  padding: @contentPadding;
52
52
  }
53
- .ui.accordion:not(.styled) .title ~ .content:not(.ui):last-child {
53
+ .ui.accordion:not(.styled) .title ~ .content:last-child {
54
54
  padding-bottom: 0;
55
55
  }
56
56
 
@@ -176,6 +176,56 @@
176
176
  }
177
177
  }
178
178
 
179
+ & when (@variationAccordionCompact) {
180
+ /*--------------
181
+ Compact
182
+ ---------------*/
183
+
184
+ /* Default Styling */
185
+ .ui.compact.accordion:not(.styled) .title {
186
+ padding: @titlePaddingCompact;
187
+ }
188
+
189
+ .ui.compact.accordion:not(.styled) .title ~ .content,
190
+ .ui.compact.accordion:not(.styled) .accordion .title ~ .content {
191
+ padding: @contentPaddingCompact;
192
+ }
193
+
194
+ /* Styled */
195
+ .ui.compact.styled.accordion .title,
196
+ .ui.compact.styled.accordion .accordion .title {
197
+ padding: @styledTitlePaddingCompact;
198
+ }
199
+
200
+ .ui.compact.styled.accordion .title ~ .content,
201
+ .ui.compact.styled.accordion .accordion .title ~ .content {
202
+ padding: @styledContentPaddingCompact;
203
+ }
204
+
205
+ /*--------------
206
+ Very Compact
207
+ ---------------*/
208
+
209
+ .ui[class*="very compact"].accordion:not(.styled) .title {
210
+ padding: @titlePaddingVeryCompact;
211
+ }
212
+
213
+ .ui[class*="very compact"].accordion:not(.styled) .title ~ .content,
214
+ .ui[class*="very compact"].accordion:not(.styled) .accordion .title ~ .content {
215
+ padding: @contentPaddingVeryCompact;
216
+ }
217
+
218
+ .ui[class*="very compact"].styled.accordion .title,
219
+ .ui[class*="very compact"].styled.accordion .accordion .title {
220
+ padding: @styledTitlePaddingVeryCompact;
221
+ }
222
+
223
+ .ui[class*="very compact"].styled.accordion .title ~ .content,
224
+ .ui[class*="very compact"].styled.accordion .accordion .title ~ .content {
225
+ padding: @styledContentPaddingVeryCompact;
226
+ }
227
+ }
228
+
179
229
 
180
230
  /*******************************
181
231
  States
@@ -210,7 +260,7 @@
210
260
  Inverted
211
261
  ---------------*/
212
262
 
213
- .ui.inverted.accordion .title:not(.ui) {
263
+ .ui.inverted.accordion .title {
214
264
  color: @invertedTitleColor;
215
265
  }
216
266
  }
@@ -122,7 +122,7 @@ $.fn.calendar = function(parameters) {
122
122
  module.set.maxDate($module.data(metadata.maxDate));
123
123
  }
124
124
  module.setting('type', module.get.type());
125
- module.setting('on', settings.on || ($input.length ? 'focus' : 'click'));
125
+ module.setting('on', settings.on || 'click');
126
126
  },
127
127
  popup: function () {
128
128
  if (settings.inline) {
@@ -153,7 +153,10 @@ $.fn.calendar = function(parameters) {
153
153
  module.refreshTooltips();
154
154
  return settings.onVisible.apply($container, arguments);
155
155
  };
156
- var onHidden = settings.onHidden;
156
+ var onHidden = function () {
157
+ module.blur();
158
+ return settings.onHidden.apply($container, arguments)
159
+ }
157
160
  if (!$input.length) {
158
161
  //no input, $container has to handle focus/blur
159
162
  $container.attr('tabindex', '0');
@@ -162,10 +165,6 @@ $.fn.calendar = function(parameters) {
162
165
  module.focus();
163
166
  return settings.onVisible.apply($container, arguments);
164
167
  };
165
- onHidden = function () {
166
- module.blur();
167
- return settings.onHidden.apply($container, arguments);
168
- };
169
168
  }
170
169
  var onShow = function () {
171
170
  //reset the focus date onShow
@@ -390,6 +389,19 @@ $.fn.calendar = function(parameters) {
390
389
  cell.attr("data-variation", disabledDate[metadata.variation]);
391
390
  }
392
391
  }
392
+ if (mode === 'hour') {
393
+ var disabledHour = module.helper.findHourAsObject(cellDate, mode, settings.disabledHours);
394
+ if (disabledHour !== null && disabledHour[metadata.message]) {
395
+ cell.attr("data-tooltip", disabledHour[metadata.message]);
396
+ cell.attr("data-position", disabledHour[metadata.position] || tooltipPosition);
397
+ if(disabledHour[metadata.inverted] || (isInverted && disabledHour[metadata.inverted] === undefined)) {
398
+ cell.attr("data-inverted", '');
399
+ }
400
+ if(disabledHour[metadata.variation]) {
401
+ cell.attr("data-variation", disabledHour[metadata.variation]);
402
+ }
403
+ }
404
+ }
393
405
  } else {
394
406
  eventDate = module.helper.findDayAsObject(cellDate, mode, settings.eventDates);
395
407
  if (eventDate !== null) {
@@ -975,7 +987,7 @@ $.fn.calendar = function(parameters) {
975
987
 
976
988
  helper: {
977
989
  isDisabled: function(date, mode) {
978
- return (mode === 'day' || mode === 'month' || mode === 'year') && ((mode === 'day' && settings.disabledDaysOfWeek.indexOf(date.getDay()) !== -1) || settings.disabledDates.some(function(d){
990
+ return (mode === 'day' || mode === 'month' || mode === 'year' || mode === 'hour') && (((mode === 'day' && settings.disabledDaysOfWeek.indexOf(date.getDay()) !== -1) || settings.disabledDates.some(function(d){
979
991
  if(typeof d === 'string') {
980
992
  d = module.helper.sanitiseDate(d);
981
993
  }
@@ -1008,7 +1020,45 @@ $.fn.calendar = function(parameters) {
1008
1020
  }
1009
1021
  }
1010
1022
  }
1011
- }));
1023
+ })) || (mode === 'hour' && settings.disabledHours.some(function(d){
1024
+ if (typeof d === 'string') {
1025
+ d = module.helper.sanitiseDate(d);
1026
+ }
1027
+ if (d instanceof Date) {
1028
+ return module.helper.dateEqual(date, d, mode);
1029
+ } else if (typeof d === 'number') {
1030
+ return date.getHours() === d;
1031
+ }
1032
+ if (d !== null && typeof d === 'object') {
1033
+ var blocked = true;
1034
+
1035
+ if (d[metadata.date]) {
1036
+ if (d[metadata.date] instanceof Date) {
1037
+ blocked = module.helper.dateEqual(date, module.helper.sanitiseDate(d[metadata.date]));
1038
+ } else if (Array.isArray(d[metadata.date])) {
1039
+ return d[metadata.date].some(function(idate) {
1040
+ blocked = module.helper.dateEqual(date, idate, mode);
1041
+ });
1042
+ }
1043
+ }
1044
+
1045
+ if (d[metadata.days]) {
1046
+ if (typeof d[metadata.days] === 'number') {
1047
+ blocked = date.getDay() == d[metadata.days];
1048
+ } else if (Array.isArray(d[metadata.days])) {
1049
+ blocked = d[metadata.days].indexOf(date.getDay()) > -1;
1050
+ }
1051
+ }
1052
+
1053
+ if (d[metadata.hours]) {
1054
+ if (typeof d[metadata.hours] === 'number') {
1055
+ return blocked && date.getHours() == d[metadata.hours];
1056
+ } else if (Array.isArray(d[metadata.hours])) {
1057
+ return blocked && d[metadata.hours].indexOf(date.getHours()) > -1;
1058
+ }
1059
+ }
1060
+ }
1061
+ })));
1012
1062
  },
1013
1063
  isEnabled: function(date, mode) {
1014
1064
  if (mode === 'day') {
@@ -1076,6 +1126,49 @@ $.fn.calendar = function(parameters) {
1076
1126
  }
1077
1127
  return null;
1078
1128
  },
1129
+ findHourAsObject: function(date, mode, hours) {
1130
+ if (mode === 'hour') {
1131
+ var d;
1132
+ var hourCheck = function(date, d) {
1133
+ if (d[metadata.hours]) {
1134
+ if (typeof d[metadata.hours] === 'number' && date.getHours() == d[metadata.hours]) {
1135
+ return d;
1136
+ } else if (Array.isArray(d[metadata.hours])) {
1137
+ if (d[metadata.hours].indexOf(date.getHours()) > -1) {
1138
+ return d;
1139
+ }
1140
+ }
1141
+ }
1142
+ }
1143
+ for (var i = 0; i < hours.length; i++) {
1144
+ d = hours[i];
1145
+ if (typeof d === 'number' && date.getHours() == d) {
1146
+ return null;
1147
+ } else if (d !== null && typeof d === 'object') {
1148
+ if (d[metadata.days] && hourCheck(date,d)) {
1149
+ if (typeof d[metadata.days] === 'number' && date.getDay() == d[metadata.days]) {
1150
+ return d;
1151
+ } else if (Array.isArray(d[metadata.days])) {
1152
+ if (d[metadata.days].indexOf(date.getDay()) > -1) {
1153
+ return d;
1154
+ }
1155
+ }
1156
+ } else if (d[metadata.date] && hourCheck(date,d)) {
1157
+ if (d[metadata.date] instanceof Date && module.helper.dateEqual(date, module.helper.sanitiseDate(d[metadata.date]))) {
1158
+ return d;
1159
+ } else if (Array.isArray(d[metadata.date])) {
1160
+ if (d[metadata.date].some(function(idate) { return module.helper.dateEqual(date, idate, mode); })) {
1161
+ return d;
1162
+ }
1163
+ }
1164
+ } else if (hourCheck(date,d)) {
1165
+ return d;
1166
+ }
1167
+ }
1168
+ }
1169
+ }
1170
+ return null;
1171
+ },
1079
1172
  sanitiseDate: function (date) {
1080
1173
  if (!(date instanceof Date)) {
1081
1174
  date = parser.date('' + date, settings);
@@ -1361,6 +1454,7 @@ $.fn.calendar.settings = {
1361
1454
  multiMonth : 1, // show multiple months when in 'day' mode
1362
1455
  minTimeGap : 5,
1363
1456
  showWeekNumbers : null, // show Number of Week at the very first column of a dayView
1457
+ disabledHours : [], // specific hour(s) which won't be selectable and contain additional information.
1364
1458
  disabledDates : [], // specific day(s) which won't be selectable and contain additional information.
1365
1459
  disabledDaysOfWeek : [], // day(s) which won't be selectable(s) (0 = Sunday)
1366
1460
  enabledDates : [], // specific day(s) which will be selectable, all other days will be disabled
@@ -1766,7 +1860,9 @@ $.fn.calendar.settings = {
1766
1860
  variation: 'variation',
1767
1861
  position: 'position',
1768
1862
  month: 'month',
1769
- year: 'year'
1863
+ year: 'year',
1864
+ hours: 'hours',
1865
+ days: 'days'
1770
1866
  },
1771
1867
 
1772
1868
  eventClass: 'blue'
@@ -323,7 +323,6 @@ $.fn.checkbox = function(parameters) {
323
323
  settings.onEnable.call(input);
324
324
  // preserve legacy callbacks
325
325
  settings.onEnabled.call(input);
326
- module.trigger.change();
327
326
  }
328
327
  },
329
328
 
@@ -338,7 +337,6 @@ $.fn.checkbox = function(parameters) {
338
337
  settings.onDisable.call(input);
339
338
  // preserve legacy callbacks
340
339
  settings.onDisabled.call(input);
341
- module.trigger.change();
342
340
  }
343
341
  },
344
342
 
@@ -866,7 +864,7 @@ $.fn.checkbox.settings = {
866
864
 
867
865
  selector : {
868
866
  checkbox : '.ui.checkbox',
869
- label : 'label, .box',
867
+ label : 'label',
870
868
  input : 'input[type="checkbox"], input[type="radio"]',
871
869
  link : 'a[href]'
872
870
  }