fomantic-ui 2.9.0-beta.192 → 2.9.0-beta.193

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 (153) hide show
  1. package/dist/components/accordion.css +121 -29
  2. package/dist/components/accordion.js +1 -1
  3. package/dist/components/accordion.min.css +2 -2
  4. package/dist/components/accordion.min.js +1 -1
  5. package/dist/components/ad.css +1 -1
  6. package/dist/components/ad.min.css +1 -1
  7. package/dist/components/api.js +1 -1
  8. package/dist/components/api.min.js +1 -1
  9. package/dist/components/breadcrumb.css +1 -1
  10. package/dist/components/breadcrumb.min.css +1 -1
  11. package/dist/components/button.css +1 -1
  12. package/dist/components/button.min.css +1 -1
  13. package/dist/components/calendar.css +1 -1
  14. package/dist/components/calendar.js +1 -1
  15. package/dist/components/calendar.min.css +1 -1
  16. package/dist/components/calendar.min.js +1 -1
  17. package/dist/components/card.css +1 -1
  18. package/dist/components/card.min.css +1 -1
  19. package/dist/components/checkbox.css +1 -1
  20. package/dist/components/checkbox.js +1 -1
  21. package/dist/components/checkbox.min.css +1 -1
  22. package/dist/components/checkbox.min.js +1 -1
  23. package/dist/components/comment.css +1 -1
  24. package/dist/components/comment.min.css +1 -1
  25. package/dist/components/container.css +1 -1
  26. package/dist/components/container.min.css +1 -1
  27. package/dist/components/dimmer.css +1 -1
  28. package/dist/components/dimmer.js +1 -1
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +1 -1
  31. package/dist/components/divider.css +1 -1
  32. package/dist/components/divider.min.css +1 -1
  33. package/dist/components/dropdown.css +1 -1
  34. package/dist/components/dropdown.js +1 -1
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +1 -1
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +1 -1
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +1 -1
  41. package/dist/components/feed.css +1 -1
  42. package/dist/components/feed.min.css +1 -1
  43. package/dist/components/flag.css +1 -1
  44. package/dist/components/flag.min.css +1 -1
  45. package/dist/components/form.css +1 -1
  46. package/dist/components/form.js +1 -1
  47. package/dist/components/form.min.css +1 -1
  48. package/dist/components/form.min.js +1 -1
  49. package/dist/components/grid.css +1 -1
  50. package/dist/components/grid.min.css +1 -1
  51. package/dist/components/header.css +1 -1
  52. package/dist/components/header.min.css +1 -1
  53. package/dist/components/icon.css +1 -1
  54. package/dist/components/icon.min.css +1 -1
  55. package/dist/components/image.css +1 -1
  56. package/dist/components/image.min.css +1 -1
  57. package/dist/components/input.css +1 -1
  58. package/dist/components/input.min.css +1 -1
  59. package/dist/components/item.css +1 -1
  60. package/dist/components/item.min.css +1 -1
  61. package/dist/components/label.css +1 -1
  62. package/dist/components/label.min.css +1 -1
  63. package/dist/components/list.css +1 -1
  64. package/dist/components/list.min.css +1 -1
  65. package/dist/components/loader.css +1 -1
  66. package/dist/components/loader.min.css +1 -1
  67. package/dist/components/message.css +1 -1
  68. package/dist/components/message.min.css +1 -1
  69. package/dist/components/modal.css +1 -1
  70. package/dist/components/modal.js +1 -1
  71. package/dist/components/modal.min.css +1 -1
  72. package/dist/components/modal.min.js +1 -1
  73. package/dist/components/nag.css +1 -1
  74. package/dist/components/nag.js +1 -1
  75. package/dist/components/nag.min.css +1 -1
  76. package/dist/components/nag.min.js +1 -1
  77. package/dist/components/placeholder.css +1 -1
  78. package/dist/components/placeholder.min.css +1 -1
  79. package/dist/components/popup.css +1 -1
  80. package/dist/components/popup.js +1 -1
  81. package/dist/components/popup.min.css +1 -1
  82. package/dist/components/popup.min.js +1 -1
  83. package/dist/components/progress.css +1 -1
  84. package/dist/components/progress.js +1 -1
  85. package/dist/components/progress.min.css +1 -1
  86. package/dist/components/progress.min.js +1 -1
  87. package/dist/components/rail.css +1 -1
  88. package/dist/components/rail.min.css +1 -1
  89. package/dist/components/rating.css +1 -1
  90. package/dist/components/rating.js +1 -1
  91. package/dist/components/rating.min.css +1 -1
  92. package/dist/components/rating.min.js +1 -1
  93. package/dist/components/reset.css +1 -1
  94. package/dist/components/reset.min.css +1 -1
  95. package/dist/components/reveal.css +1 -1
  96. package/dist/components/reveal.min.css +1 -1
  97. package/dist/components/search.css +1 -1
  98. package/dist/components/search.js +1 -1
  99. package/dist/components/search.min.css +1 -1
  100. package/dist/components/search.min.js +1 -1
  101. package/dist/components/segment.css +1 -1
  102. package/dist/components/segment.min.css +1 -1
  103. package/dist/components/shape.css +1 -1
  104. package/dist/components/shape.js +1 -1
  105. package/dist/components/shape.min.css +1 -1
  106. package/dist/components/shape.min.js +1 -1
  107. package/dist/components/sidebar.css +1 -1
  108. package/dist/components/sidebar.js +1 -1
  109. package/dist/components/sidebar.min.css +1 -1
  110. package/dist/components/sidebar.min.js +1 -1
  111. package/dist/components/site.css +1 -1
  112. package/dist/components/site.js +1 -1
  113. package/dist/components/site.min.css +1 -1
  114. package/dist/components/site.min.js +1 -1
  115. package/dist/components/slider.js +1 -1
  116. package/dist/components/slider.min.js +1 -1
  117. package/dist/components/state.js +1 -1
  118. package/dist/components/state.min.js +1 -1
  119. package/dist/components/statistic.css +1 -1
  120. package/dist/components/statistic.min.css +1 -1
  121. package/dist/components/step.css +1 -1
  122. package/dist/components/step.min.css +1 -1
  123. package/dist/components/sticky.css +1 -1
  124. package/dist/components/sticky.js +1 -1
  125. package/dist/components/sticky.min.css +1 -1
  126. package/dist/components/sticky.min.js +1 -1
  127. package/dist/components/tab.css +1 -1
  128. package/dist/components/tab.js +1 -1
  129. package/dist/components/tab.min.css +1 -1
  130. package/dist/components/tab.min.js +1 -1
  131. package/dist/components/table.css +1 -1
  132. package/dist/components/table.min.css +1 -1
  133. package/dist/components/text.css +1 -1
  134. package/dist/components/text.min.css +1 -1
  135. package/dist/components/toast.css +1 -1
  136. package/dist/components/toast.js +3 -2
  137. package/dist/components/toast.min.css +1 -1
  138. package/dist/components/toast.min.js +2 -2
  139. package/dist/components/transition.css +1 -1
  140. package/dist/components/transition.js +1 -1
  141. package/dist/components/transition.min.css +1 -1
  142. package/dist/components/transition.min.js +1 -1
  143. package/dist/components/visibility.js +1 -1
  144. package/dist/components/visibility.min.js +1 -1
  145. package/dist/semantic.css +186 -78
  146. package/dist/semantic.js +27 -26
  147. package/dist/semantic.min.css +2 -2
  148. package/dist/semantic.min.js +2 -2
  149. package/package.json +1 -1
  150. package/src/definitions/modules/accordion.less +129 -28
  151. package/src/definitions/modules/toast.js +2 -1
  152. package/src/themes/default/globals/variation.variables +4 -0
  153. package/src/themes/default/modules/accordion.variables +34 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fomantic-ui",
