fomantic-ui 2.9.0-beta.25 → 2.9.0-beta.252

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 (284) hide show
  1. package/.all-contributorsrc +206 -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 +75 -37
  6. package/README.md +8 -8
  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 +34 -30
  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 +176 -134
  18. package/dist/components/button.min.css +2 -2
  19. package/dist/components/calendar.css +18 -1
  20. package/dist/components/calendar.js +10 -9
  21. package/dist/components/calendar.min.css +2 -2
  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 +94 -1
  32. package/dist/components/container.min.css +2 -2
  33. package/dist/components/dimmer.css +28 -14
  34. package/dist/components/dimmer.js +11 -5
  35. package/dist/components/dimmer.min.css +2 -2
  36. package/dist/components/dimmer.min.js +3 -3
  37. package/dist/components/divider.css +1 -1
  38. package/dist/components/divider.min.css +1 -1
  39. package/dist/components/dropdown.css +49 -13
  40. package/dist/components/dropdown.js +62 -38
  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 +10147 -8139
  48. package/dist/components/emoji.min.css +1 -1
  49. package/dist/components/feed.css +28 -28
  50. package/dist/components/feed.min.css +2 -2
  51. package/dist/components/flag.css +734 -625
  52. package/dist/components/flag.min.css +2 -2
  53. package/dist/components/form.css +118 -55
  54. package/dist/components/form.js +30 -28
  55. package/dist/components/form.min.css +2 -2
  56. package/dist/components/form.min.js +3 -3
  57. package/dist/components/grid.css +11 -8
  58. package/dist/components/grid.min.css +2 -2
  59. package/dist/components/header.css +3 -1
  60. package/dist/components/header.min.css +2 -2
  61. package/dist/components/icon.css +126 -47
  62. package/dist/components/icon.min.css +2 -2
  63. package/dist/components/image.css +1 -1
  64. package/dist/components/image.min.css +1 -1
  65. package/dist/components/input.css +742 -17
  66. package/dist/components/input.min.css +2 -2
  67. package/dist/components/item.css +13 -13
  68. package/dist/components/item.min.css +1 -1
  69. package/dist/components/label.css +1 -1
  70. package/dist/components/label.min.css +1 -1
  71. package/dist/components/list.css +1 -1
  72. package/dist/components/list.min.css +1 -1
  73. package/dist/components/loader.css +1 -1
  74. package/dist/components/loader.min.css +1 -1
  75. package/dist/components/menu.css +29 -5
  76. package/dist/components/menu.min.css +1 -1
  77. package/dist/components/message.css +41 -41
  78. package/dist/components/message.min.css +2 -2
  79. package/dist/components/modal.css +13 -1
  80. package/dist/components/modal.js +127 -49
  81. package/dist/components/modal.min.css +2 -2
  82. package/dist/components/modal.min.js +3 -3
  83. package/dist/components/nag.css +1 -1
  84. package/dist/components/nag.js +1 -1
  85. package/dist/components/nag.min.css +1 -1
  86. package/dist/components/nag.min.js +2 -2
  87. package/dist/components/placeholder.css +1 -1
  88. package/dist/components/placeholder.min.css +1 -1
  89. package/dist/components/popup.css +1 -1
  90. package/dist/components/popup.js +2 -2
  91. package/dist/components/popup.min.css +1 -1
  92. package/dist/components/popup.min.js +3 -3
  93. package/dist/components/progress.css +1 -1
  94. package/dist/components/progress.js +4 -1
  95. package/dist/components/progress.min.css +1 -1
  96. package/dist/components/progress.min.js +3 -3
  97. package/dist/components/rail.css +1 -1
  98. package/dist/components/rail.min.css +1 -1
  99. package/dist/components/rating.css +1 -1
  100. package/dist/components/rating.js +1 -1
  101. package/dist/components/rating.min.css +1 -1
  102. package/dist/components/rating.min.js +2 -2
  103. package/dist/components/reset.css +1 -1
  104. package/dist/components/reset.min.css +1 -1
  105. package/dist/components/reveal.css +1 -1
  106. package/dist/components/reveal.min.css +1 -1
  107. package/dist/components/search.css +1 -1
  108. package/dist/components/search.js +2 -2
  109. package/dist/components/search.min.css +1 -1
  110. package/dist/components/search.min.js +3 -3
  111. package/dist/components/segment.css +91 -7
  112. package/dist/components/segment.min.css +2 -2
  113. package/dist/components/shape.css +1 -1
  114. package/dist/components/shape.js +3 -3
  115. package/dist/components/shape.min.css +1 -1
  116. package/dist/components/shape.min.js +3 -3
  117. package/dist/components/sidebar.css +4 -2
  118. package/dist/components/sidebar.js +8 -6
  119. package/dist/components/sidebar.min.css +2 -2
  120. package/dist/components/sidebar.min.js +3 -3
  121. package/dist/components/site.css +61 -39
  122. package/dist/components/site.js +1 -1
  123. package/dist/components/site.min.css +2 -2
  124. package/dist/components/site.min.js +2 -2
  125. package/dist/components/slider.js +1 -1
  126. package/dist/components/slider.min.js +2 -2
  127. package/dist/components/state.js +1 -1
  128. package/dist/components/state.min.js +2 -2
  129. package/dist/components/statistic.css +1 -1
  130. package/dist/components/statistic.min.css +1 -1
  131. package/dist/components/step.css +4 -4
  132. package/dist/components/step.min.css +2 -2
  133. package/dist/components/sticky.css +1 -1
  134. package/dist/components/sticky.js +1 -1
  135. package/dist/components/sticky.min.css +1 -1
  136. package/dist/components/sticky.min.js +2 -2
  137. package/dist/components/tab.css +1 -1
  138. package/dist/components/tab.js +23 -5
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +3 -3
  141. package/dist/components/table.css +1168 -26
  142. package/dist/components/table.min.css +2 -2
  143. package/dist/components/text.css +1 -1
  144. package/dist/components/text.min.css +1 -1
  145. package/dist/components/toast.css +39 -1
  146. package/dist/components/toast.js +56 -28
  147. package/dist/components/toast.min.css +2 -2
  148. package/dist/components/toast.min.js +3 -3
  149. package/dist/components/transition.css +1 -1
  150. package/dist/components/transition.js +21 -16
  151. package/dist/components/transition.min.css +1 -1
  152. package/dist/components/transition.min.js +3 -3
  153. package/dist/components/visibility.js +1 -1
  154. package/dist/components/visibility.min.js +2 -2
  155. package/dist/semantic.css +21916 -16238
  156. package/dist/semantic.js +421 -244
  157. package/dist/semantic.min.css +3 -3
  158. package/dist/semantic.min.js +3 -3
  159. package/dist/themes/default/assets/fonts/brand-icons.eot +0 -0
  160. package/dist/themes/default/assets/fonts/brand-icons.svg +801 -654
  161. package/dist/themes/default/assets/fonts/brand-icons.ttf +0 -0
  162. package/dist/themes/default/assets/fonts/brand-icons.woff +0 -0
  163. package/dist/themes/default/assets/fonts/brand-icons.woff2 +0 -0
  164. package/dist/themes/default/assets/fonts/icons.eot +0 -0
  165. package/dist/themes/default/assets/fonts/icons.svg +1175 -1079
  166. package/dist/themes/default/assets/fonts/icons.ttf +0 -0
  167. package/dist/themes/default/assets/fonts/icons.woff +0 -0
  168. package/dist/themes/default/assets/fonts/icons.woff2 +0 -0
  169. package/dist/themes/default/assets/fonts/outline-icons.eot +0 -0
  170. package/dist/themes/default/assets/fonts/outline-icons.svg +93 -95
  171. package/dist/themes/default/assets/fonts/outline-icons.ttf +0 -0
  172. package/dist/themes/default/assets/fonts/outline-icons.woff +0 -0
  173. package/dist/themes/default/assets/fonts/outline-icons.woff2 +0 -0
  174. package/examples/assets/library/iframe-content.js +8 -8
  175. package/examples/assets/library/iframe.js +3 -3
  176. package/package.json +10 -9
  177. package/src/definitions/behaviors/api.js +33 -29
  178. package/src/definitions/behaviors/form.js +29 -27
  179. package/src/definitions/collections/form.less +204 -140
  180. package/src/definitions/collections/grid.less +716 -680
  181. package/src/definitions/collections/menu.less +173 -126
  182. package/src/definitions/collections/message.less +48 -46
  183. package/src/definitions/collections/table.less +849 -262
  184. package/src/definitions/elements/button.less +586 -449
  185. package/src/definitions/elements/container.less +145 -8
  186. package/src/definitions/elements/emoji.less +15 -9
  187. package/src/definitions/elements/flag.less +7 -17
  188. package/src/definitions/elements/header.less +44 -35
  189. package/src/definitions/elements/icon.less +38 -31
  190. package/src/definitions/elements/input.less +264 -22
  191. package/src/definitions/elements/label.less +92 -91
  192. package/src/definitions/elements/list.less +55 -45
  193. package/src/definitions/elements/loader.less +30 -29
  194. package/src/definitions/elements/segment.less +147 -28
  195. package/src/definitions/elements/step.less +52 -48
  196. package/src/definitions/elements/text.less +17 -15
  197. package/src/definitions/globals/site.less +23 -2
  198. package/src/definitions/modules/accordion.less +175 -24
  199. package/src/definitions/modules/calendar.js +9 -8
  200. package/src/definitions/modules/calendar.less +20 -0
  201. package/src/definitions/modules/checkbox.js +16 -10
  202. package/src/definitions/modules/checkbox.less +34 -178
  203. package/src/definitions/modules/dimmer.js +10 -4
  204. package/src/definitions/modules/dimmer.less +21 -8
  205. package/src/definitions/modules/dropdown.js +61 -37
  206. package/src/definitions/modules/dropdown.less +145 -94
  207. package/src/definitions/modules/modal.js +126 -48
  208. package/src/definitions/modules/modal.less +12 -0
  209. package/src/definitions/modules/nag.less +20 -19
  210. package/src/definitions/modules/popup.js +1 -1
  211. package/src/definitions/modules/progress.js +3 -0
  212. package/src/definitions/modules/progress.less +19 -18
  213. package/src/definitions/modules/rating.less +35 -34
  214. package/src/definitions/modules/search.js +1 -1
  215. package/src/definitions/modules/search.less +32 -16
  216. package/src/definitions/modules/shape.js +2 -2
  217. package/src/definitions/modules/sidebar.js +7 -5
  218. package/src/definitions/modules/sidebar.less +33 -19
  219. package/src/definitions/modules/slider.less +39 -38
  220. package/src/definitions/modules/tab.js +22 -4
  221. package/src/definitions/modules/toast.js +55 -27
  222. package/src/definitions/modules/toast.less +48 -16
  223. package/src/definitions/modules/transition.js +20 -15
  224. package/src/definitions/views/card.less +402 -361
  225. package/src/definitions/views/comment.less +92 -81
  226. package/src/definitions/views/feed.less +164 -144
  227. package/src/definitions/views/item.less +249 -196
  228. package/src/definitions/views/statistic.less +90 -88
  229. package/src/themes/bookish/elements/header.overrides +1 -1
  230. package/src/themes/chubby/elements/button.overrides +1 -1
  231. package/src/themes/chubby/elements/header.overrides +1 -1
  232. package/src/themes/default/assets/fonts/brand-icons.eot +0 -0
  233. package/src/themes/default/assets/fonts/brand-icons.svg +801 -654
  234. package/src/themes/default/assets/fonts/brand-icons.ttf +0 -0
  235. package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
  236. package/src/themes/default/assets/fonts/brand-icons.woff2 +0 -0
  237. package/src/themes/default/assets/fonts/icons.eot +0 -0
  238. package/src/themes/default/assets/fonts/icons.svg +1175 -1079
  239. package/src/themes/default/assets/fonts/icons.ttf +0 -0
  240. package/src/themes/default/assets/fonts/icons.woff +0 -0
  241. package/src/themes/default/assets/fonts/icons.woff2 +0 -0
  242. package/src/themes/default/assets/fonts/outline-icons.eot +0 -0
  243. package/src/themes/default/assets/fonts/outline-icons.svg +93 -95
  244. package/src/themes/default/assets/fonts/outline-icons.ttf +0 -0
  245. package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
  246. package/src/themes/default/assets/fonts/outline-icons.woff2 +0 -0
  247. package/src/themes/default/collections/form.variables +4 -0
  248. package/src/themes/default/collections/menu.variables +6 -0
  249. package/src/themes/default/collections/table.variables +52 -0
  250. package/src/themes/default/elements/button.variables +7 -1
  251. package/src/themes/default/elements/container.variables +12 -0
  252. package/src/themes/default/elements/emoji.overrides +1734 -1232
  253. package/src/themes/default/elements/flag.overrides +1641 -986
  254. package/src/themes/default/elements/flag.variables +7 -5
  255. package/src/themes/default/elements/icon.overrides +75 -48
  256. package/src/themes/default/elements/icon.variables +1 -0
  257. package/src/themes/default/elements/input.variables +15 -0
  258. package/src/themes/default/elements/segment.variables +8 -0
  259. package/src/themes/default/elements/step.overrides +1 -1
  260. package/src/themes/default/globals/site.variables +6 -0
  261. package/src/themes/default/globals/variation.variables +139 -6
  262. package/src/themes/default/modules/accordion.variables +49 -2
  263. package/src/themes/default/modules/calendar.variables +3 -0
  264. package/src/themes/default/modules/checkbox.variables +5 -5
  265. package/src/themes/default/modules/dimmer.variables +1 -1
  266. package/src/themes/default/modules/dropdown.variables +4 -10
  267. package/src/themes/default/modules/modal.variables +13 -0
  268. package/src/themes/default/modules/toast.variables +3 -0
  269. package/src/themes/famfamfam/elements/flag.overrides +1026 -0
  270. package/src/themes/famfamfam/elements/flag.variables +13 -0
  271. package/src/themes/instagram/views/card.overrides +1 -1
  272. package/src/themes/joypixels/elements/emoji.overrides +1759 -1257
  273. package/src/themes/joypixels/elements/emoji.variables +1 -1
  274. package/src/themes/material/collections/menu.overrides +1 -1
  275. package/src/themes/material/elements/button.overrides +1 -1
  276. package/src/themes/material/elements/header.overrides +1 -1
  277. package/src/themes/material/modules/dropdown.overrides +1 -1
  278. package/src/themes/material/modules/modal.overrides +1 -1
  279. package/src/themes/rtl/globals/site.overrides +1 -1
  280. package/src/themes/twitter/elements/emoji.overrides +1734 -1232
  281. package/tasks/build/css.js +6 -1
  282. package/tasks/config/project/install.js +11 -5
  283. package/tasks/install.js +1 -0
  284. package/test/helpers/sinon.js +2 -2
