fomantic-ui 2.9.1-beta.1 → 2.9.1-beta.10

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 (277) hide show
  1. package/.github/workflows/ci.yml +1 -1
  2. package/README.md +2 -2
  3. package/dist/components/accordion.css +3 -3
  4. package/dist/components/accordion.js +3 -3
  5. package/dist/components/accordion.min.css +3 -3
  6. package/dist/components/accordion.min.js +3 -3
  7. package/dist/components/ad.css +3 -3
  8. package/dist/components/ad.min.css +3 -3
  9. package/dist/components/api.js +3 -3
  10. package/dist/components/api.min.js +3 -3
  11. package/dist/components/breadcrumb.css +3 -3
  12. package/dist/components/breadcrumb.min.css +3 -3
  13. package/dist/components/button.css +3 -13
  14. package/dist/components/button.min.css +3 -3
  15. package/dist/components/calendar.css +15 -11
  16. package/dist/components/calendar.js +19 -10
  17. package/dist/components/calendar.min.css +4 -4
  18. package/dist/components/calendar.min.js +4 -4
  19. package/dist/components/card.css +3 -3
  20. package/dist/components/card.min.css +3 -3
  21. package/dist/components/checkbox.css +3 -3
  22. package/dist/components/checkbox.js +3 -3
  23. package/dist/components/checkbox.min.css +3 -3
  24. package/dist/components/checkbox.min.js +3 -3
  25. package/dist/components/comment.css +3 -3
  26. package/dist/components/comment.min.css +3 -3
  27. package/dist/components/container.css +3 -3
  28. package/dist/components/container.min.css +3 -3
  29. package/dist/components/dimmer.css +3 -3
  30. package/dist/components/dimmer.js +3 -3
  31. package/dist/components/dimmer.min.css +3 -3
  32. package/dist/components/dimmer.min.js +3 -3
  33. package/dist/components/divider.css +3 -3
  34. package/dist/components/divider.min.css +3 -3
  35. package/dist/components/dropdown.css +3 -3
  36. package/dist/components/dropdown.js +3 -3
  37. package/dist/components/dropdown.min.css +3 -3
  38. package/dist/components/dropdown.min.js +3 -3
  39. package/dist/components/embed.css +3 -3
  40. package/dist/components/embed.js +3 -3
  41. package/dist/components/embed.min.css +3 -3
  42. package/dist/components/embed.min.js +3 -3
  43. package/dist/components/feed.css +3 -3
  44. package/dist/components/feed.min.css +3 -3
  45. package/dist/components/flag.css +3 -3
  46. package/dist/components/flag.min.css +3 -3
  47. package/dist/components/flyout.css +3 -3
  48. package/dist/components/flyout.js +3 -3
  49. package/dist/components/flyout.min.css +3 -3
  50. package/dist/components/flyout.min.js +3 -3
  51. package/dist/components/form.css +3 -3
  52. package/dist/components/form.js +3 -3
  53. package/dist/components/form.min.css +3 -3
  54. package/dist/components/form.min.js +3 -3
  55. package/dist/components/grid.css +3 -3
  56. package/dist/components/grid.min.css +3 -3
  57. package/dist/components/header.css +3 -3
  58. package/dist/components/header.min.css +3 -3
  59. package/dist/components/icon.css +6 -16
  60. package/dist/components/icon.min.css +4 -4
  61. package/dist/components/image.css +3 -3
  62. package/dist/components/image.min.css +3 -3
  63. package/dist/components/input.css +3 -3
  64. package/dist/components/input.min.css +3 -3
  65. package/dist/components/item.css +3 -3
  66. package/dist/components/item.min.css +3 -3
  67. package/dist/components/label.css +3 -3
  68. package/dist/components/label.min.css +3 -3
  69. package/dist/components/list.css +3 -3
  70. package/dist/components/list.min.css +3 -3
  71. package/dist/components/loader.css +3 -3
  72. package/dist/components/loader.min.css +3 -3
  73. package/dist/components/menu.css +2 -2
  74. package/dist/components/message.css +3 -3
  75. package/dist/components/message.min.css +3 -3
  76. package/dist/components/modal.css +3 -3
  77. package/dist/components/modal.js +3 -3
  78. package/dist/components/modal.min.css +3 -3
  79. package/dist/components/modal.min.js +3 -3
  80. package/dist/components/nag.css +5 -6
  81. package/dist/components/nag.js +3 -3
  82. package/dist/components/nag.min.css +4 -4
  83. package/dist/components/nag.min.js +3 -3
  84. package/dist/components/placeholder.css +3 -3
  85. package/dist/components/placeholder.min.css +3 -3
  86. package/dist/components/popup.css +303 -3
  87. package/dist/components/popup.js +3 -3
  88. package/dist/components/popup.min.css +4 -4
  89. package/dist/components/popup.min.js +3 -3
  90. package/dist/components/progress.css +3 -3
  91. package/dist/components/progress.js +3 -3
  92. package/dist/components/progress.min.css +3 -3
  93. package/dist/components/progress.min.js +3 -3
  94. package/dist/components/rail.css +3 -3
  95. package/dist/components/rail.min.css +3 -3
  96. package/dist/components/rating.css +4 -4
  97. package/dist/components/rating.js +3 -3
  98. package/dist/components/rating.min.css +4 -4
  99. package/dist/components/rating.min.js +3 -3
  100. package/dist/components/reset.css +3 -3
  101. package/dist/components/reset.min.css +3 -3
  102. package/dist/components/reveal.css +3 -3
  103. package/dist/components/reveal.min.css +3 -3
  104. package/dist/components/search.css +3 -3
  105. package/dist/components/search.js +3 -3
  106. package/dist/components/search.min.css +3 -3
  107. package/dist/components/search.min.js +3 -3
  108. package/dist/components/segment.css +3 -3
  109. package/dist/components/segment.min.css +3 -3
  110. package/dist/components/shape.css +3 -3
  111. package/dist/components/shape.js +3 -3
  112. package/dist/components/shape.min.css +3 -3
  113. package/dist/components/shape.min.js +3 -3
  114. package/dist/components/sidebar.css +3 -3
  115. package/dist/components/sidebar.js +3 -3
  116. package/dist/components/sidebar.min.css +3 -3
  117. package/dist/components/sidebar.min.js +3 -3
  118. package/dist/components/site.css +3 -3
  119. package/dist/components/site.js +3 -3
  120. package/dist/components/site.min.css +3 -3
  121. package/dist/components/site.min.js +3 -3
  122. package/dist/components/slider.js +3 -3
  123. package/dist/components/slider.min.js +3 -3
  124. package/dist/components/state.js +3 -3
  125. package/dist/components/state.min.js +3 -3
  126. package/dist/components/statistic.css +3 -3
  127. package/dist/components/statistic.min.css +3 -3
  128. package/dist/components/step.css +3 -3
  129. package/dist/components/step.min.css +3 -3
  130. package/dist/components/sticky.css +3 -3
  131. package/dist/components/sticky.js +3 -3
  132. package/dist/components/sticky.min.css +3 -3
  133. package/dist/components/sticky.min.js +3 -3
  134. package/dist/components/tab.css +3 -3
  135. package/dist/components/tab.js +3 -3
  136. package/dist/components/tab.min.css +3 -3
  137. package/dist/components/tab.min.js +3 -3
  138. package/dist/components/table.css +5 -5
  139. package/dist/components/table.min.css +4 -4
  140. package/dist/components/text.css +2 -2
  141. package/dist/components/text.min.css +2 -2
  142. package/dist/components/toast.css +3 -3
  143. package/dist/components/toast.js +3 -3
  144. package/dist/components/toast.min.css +3 -3
  145. package/dist/components/toast.min.js +3 -3
  146. package/dist/components/transition.css +149 -3
  147. package/dist/components/transition.js +3 -3
  148. package/dist/components/transition.min.css +4 -4
  149. package/dist/components/transition.min.js +3 -3
  150. package/dist/components/visibility.js +3 -3
  151. package/dist/components/visibility.min.js +3 -3
  152. package/dist/semantic.css +697 -185
  153. package/dist/semantic.js +94 -85
  154. package/dist/semantic.min.css +4 -4
  155. package/dist/semantic.min.js +4 -4
  156. package/dist/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  157. package/dist/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
  158. package/dist/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  159. package/dist/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  160. package/dist/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  161. package/dist/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
  162. package/dist/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  163. package/dist/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
  164. package/dist/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  165. package/dist/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
  166. package/dist/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  167. package/dist/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
  168. package/dist/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  169. package/dist/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
  170. package/dist/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  171. package/dist/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
  172. package/package.json +3 -5
  173. package/src/definitions/behaviors/api.js +2 -2
  174. package/src/definitions/behaviors/form.js +2 -2
  175. package/src/definitions/behaviors/state.js +2 -2
  176. package/src/definitions/behaviors/visibility.js +2 -2
  177. package/src/definitions/collections/breadcrumb.less +2 -2
  178. package/src/definitions/collections/form.less +4 -4
  179. package/src/definitions/collections/grid.less +2 -2
  180. package/src/definitions/collections/menu.less +2 -2
  181. package/src/definitions/collections/message.less +2 -2
  182. package/src/definitions/collections/table.less +4 -4
  183. package/src/definitions/elements/button.less +86 -94
  184. package/src/definitions/elements/container.less +2 -2
  185. package/src/definitions/elements/divider.less +2 -2
  186. package/src/definitions/elements/flag.less +2 -2
  187. package/src/definitions/elements/header.less +2 -2
  188. package/src/definitions/elements/icon.less +80 -6
  189. package/src/definitions/elements/image.less +2 -2
  190. package/src/definitions/elements/input.less +11 -10
  191. package/src/definitions/elements/label.less +2 -2
  192. package/src/definitions/elements/list.less +2 -2
  193. package/src/definitions/elements/loader.less +2 -2
  194. package/src/definitions/elements/placeholder.less +2 -2
  195. package/src/definitions/elements/rail.less +2 -2
  196. package/src/definitions/elements/reveal.less +2 -2
  197. package/src/definitions/elements/segment.less +2 -2
  198. package/src/definitions/elements/step.less +2 -2
  199. package/src/definitions/elements/text.less +1 -1
  200. package/src/definitions/globals/reset.less +2 -2
  201. package/src/definitions/globals/site.js +2 -2
  202. package/src/definitions/globals/site.less +2 -2
  203. package/src/definitions/modules/accordion.js +2 -2
  204. package/src/definitions/modules/accordion.less +2 -2
  205. package/src/definitions/modules/calendar.js +18 -9
  206. package/src/definitions/modules/calendar.less +14 -10
  207. package/src/definitions/modules/checkbox.js +2 -2
  208. package/src/definitions/modules/checkbox.less +2 -2
  209. package/src/definitions/modules/dimmer.js +2 -2
  210. package/src/definitions/modules/dimmer.less +2 -2
  211. package/src/definitions/modules/dropdown.js +2 -2
  212. package/src/definitions/modules/dropdown.less +2 -2
  213. package/src/definitions/modules/embed.js +2 -2
  214. package/src/definitions/modules/embed.less +2 -2
  215. package/src/definitions/modules/flyout.js +2 -2
  216. package/src/definitions/modules/flyout.less +2 -2
  217. package/src/definitions/modules/modal.js +2 -2
  218. package/src/definitions/modules/modal.less +2 -2
  219. package/src/definitions/modules/nag.js +2 -2
  220. package/src/definitions/modules/nag.less +2 -3
  221. package/src/definitions/modules/popup.js +2 -2
  222. package/src/definitions/modules/popup.less +52 -2
  223. package/src/definitions/modules/progress.js +2 -2
  224. package/src/definitions/modules/progress.less +2 -2
  225. package/src/definitions/modules/rating.js +2 -2
  226. package/src/definitions/modules/rating.less +3 -3
  227. package/src/definitions/modules/search.js +2 -2
  228. package/src/definitions/modules/search.less +2 -2
  229. package/src/definitions/modules/shape.js +2 -2
  230. package/src/definitions/modules/shape.less +2 -2
  231. package/src/definitions/modules/sidebar.js +2 -2
  232. package/src/definitions/modules/sidebar.less +2 -2
  233. package/src/definitions/modules/slider.js +2 -2
  234. package/src/definitions/modules/sticky.js +2 -2
  235. package/src/definitions/modules/sticky.less +2 -2
  236. package/src/definitions/modules/tab.js +2 -2
  237. package/src/definitions/modules/tab.less +2 -2
  238. package/src/definitions/modules/toast.js +2 -2
  239. package/src/definitions/modules/toast.less +2 -2
  240. package/src/definitions/modules/transition.js +2 -2
  241. package/src/definitions/modules/transition.less +38 -3
  242. package/src/definitions/views/ad.less +2 -2
  243. package/src/definitions/views/card.less +2 -2
  244. package/src/definitions/views/comment.less +2 -2
  245. package/src/definitions/views/feed.less +2 -2
  246. package/src/definitions/views/item.less +2 -2
  247. package/src/definitions/views/statistic.less +2 -2
  248. package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  249. package/src/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
  250. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  251. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  252. package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  253. package/src/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
  254. package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  255. package/src/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
  256. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  257. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
  258. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  259. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
  260. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  261. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
  262. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  263. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
  264. package/src/themes/default/elements/icon.variables +18 -0
  265. package/src/themes/default/globals/site.variables +1 -0
  266. package/src/themes/default/globals/variation.variables +9 -1
  267. package/src/themes/default/modules/calendar.variables +2 -0
  268. package/src/themes/default/modules/nag.variables +1 -1
  269. package/src/themes/default/modules/transition.variables +8 -1
  270. package/tasks/build/css.js +3 -3
  271. package/tasks/build/javascript.js +3 -3
  272. package/tasks/config/defaults.js +2 -0
  273. package/tasks/config/project/config.js +2 -2
  274. package/tasks/config/project/release.js +2 -2
  275. package/tasks/config/tasks.js +17 -7
  276. package/tasks/config/user.js +4 -1
  277. package/tasks/install.js +2 -2
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Input
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -97,7 +97,7 @@
97
97
 