3
- "version": "2.9.0-beta.192",
3
+ "version": "2.9.0-beta.193",
4
4
  "description": "Fomantic empowers designers and developers by creating a shared vocabulary for UI.",
5
5
  "keywords": [
6
6
  "fomantic-ui",
@@ -31,17 +31,16 @@
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 {
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 */
@@ -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,43 +138,40 @@
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;
@@ -182,7 +184,9 @@
182
184
  ---------------*/
183
185
 
184
186
  /* Default Styling */
185
- .ui.compact.accordion:not(.styled) .title {
187
+
188
+ .ui.compact.accordion:not(.styled) > .title,
189
+ .ui.compact.accordion:not(.styled) .accordion > .title {
186
190
  padding: @titlePaddingCompact;
187
191
  }
188
192
 
@@ -192,8 +196,9 @@
192
196
  }
193
197
 
194
198
  /* Styled */
195
- .ui.compact.styled.accordion .title,
196
- .ui.compact.styled.accordion .accordion .title {
199
+
200
+ .ui.compact.styled.accordion > .title,
201
+ .ui.compact.styled.accordion .accordion > .title {
197
202
  padding: @styledTitlePaddingCompact;
198
203
  }
199
204
 
@@ -201,12 +206,14 @@
201
206
  .ui.compact.styled.accordion .accordion .title ~ .content {
202
207
  padding: @styledContentPaddingCompact;
203
208
  }
204
-
209
+ }
205
210
  /*--------------
206
211
  Very Compact
207
212
  ---------------*/
208
213
 
209
- .ui[class*="very compact"].accordion:not(.styled) .title {
214
+ & when (@variationAccordionVeryCompact) {
215
+ .ui[class*="very compact"].accordion:not(.styled) > .title,
216
+ .ui[class*="very compact"].accordion:not(.styled) .accordion > .title {
210
217
  padding: @titlePaddingVeryCompact;
211
218
  }
212
219
 
@@ -215,8 +222,8 @@
215
222
  padding: @contentPaddingVeryCompact;
216
223
  }
217
224
 
218
- .ui[class*="very compact"].styled.accordion .title,
219
- .ui[class*="very compact"].styled.accordion .accordion .title {
225
+ .ui[class*="very compact"].styled.accordion > .title,
226
+ .ui[class*="very compact"].styled.accordion .accordion > .title {
220
227
  padding: @styledTitlePaddingVeryCompact;
221
228
  }
222
229
 
@@ -235,8 +242,8 @@
235
242
  Not Active
236
243
  ---------------*/
237
244
 
238
- .ui.accordion .title ~ .content:not(.active),
239
- .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) {
240
247
  display: none;
241
248
  }
242
249
 
@@ -260,9 +267,103 @@
260
267
  Inverted
261
268
  ---------------*/
262
269
 
263
- .ui.inverted.accordion .title {
270
+ .ui.inverted.accordion.menu .item > .title,
271
+ .ui.inverted.accordion > .title,
272
+ .ui.inverted.accordion .accordion > .title {
264
273
  color: @invertedTitleColor;
265
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
+ }
266
367
  }
267
368
 
268
369
  .loadUIOverrides();
@@ -511,7 +511,7 @@ $.fn.toast = function(parameters) {
511
511
  module.close();
512
512
  },
513
513
  click: function(event) {
514
- if($(event.target).closest('a').length === 0) {
514
+ if($(event.target).closest(selector.clickable).length === 0) {
515
515
  if(settings.onClick.call($toastBox, element) === false || !settings.closeOnClick) {
516
516
  module.verbose('Click callback returned false or close denied by setting cancelling close');
517
517
  return;
@@ -876,6 +876,7 @@ $.fn.toast.settings = {
876
876
  image : '> img.image, > .image > img',
877
877
  icon : '> i.icon',
878
878
  input : 'input:not([type="hidden"]), textarea, select, button, .ui.button, ui.dropdown',
879
+ clickable : 'a, details, .ui.accordion',
879
880
  approve : '.actions .positive, .actions .approve, .actions .ok',
880
881
  deny : '.actions .negative, .actions .deny, .actions .cancel'
881
882
  },
@@ -478,8 +478,12 @@
478
478
  /* Accordion */
479
479
  @variationAccordionInverted: true;
480
480
  @variationAccordionStyled: true;
481
+ @variationAccordionBasicStyled: true;
481
482
  @variationAccordionFluid: true;
482
483
  @variationAccordionCompact: true;
484
+ @variationAccordionVeryCompact: true;
485
+ @variationAccordionRightDropdown: true;
486
+ @variationAccordionTree: true;
483
487
 
484
488
  /* Calendar */
485
489
  @variationCalendarInverted: true;
@@ -9,6 +9,7 @@
9
9
  @titlePadding: 0.5em 0;
10
10
  @titleFontSize: 1em;
11
11
  @titleColor: @textColor;
12
+ @titleLineHeight: 1;
12
13
 
13
14
  /* Icon */
14
15
  @iconOpacity: 1;
@@ -25,6 +26,7 @@
25
26
  ;
26
27
  @iconVerticalAlign: baseline;
27
28
  @iconTransform: none;
29
+ @iconTransformRight: @menuIconTransform;
28
30
 
29
31
  /* Child Accordion */
30
32
  @childAccordionMargin: 1em 0 0;
@@ -40,7 +42,7 @@
40
42
 
41
43
  @menuTitlePadding: 0;
42
44
  @menuIconFloat: right;
43
- @menuIconMargin: @lineHeightOffset 0 0 1em;
45
+ @menuIconMargin: @iconMargin;
44
46
  @menuIconTransform: rotate(180deg);
45
47
 
46
48
 
@@ -97,6 +99,22 @@
97
99
 
98
100
  /* Inverted */
99
101
  @invertedTitleColor: @invertedTextColor;
102
+ @invertedStyledTitleColor: @invertedUnselectedTextColor;
103
+ @invertedStyledBackground: @black;
104
+ @invertedStyledTitleBorder: 1px solid @whiteBorderColor;
105
+ @invertedStyledBoxShadow:
106
+ @subtleShadow,
107
+ 0 0 0 1px @whiteBorderColor
108
+ ;
109
+ @invertedStyledTitleHoverBackground: transparent;
110
+ @invertedStyledTitleHoverColor: @invertedTextColor;
111
+ @invertedStyledActiveTitleBackground: transparent;
112
+ @invertedStyledActiveTitleColor: @invertedSelectedTextColor;
113
+
114
+ @invertedStyledHoverChildTitleBackground: @invertedStyledTitleHoverBackground;
115
+ @invertedStyledHoverChildTitleColor: @invertedStyledTitleHoverColor;
116
+ @invertedStyledActiveChildTitleBackground: @invertedStyledActiveTitleBackground;
117
+ @invertedStyledActiveChildTitleColor: @invertedStyledActiveTitleColor;
100
118
 
101
119
  /* Compact */
102
120
  @titlePaddingCompact: 0.25em 0;
@@ -112,4 +130,18 @@
112
130
 
113
131
  /* Styled Very Compact */
114
132
  @styledTitlePaddingVeryCompact: 0.1875em 0.25em;
115
- @styledContentPaddingVeryCompact: 0.125em 0.25em 0.375em;
133
+ @styledContentPaddingVeryCompact: 0.125em 0.25em 0.375em;
134
+
135
+ /* Basic Styled */
136
+ @basicStyledTitleColor: @mutedTextColor;
137
+ @basicStyledTitleHoverColor: @textColor;
138
+ @basicStyledActiveTitleColor: @selectedTextColor;
139
+
140
+ @invertedBasicStyledTitleColor: @invertedMutedTextColor;
141
+ @invertedBasicStyledTitleHoverColor: @invertedTextColor;
142
+ @invertedBasicStyledActiveTitleColor: @invertedSelectedTextColor;
143
+
144
+ /* Tree */
145
+ @treeContentPadding: 0;
146
+ @treeContentTopMargin: 0;
147
+ @treeContentLeftMargin: 1.7em;