fomantic-ui 2.9.0-beta.27 → 2.9.0-beta.272

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 (287) hide show
  1. package/.all-contributorsrc +215 -3
  2. package/.github/workflows/ci.yml +6 -6
  3. package/.github/workflows/nightly.yml +13 -8
  4. package/.github/workflows/release.yml +31 -0
  5. package/CONTRIBUTORS.md +76 -37
  6. package/README.md +8 -8
  7. package/dist/components/accordion.css +175 -35
  8. package/dist/components/accordion.js +6 -3
  9. package/dist/components/accordion.min.css +2 -2
  10. package/dist/components/accordion.min.js +3 -3
  11. package/dist/components/ad.css +1 -1
  12. package/dist/components/ad.min.css +1 -1
  13. package/dist/components/api.js +88 -29
  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 +6 -4
  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 +97 -3
  32. package/dist/components/container.min.css +2 -2
  33. package/dist/components/dimmer.css +29 -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 +54 -14
  40. package/dist/components/dropdown.js +66 -39
  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 +3 -3
  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 +132 -55
  54. package/dist/components/form.js +38 -29
  55. package/dist/components/form.min.css +2 -2
  56. package/dist/components/form.min.js +3 -3
  57. package/dist/components/grid.css +14 -10
  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 +754 -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 +3 -3
  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 +3 -3
  103. package/dist/components/reset.css +3 -2
  104. package/dist/components/reset.min.css +2 -2
  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 +65 -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 +3 -3
  125. package/dist/components/slider.js +1 -1
  126. package/dist/components/slider.min.js +3 -3
  127. package/dist/components/state.js +1 -1
  128. package/dist/components/state.min.js +3 -3
  129. package/dist/components/statistic.css +1 -1
  130. package/dist/components/statistic.min.css +1 -1
  131. package/dist/components/step.css +3 -3
  132. package/dist/components/step.min.css +1 -1
  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 +3 -3
  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 +3 -3
  155. package/dist/semantic.css +21972 -16244
  156. package/dist/semantic.js +488 -242
  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 +12 -11
  177. package/scripts/nightly-version.js +47 -38
  178. package/src/definitions/behaviors/api.js +87 -28
  179. package/src/definitions/behaviors/form.js +37 -28
  180. package/src/definitions/collections/form.less +204 -140
  181. package/src/definitions/collections/grid.less +716 -680
  182. package/src/definitions/collections/menu.less +173 -126
  183. package/src/definitions/collections/message.less +48 -46
  184. package/src/definitions/collections/table.less +849 -262
  185. package/src/definitions/elements/button.less +586 -449
  186. package/src/definitions/elements/container.less +145 -8
  187. package/src/definitions/elements/emoji.less +15 -9
  188. package/src/definitions/elements/flag.less +7 -17
  189. package/src/definitions/elements/header.less +44 -35
  190. package/src/definitions/elements/icon.less +38 -31
  191. package/src/definitions/elements/input.less +264 -22
  192. package/src/definitions/elements/label.less +92 -91
  193. package/src/definitions/elements/list.less +55 -45
  194. package/src/definitions/elements/loader.less +30 -29
  195. package/src/definitions/elements/segment.less +147 -28
  196. package/src/definitions/elements/step.less +52 -48
  197. package/src/definitions/elements/text.less +17 -15
  198. package/src/definitions/globals/site.less +23 -2
  199. package/src/definitions/modules/accordion.js +5 -2
  200. package/src/definitions/modules/accordion.less +181 -29
  201. package/src/definitions/modules/calendar.js +5 -3
  202. package/src/definitions/modules/calendar.less +20 -0
  203. package/src/definitions/modules/checkbox.js +16 -10
  204. package/src/definitions/modules/checkbox.less +34 -178
  205. package/src/definitions/modules/dimmer.js +10 -4
  206. package/src/definitions/modules/dimmer.less +21 -8
  207. package/src/definitions/modules/dropdown.js +65 -38
  208. package/src/definitions/modules/dropdown.less +148 -97
  209. package/src/definitions/modules/modal.js +126 -48
  210. package/src/definitions/modules/modal.less +12 -0
  211. package/src/definitions/modules/nag.less +20 -19
  212. package/src/definitions/modules/popup.js +1 -1
  213. package/src/definitions/modules/progress.js +3 -0
  214. package/src/definitions/modules/progress.less +19 -18
  215. package/src/definitions/modules/rating.less +35 -34
  216. package/src/definitions/modules/search.js +1 -1
  217. package/src/definitions/modules/search.less +32 -16
  218. package/src/definitions/modules/shape.js +2 -2
  219. package/src/definitions/modules/sidebar.js +7 -5
  220. package/src/definitions/modules/sidebar.less +33 -19
  221. package/src/definitions/modules/slider.less +39 -38
  222. package/src/definitions/modules/tab.js +22 -4
  223. package/src/definitions/modules/toast.js +55 -27
  224. package/src/definitions/modules/toast.less +48 -16
  225. package/src/definitions/modules/transition.js +20 -15
  226. package/src/definitions/views/card.less +402 -361
  227. package/src/definitions/views/comment.less +92 -81
  228. package/src/definitions/views/feed.less +164 -144
  229. package/src/definitions/views/item.less +249 -196
  230. package/src/definitions/views/statistic.less +90 -88
  231. package/src/themes/bookish/elements/header.overrides +1 -1
  232. package/src/themes/chubby/elements/button.overrides +1 -1
  233. package/src/themes/chubby/elements/header.overrides +1 -1
  234. package/src/themes/default/assets/fonts/brand-icons.eot +0 -0
  235. package/src/themes/default/assets/fonts/brand-icons.svg +801 -654
  236. package/src/themes/default/assets/fonts/brand-icons.ttf +0 -0
  237. package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
  238. package/src/themes/default/assets/fonts/brand-icons.woff2 +0 -0
  239. package/src/themes/default/assets/fonts/icons.eot +0 -0
  240. package/src/themes/default/assets/fonts/icons.svg +1175 -1079
  241. package/src/themes/default/assets/fonts/icons.ttf +0 -0
  242. package/src/themes/default/assets/fonts/icons.woff +0 -0
  243. package/src/themes/default/assets/fonts/icons.woff2 +0 -0
  244. package/src/themes/default/assets/fonts/outline-icons.eot +0 -0
  245. package/src/themes/default/assets/fonts/outline-icons.svg +93 -95
  246. package/src/themes/default/assets/fonts/outline-icons.ttf +0 -0
  247. package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
  248. package/src/themes/default/assets/fonts/outline-icons.woff2 +0 -0
  249. package/src/themes/default/collections/form.variables +4 -0
  250. package/src/themes/default/collections/menu.variables +6 -0
  251. package/src/themes/default/collections/table.variables +52 -0
  252. package/src/themes/default/elements/button.variables +7 -1
  253. package/src/themes/default/elements/container.variables +12 -0
  254. package/src/themes/default/elements/emoji.overrides +1734 -1232
  255. package/src/themes/default/elements/flag.overrides +1641 -986
  256. package/src/themes/default/elements/flag.variables +7 -5
  257. package/src/themes/default/elements/icon.overrides +75 -48
  258. package/src/themes/default/elements/icon.variables +1 -0
  259. package/src/themes/default/elements/input.variables +15 -0
  260. package/src/themes/default/elements/segment.variables +8 -0
  261. package/src/themes/default/globals/site.variables +6 -0
  262. package/src/themes/default/globals/variation.variables +139 -6
  263. package/src/themes/default/modules/accordion.overrides +6 -5
  264. package/src/themes/default/modules/accordion.variables +49 -2
  265. package/src/themes/default/modules/calendar.variables +3 -0
  266. package/src/themes/default/modules/checkbox.variables +5 -5
  267. package/src/themes/default/modules/dimmer.variables +1 -1
  268. package/src/themes/default/modules/dropdown.variables +4 -10
  269. package/src/themes/default/modules/modal.variables +13 -0
  270. package/src/themes/default/modules/toast.variables +3 -0
  271. package/src/themes/famfamfam/elements/flag.overrides +1026 -0
  272. package/src/themes/famfamfam/elements/flag.variables +13 -0
  273. package/src/themes/instagram/views/card.overrides +1 -1
  274. package/src/themes/joypixels/elements/emoji.overrides +1759 -1257
  275. package/src/themes/joypixels/elements/emoji.variables +1 -1
  276. package/src/themes/material/collections/menu.overrides +1 -1
  277. package/src/themes/material/elements/button.overrides +1 -1
  278. package/src/themes/material/elements/header.overrides +1 -1
  279. package/src/themes/material/globals/site.variables +0 -1
  280. package/src/themes/material/modules/dropdown.overrides +1 -1
  281. package/src/themes/material/modules/modal.overrides +1 -1
  282. package/src/themes/rtl/globals/site.overrides +1 -1
  283. package/src/themes/twitter/elements/emoji.overrides +1734 -1232
  284. package/tasks/build/css.js +6 -1
  285. package/tasks/config/project/install.js +11 -5
  286. package/tasks/install.js +1 -0
  287. package/test/helpers/sinon.js +2 -2
