fomantic-ui 2.9.0-beta.21 → 2.9.0-beta.213

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 (239) hide show
  1. package/.all-contributorsrc +197 -3
  2. package/.github/workflows/ci.yml +4 -4
  3. package/.github/workflows/nightly.yml +4 -4
  4. package/.github/workflows/release.yml +30 -0
  5. package/CONTRIBUTORS.md +74 -37
  6. package/README.md +1 -1
  7. package/dist/components/accordion.css +162 -26
  8. package/dist/components/accordion.js +1 -1
  9. package/dist/components/accordion.min.css +2 -2
  10. package/dist/components/accordion.min.js +2 -2
  11. package/dist/components/ad.css +1 -1
  12. package/dist/components/ad.min.css +1 -1
  13. package/dist/components/api.js +29 -25
  14. package/dist/components/api.min.js +3 -3
  15. package/dist/components/breadcrumb.css +1 -1
  16. package/dist/components/breadcrumb.min.css +1 -1
  17. package/dist/components/button.css +81 -81
  18. package/dist/components/button.min.css +2 -2
  19. package/dist/components/calendar.css +1 -1
  20. package/dist/components/calendar.js +6 -7
  21. package/dist/components/calendar.min.css +1 -1
  22. package/dist/components/calendar.min.js +3 -3
  23. package/dist/components/card.css +26 -19
  24. package/dist/components/card.min.css +2 -2
  25. package/dist/components/checkbox.css +2 -1
  26. package/dist/components/checkbox.js +17 -11
  27. package/dist/components/checkbox.min.css +2 -2
  28. package/dist/components/checkbox.min.js +3 -3
  29. package/dist/components/comment.css +11 -11
  30. package/dist/components/comment.min.css +1 -1
  31. package/dist/components/container.css +77 -1
  32. package/dist/components/container.min.css +2 -2
  33. package/dist/components/dimmer.css +28 -14
  34. package/dist/components/dimmer.js +1 -1
  35. package/dist/components/dimmer.min.css +2 -2
  36. package/dist/components/dimmer.min.js +2 -2
  37. package/dist/components/divider.css +1 -1
  38. package/dist/components/divider.min.css +1 -1
  39. package/dist/components/dropdown.css +30 -7
  40. package/dist/components/dropdown.js +58 -33
  41. package/dist/components/dropdown.min.css +2 -2
  42. package/dist/components/dropdown.min.js +3 -3
  43. package/dist/components/embed.css +1 -1
  44. package/dist/components/embed.js +1 -1
  45. package/dist/components/embed.min.css +1 -1
  46. package/dist/components/embed.min.js +2 -2
  47. package/dist/components/emoji.css +2 -2
  48. package/dist/components/feed.css +28 -28
  49. package/dist/components/feed.min.css +2 -2
  50. package/dist/components/flag.css +731 -625
  51. package/dist/components/flag.min.css +2 -2
  52. package/dist/components/form.css +106 -55
  53. package/dist/components/form.js +25 -23
  54. package/dist/components/form.min.css +2 -2
  55. package/dist/components/form.min.js +3 -3
  56. package/dist/components/grid.css +11 -8
  57. package/dist/components/grid.min.css +2 -2
  58. package/dist/components/header.css +3 -1
  59. package/dist/components/header.min.css +2 -2
  60. package/dist/components/icon.css +6 -1
  61. package/dist/components/icon.min.css +2 -2
  62. package/dist/components/image.css +1 -1
  63. package/dist/components/image.min.css +1 -1
  64. package/dist/components/input.css +734 -17
  65. package/dist/components/input.min.css +2 -2
  66. package/dist/components/item.css +13 -13
  67. package/dist/components/item.min.css +1 -1
  68. package/dist/components/label.css +1 -1
  69. package/dist/components/label.min.css +1 -1
  70. package/dist/components/list.css +1 -1
  71. package/dist/components/list.min.css +1 -1
  72. package/dist/components/loader.css +1 -1
  73. package/dist/components/loader.min.css +1 -1
  74. package/dist/components/menu.css +29 -5
  75. package/dist/components/menu.min.css +1 -1
  76. package/dist/components/message.css +41 -41
  77. package/dist/components/message.min.css +2 -2
  78. package/dist/components/modal.css +13 -1
  79. package/dist/components/modal.js +121 -46
  80. package/dist/components/modal.min.css +2 -2
  81. package/dist/components/modal.min.js +3 -3
  82. package/dist/components/nag.css +1 -1
  83. package/dist/components/nag.js +1 -1
  84. package/dist/components/nag.min.css +1 -1
  85. package/dist/components/nag.min.js +2 -2
  86. package/dist/components/placeholder.css +1 -1
  87. package/dist/components/placeholder.min.css +1 -1
  88. package/dist/components/popup.css +5 -3
  89. package/dist/components/popup.js +1 -1
  90. package/dist/components/popup.min.css +2 -2
  91. package/dist/components/popup.min.js +2 -2
  92. package/dist/components/progress.css +1 -1
  93. package/dist/components/progress.js +4 -1
  94. package/dist/components/progress.min.css +1 -1
  95. package/dist/components/progress.min.js +3 -3
  96. package/dist/components/rail.css +1 -1
  97. package/dist/components/rail.min.css +1 -1
  98. package/dist/components/rating.css +7 -46
  99. package/dist/components/rating.js +1 -1
  100. package/dist/components/rating.min.css +2 -2
  101. package/dist/components/rating.min.js +2 -2
  102. package/dist/components/reset.css +1 -1
  103. package/dist/components/reset.min.css +1 -1
  104. package/dist/components/reveal.css +1 -1
  105. package/dist/components/reveal.min.css +1 -1
  106. package/dist/components/search.css +1 -1
  107. package/dist/components/search.js +1 -1
  108. package/dist/components/search.min.css +1 -1
  109. package/dist/components/search.min.js +2 -2
  110. package/dist/components/segment.css +90 -6
  111. package/dist/components/segment.min.css +2 -2
  112. package/dist/components/shape.css +1 -1
  113. package/dist/components/shape.js +1 -1
  114. package/dist/components/shape.min.css +1 -1
  115. package/dist/components/shape.min.js +2 -2
  116. package/dist/components/sidebar.css +4 -2
  117. package/dist/components/sidebar.js +1 -1
  118. package/dist/components/sidebar.min.css +2 -2
  119. package/dist/components/sidebar.min.js +2 -2
  120. package/dist/components/site.css +61 -39
  121. package/dist/components/site.js +1 -1
  122. package/dist/components/site.min.css +2 -2
  123. package/dist/components/site.min.js +2 -2
  124. package/dist/components/slider.js +1 -1
  125. package/dist/components/slider.min.js +2 -2
  126. package/dist/components/state.js +1 -1
  127. package/dist/components/state.min.js +2 -2
  128. package/dist/components/statistic.css +1 -1
  129. package/dist/components/statistic.min.css +1 -1
  130. package/dist/components/step.css +4 -4
  131. package/dist/components/step.min.css +2 -2
  132. package/dist/components/sticky.css +1 -1
  133. package/dist/components/sticky.js +1 -1
  134. package/dist/components/sticky.min.css +1 -1
  135. package/dist/components/sticky.min.js +2 -2
  136. package/dist/components/tab.css +1 -1
  137. package/dist/components/tab.js +23 -5
  138. package/dist/components/tab.min.css +1 -1
  139. package/dist/components/tab.min.js +3 -3
  140. package/dist/components/table.css +1168 -26
  141. package/dist/components/table.min.css +2 -2
  142. package/dist/components/text.css +1 -1
  143. package/dist/components/text.min.css +1 -1
  144. package/dist/components/toast.css +39 -1
  145. package/dist/components/toast.js +56 -28
  146. package/dist/components/toast.min.css +2 -2
  147. package/dist/components/toast.min.js +3 -3
  148. package/dist/components/transition.css +1 -1
  149. package/dist/components/transition.js +1 -1
  150. package/dist/components/transition.min.css +1 -1
  151. package/dist/components/transition.min.js +2 -2
  152. package/dist/components/visibility.js +1 -1
  153. package/dist/components/visibility.min.js +2 -2
  154. package/dist/semantic.css +4293 -1392
  155. package/dist/semantic.js +356 -196
  156. package/dist/semantic.min.css +3 -3
  157. package/dist/semantic.min.js +3 -3
  158. package/examples/assets/library/iframe-content.js +5 -5
  159. package/package.json +10 -9
  160. package/src/definitions/behaviors/api.js +28 -24
  161. package/src/definitions/behaviors/form.js +24 -22
  162. package/src/definitions/collections/form.less +193 -140
  163. package/src/definitions/collections/grid.less +716 -680
  164. package/src/definitions/collections/menu.less +173 -126
  165. package/src/definitions/collections/message.less +48 -46
  166. package/src/definitions/collections/table.less +849 -262
  167. package/src/definitions/elements/button.less +360 -347
  168. package/src/definitions/elements/container.less +126 -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 +44 -35
  172. package/src/definitions/elements/icon.less +38 -31
  173. package/src/definitions/elements/input.less +256 -21
  174. package/src/definitions/elements/label.less +92 -91
  175. package/src/definitions/elements/list.less +55 -45
  176. package/src/definitions/elements/loader.less +30 -29
  177. package/src/definitions/elements/segment.less +146 -27
  178. package/src/definitions/elements/step.less +52 -48
  179. package/src/definitions/elements/text.less +17 -15
  180. package/src/definitions/globals/site.less +23 -2
  181. package/src/definitions/modules/accordion.less +175 -24
  182. package/src/definitions/modules/calendar.js +5 -6
  183. package/src/definitions/modules/checkbox.js +16 -10
  184. package/src/definitions/modules/checkbox.less +34 -178
  185. package/src/definitions/modules/dimmer.less +21 -8
  186. package/src/definitions/modules/dropdown.js +57 -32
  187. package/src/definitions/modules/dropdown.less +101 -69
  188. package/src/definitions/modules/modal.js +120 -45
  189. package/src/definitions/modules/modal.less +12 -0
  190. package/src/definitions/modules/nag.less +20 -19
  191. package/src/definitions/modules/popup.less +5 -1
  192. package/src/definitions/modules/progress.js +3 -0
  193. package/src/definitions/modules/progress.less +19 -18
  194. package/src/definitions/modules/rating.less +49 -42
  195. package/src/definitions/modules/search.less +32 -16
  196. package/src/definitions/modules/sidebar.less +33 -19
  197. package/src/definitions/modules/slider.less +39 -38
  198. package/src/definitions/modules/tab.js +22 -4
  199. package/src/definitions/modules/toast.js +55 -27
  200. package/src/definitions/modules/toast.less +48 -16
  201. package/src/definitions/views/card.less +402 -361
  202. package/src/definitions/views/comment.less +92 -81
  203. package/src/definitions/views/feed.less +164 -144
  204. package/src/definitions/views/item.less +249 -196
  205. package/src/definitions/views/statistic.less +90 -88
  206. package/src/themes/bookish/elements/header.overrides +1 -1
  207. package/src/themes/chubby/elements/button.overrides +1 -1
  208. package/src/themes/chubby/elements/header.overrides +1 -1
  209. package/src/themes/default/collections/menu.variables +6 -0
  210. package/src/themes/default/collections/table.variables +52 -0
  211. package/src/themes/default/elements/button.variables +2 -1
  212. package/src/themes/default/elements/container.variables +8 -0
  213. package/src/themes/default/elements/flag.overrides +1635 -986
  214. package/src/themes/default/elements/flag.variables +7 -5
  215. package/src/themes/default/elements/icon.overrides +35 -28
  216. package/src/themes/default/elements/icon.variables +1 -0
  217. package/src/themes/default/elements/input.variables +15 -0
  218. package/src/themes/default/elements/segment.variables +8 -0
  219. package/src/themes/default/elements/step.overrides +1 -1
  220. package/src/themes/default/globals/site.variables +6 -0
  221. package/src/themes/default/globals/variation.variables +134 -6
  222. package/src/themes/default/modules/accordion.variables +49 -2
  223. package/src/themes/default/modules/checkbox.variables +5 -5
  224. package/src/themes/default/modules/dimmer.variables +1 -1
  225. package/src/themes/default/modules/dropdown.variables +1 -1
  226. package/src/themes/default/modules/modal.variables +13 -0
  227. package/src/themes/default/modules/toast.variables +3 -0
  228. package/src/themes/famfamfam/elements/flag.overrides +1026 -0
  229. package/src/themes/famfamfam/elements/flag.variables +13 -0
  230. package/src/themes/instagram/views/card.overrides +1 -1
  231. package/src/themes/material/collections/menu.overrides +1 -1
  232. package/src/themes/material/elements/button.overrides +1 -1
  233. package/src/themes/material/elements/header.overrides +1 -1
  234. package/src/themes/material/modules/dropdown.overrides +1 -1
  235. package/src/themes/material/modules/modal.overrides +1 -1
  236. package/src/themes/rtl/globals/site.overrides +1 -1
  237. package/tasks/build/css.js +6 -1
  238. package/tasks/config/project/install.js +11 -5
  239. package/test/helpers/sinon.js +1 -1