98
98
  .ui.disabled.input > input,
99
99
  .ui.input:not(.disabled) input[disabled] {
100
- pointer-events: none;
100
+ pointer-events: @disabledPointerEvents;
101
101
  }
102
102
  }
103
103
 
@@ -191,7 +191,7 @@
191
191
  color: @formStates[@@state][color];
192
192
  box-shadow: @formStates[@@state][boxShadow];
193
193
  }
194
- & when (@state=error) {
194
+ & when (@state=error) and (@variationInputInvalid) {
195
195
  .ui.input > input:not(:placeholder-shown):invalid {
196
196
  background-color: @formStates[@@state][background];
197
197
  border-color: @formStates[@@state][borderColor];
@@ -718,12 +718,13 @@
718
718
  color: @fileButtonTextColor;
719
719
  }
720
720
  }
721
-
722
- .ui.form .field input[type="file"]:required:invalid,
723
- .ui.file.input input[type="file"]:required:invalid {
724
- color: @negativeTextColor;
725
- background: @negativeBackgroundColor ;
726
- border-color: @negativeBorderColor;
721
+ & when (@variationInputInvalid) {
722
+ .ui.form .field input[type="file"]:required:invalid,
723
+ .ui.file.input input[type="file"]:required:invalid {
724
+ color: @negativeTextColor;
725
+ background: @negativeBackgroundColor;
726
+ border-color: @negativeBorderColor;
727
+ }
727
728
  }
728
729
 
729
730
  input[type="file"].ui.invisible.file.input,
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Label
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - List
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Loader
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
  /*******************************
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Loader
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
  /*******************************
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Rail
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Reveal
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Segment
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Step
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Text
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Reset
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Site
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Site
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Accordion
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Accordion
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Calendar
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -26,6 +26,7 @@ window = (typeof window != 'undefined' && window.Math == Math)
26
26
  $.fn.calendar = function(parameters) {
27
27
  var
28
28
  $allModules = $(this),
29
+ $document = $(document),
29
30
 
30
31
  moduleSelector = $allModules.selector || '',
31
32
 
@@ -67,11 +68,11 @@ $.fn.calendar = function(parameters) {
67
68
 
68
69
  $module = $(this),
69
70
  $input = $module.find(selector.input),
70
- $container = $module.find(selector.popup),
71
71
  $activator = $module.find(selector.activator),
72
72
 
73
73
  element = this,
74
74
  instance = $module.data(moduleNamespace),
75
+ $container = instance && instance.popupId ? $document.find('#'+instance.popupId) : $module.find(selector.popup),
75
76
 
76
77
  isTouch,
77
78
  isTouchDown = false,
@@ -139,11 +140,16 @@ $.fn.calendar = function(parameters) {
139
140
  return;
140
141
  }
141
142
  if (!$container.length) {
142
- //prepend the popup element to the activator's parent so that it has less chance of messing with
143
- //the styling (eg input action button needs to be the last child to have correct border radius)
144
- var $activatorParent = $activator.parent(),
145
- domPositionFunction = $activatorParent.closest(selector.append).length !== 0 ? 'appendTo' : 'prependTo';
146
- $container = $('<div/>').addClass(className.popup)[domPositionFunction]($activatorParent);
143
+ if(settings.context) {
144
+ module.popupId = namespace + '_popup_' + (Math.random().toString(16) + '000000000').slice(2, 10);
145
+ $container = $('<div/>',{id:module.popupId}).addClass(className.popup).appendTo($document.find(settings.context));
146
+ } else {
147
+ //prepend the popup element to the activator's parent so that it has less chance of messing with
148
+ //the styling (eg input action button needs to be the last child to have correct border radius)
149
+ var $activatorParent = $activator.parent(),
150
+ domPositionFunction = $activatorParent.closest(selector.append).length !== 0 ? 'appendTo' : 'prependTo';
151
+ $container = $('<div/>').addClass(className.popup)[domPositionFunction]($activatorParent);
152
+ }
147
153
  }
148
154
  $container.addClass(className.calendar);
149
155
  if(isInverted){
@@ -175,6 +181,7 @@ $.fn.calendar = function(parameters) {
175
181
  var on = module.setting('on');
176
182
  var options = $.extend({}, settings.popupOptions, {
177
183
  popup: $container,
184
+ movePopup: !settings.context,
178
185
  on: on,
179
186
  hoverable: on === 'hover',
180
187
  closable: on === 'click',
@@ -805,7 +812,7 @@ $.fn.calendar = function(parameters) {
805
812
  return null;
806
813
  }
807
814
  if (!(selector instanceof $)) {
808
- selector = $(document).find(selector).first();
815
+ selector = $document.find(selector).first();
809
816
  }
810
817
  //assume range related calendars are using the same namespace
811
818
  return selector.data(moduleNamespace);
@@ -1490,6 +1497,8 @@ $.fn.calendar.settings = {
1490
1497
  verbose: false,
1491
1498
  performance: true,
1492
1499
 
1500
+ context : false,
1501
+
1493
1502
  type : 'datetime', // picker type, can be 'datetime', 'date', 'time', 'month', or 'year'
1494
1503
  firstDayOfWeek : 0, // day for first day column (0 = Sunday)
1495
1504
  constantHeight : true, // add rows to shorter months to keep day calendar height consistent (6 rows)
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Calendar
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -21,18 +21,22 @@
21
21
  Popup
22
22
  *******************************/
23
23
 
24
- .ui.calendar .ui.popup {
24
+ .ui.calendar.popup {
25
25
  max-width: none;
26
26
  padding: 0;
27
27
  border: none;
28
28
  user-select: none;
29
+ &.inverted::before when (@variationCalendarInverted) {
30
+ background: @invertedArrowBackground;
31
+ }
29
32
  }
30
33
 
31
34
  /*******************************
32
35
  Calendar
33
36
  *******************************/
34
37
 
35
- .ui.calendar .calendar:focus {
38
+ .ui.calendar .calendar:focus,
39
+ .ui.calendar.popup:focus {
36
40
  outline: 0;
37
41
  }
38
42
 
@@ -40,12 +44,12 @@
40
44
  Grid
41
45
  *******************************/
42
46
 
43
- .ui.calendar .ui.popup .ui.grid {
47
+ .ui.calendar.popup .ui.grid {
44
48
  display: block;
45
49
  white-space: nowrap;
46
50
  }
47
51
 
48
- .ui.calendar .ui.popup .ui.grid > .column {
52
+ .ui.calendar.popup .ui.grid > .column {
49
53
  width: auto;
50
54
  }
51
55
 
@@ -146,8 +150,8 @@
146
150
  box-shadow: @rangeBoxShadow;
147
151
  }
148
152
 
149
- .ui.calendar:not(.disabled) .calendar:focus .ui.table tbody tr td.focus,
150
- .ui.calendar:not(.disabled) .calendar.active .ui.table tbody tr td.focus {
153
+ .ui.calendar:not(.disabled):focus .ui.table tbody tr td.focus,
154
+ .ui.calendar:not(.disabled).popup.active .ui.table tbody tr td.focus {
151
155
  box-shadow: @focusBoxShadow;
152
156
  }
153
157
 
@@ -159,10 +163,10 @@
159
163
  }
160
164
 
161
165
  .ui.inverted.calendar:not(.disabled) .calendar:focus .ui.table.inverted tbody tr td.focus,
162
- .ui.inverted.calendar:not(.disabled) .calendar.active .ui.table.inverted tbody tr td.focus {
166
+ .ui.inverted.calendar:not(.disabled).popup.active .ui.table.inverted tbody tr td.focus {
163
167
  box-shadow: @focusInvertedBoxShadow;
164
168
  }
165
- .ui.inverted.calendar .ui.inverted.table tr .disabled {
169
+ .ui.inverted.calendar .ui.ui.ui.inverted.table tr .disabled {
166
170
  color: @invertedDisabledTextColor;
167
171
  }
168
172
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Checkbox
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Checkbox
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Dimmer
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Dimmer
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Dropdown
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Dropdown
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Embed
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Video
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Flyout
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Flyout
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Modal
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Modal
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Nag
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Nag
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10
 
@@ -104,7 +104,6 @@ a.ui.nag {
104
104
  .ui.overlay.nags,
105
105
  .ui.overlay.nag {
106
106
  position: absolute;
107
- display: block;
108
107
  }
109
108
  }
110
109
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * # Fomantic-UI - Popup
3
- * http://github.com/fomantic/Fomantic-UI/
3
+ * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
6
6
  * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
7
+ * https://opensource.org/licenses/MIT
8
8
  *
9
9
  */
10
10