@@ -31,32 +31,32 @@
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
 
57
56
  /* Arrow */
58
- .ui.accordion .title .dropdown.icon,
59
- .ui.accordion .accordion .title .dropdown.icon {
57
+ .ui.accordion .ui.header > .dropdown.icon,
58
+ .ui.accordion .title > .dropdown.icon,
59
+ .ui.accordion .accordion .title > .dropdown.icon {
60
60
  display: @iconDisplay;
61
61
  float: @iconFloat;
62
62
  opacity: @iconOpacity;
@@ -68,6 +68,10 @@
68
68
  transition: @iconTransition;
69
69
  vertical-align: @iconVerticalAlign;
70
70
  transform: @iconTransform;
71
+ &.right when (@variationAccordionRightDropdown) {
72
+ float:right;
73
+ transform: @iconTransformRight;
74
+ }
71
75
  }
72
76
 
73
77
  /*--------------
@@ -86,7 +90,7 @@
86
90
  }
87
91
 
88
92
  /* Header */
89
- .ui.accordion .ui.header .dropdown.icon {
93
+ .ui.accordion .ui.header > .dropdown.icon {
90
94
  font-size: @iconFontSize;
91
95
  margin: @iconMargin;
92
96
  }
@@ -95,8 +99,10 @@
95
99
  States
96
100
  *******************************/
97
101
 
98
- .ui.accordion .active.title .dropdown.icon,
99
- .ui.accordion .accordion .active.title .dropdown.icon {
102
+ .ui.accordion[open] > .title > .dropdown.icon,
103
+ .ui.accordion .accordion[open] > .title > .dropdown.icon,
104
+ .ui.accordion .active.title > .dropdown.icon,
105
+ .ui.accordion .accordion .active.title > .dropdown.icon {
100
106
  transform: @activeIconTransform;
101
107
  }
102
108
 
@@ -123,8 +129,8 @@
123
129
  background: @styledBackground;
124
130
  box-shadow: @styledBoxShadow;
125
131
  }
126
- .ui.styled.accordion .title,
127
- .ui.styled.accordion .accordion .title {
132
+ .ui.styled.accordion > .title,
133
+ .ui.styled.accordion .accordion > .title {
128
134
  margin: @styledTitleMargin;
129
135
  padding: @styledTitlePadding;
130
136
  color: @styledTitleColor;
@@ -133,49 +139,101 @@
133
139
  transition: @styledTitleTransition;
134
140
  }
135
141
  .ui.styled.accordion > .title:first-child,
136
- .ui.styled.accordion .accordion .title:first-child {
142
+ .ui.styled.accordion .accordion > .title:first-child {
137
143
  border-top: none;
138
144
  }
139
145
 
140
146
 
141
147
  /* Content */
142
- .ui.styled.accordion .content,
143
- .ui.styled.accordion .accordion .content {
148
+ .ui.styled.accordion > .content {
144
149
  margin: @styledContentMargin;
145
150
  padding: @styledContentPadding;
146
151
  }
147
- .ui.styled.accordion .accordion .content {
152
+ .ui.styled.accordion .accordion > .content {
148
153
  margin: @styledChildContentMargin;
149
154
  padding: @styledChildContentPadding;
150
155
  }
151
156
 
152
157
 
153
158
  /* 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 {
159
+ .ui.styled.accordion > .title:hover {
158
160
  background: @styledTitleHoverBackground;
159
161
  color: @styledTitleHoverColor;
160
162
  }
161
- .ui.styled.accordion .accordion .title:hover,
162
- .ui.styled.accordion .accordion .active.title {
163
+ .ui.styled.accordion .accordion > .title:hover {
163
164
  background: @styledHoverChildTitleBackground;
164
165
  color: @styledHoverChildTitleColor;
165
166
  }
166
167
 
167
168
 
168
169
  /* Active */
170
+ .ui.styled.accordion[open] > .title,
169
171
  .ui.styled.accordion .active.title {
170
172
  background: @styledActiveTitleBackground;
171
173
  color: @styledActiveTitleColor;
172
174
  }
175
+ .ui.styled.accordion .accordion[open] > .title,
173
176
  .ui.styled.accordion .accordion .active.title {
174
177
  background: @styledActiveChildTitleBackground;
175
178
  color: @styledActiveChildTitleColor;
176
179
  }
177
180
  }
178
181
 
182
+ & when (@variationAccordionCompact) {
183
+ /*--------------
184
+ Compact
185
+ ---------------*/
186
+
187
+ /* Default Styling */
188
+
189
+ .ui.compact.accordion:not(.styled) > .title,
190
+ .ui.compact.accordion:not(.styled) .accordion > .title {
191
+ padding: @titlePaddingCompact;
192
+ }
193
+
194
+ .ui.compact.accordion:not(.styled) .title ~ .content,
195
+ .ui.compact.accordion:not(.styled) .accordion .title ~ .content {
196
+ padding: @contentPaddingCompact;
197
+ }
198
+
199
+ /* Styled */
200
+
201
+ .ui.compact.styled.accordion > .title,
202
+ .ui.compact.styled.accordion .accordion > .title {
203
+ padding: @styledTitlePaddingCompact;
204
+ }
205
+
206
+ .ui.compact.styled.accordion .title ~ .content,
207
+ .ui.compact.styled.accordion .accordion .title ~ .content {
208
+ padding: @styledContentPaddingCompact;
209
+ }
210
+ }
211
+ /*--------------
212
+ Very Compact
213
+ ---------------*/
214
+
215
+ & when (@variationAccordionVeryCompact) {
216
+ .ui[class*="very compact"].accordion:not(.styled) > .title,
217
+ .ui[class*="very compact"].accordion:not(.styled) .accordion > .title {
218
+ padding: @titlePaddingVeryCompact;
219
+ }
220
+
221
+ .ui[class*="very compact"].accordion:not(.styled) .title ~ .content,
222
+ .ui[class*="very compact"].accordion:not(.styled) .accordion .title ~ .content {
223
+ padding: @contentPaddingVeryCompact;
224
+ }
225
+
226
+ .ui[class*="very compact"].styled.accordion > .title,
227
+ .ui[class*="very compact"].styled.accordion .accordion > .title {
228
+ padding: @styledTitlePaddingVeryCompact;
229
+ }
230
+
231
+ .ui[class*="very compact"].styled.accordion .title ~ .content,
232
+ .ui[class*="very compact"].styled.accordion .accordion .title ~ .content {
233
+ padding: @styledContentPaddingVeryCompact;
234
+ }
235
+ }
236
+
179
237
 
180
238
  /*******************************
181
239
  States
@@ -185,8 +243,8 @@
185
243
  Not Active
186
244
  ---------------*/
187
245
 
188
- .ui.accordion .title ~ .content:not(.active),
189
- .ui.accordion .accordion .title ~ .content:not(.active) {
246
+ .ui.accordion:not(details) .title ~ .content:not(.active),
247
+ .ui.accordion .accordion:not(details) .title ~ .content:not(.active) {
190
248
  display: none;
191
249
  }
192
250
 
@@ -210,9 +268,103 @@
210
268
  Inverted
211
269
  ---------------*/
212
270
 
213
- .ui.inverted.accordion .title:not(.ui) {
271
+ .ui.inverted.accordion.menu .item > .title,
272
+ .ui.inverted.accordion > .title,
273
+ .ui.inverted.accordion .accordion > .title {
214
274
  color: @invertedTitleColor;
215
275
  }
276
+ & when (@variationAccordionStyled) {
277
+ .ui.inverted.styled.accordion,
278
+ .ui.inverted.styled.accordion .accordion {
279
+ background: @invertedStyledBackground;
280
+ box-shadow: @invertedStyledBoxShadow;
281
+ }
282
+ .ui.inverted.styled.accordion > .title,
283
+ .ui.inverted.styled.accordion .accordion > .title {
284
+ color: @invertedStyledTitleColor;
285
+ border-top: @invertedStyledTitleBorder;
286
+ }
287
+
288
+ /* Hover */
289
+ .ui.inverted.styled.accordion > .title:hover {
290
+ background: @invertedStyledTitleHoverBackground;
291
+ color: @invertedStyledTitleHoverColor;
292
+ }
293
+ .ui.inverted.styled.accordion .accordion > .title:hover {
294
+ background: @invertedStyledHoverChildTitleBackground;
295
+ color: @invertedStyledHoverChildTitleColor;
296
+ }
297
+
298
+ /* Active */
299
+ .ui.inverted.styled.accordion[open] > .title,
300
+ .ui.inverted.styled.accordion .active.title {
301
+ background: @invertedStyledActiveTitleBackground;
302
+ color: @invertedStyledActiveTitleColor;
303
+ }
304
+ .ui.inverted.styled.accordion .accordion[open] > .title,
305
+ .ui.inverted.styled.accordion .accordion .active.title {
306
+ background: @invertedStyledActiveChildTitleBackground;
307
+ color: @invertedStyledActiveChildTitleColor;
308
+ }
309
+ }
310
+ }
311
+
312
+ & when (@variationAccordionBasicStyled) {
313
+ .ui.basic.styled.accordion,
314
+ .ui.basic.styled.accordion .accordion {
315
+ background: transparent;
316
+ box-shadow: none;
317
+ }
318
+ .ui.basic.styled.accordion > .title,
319
+ .ui.basic.styled.accordion .accordion > .title {
320
+ border: none;
321
+ color: @basicStyledTitleColor;
322
+ }
323
+ .ui.basic.styled.accordion > .title:hover,
324
+ .ui.basic.styled.accordion .accordion > .title:hover {
325
+ background: transparent;
326
+ color: @basicStyledTitleHoverColor;
327
+ }
328
+ .ui.basic.styled.accordion[open] > .title,
329
+ .ui.basic.styled.accordion .active.title,
330
+ .ui.basic.styled.accordion .accordion[open] > .title,
331
+ .ui.basic.styled.accordion .accordion .active.title {
332
+ background: transparent;
333
+ color: @basicStyledActiveTitleColor;
334
+ }
335
+ & when (@variationAccordionInverted) {
336
+ .ui.inverted.basic.styled.accordion > .title,
337
+ .ui.inverted.basic.styled.accordion .accordion > .title {
338
+ background: transparent;
339
+ color: @invertedBasicStyledTitleColor;
340
+ }
341
+ .ui.inverted.basic.styled.accordion > .title:hover,
342
+ .ui.inverted.basic.styled.accordion .accordion > .title:hover {
343
+ background: transparent;
344
+ color: @invertedBasicStyledTitleHoverColor;
345
+ }
346
+ .ui.inverted.basic.styled.accordion[open] > .title,
347
+ .ui.inverted.basic.styled.accordion .active.title,
348
+ .ui.inverted.basic.styled.accordion .accordion[open] > .title,
349
+ .ui.inverted.basic.styled.accordion .accordion .active.title {
350
+ background: transparent;
351
+ color: @invertedBasicStyledActiveTitleColor;
352
+ }
353
+ }
354
+ }
355
+
356
+ & when (@variationAccordionTree) {
357
+ .ui.tree.accordion:not(.styled) .title ~ .content,
358
+ .ui.tree.accordion:not(.styled) .accordion .title ~ .content {
359
+ padding:@treeContentPadding;
360
+ }
361
+ .ui.tree.accordion > .content,
362
+ .ui.tree.accordion .accordion > .content {
363
+ margin-left: @treeContentLeftMargin;
364
+ }
365
+ .ui.tree.accordion .accordion {
366
+ margin-top: @treeContentTopMargin;
367
+ }
216
368
  }
217
369
 
218
370
  .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) {
@@ -746,7 +746,7 @@ $.fn.calendar = function(parameters) {
746
746
  return $module.data(metadata.maxDate) || null;
747
747
  },
748
748
  monthOffset: function () {
749
- return $module.data(metadata.monthOffset) || 0;
749
+ return $module.data(metadata.monthOffset) || settings.monthOffset || 0;
750
750
  },
751
751
  mode: function () {
752
752
  //only returns valid modes for the current settings
@@ -1452,6 +1452,7 @@ $.fn.calendar.settings = {
1452
1452
  startCalendar : null, // jquery object or selector for another calendar that represents the start date of a date range
1453
1453
  endCalendar : null, // jquery object or selector for another calendar that represents the end date of a date range
1454
1454
  multiMonth : 1, // show multiple months when in 'day' mode
1455
+ monthOffset : 0, // position current month by offset when multimonth > 1
1455
1456
  minTimeGap : 5,
1456
1457
  showWeekNumbers : null, // show Number of Week at the very first column of a dayView
1457
1458
  disabledHours : [], // specific hour(s) which won't be selectable and contain additional information.
@@ -1467,6 +1468,7 @@ $.fn.calendar.settings = {
1467
1468
  position: 'bottom left',
1468
1469
  lastResort: 'bottom left',
1469
1470
  prefer: 'opposite',
1471
+ observeChanges: false,
1470
1472
  hideOnScroll: false
1471
1473
  },
1472
1474
 
@@ -1558,7 +1560,7 @@ $.fn.calendar.settings = {
1558
1560
  if (!text) {
1559
1561
  return null;
1560
1562
  }
1561
- text = String(text).trim();
1563
+ text = String(text).trim().replace(/([.:\/\-])\s+/g,'$1').replace(/\s+([.:\/-])/g,'$1').replace(/\s+/g,' ');
1562
1564
  if (text.length === 0) {
1563
1565
  return null;
1564
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();