@@ -31,26 +31,25 @@
31
31
  }
32
32
 
33
33
  /* Title */
34
- .ui.accordion .title,
35
- .ui.accordion .accordion .title {
34
+ .ui.accordion.menu .item > .title,
35
+ .ui.accordion > .title,
36
+ .ui.accordion .accordion > .title {
36
37
  cursor: pointer;
37
- }
38
-
39
- /* Default Styling */
40
- .ui.accordion .title:not(.ui) {
41
38
  padding: @titlePadding;
42
39
  font-family: @titleFont;
43
40
  font-size: @titleFontSize;
44
41
  color: @titleColor;
42
+ list-style: none;
43
+ line-height: @titleLineHeight;
45
44
  }
46
45
 
47
46
  /* Default Styling */
48
- .ui.accordion:not(.styled) .title ~ .content:not(.ui),
49
- .ui.accordion:not(.styled) .accordion .title ~ .content:not(.ui) {
47
+ .ui.accordion:not(.styled) .title ~ .content,
48
+ .ui.accordion:not(.styled) .accordion .title ~ .content {
50
49
  margin: @contentMargin;
51
50
  padding: @contentPadding;
52
51
  }
53
- .ui.accordion:not(.styled) .title ~ .content:not(.ui):last-child {
52
+ .ui.accordion:not(.styled) .title ~ .content:last-child {
54
53
  padding-bottom: 0;
55
54
  }
56
55
 
@@ -68,6 +67,10 @@
68
67
  transition: @iconTransition;
69
68
  vertical-align: @iconVerticalAlign;
70
69
  transform: @iconTransform;
70
+ &.right when (@variationAccordionRightDropdown) {
71
+ float:right;
72
+ transform: @iconTransformRight;
73
+ }
71
74
  }
72
75
 
73
76
  /*--------------
@@ -95,6 +98,8 @@
95
98
  States
96
99
  *******************************/
97
100
 
101
+ .ui.accordion[open] > .title .dropdown.icon,
102
+ .ui.accordion .accordion[open] > .title .dropdown.icon,
98
103
  .ui.accordion .active.title .dropdown.icon,
99
104
  .ui.accordion .accordion .active.title .dropdown.icon {
100
105
  transform: @activeIconTransform;
@@ -123,8 +128,8 @@
123
128
  background: @styledBackground;
124
129
  box-shadow: @styledBoxShadow;
125
130
  }
126
- .ui.styled.accordion .title,
127
- .ui.styled.accordion .accordion .title {
131
+ .ui.styled.accordion > .title,
132
+ .ui.styled.accordion .accordion > .title {
128
133
  margin: @styledTitleMargin;
129
134
  padding: @styledTitlePadding;
130
135
  color: @styledTitleColor;
@@ -133,49 +138,101 @@
133
138
  transition: @styledTitleTransition;
134
139
  }
135
140
  .ui.styled.accordion > .title:first-child,
136
- .ui.styled.accordion .accordion .title:first-child {
141
+ .ui.styled.accordion .accordion > .title:first-child {
137
142
  border-top: none;
138
143
  }
139
144
 
140
145
 
141
146
  /* Content */
142
- .ui.styled.accordion .content,
143
- .ui.styled.accordion .accordion .content {
147
+ .ui.styled.accordion > .content {
144
148
  margin: @styledContentMargin;
145
149
  padding: @styledContentPadding;
146
150
  }
147
- .ui.styled.accordion .accordion .content {
151
+ .ui.styled.accordion .accordion > .content {
148
152
  margin: @styledChildContentMargin;
149
153
  padding: @styledChildContentPadding;
150
154
  }
151
155
 
152
156
 
153
157
  /* Hover */
154
- .ui.styled.accordion .title:hover,
155
- .ui.styled.accordion .active.title,
156
- .ui.styled.accordion .accordion .title:hover,
157
- .ui.styled.accordion .accordion .active.title {
158
+ .ui.styled.accordion > .title:hover {
158
159
  background: @styledTitleHoverBackground;
159
160
  color: @styledTitleHoverColor;
160
161
  }
161
- .ui.styled.accordion .accordion .title:hover,
162
- .ui.styled.accordion .accordion .active.title {
162
+ .ui.styled.accordion .accordion > .title:hover {
163
163
  background: @styledHoverChildTitleBackground;
164
164
  color: @styledHoverChildTitleColor;
165
165
  }
166
166
 
167
167
 
168
168
  /* Active */
169
+ .ui.styled.accordion[open] > .title,
169
170
  .ui.styled.accordion .active.title {
170
171
  background: @styledActiveTitleBackground;
171
172
  color: @styledActiveTitleColor;
172
173
  }
174
+ .ui.styled.accordion .accordion[open] > .title,
173
175
  .ui.styled.accordion .accordion .active.title {
174
176
  background: @styledActiveChildTitleBackground;
175
177
  color: @styledActiveChildTitleColor;
176
178
  }
177
179
  }
178
180
 
181
+ & when (@variationAccordionCompact) {
182
+ /*--------------
183
+ Compact
184
+ ---------------*/
185
+
186
+ /* Default Styling */
187
+
188
+ .ui.compact.accordion:not(.styled) > .title,
189
+ .ui.compact.accordion:not(.styled) .accordion > .title {
190
+ padding: @titlePaddingCompact;
191
+ }
192
+
193
+ .ui.compact.accordion:not(.styled) .title ~ .content,
194
+ .ui.compact.accordion:not(.styled) .accordion .title ~ .content {
195
+ padding: @contentPaddingCompact;
196
+ }
197
+
198
+ /* Styled */
199
+
200
+ .ui.compact.styled.accordion > .title,
201
+ .ui.compact.styled.accordion .accordion > .title {
202
+ padding: @styledTitlePaddingCompact;
203
+ }
204
+
205
+ .ui.compact.styled.accordion .title ~ .content,
206
+ .ui.compact.styled.accordion .accordion .title ~ .content {
207
+ padding: @styledContentPaddingCompact;
208
+ }
209
+ }
210
+ /*--------------
211
+ Very Compact
212
+ ---------------*/
213
+
214
+ & when (@variationAccordionVeryCompact) {
215
+ .ui[class*="very compact"].accordion:not(.styled) > .title,
216
+ .ui[class*="very compact"].accordion:not(.styled) .accordion > .title {
217
+ padding: @titlePaddingVeryCompact;
218
+ }
219
+
220
+ .ui[class*="very compact"].accordion:not(.styled) .title ~ .content,
221
+ .ui[class*="very compact"].accordion:not(.styled) .accordion .title ~ .content {
222
+ padding: @contentPaddingVeryCompact;
223
+ }
224
+
225
+ .ui[class*="very compact"].styled.accordion > .title,
226
+ .ui[class*="very compact"].styled.accordion .accordion > .title {
227
+ padding: @styledTitlePaddingVeryCompact;
228
+ }
229
+
230
+ .ui[class*="very compact"].styled.accordion .title ~ .content,
231
+ .ui[class*="very compact"].styled.accordion .accordion .title ~ .content {
232
+ padding: @styledContentPaddingVeryCompact;
233
+ }
234
+ }
235
+
179
236
 
180
237
  /*******************************
181
238
  States
@@ -185,8 +242,8 @@
185
242
  Not Active
186
243
  ---------------*/
187
244
 
188
- .ui.accordion .title ~ .content:not(.active),
189
- .ui.accordion .accordion .title ~ .content:not(.active) {
245
+ .ui.accordion:not(details) .title ~ .content:not(.active),
246
+ .ui.accordion .accordion:not(details) .title ~ .content:not(.active) {
190
247
  display: none;
191
248
  }
192
249
 
@@ -210,9 +267,103 @@
210
267
  Inverted
211
268
  ---------------*/
212
269
 
213
- .ui.inverted.accordion .title:not(.ui) {
270
+ .ui.inverted.accordion.menu .item > .title,
271
+ .ui.inverted.accordion > .title,
272
+ .ui.inverted.accordion .accordion > .title {
214
273
  color: @invertedTitleColor;
215
274
  }
275
+ & when (@variationAccordionStyled) {
276
+ .ui.inverted.styled.accordion,
277
+ .ui.inverted.styled.accordion .accordion {
278
+ background: @invertedStyledBackground;
279
+ box-shadow: @invertedStyledBoxShadow;
280
+ }
281
+ .ui.inverted.styled.accordion > .title,
282
+ .ui.inverted.styled.accordion .accordion > .title {
283
+ color: @invertedStyledTitleColor;
284
+ border-top: @invertedStyledTitleBorder;
285
+ }
286
+
287
+ /* Hover */
288
+ .ui.inverted.styled.accordion > .title:hover {
289
+ background: @invertedStyledTitleHoverBackground;
290
+ color: @invertedStyledTitleHoverColor;
291
+ }
292
+ .ui.inverted.styled.accordion .accordion > .title:hover {
293
+ background: @invertedStyledHoverChildTitleBackground;
294
+ color: @invertedStyledHoverChildTitleColor;
295
+ }
296
+
297
+ /* Active */
298
+ .ui.inverted.styled.accordion[open] > .title,
299
+ .ui.inverted.styled.accordion .active.title {
300
+ background: @invertedStyledActiveTitleBackground;
301
+ color: @invertedStyledActiveTitleColor;
302
+ }
303
+ .ui.inverted.styled.accordion .accordion[open] > .title,
304
+ .ui.inverted.styled.accordion .accordion .active.title {
305
+ background: @invertedStyledActiveChildTitleBackground;
306
+ color: @invertedStyledActiveChildTitleColor;
307
+ }
308
+ }
309
+ }
310
+
311
+ & when (@variationAccordionBasicStyled) {
312
+ .ui.basic.styled.accordion,
313
+ .ui.basic.styled.accordion .accordion {
314
+ background: transparent;
315
+ box-shadow: none;
316
+ }
317
+ .ui.basic.styled.accordion > .title,
318
+ .ui.basic.styled.accordion .accordion > .title {
319
+ border: none;
320
+ color: @basicStyledTitleColor;
321
+ }
322
+ .ui.basic.styled.accordion > .title:hover,
323
+ .ui.basic.styled.accordion .accordion > .title:hover {
324
+ background: transparent;
325
+ color: @basicStyledTitleHoverColor;
326
+ }
327
+ .ui.basic.styled.accordion[open] > .title,
328
+ .ui.basic.styled.accordion .active.title,
329
+ .ui.basic.styled.accordion .accordion[open] > .title,
330
+ .ui.basic.styled.accordion .accordion .active.title {
331
+ background: transparent;
332
+ color: @basicStyledActiveTitleColor;
333
+ }
334
+ & when (@variationAccordionInverted) {
335
+ .ui.inverted.basic.styled.accordion > .title,
336
+ .ui.inverted.basic.styled.accordion .accordion > .title {
337
+ background: transparent;
338
+ color: @invertedBasicStyledTitleColor;
339
+ }
340
+ .ui.inverted.basic.styled.accordion > .title:hover,
341
+ .ui.inverted.basic.styled.accordion .accordion > .title:hover {
342
+ background: transparent;
343
+ color: @invertedBasicStyledTitleHoverColor;
344
+ }
345
+ .ui.inverted.basic.styled.accordion[open] > .title,
346
+ .ui.inverted.basic.styled.accordion .active.title,
347
+ .ui.inverted.basic.styled.accordion .accordion[open] > .title,
348
+ .ui.inverted.basic.styled.accordion .accordion .active.title {
349
+ background: transparent;
350
+ color: @invertedBasicStyledActiveTitleColor;
351
+ }
352
+ }
353
+ }
354
+
355
+ & when (@variationAccordionTree) {
356
+ .ui.tree.accordion:not(.styled) .title ~ .content,
357
+ .ui.tree.accordion:not(.styled) .accordion .title ~ .content {
358
+ padding:@treeContentPadding;
359
+ }
360
+ .ui.tree.accordion > .content,
361
+ .ui.tree.accordion .accordion > .content {
362
+ margin-left: @treeContentLeftMargin;
363
+ }
364
+ .ui.tree.accordion .accordion {
365
+ margin-top: @treeContentTopMargin;
366
+ }
216
367
  }
217
368
 
218
369
  .loadUIOverrides();
@@ -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
@@ -239,18 +239,26 @@ $.fn.checkbox = function(parameters) {
239
239
  }
240
240
  }
241
241
 
242
+ shortcutPressed = false;
242
243
  if(key == keyCode.escape) {
243
244
  module.verbose('Escape key pressed blurring field');
244
245
  $input.blur();
245
246
  shortcutPressed = true;
246
247
  }
247
- else if(!event.ctrlKey && ( key == keyCode.space || (key == keyCode.enter && settings.enableEnterKey)) ) {
248
- module.verbose('Enter/space key pressed, toggling checkbox');
249
- module.toggle();
250
- shortcutPressed = true;
251
- }
252
- else {
253
- shortcutPressed = false;
248
+ else if(!event.ctrlKey && module.can.change()) {
249
+ if( key == keyCode.space || (key == keyCode.enter && settings.enableEnterKey) ) {
250
+ module.verbose('Enter/space key pressed, toggling checkbox');
251
+ module.toggle();
252
+ shortcutPressed = true;
253
+ } else if($module.is('.toggle, .slider') && !module.is.radio()) {
254
+ if(key == keyCode.left && module.is.checked()) {
255
+ module.uncheck();
256
+ shortcutPressed = true;
257
+ } else if(key == keyCode.right && module.is.unchecked()) {
258
+ module.check();
259
+ shortcutPressed = true;
260
+ }
261
+ }
254
262
  }
255
263
  },
256
264
  keyup: function(event) {
@@ -323,7 +331,6 @@ $.fn.checkbox = function(parameters) {
323
331
  settings.onEnable.call(input);
324
332
  // preserve legacy callbacks
325
333
  settings.onEnabled.call(input);
326
- module.trigger.change();
327
334
  }
328
335
  },
329
336
 
@@ -338,7 +345,6 @@ $.fn.checkbox = function(parameters) {
338
345
  settings.onDisable.call(input);
339
346
  // preserve legacy callbacks
340
347
  settings.onDisabled.call(input);
341
- module.trigger.change();
342
348
  }
343
349
  },
344
350
 
@@ -866,7 +872,7 @@ $.fn.checkbox.settings = {
866
872
 
867
873
  selector : {
868
874
  checkbox : '.ui.checkbox',
869
- label : 'label, .box',
875
+ label : 'label',
870
876
  input : 'input[type="checkbox"], input[type="radio"]',
871
877
  link : 'a[href]'
872
878
  }
@@ -55,126 +55,6 @@
55
55
  }
56
56
 
57
57
 
58
- & when (@variationCheckboxBox) {
59
- /*--------------
60
- Box
61
- ---------------*/
62
-
63
- /* .box selector is deprecated and will be removed in v3 */
64
- .ui.checkbox .box {
65
- &:extend(.ui.checkbox label all);
66
- }
67
- .ui.checkbox + .box {
68
- &:extend(.ui.checkbox + label all);
69
- }
70
- .ui.checkbox input:focus ~ .box {
71
- &:extend(.ui.checkbox input:focus ~ label all);
72
- }
73
- .ui.checkbox input:checked ~ .box {
74
- &:extend(.ui.checkbox input:checked ~ label all);
75
- }
76
- & when (@variationCheckboxIndeterminate) {
77
- .ui.checkbox input:not([type=radio]):indeterminate ~ .box {
78
- &:extend(.ui.checkbox input:not([type=radio]):indeterminate ~ label all);
79
- }
80
- .ui.checkbox input:not([type=radio]):indeterminate:focus ~ .box {
81
- &:extend(.ui.checkbox input:not([type=radio]):indeterminate:focus ~ label all);
82
- }
83
- }
84
- .ui.checkbox input:checked:focus ~ .box {
85
- &:extend(.ui.checkbox input:checked:focus ~ label all);
86
- }
87
- & when (@variationCheckboxDisabled) {
88
- .ui.disabled.checkbox .box {
89
- &:extend(.ui.disabled.checkbox label all);
90
- }
91
-
92
- .ui.checkbox input[disabled] ~ .box {
93
- &:extend(.ui.checkbox input[disabled] ~ label all);
94
- }
95
- }
96
- & when (@variationCheckboxRadio) {
97
- .ui.radio.checkbox .box {
98
- &:extend(.ui.radio.checkbox label all);
99
- }
100
- .ui.radio.checkbox input:focus ~ .box {
101
- &:extend(.ui.radio.checkbox input:focus ~ label all);
102
- }
103
- .ui.radio.checkbox input:indeterminate ~ .box {
104
- &:extend(.ui.radio.checkbox input:indeterminate ~ label all);
105
- }
106
- .ui.radio.checkbox input:checked ~ .box {
107
- &:extend(.ui.radio.checkbox input:checked ~ label all);
108
- }
109
- .ui.radio.checkbox input:focus:checked ~ .box {
110
- &:extend(.ui.radio.checkbox input:focus:checked ~ label all);
111
- }
112
- }
113
- & when (@variationCheckboxSlider) {
114
- .ui.slider.checkbox .box {
115
- &:extend(.ui.slider.checkbox label all);
116
- }
117
- .ui.slider.checkbox input:focus ~ .box {
118
- &:extend(.ui.slider.checkbox input:focus ~ label all);
119
- }
120
- .ui.slider.checkbox input:checked ~ .box {
121
- &:extend(.ui.slider.checkbox input:checked ~ label all);
122
- }
123
- .ui.slider.checkbox input:focus:checked ~ .box {
124
- &:extend(.ui.slider.checkbox input:focus:checked ~ label all);
125
- }
126
- }
127
- & when (@variationCheckboxToggle) {
128
- .ui.toggle.checkbox .box {
129
- &:extend(.ui.toggle.checkbox label all);
130
- }
131
- .ui.toggle.checkbox input ~ .box {
132
- &:extend(.ui.toggle.checkbox input ~ label all);
133
- }
134
- .ui.toggle.checkbox input:focus ~ .box {
135
- &:extend(.ui.toggle.checkbox input:focus ~ label all);
136
- }
137
- .ui.toggle.checkbox input:checked ~ .box {
138
- &:extend(.ui.toggle.checkbox input:checked ~ label all);
139
- }
140
- .ui.toggle.checkbox input:focus:checked ~ .box {
141
- &:extend(.ui.toggle.checkbox input:focus:checked ~ label all);
142
- }
143
- }
144
- & when (@variationCheckboxFitted) {
145
- .ui.fitted.checkbox .box {
146
- &:extend(.ui.fitted.checkbox label all);
147
- }
148
- }
149
- & when (@variationCheckboxInverted) {
150
- .ui.inverted.checkbox .box {
151
- &:extend(.ui.inverted.checkbox label all);
152
- }
153
- & when (@variationCheckboxSlider) {
154
- .ui.inverted.slider.checkbox .box {
155
- &:extend(.ui.inverted.slider.checkbox label all);
156
- }
157
- .ui.inverted.slider.checkbox input:checked ~ .box {
158
- &:extend(.ui.inverted.slider.checkbox input:checked ~ label all);
159
- }
160
- .ui.inverted.slider.checkbox input:focus:checked ~ .box {
161
- &:extend(.ui.inverted.slider.checkbox input:focus:checked ~ label all);
162
- }
163
- }
164
- & when (@variationCheckboxToggle) {
165
- .ui.inverted.toggle.checkbox .box {
166
- &:extend(.ui.inverted.toggle.checkbox label all);
167
- }
168
- .ui.inverted.toggle.checkbox input:checked ~ .box {
169
- &:extend(.ui.inverted.toggle.checkbox input:checked ~ label all);
170
- }
171
- .ui.inverted.toggle.checkbox input:focus:checked ~ .box {
172
- &:extend(.ui.inverted.toggle.checkbox input:focus:checked ~ label all);
173
- }
174
- }
175
- }
176
- }
177
-
178
58
  .ui.checkbox label {
179
59
  cursor: auto;
180
60
  position: relative;
@@ -386,6 +266,7 @@
386
266
  }
387
267
 
388
268
  /* Selectable Label */
269
+ .ui.checkbox input + label[for],
389
270
  .ui.checkbox input.hidden + label {
390
271
  cursor: pointer;
391
272
  user-select: none;
@@ -796,69 +677,44 @@
796
677
  /*--------------------
797
678
  Size
798
679
  ---------------------*/
680
+ & when not (@variationCheckboxSizes = false) {
681
+ each(@variationCheckboxSizes, {
682
+ @raw: @{value}Raw;
683
+ @size: @{value}CheckboxSize;
684
+ @circleScale: @{value}CheckboxCircleScale;
685
+ @circleLeft: @{value}CheckboxCircleLeft;
799
686
 
800
- each(@variationCheckboxSizes, {
801
- @raw: @{value}Raw;
802
- @size: @{value}CheckboxSize;
803
- @circleScale: @{value}CheckboxCircleScale;
804
- @circleLeft: @{value}CheckboxCircleLeft;
805
-
806
- .ui.@{value}.checkbox {
807
- font-size: @@size;
808
- }
809
-
810
- & when (@@raw > 1) {
811
- .ui.@{value}.form .checkbox,
812
687
  .ui.@{value}.checkbox {
813
- &:not(.slider):not(.toggle):not(.radio) {
814
- &
815
- label:after,
816
- label:before {
817
- transform: scale(@@raw);
818
- transform-origin:left;
819
- }
820
- }
821
- &.radio when (@variationCheckboxRadio) {
822
- &
823
- label:before {
824
- transform: scale(@@raw);
825
- transform-origin:left;
688
+ font-size: @@size;
689
+ }
690
+
691
+ & when (@@raw > 1) {
692
+ .ui.@{value}.form .checkbox,
693
+ .ui.@{value}.checkbox {
694
+ &:not(.slider):not(.toggle):not(.radio) {
695
+ &
696
+ label:after,
697
+ label:before {
698
+ transform: scale(@@raw);
699
+ transform-origin: left;
700
+ }
826
701
  }
827
- &
828
- label:after {
829
- transform:scale(@@circleScale);
830
- transform-origin:left;
831
- left: @@circleLeft;
702
+ &.radio when (@variationCheckboxRadio) {
703
+ &
704
+ label:before {
705
+ transform: scale(@@raw);
706
+ transform-origin: left;
707
+ }
708
+ &
709
+ label:after {
710
+ transform: scale(@@circleScale);
711
+ transform-origin: left;
712
+ left: @@circleLeft;
713
+ }
832
714
  }
833
715
  }
834
716
  }
835
- }
836
- & when (@@raw > 1) and (@variationCheckboxBox) {
837
- .ui.@{value}.form .checkbox,
838
- .ui.@{value}.checkbox {
839
- &:not(.slider):not(.toggle):not(.radio) {
840
- &
841
- .box:after,
842
- .box:before {
843
- transform: scale(@@raw);
844
- transform-origin:left;
845
- }
846
- }
847
- &.radio when (@variationCheckboxRadio) {
848
- &
849
- .box:before {
850
- transform: scale(@@raw);
851
- transform-origin:left;
852
- }
853
- &
854
- .box:after {
855
- transform:scale(@@circleScale);
856
- transform-origin:left;
857
- left: @@circleLeft;
858
- }
859
- }
860
- }
861
- }
862
- })
717
+ })
718
+ }
863
719
 
864
720
  .loadUIOverrides();
@@ -68,7 +68,7 @@
68
68
  }
69
69
 
70
70
  /* Scrollbars */
71
- .addScrollbars() when (@useCustomScrollbars) {
71
+ & when (@useCustomScrollbars) {
72
72
  .ui.dimmer:not(.inverted)::-webkit-scrollbar-track {
73
73
  background: @trackInvertedBackground;
74
74
  }
@@ -81,8 +81,17 @@
81
81
  .ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb:hover {
82
82
  background: @thumbInvertedHoverBackground;
83
83
  }
84
+ .ui.dimmer:not(.inverted) {
85
+ /* IE11 */
86
+ scrollbar-face-color: @thumbInvertedBackgroundHex;
87
+ scrollbar-shadow-color: @thumbInvertedBackgroundHex;
88
+ scrollbar-track-color: @trackInvertedBackgroundHex;
89
+ scrollbar-arrow-color: @trackInvertedBackgroundHex;
90
+
91
+ /* firefox : first color thumb, second track */
92
+ scrollbar-color: @thumbInvertedBackground @trackInvertedBackground;
93
+ }
84
94
  }
85
- .addScrollbars();
86
95
 
87
96
  /*******************************
88
97
  States
@@ -171,17 +180,21 @@ body.dimmable > .dimmer {
171
180
  Blurring
172
181
  ---------------*/
173
182
 
174
- .blurring.dimmable > :not(.dimmer) {
175
- filter: @blurredStartFilter;
176
- transition: @blurredTransition;
177
- }
178
- .blurring.dimmed.dimmable > :not(.dimmer):not(.popup) {
179
- filter: @blurredEndFilter;
183
+ @supports (not (-webkit-backdrop-filter: none)) and (not (backdrop-filter: none)) {
184
+ .blurring.dimmable > :not(.dimmer) {
185
+ filter: @blurredStartFilter;
186
+ transition: @blurredTransition;
187
+ }
188
+ .blurring.dimmed.dimmable > :not(.dimmer):not(.popup) {
189
+ filter: @blurredEndFilter;
190
+ }
180
191
  }
181
192
 
182
193
  /* Dimmer Color */
183
194
  .blurring.dimmable > .dimmer {
184
195
  background: @blurredBackgroundColor;
196
+ -webkit-backdrop-filter: @blurredEndFilter;
197
+ backdrop-filter: @blurredEndFilter;
185
198
  }
186
199
  .blurring.dimmable > .inverted.dimmer {
187
200
  background: @blurredInvertedBackgroundColor;