@@ -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
@@ -747,7 +746,7 @@ $.fn.calendar = function(parameters) {
747
746
  return $module.data(metadata.maxDate) || null;
748
747
  },
749
748
  monthOffset: function () {
750
- return $module.data(metadata.monthOffset) || 0;
749
+ return $module.data(metadata.monthOffset) || settings.monthOffset || 0;
751
750
  },
752
751
  mode: function () {
753
752
  //only returns valid modes for the current settings
@@ -1453,6 +1452,7 @@ $.fn.calendar.settings = {
1453
1452
  startCalendar : null, // jquery object or selector for another calendar that represents the start date of a date range
1454
1453
  endCalendar : null, // jquery object or selector for another calendar that represents the end date of a date range
1455
1454
  multiMonth : 1, // show multiple months when in 'day' mode
1455
+ monthOffset : 0, // position current month by offset when multimonth > 1
1456
1456
  minTimeGap : 5,
1457
1457
  showWeekNumbers : null, // show Number of Week at the very first column of a dayView
1458
1458
  disabledHours : [], // specific hour(s) which won't be selectable and contain additional information.
@@ -1468,6 +1468,7 @@ $.fn.calendar.settings = {
1468
1468
  position: 'bottom left',
1469
1469
  lastResort: 'bottom left',
1470
1470
  prefer: 'opposite',
1471
+ observeChanges: false,
1471
1472
  hideOnScroll: false
1472
1473
  },
1473
1474
 
@@ -1559,7 +1560,7 @@ $.fn.calendar.settings = {
1559
1560
  if (!text) {
1560
1561
  return null;
1561
1562
  }
1562
- text = String(text).trim();
1563
+ text = String(text).replace(/\s/g,'');
1563
1564
  if (text.length === 0) {
1564
1565
  return null;
1565
1566
  }
@@ -172,6 +172,26 @@
172
172
  }
173
173
  }
174
174
 
175
+ & when (@variationCalendarMultiMonth) {
176
+ .ui.calendar.popup > .ui.ui.grid {
177
+ margin: @multiMonthMargin;
178
+ & > .column:not(:first-child) {
179
+ padding-left: @multiMonthPadding;
180
+ & > .ui.table {
181
+ border-top-left-radius:0;
182
+ border-bottom-left-radius:0;
183
+ }
184
+ }
185
+ & > .column:not(:last-child) {
186
+ padding-right:@multiMonthPadding;
187
+ & > .ui.table {
188
+ border-top-right-radius:0;
189
+ border-bottom-right-radius:0;
190
+ }
191
+ }
192
+ }
193
+ }
194
+
175
195
  /*******************************
176
196
  States
177
197
  *******************************/
@@ -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();