fomantic-ui 2.10.0-beta.8 → 2.10.0-beta.81

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 (345) hide show
  1. package/.eslintrc.js +6 -23
  2. package/.github/workflows/ci.yml +9 -9
  3. package/.github/workflows/depsreview.yml +1 -1
  4. package/.github/workflows/nightly.yml +7 -5
  5. package/.github/workflows/release.yml +2 -2
  6. package/.stylelintrc.js +1 -15
  7. package/CHANGELOG.md +5289 -2325
  8. package/README.md +8 -4
  9. package/changelog-setup.js +32 -10
  10. package/changelog-template.hbs +256 -251
  11. package/dist/components/accordion.css +1 -1
  12. package/dist/components/accordion.js +62 -73
  13. package/dist/components/accordion.min.css +1 -1
  14. package/dist/components/accordion.min.js +3 -3
  15. package/dist/components/ad.css +1 -1
  16. package/dist/components/ad.min.css +1 -1
  17. package/dist/components/api.js +101 -161
  18. package/dist/components/api.min.js +3 -3
  19. package/dist/components/breadcrumb.css +1 -1
  20. package/dist/components/breadcrumb.min.css +1 -1
  21. package/dist/components/button.css +5 -6
  22. package/dist/components/button.min.css +2 -2
  23. package/dist/components/calendar.css +3 -3
  24. package/dist/components/calendar.js +283 -332
  25. package/dist/components/calendar.min.css +2 -2
  26. package/dist/components/calendar.min.js +3 -3
  27. package/dist/components/card.css +1 -1
  28. package/dist/components/card.min.css +1 -1
  29. package/dist/components/checkbox.css +1 -1
  30. package/dist/components/checkbox.js +58 -79
  31. package/dist/components/checkbox.min.css +1 -1
  32. package/dist/components/checkbox.min.js +3 -3
  33. package/dist/components/comment.css +1 -1
  34. package/dist/components/comment.min.css +1 -1
  35. package/dist/components/container.css +1 -1
  36. package/dist/components/container.min.css +1 -1
  37. package/dist/components/dimmer.css +2 -2
  38. package/dist/components/dimmer.js +39 -52
  39. package/dist/components/dimmer.min.css +2 -2
  40. package/dist/components/dimmer.min.js +3 -3
  41. package/dist/components/divider.css +1 -1
  42. package/dist/components/divider.min.css +1 -1
  43. package/dist/components/dropdown.css +21 -35
  44. package/dist/components/dropdown.js +435 -531
  45. package/dist/components/dropdown.min.css +2 -2
  46. package/dist/components/dropdown.min.js +3 -3
  47. package/dist/components/embed.css +1 -1
  48. package/dist/components/embed.js +55 -68
  49. package/dist/components/embed.min.css +1 -1
  50. package/dist/components/embed.min.js +3 -3
  51. package/dist/components/emoji.css +3809 -7617
  52. package/dist/components/emoji.min.css +2 -2
  53. package/dist/components/feed.css +1 -1
  54. package/dist/components/feed.min.css +1 -1
  55. package/dist/components/flag.css +1 -1
  56. package/dist/components/flag.min.css +1 -1
  57. package/dist/components/flyout.css +1 -1
  58. package/dist/components/flyout.js +149 -168
  59. package/dist/components/flyout.min.css +1 -1
  60. package/dist/components/flyout.min.js +3 -3
  61. package/dist/components/form.css +3 -5
  62. package/dist/components/form.js +249 -269
  63. package/dist/components/form.min.css +2 -2
  64. package/dist/components/form.min.js +3 -3
  65. package/dist/components/grid.css +2 -2
  66. package/dist/components/grid.min.css +2 -2
  67. package/dist/components/header.css +6 -6
  68. package/dist/components/header.min.css +2 -2
  69. package/dist/components/icon.css +10 -37
  70. package/dist/components/icon.min.css +2 -2
  71. package/dist/components/image.css +1 -1
  72. package/dist/components/image.min.css +1 -1
  73. package/dist/components/input.css +284 -12
  74. package/dist/components/input.min.css +2 -2
  75. package/dist/components/item.css +1 -1
  76. package/dist/components/item.min.css +1 -1
  77. package/dist/components/label.css +6 -14
  78. package/dist/components/label.min.css +2 -2
  79. package/dist/components/list.css +3 -3
  80. package/dist/components/list.min.css +2 -2
  81. package/dist/components/loader.css +53 -53
  82. package/dist/components/loader.min.css +2 -2
  83. package/dist/components/menu.css +45 -60
  84. package/dist/components/menu.min.css +2 -2
  85. package/dist/components/message.css +2 -2
  86. package/dist/components/message.min.css +2 -2
  87. package/dist/components/modal.css +5 -5
  88. package/dist/components/modal.js +161 -170
  89. package/dist/components/modal.min.css +2 -2
  90. package/dist/components/modal.min.js +3 -3
  91. package/dist/components/nag.css +1 -1
  92. package/dist/components/nag.js +74 -88
  93. package/dist/components/nag.min.css +1 -1
  94. package/dist/components/nag.min.js +3 -3
  95. package/dist/components/placeholder.css +2 -2
  96. package/dist/components/placeholder.min.css +2 -2
  97. package/dist/components/popup.css +19 -73
  98. package/dist/components/popup.js +105 -138
  99. package/dist/components/popup.min.css +2 -2
  100. package/dist/components/popup.min.js +3 -3
  101. package/dist/components/progress.css +4 -13
  102. package/dist/components/progress.js +75 -97
  103. package/dist/components/progress.min.css +2 -2
  104. package/dist/components/progress.min.js +3 -3
  105. package/dist/components/rail.css +1 -1
  106. package/dist/components/rail.min.css +1 -1
  107. package/dist/components/rating.css +1 -1
  108. package/dist/components/rating.js +49 -61
  109. package/dist/components/rating.min.css +1 -1
  110. package/dist/components/rating.min.js +3 -3
  111. package/dist/components/reset.css +48 -208
  112. package/dist/components/reset.min.css +2 -2
  113. package/dist/components/reveal.css +2 -5
  114. package/dist/components/reveal.min.css +2 -2
  115. package/dist/components/search.css +2 -3
  116. package/dist/components/search.js +178 -198
  117. package/dist/components/search.min.css +2 -2
  118. package/dist/components/search.min.js +3 -3
  119. package/dist/components/segment.css +6 -6
  120. package/dist/components/segment.min.css +2 -2
  121. package/dist/components/shape.css +1 -1
  122. package/dist/components/shape.js +59 -69
  123. package/dist/components/shape.min.css +1 -1
  124. package/dist/components/shape.min.js +3 -3
  125. package/dist/components/sidebar.css +1 -1
  126. package/dist/components/sidebar.js +81 -101
  127. package/dist/components/sidebar.min.css +1 -1
  128. package/dist/components/sidebar.min.js +3 -3
  129. package/dist/components/site.css +1 -1
  130. package/dist/components/site.js +37 -58
  131. package/dist/components/site.min.css +1 -1
  132. package/dist/components/site.min.js +3 -3
  133. package/dist/components/slider.css +1 -1
  134. package/dist/components/slider.js +169 -183
  135. package/dist/components/slider.min.css +1 -1
  136. package/dist/components/slider.min.js +3 -3
  137. package/dist/components/state.js +45 -59
  138. package/dist/components/state.min.js +3 -3
  139. package/dist/components/statistic.css +1 -1
  140. package/dist/components/statistic.min.css +1 -1
  141. package/dist/components/step.css +4 -4
  142. package/dist/components/step.min.css +2 -2
  143. package/dist/components/sticky.css +1 -1
  144. package/dist/components/sticky.js +95 -117
  145. package/dist/components/sticky.min.css +1 -1
  146. package/dist/components/sticky.min.js +3 -3
  147. package/dist/components/tab.css +1 -1
  148. package/dist/components/tab.js +83 -115
  149. package/dist/components/tab.min.css +1 -1
  150. package/dist/components/tab.min.js +3 -3
  151. package/dist/components/table.css +8 -8
  152. package/dist/components/table.min.css +2 -2
  153. package/dist/components/text.css +1 -1
  154. package/dist/components/text.min.css +1 -1
  155. package/dist/components/toast.css +1 -1
  156. package/dist/components/toast.js +64 -74
  157. package/dist/components/toast.min.css +1 -1
  158. package/dist/components/toast.min.js +3 -3
  159. package/dist/components/transition.css +1 -1
  160. package/dist/components/transition.js +61 -85
  161. package/dist/components/transition.min.css +1 -1
  162. package/dist/components/transition.min.js +3 -3
  163. package/dist/components/visibility.js +120 -140
  164. package/dist/components/visibility.min.js +3 -3
  165. package/dist/semantic.css +4480 -8222
  166. package/dist/semantic.js +2886 -3485
  167. package/dist/semantic.min.css +3 -3
  168. package/dist/semantic.min.js +3 -3
  169. package/examples/attached.html +1 -1
  170. package/examples/components/menu.html +1 -1
  171. package/package.json +8 -5
  172. package/scripts/nightly-version.js +4 -4
  173. package/src/definitions/behaviors/api.js +100 -160
  174. package/src/definitions/behaviors/form.js +248 -268
  175. package/src/definitions/behaviors/state.js +44 -58
  176. package/src/definitions/behaviors/visibility.js +119 -139
  177. package/src/definitions/collections/breadcrumb.less +0 -1
  178. package/src/definitions/collections/form.less +3 -9
  179. package/src/definitions/collections/grid.less +1 -2
  180. package/src/definitions/collections/menu.less +106 -117
  181. package/src/definitions/collections/message.less +1 -2
  182. package/src/definitions/collections/table.less +7 -8
  183. package/src/definitions/elements/button.less +4 -6
  184. package/src/definitions/elements/container.less +0 -1
  185. package/src/definitions/elements/divider.less +1 -2
  186. package/src/definitions/elements/emoji.less +1 -1
  187. package/src/definitions/elements/flag.less +1 -1
  188. package/src/definitions/elements/header.less +4 -5
  189. package/src/definitions/elements/icon.less +10 -37
  190. package/src/definitions/elements/image.less +0 -1
  191. package/src/definitions/elements/input.less +4 -7
  192. package/src/definitions/elements/label.less +5 -14
  193. package/src/definitions/elements/list.less +2 -3
  194. package/src/definitions/elements/loader.less +10 -11
  195. package/src/definitions/elements/placeholder.less +1 -2
  196. package/src/definitions/elements/rail.less +0 -1
  197. package/src/definitions/elements/reveal.less +1 -5
  198. package/src/definitions/elements/segment.less +5 -6
  199. package/src/definitions/elements/step.less +3 -4
  200. package/src/definitions/elements/text.less +0 -1
  201. package/src/definitions/globals/reset.less +0 -1
  202. package/src/definitions/globals/site.js +36 -57
  203. package/src/definitions/globals/site.less +0 -1
  204. package/src/definitions/modules/accordion.js +61 -72
  205. package/src/definitions/modules/accordion.less +0 -1
  206. package/src/definitions/modules/calendar.js +282 -331
  207. package/src/definitions/modules/calendar.less +2 -3
  208. package/src/definitions/modules/checkbox.js +57 -78
  209. package/src/definitions/modules/checkbox.less +0 -1
  210. package/src/definitions/modules/dimmer.js +38 -51
  211. package/src/definitions/modules/dimmer.less +1 -2
  212. package/src/definitions/modules/dropdown.js +434 -530
  213. package/src/definitions/modules/dropdown.less +27 -38
  214. package/src/definitions/modules/embed.js +54 -67
  215. package/src/definitions/modules/embed.less +0 -1
  216. package/src/definitions/modules/flyout.js +148 -167
  217. package/src/definitions/modules/flyout.less +0 -1
  218. package/src/definitions/modules/modal.js +160 -169
  219. package/src/definitions/modules/modal.less +3 -4
  220. package/src/definitions/modules/nag.js +73 -87
  221. package/src/definitions/modules/nag.less +0 -1
  222. package/src/definitions/modules/popup.js +104 -137
  223. package/src/definitions/modules/popup.less +18 -73
  224. package/src/definitions/modules/progress.js +74 -96
  225. package/src/definitions/modules/progress.less +3 -13
  226. package/src/definitions/modules/rating.js +48 -60
  227. package/src/definitions/modules/rating.less +0 -1
  228. package/src/definitions/modules/search.js +177 -197
  229. package/src/definitions/modules/search.less +2 -4
  230. package/src/definitions/modules/shape.js +58 -68
  231. package/src/definitions/modules/shape.less +0 -1
  232. package/src/definitions/modules/sidebar.js +80 -100
  233. package/src/definitions/modules/sidebar.less +0 -1
  234. package/src/definitions/modules/slider.js +168 -182
  235. package/src/definitions/modules/slider.less +0 -1
  236. package/src/definitions/modules/sticky.js +94 -116
  237. package/src/definitions/modules/sticky.less +0 -1
  238. package/src/definitions/modules/tab.js +82 -114
  239. package/src/definitions/modules/tab.less +0 -1
  240. package/src/definitions/modules/toast.js +63 -73
  241. package/src/definitions/modules/toast.less +0 -1
  242. package/src/definitions/modules/transition.js +60 -84
  243. package/src/definitions/modules/transition.less +1 -2
  244. package/src/definitions/views/ad.less +0 -1
  245. package/src/definitions/views/card.less +0 -1
  246. package/src/definitions/views/comment.less +0 -1
  247. package/src/definitions/views/feed.less +0 -1
  248. package/src/definitions/views/item.less +0 -1
  249. package/src/definitions/views/statistic.less +0 -1
  250. package/src/semantic.less +1 -1
  251. package/src/themes/amazon/elements/button.overrides +1 -1
  252. package/src/themes/amazon/elements/button.variables +5 -6
  253. package/src/themes/amazon/globals/site.variables +2 -3
  254. package/src/themes/bookish/elements/header.variables +2 -2
  255. package/src/themes/bootstrap3/elements/button.variables +4 -5
  256. package/src/themes/chubby/collections/menu.variables +1 -1
  257. package/src/themes/chubby/elements/button.overrides +4 -4
  258. package/src/themes/chubby/modules/accordion.overrides +1 -1
  259. package/src/themes/chubby/views/comment.overrides +2 -2
  260. package/src/themes/chubby/views/comment.variables +2 -2
  261. package/src/themes/classic/collections/table.variables +2 -2
  262. package/src/themes/classic/elements/button.variables +11 -11
  263. package/src/themes/classic/modules/progress.variables +2 -2
  264. package/src/themes/classic/views/card.variables +2 -2
  265. package/src/themes/default/collections/form.variables +2 -3
  266. package/src/themes/default/collections/menu.variables +28 -28
  267. package/src/themes/default/collections/message.variables +1 -1
  268. package/src/themes/default/collections/table.variables +4 -4
  269. package/src/themes/default/elements/button.variables +9 -10
  270. package/src/themes/default/elements/divider.variables +1 -1
  271. package/src/themes/default/elements/icon.variables +2 -2
  272. package/src/themes/default/elements/image.variables +1 -1
  273. package/src/themes/default/elements/input.variables +2 -2
  274. package/src/themes/default/elements/label.variables +4 -4
  275. package/src/themes/default/elements/list.variables +1 -1
  276. package/src/themes/default/elements/placeholder.variables +6 -6
  277. package/src/themes/default/elements/segment.variables +8 -8
  278. package/src/themes/default/globals/reset.overrides +45 -201
  279. package/src/themes/default/globals/site.variables +50 -50
  280. package/src/themes/default/globals/variation.variables +3 -2
  281. package/src/themes/default/modules/accordion.variables +0 -1
  282. package/src/themes/default/modules/checkbox.variables +1 -1
  283. package/src/themes/default/modules/dimmer.variables +12 -12
  284. package/src/themes/default/modules/dropdown.variables +17 -16
  285. package/src/themes/default/modules/embed.variables +2 -2
  286. package/src/themes/default/modules/flyout.variables +3 -3
  287. package/src/themes/default/modules/modal.variables +14 -14
  288. package/src/themes/default/modules/nag.variables +1 -1
  289. package/src/themes/default/modules/rating.variables +1 -1
  290. package/src/themes/default/modules/search.variables +1 -1
  291. package/src/themes/default/modules/shape.variables +1 -1
  292. package/src/themes/default/modules/sidebar.variables +2 -2
  293. package/src/themes/default/modules/toast.variables +4 -4
  294. package/src/themes/default/views/card.variables +6 -7
  295. package/src/themes/default/views/feed.variables +4 -4
  296. package/src/themes/default/views/item.variables +2 -3
  297. package/src/themes/flat/collections/form.variables +1 -1
  298. package/src/themes/flat/globals/site.variables +9 -9
  299. package/src/themes/github/collections/form.overrides +3 -3
  300. package/src/themes/github/collections/form.variables +3 -3
  301. package/src/themes/github/collections/menu.overrides +1 -1
  302. package/src/themes/github/collections/menu.variables +10 -10
  303. package/src/themes/github/collections/message.variables +6 -6
  304. package/src/themes/github/elements/button.variables +17 -17
  305. package/src/themes/github/elements/input.variables +3 -3
  306. package/src/themes/github/elements/segment.variables +2 -2
  307. package/src/themes/github/elements/step.overrides +4 -4
  308. package/src/themes/github/elements/step.variables +3 -3
  309. package/src/themes/github/globals/site.variables +2 -2
  310. package/src/themes/github/modules/dropdown.variables +1 -3
  311. package/src/themes/gmail/collections/message.variables +2 -2
  312. package/src/themes/material/collections/menu.variables +1 -1
  313. package/src/themes/material/elements/button.overrides +4 -4
  314. package/src/themes/material/elements/button.variables +5 -5
  315. package/src/themes/material/modules/dropdown.variables +1 -1
  316. package/src/themes/material/modules/modal.variables +1 -1
  317. package/src/themes/raised/elements/button.variables +1 -1
  318. package/src/themes/round/elements/button.variables +12 -12
  319. package/src/themes/striped/modules/progress.overrides +3 -3
  320. package/src/themes/timeline/views/feed.variables +2 -2
  321. package/src/themes/twitter/elements/button.overrides +1 -1
  322. package/src/themes/twitter/elements/button.variables +4 -5
  323. package/tasks/admin/components/create.js +12 -15
  324. package/tasks/admin/components/init.js +11 -12
  325. package/tasks/admin/components/update.js +19 -20
  326. package/tasks/admin/distributions/create.js +30 -51
  327. package/tasks/admin/distributions/init.js +11 -12
  328. package/tasks/admin/distributions/update.js +18 -19
  329. package/tasks/admin/register.js +7 -7
  330. package/tasks/build/assets.js +1 -1
  331. package/tasks/build/css.js +5 -5
  332. package/tasks/build/javascript.js +1 -1
  333. package/tasks/config/admin/github.js +1 -1
  334. package/tasks/config/admin/templates/css-package.js +1 -1
  335. package/tasks/config/admin/templates/less-package.js +1 -1
  336. package/tasks/config/project/config.js +10 -10
  337. package/tasks/config/project/install.js +12 -12
  338. package/tasks/config/project/release.js +6 -12
  339. package/tasks/config/tasks.js +15 -11
  340. package/tasks/config/user.js +1 -4
  341. package/tasks/docs/metadata.js +18 -20
  342. package/tasks/install.js +14 -12
  343. package/test/meteor/assets.js +4 -4
  344. package/test/meteor/fonts.js +10 -11
  345. package/test/modules/module.spec.js +18 -18
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Rating
2
+ * # Fomantic-UI 2.10.0-beta.81+4f706c2 - Rating
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -19,41 +19,40 @@
19
19
  ? window
20
20
  : globalThis;
21
21
 
22
- $.fn.rating = function (parameters) {
23
- let $allModules = $(this);
22
+ $.fn.rating = function (...args) {
23
+ const $allModules = $(this);
24
24
 
25
25
  let time = Date.now();
26
26
  let performance = [];
27
27
 
28
- let query = arguments[0];
29
- let methodInvoked = typeof query === 'string';
30
- let queryArguments = [].slice.call(arguments, 1);
28
+ const parameters = args[0];
29
+ const methodInvoked = typeof parameters === 'string';
30
+ const queryArguments = args.slice(1);
31
31
  let returnedValue;
32
32
  $allModules.each(function () {
33
- let settings = $.isPlainObject(parameters)
33
+ const settings = $.isPlainObject(parameters)
34
34
  ? $.extend(true, {}, $.fn.rating.settings, parameters)
35
35
  : $.extend({}, $.fn.rating.settings);
36
36
 
37
- let namespace = settings.namespace;
38
- let className = settings.className;
39
- let error = settings.error;
40
- let metadata = settings.metadata;
41
- let selector = settings.selector;
42
- let cssVars = settings.cssVars;
37
+ const namespace = settings.namespace;
38
+ const className = settings.className;
39
+ const error = settings.error;
40
+ const metadata = settings.metadata;
41
+ const selector = settings.selector;
42
+ const cssVars = settings.cssVars;
43
43
 
44
- let eventNamespace = '.' + namespace;
45
- let moduleNamespace = 'module-' + namespace;
44
+ const eventNamespace = '.' + namespace;
45
+ const moduleNamespace = 'module-' + namespace;
46
46
 
47
- let element = this;
47
+ const element = this;
48
48
  let instance = $(this).data(moduleNamespace);
49
49
 
50
- let $module = $(this);
50
+ const $module = $(this);
51
51
  let $icon = $module.find(selector.icon);
52
52
 
53
53
  let initialLoad;
54
- let module;
55
54
 
56
- module = {
55
+ const module = {
57
56
 
58
57
  initialize: function () {
59
58
  module.verbose('Initializing rating module', settings);
@@ -93,9 +92,9 @@
93
92
 
94
93
  setup: {
95
94
  layout: function () {
96
- let maxRating = module.get.maxRating();
97
- let icon = module.get.icon();
98
- let html = $.fn.rating.settings.templates.icon(maxRating, icon);
95
+ const maxRating = module.get.maxRating();
96
+ const icon = module.get.icon();
97
+ const html = $.fn.rating.settings.templates.icon(maxRating, icon);
99
98
  module.debug('Generating icon html dynamically');
100
99
  $module
101
100
  .html(html);
@@ -105,7 +104,7 @@
105
104
 
106
105
  event: {
107
106
  mouseenter: function () {
108
- let $activeIcon = $(this);
107
+ const $activeIcon = $(this);
109
108
  $activeIcon
110
109
  .nextAll()
111
110
  .removeClass(className.selected);
@@ -123,10 +122,10 @@
123
122
  .removeClass(className.selected);
124
123
  },
125
124
  click: function () {
126
- let $activeIcon = $(this);
127
- let currentRating = module.get.rating();
128
- let rating = $icon.index($activeIcon) + 1;
129
- let canClear = settings.clearable === 'auto'
125
+ const $activeIcon = $(this);
126
+ const currentRating = module.get.rating();
127
+ const rating = $icon.index($activeIcon) + 1;
128
+ const canClear = settings.clearable === 'auto'
130
129
  ? $icon.length === 1
131
130
  : settings.clearable;
132
131
  if (canClear && currentRating === rating) {
@@ -188,7 +187,7 @@
188
187
 
189
188
  get: {
190
189
  icon: function () {
191
- let icon = $module.data(metadata.icon);
190
+ const icon = $module.data(metadata.icon);
192
191
  if (icon) {
193
192
  $module.removeData(metadata.icon);
194
193
  }
@@ -214,7 +213,7 @@
214
213
  return settings.maxRating;
215
214
  },
216
215
  rating: function () {
217
- let currentRating = $icon.filter('.' + className.active).length;
216
+ const currentRating = $icon.filter('.' + className.active).length;
218
217
  module.verbose('Current rating retrieved', currentRating);
219
218
 
220
219
  return currentRating;
@@ -223,16 +222,14 @@
223
222
 
224
223
  set: {
225
224
  rating: function (rating) {
226
- let ratingIndex = Math.floor(
227
- rating - 1 >= 0
228
- ? rating - 1
229
- : 0
225
+ const ratingIndex = Math.floor(
226
+ Math.max(rating - 1, 0)
230
227
  );
231
- let $activeIcon = $icon.eq(ratingIndex);
232
- let $partialActiveIcon = rating <= 1
228
+ const $activeIcon = $icon.eq(ratingIndex);
229
+ const $partialActiveIcon = rating <= 1
233
230
  ? $activeIcon
234
231
  : $activeIcon.next();
235
- let filledPercentage = (rating % 1) * 100;
232
+ const filledPercentage = (rating % 1) * 100;
236
233
  $module
237
234
  .removeClass(className.selected);
238
235
  $icon
@@ -290,30 +287,30 @@
290
287
  return module[name];
291
288
  }
292
289
  },
293
- debug: function () {
290
+ debug: function (...args) {
294
291
  if (!settings.silent && settings.debug) {
295
292
  if (settings.performance) {
296
- module.performance.log(arguments);
293
+ module.performance.log(args);
297
294
  } else {
298
295
  module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
299
- module.debug.apply(console, arguments);
296
+ module.debug.apply(console, args);
300
297
  }
301
298
  }
302
299
  },
303
- verbose: function () {
300
+ verbose: function (...args) {
304
301
  if (!settings.silent && settings.verbose && settings.debug) {
305
302
  if (settings.performance) {
306
- module.performance.log(arguments);
303
+ module.performance.log(args);
307
304
  } else {
308
305
  module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
309
- module.verbose.apply(console, arguments);
306
+ module.verbose.apply(console, args);
310
307
  }
311
308
  }
312
309
  },
313
- error: function () {
310
+ error: function (...args) {
314
311
  if (!settings.silent) {
315
312
  module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
316
- module.error.apply(console, arguments);
313
+ module.error.apply(console, args);
317
314
  }
318
315
  },
319
316
  performance: {
@@ -328,7 +325,7 @@
328
325
  time = currentTime;
329
326
  performance.push({
330
327
  Name: message[0],
331
- Arguments: [].slice.call(message, 1) || '',
328
+ Arguments: message.slice(1),
332
329
  Element: element,
333
330
  'Execution Time': executionTime,
334
331
  });
@@ -352,30 +349,22 @@
352
349
  }
353
350
  if (performance.length > 0) {
354
351
  console.groupCollapsed(title);
355
- if (console.table) {
356
- console.table(performance);
357
- } else {
358
- $.each(performance, function (index, data) {
359
- console.log(data.Name + ': ' + data['Execution Time'] + 'ms');
360
- });
361
- }
352
+ console.table(performance);
362
353
  console.groupEnd();
363
354
  }
364
355
  performance = [];
365
356
  },
366
357
  },
367
- invoke: function (query, passedArguments, context) {
358
+ invoke: function (query, passedArguments = queryArguments, context = element) {
368
359
  let object = instance;
369
360
  let maxDepth;
370
361
  let found;
371
362
  let response;
372
- passedArguments = passedArguments || queryArguments;
373
- context = context || element;
374
363
  if (typeof query === 'string' && object !== undefined) {
375
364
  query = query.split(/[ .]/);
376
365
  maxDepth = query.length - 1;
377
366
  $.each(query, function (depth, value) {
378
- let camelCaseValue = depth !== maxDepth
367
+ const camelCaseValue = depth !== maxDepth
379
368
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
380
369
  : query;
381
370
  if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
@@ -417,7 +406,7 @@
417
406
  if (instance === undefined) {
418
407
  module.initialize();
419
408
  }
420
- module.invoke(query);
409
+ module.invoke(parameters);
421
410
  } else {
422
411
  if (instance !== undefined) {
423
412
  instance.invoke('destroy');
@@ -480,8 +469,7 @@
480
469
 
481
470
  templates: {
482
471
  escape: function (string) {
483
- const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
484
- const escape = {
472
+ const escapeMap = {
485
473
  '"': '&quot;',
486
474
  '&': '&amp;',
487
475
  "'": '&apos;',
@@ -489,12 +477,12 @@
489
477
  '>': '&gt;',
490
478
  };
491
479
 
492
- return string.replace(badChars, (chr) => escape[chr]);
480
+ return String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
493
481
  },
494
482
  icon: function (maxRating, iconClass) {
495
483
  let icon = 1;
496
484
  let html = '';
497
- let escape = $.fn.rating.settings.templates.escape;
485
+ const escape = $.fn.rating.settings.templates.escape;
498
486
  while (icon <= maxRating) {
499
487
  html += '<i class="' + escape(iconClass) + ' icon"></i>';
500
488
  icon++;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Rating
2
+ * # Fomantic-UI 2.10.0-beta.81+4f706c2 - Rating
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,11 +1,11 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.8+62e258f
2
+ * # Fomantic UI - 2.10.0-beta.81+4f706c2
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
6
- * Copyright 2025 Contributors
6
+ * Copyright 2026 Contributors
7
7
  * Released under the MIT license
8
8
  * https://opensource.org/licenses/MIT
9
9
  *
10
10
  */
11
- !function(A,e){"use strict";e=void 0!==e&&e.Math===Math?e:globalThis,A.fn.rating=function(f){let p=A(this),b=Date.now(),h=[],y=f,C="string"==typeof y,x=[].slice.call(arguments,1),R;return p.each(function(){let a=A.isPlainObject(f)?A.extend(!0,{},A.fn.rating.settings,f):A.extend({},A.fn.rating.settings);var e=a.namespace;let o=a.className,l=a.error,n=a.metadata,t=a.selector,r=a.cssVars,i="."+e,s="module-"+e,c=this,d=A(this).data(s),u=A(this),g=u.find(t.icon),m,v;v={initialize:function(){v.verbose("Initializing rating module",a),0===g.length&&v.setup.layout(),a.interactive&&!v.is.disabled()?v.enable():v.disable(),v.set.initialLoad(),v.set.rating(v.get.initialRating()),v.remove.initialLoad(),v.instantiate()},instantiate:function(){v.verbose("Instantiating module",a),d=v,u.data(s,v)},destroy:function(){v.verbose("Destroying previous instance",d),v.remove.events(),u.removeData(s)},refresh:function(){g=u.find(t.icon)},setup:{layout:function(){var e=v.get.maxRating(),n=v.get.icon(),e=A.fn.rating.settings.templates.icon(e,n);v.debug("Generating icon html dynamically"),u.html(e),v.refresh()}},event:{mouseenter:function(){let e=A(this);e.nextAll().removeClass(o.selected),u.addClass(o.selected),e.addClass(o.selected).prevAll().addClass(o.selected)},mouseleave:function(){u.removeClass(o.selected),g.removeClass(o.selected)},click:function(){var e=A(this),n=v.get.rating(),e=g.index(e)+1;("auto"===a.clearable?1===g.length:a.clearable)&&n===e?v.clearRating():v.set.rating(e)}},clearRating:function(){v.debug("Clearing current rating"),v.set.rating(0)},bind:{events:function(){v.verbose("Binding events"),u.on("mouseenter"+i,t.icon,v.event.mouseenter).on("mouseleave"+i,t.icon,v.event.mouseleave).on("click"+i,t.icon,v.event.click)}},remove:{events:function(){v.verbose("Removing events"),u.off(i)},initialLoad:function(){m=!1}},enable:function(){v.debug("Setting rating to interactive mode"),v.bind.events(),u.removeClass(o.disabled)},disable:function(){v.debug("Setting rating to read-only mode"),v.remove.events(),u.addClass(o.disabled)},is:{initialLoad:function(){return m},disabled:function(){return u.hasClass(o.disabled)}},get:{icon:function(){var e=u.data(n.icon);return e&&u.removeData(n.icon),e||a.icon},initialRating:function(){return void 0!==u.data(n.rating)?(u.removeData(n.rating),u.data(n.rating)):a.initialRating},maxRating:function(){return void 0!==u.data(n.maxRating)?(u.removeData(n.maxRating),u.data(n.maxRating)):a.maxRating},rating:function(){var e=g.filter("."+o.active).length;return v.verbose("Current rating retrieved",e),e}},set:{rating:function(e){var n=Math.floor(0<=e-1?e-1:0);let t=g.eq(n),i=e<=1?t:t.next();n=e%1*100;u.removeClass(o.selected),g.removeClass(o.selected).removeClass(o.active).removeClass(o.partiallyActive),0<e&&(v.verbose("Setting current rating to",e),t.prevAll().addBack().addClass(o.active),t.next()&&e%1!=0&&(i.addClass(o.partiallyActive).addClass(o.active),i.css(r.filledCustomPropName,n+"%"),"transparent"===i.css("backgroundColor")&&i.removeClass(o.partiallyActive).removeClass(o.active))),v.is.initialLoad()||a.onRate.call(c,e)},initialLoad:function(){m=!0}},setting:function(e,n){if(v.debug("Changing setting",e,n),A.isPlainObject(e))A.extend(!0,a,e);else{if(void 0===n)return a[e];A.isPlainObject(a[e])?A.extend(!0,a[e],n):a[e]=n}},internal:function(e,n){if(A.isPlainObject(e))A.extend(!0,v,e);else{if(void 0===n)return v[e];v[e]=n}},debug:function(){!a.silent&&a.debug&&(a.performance?v.performance.log(arguments):(v.debug=Function.prototype.bind.call(console.info,console,a.name+":"),v.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?v.performance.log(arguments):(v.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),v.verbose.apply(console,arguments)))},error:function(){a.silent||(v.error=Function.prototype.bind.call(console.error,console,a.name+":"),v.error.apply(console,arguments))},performance:{log:function(e){var n,t;a.performance&&(t=(n=Date.now())-(b||n),b=n,h.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:c,"Execution Time":t})),clearTimeout(v.performance.timer),v.performance.timer=setTimeout(function(){v.performance.display()},500)},display:function(){let e=a.name+":",t=0;b=!1,clearTimeout(v.performance.timer),A.each(h,function(e,n){t+=n["Execution Time"]}),e+=" "+t+"ms",1<p.length&&(e+=" ("+p.length+")"),0<h.length&&(console.groupCollapsed(e),console.table?console.table(h):A.each(h,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),h=[]}},invoke:function(i,e,n){let a=d,o,r,t;var s;return e=e||x,n=n||c,"string"==typeof i&&void 0!==a&&(i=i.split(/[ .]/),o=i.length-1,A.each(i,function(e,n){var t=e!==o?n+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(A.isPlainObject(a[t])&&e!==o)a=a[t];else{if(void 0!==a[t])return r=a[t],!1;{if(!A.isPlainObject(a[n])||e===o)return void 0!==a[n]?r=a[n]:v.error(l.method,i),!1;a=a[n]}}})),"function"==typeof(s=r)&&"number"!=typeof s.nodeType?t=r.apply(n,e):void 0!==r&&(t=r),Array.isArray(R)?R.push(t):void 0!==R?R=[R,t]:void 0!==t&&(R=t),r}},C?(void 0===d&&v.initialize(),v.invoke(y)):(void 0!==d&&d.invoke("destroy"),v.initialize())}),void 0!==R?R:this},A.fn.rating.settings={name:"Rating",namespace:"rating",icon:"star",silent:!1,debug:!1,verbose:!1,performance:!0,initialRating:0,interactive:!0,maxRating:4,clearable:"auto",fireOnInit:!1,onRate:function(e){},error:{method:"The method you called is not defined"},metadata:{rating:"rating",maxRating:"maxRating",icon:"icon"},className:{active:"active",disabled:"disabled",selected:"selected",loading:"loading",partiallyActive:"partial"},cssVars:{filledCustomPropName:"--full"},selector:{icon:".icon"},templates:{escape:function(e){const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return e.replace(/["'<>]|&(?![\d#A-Za-z]{1,12};)/g,e=>n[e])},icon:function(e,n){let t=1,i="",a=A.fn.rating.settings.templates.escape;for(;t<=e;)i+='<i class="'+a(n)+' icon"></i>',t++;return i}}}}(jQuery,window,document);
11
+ !function(R,e){"use strict";e=void 0!==e&&e.Math===Math?e:globalThis,R.fn.rating=function(...e){const f=R(this);let p=Date.now(),b=[];const h=e[0],y="string"==typeof h,C=e.slice(1);let x;return f.each(function(){const a=R.isPlainObject(h)?R.extend(!0,{},R.fn.rating.settings,h):R.extend({},R.fn.rating.settings);var e=a.namespace;const o=a.className,l=a.error,t=a.metadata,n=a.selector,r=a.cssVars,i="."+e,s="module-"+e,c=this;let d=R(this).data(s);const u=R(this);let g=u.find(n.icon),m;const v={initialize:function(){v.verbose("Initializing rating module",a),0===g.length&&v.setup.layout(),a.interactive&&!v.is.disabled()?v.enable():v.disable(),v.set.initialLoad(),v.set.rating(v.get.initialRating()),v.remove.initialLoad(),v.instantiate()},instantiate:function(){v.verbose("Instantiating module",a),d=v,u.data(s,v)},destroy:function(){v.verbose("Destroying previous instance",d),v.remove.events(),u.removeData(s)},refresh:function(){g=u.find(n.icon)},setup:{layout:function(){var e=v.get.maxRating(),t=v.get.icon(),e=R.fn.rating.settings.templates.icon(e,t);v.debug("Generating icon html dynamically"),u.html(e),v.refresh()}},event:{mouseenter:function(){const e=R(this);e.nextAll().removeClass(o.selected),u.addClass(o.selected),e.addClass(o.selected).prevAll().addClass(o.selected)},mouseleave:function(){u.removeClass(o.selected),g.removeClass(o.selected)},click:function(){var e=R(this),t=v.get.rating(),e=g.index(e)+1;("auto"===a.clearable?1===g.length:a.clearable)&&t===e?v.clearRating():v.set.rating(e)}},clearRating:function(){v.debug("Clearing current rating"),v.set.rating(0)},bind:{events:function(){v.verbose("Binding events"),u.on("mouseenter"+i,n.icon,v.event.mouseenter).on("mouseleave"+i,n.icon,v.event.mouseleave).on("click"+i,n.icon,v.event.click)}},remove:{events:function(){v.verbose("Removing events"),u.off(i)},initialLoad:function(){m=!1}},enable:function(){v.debug("Setting rating to interactive mode"),v.bind.events(),u.removeClass(o.disabled)},disable:function(){v.debug("Setting rating to read-only mode"),v.remove.events(),u.addClass(o.disabled)},is:{initialLoad:function(){return m},disabled:function(){return u.hasClass(o.disabled)}},get:{icon:function(){var e=u.data(t.icon);return e&&u.removeData(t.icon),e||a.icon},initialRating:function(){return void 0!==u.data(t.rating)?(u.removeData(t.rating),u.data(t.rating)):a.initialRating},maxRating:function(){return void 0!==u.data(t.maxRating)?(u.removeData(t.maxRating),u.data(t.maxRating)):a.maxRating},rating:function(){var e=g.filter("."+o.active).length;return v.verbose("Current rating retrieved",e),e}},set:{rating:function(e){var t=Math.floor(Math.max(e-1,0));const n=g.eq(t),i=e<=1?n:n.next();t=e%1*100;u.removeClass(o.selected),g.removeClass(o.selected).removeClass(o.active).removeClass(o.partiallyActive),0<e&&(v.verbose("Setting current rating to",e),n.prevAll().addBack().addClass(o.active),n.next()&&e%1!=0&&(i.addClass(o.partiallyActive).addClass(o.active),i.css(r.filledCustomPropName,t+"%"),"transparent"===i.css("backgroundColor")&&i.removeClass(o.partiallyActive).removeClass(o.active))),v.is.initialLoad()||a.onRate.call(c,e)},initialLoad:function(){m=!0}},setting:function(e,t){if(v.debug("Changing setting",e,t),R.isPlainObject(e))R.extend(!0,a,e);else{if(void 0===t)return a[e];R.isPlainObject(a[e])?R.extend(!0,a[e],t):a[e]=t}},internal:function(e,t){if(R.isPlainObject(e))R.extend(!0,v,e);else{if(void 0===t)return v[e];v[e]=t}},debug:function(...e){!a.silent&&a.debug&&(a.performance?v.performance.log(e):(v.debug=Function.prototype.bind.call(console.info,console,a.name+":"),v.debug.apply(console,e)))},verbose:function(...e){!a.silent&&a.verbose&&a.debug&&(a.performance?v.performance.log(e):(v.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),v.verbose.apply(console,e)))},error:function(...e){a.silent||(v.error=Function.prototype.bind.call(console.error,console,a.name+":"),v.error.apply(console,e))},performance:{log:function(e){var t,n;a.performance&&(n=(t=Date.now())-(p||t),p=t,b.push({Name:e[0],Arguments:e.slice(1),Element:c,"Execution Time":n})),clearTimeout(v.performance.timer),v.performance.timer=setTimeout(function(){v.performance.display()},500)},display:function(){let e=a.name+":",n=0;p=!1,clearTimeout(v.performance.timer),R.each(b,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",1<f.length&&(e+=" ("+f.length+")"),0<b.length&&(console.groupCollapsed(e),console.table(b),console.groupEnd()),b=[]}},invoke:function(i,e=C,t=c){let a=d,o,r,n;var s;return"string"==typeof i&&void 0!==a&&(i=i.split(/[ .]/),o=i.length-1,R.each(i,function(e,t){var n=e!==o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(R.isPlainObject(a[n])&&e!==o)a=a[n];else{if(void 0!==a[n])return r=a[n],!1;{if(!R.isPlainObject(a[t])||e===o)return void 0!==a[t]?r=a[t]:v.error(l.method,i),!1;a=a[t]}}})),"function"==typeof(s=r)&&"number"!=typeof s.nodeType?n=r.apply(t,e):void 0!==r&&(n=r),Array.isArray(x)?x.push(n):void 0!==x?x=[x,n]:void 0!==n&&(x=n),r}};y?(void 0===d&&v.initialize(),v.invoke(h)):(void 0!==d&&d.invoke("destroy"),v.initialize())}),void 0!==x?x:this},R.fn.rating.settings={name:"Rating",namespace:"rating",icon:"star",silent:!1,debug:!1,verbose:!1,performance:!0,initialRating:0,interactive:!0,maxRating:4,clearable:"auto",fireOnInit:!1,onRate:function(e){},error:{method:"The method you called is not defined"},metadata:{rating:"rating",maxRating:"maxRating",icon:"icon"},className:{active:"active",disabled:"disabled",selected:"selected",loading:"loading",partiallyActive:"partial"},cssVars:{filledCustomPropName:"--full"},selector:{icon:".icon"},templates:{escape:function(e){const t={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["&'<>]/g,e=>t[e])},icon:function(e,t){let n=1,i="";const a=R.fn.rating.settings.templates.escape;for(;n<=e;)i+='<i class="'+a(t)+' icon"></i>',n++;return i}}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Reset
2
+ * # Fomantic-UI 2.10.0-beta.81+4f706c2 - Reset
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -34,13 +34,15 @@ input[type="password"] {
34
34
 
35
35
  /* mobile firefox too! */
36
36
  }
37
- /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
38
-
39
- /* Document
40
- ========================================================================== */
37
+ /*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
38
+ /*
39
+ Document
40
+ ========
41
+ */
41
42
  /**
42
43
  * 1. Correct the line height in all browsers.
43
44
  * 2. Prevent adjustments of font size after orientation changes in iOS.
45
+ * 3. Use a more readable tab size (opinionated).
44
46
  */
45
47
  html {
46
48
  line-height: 1.15;
@@ -49,100 +51,41 @@ html {
49
51
  -webkit-text-size-adjust: 100%;
50
52
 
51
53
  /* 2 */
54
+ -moz-tab-size: 4;
55
+ tab-size: 4;
56
+
57
+ /* 3 */
52
58
  }
53
-
54
- /* Sections
55
- ========================================================================== */
59
+ /*
60
+ Sections
61
+ ========
62
+ */
56
63
  /**
57
64
  * Remove the margin in all browsers.
58
65
  */
59
66
  body {
60
67
  margin: 0;
61
68
  }
69
+ /*
70
+ Text-level semantics
71
+ ====================
72
+ */
62
73
  /**
63
- * Render the `main` element consistently in IE.
64
- */
65
- main {
66
- display: block;
67
- }
68
- /**
69
- * Correct the font size and margin on `h1` elements within `section` and
70
- * `article` contexts in Chrome, Firefox, and Safari.
71
- */
72
- h1 {
73
- font-size: 2em;
74
- margin: 0.67em 0;
75
- }
76
-
77
- /* Grouping content
78
- ========================================================================== */
79
- /**
80
- * 1. Add the correct box sizing in Firefox.
81
- * 2. Show the overflow in Edge and IE.
82
- */
83
- hr {
84
- box-sizing: content-box;
85
-
86
- /* 1 */
87
- height: 0;
88
-
89
- /* 1 */
90
- overflow: visible;
91
-
92
- /* 2 */
93
- }
94
- /**
95
- * 1. Correct the inheritance and scaling of font size in all browsers.
96
- * 2. Correct the odd `em` font sizing in all browsers.
97
- */
98
- pre {
99
- font-family: monospace, monospace;
100
-
101
- /* 1 */
102
- font-size: 1em;
103
-
104
- /* 2 */
105
- }
106
-
107
- /* Text-level semantics
108
- ========================================================================== */
109
- /**
110
- * Remove the gray background on active links in IE 10.
111
- */
112
- a {
113
- background-color: transparent;
114
- }
115
- /**
116
- * 1. Remove the bottom border in Chrome 57-
117
- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
118
- */
119
- abbr[title] {
120
- border-bottom: none;
121
-
122
- /* 1 */
123
- text-decoration: underline;
124
-
125
- /* 2 */
126
- -webkit-text-decoration: underline dotted;
127
- text-decoration: underline dotted;
128
-
129
- /* 2 */
130
- }
131
- /**
132
- * Add the correct font weight in Chrome, Edge, and Safari.
74
+ * Add the correct font weight in Chrome and Safari.
133
75
  */
134
76
  b,
135
77
  strong {
136
78
  font-weight: bolder;
137
79
  }
138
80
  /**
139
- * 1. Correct the inheritance and scaling of font size in all browsers.
140
- * 2. Correct the odd `em` font sizing in all browsers.
81
+ * 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
82
+ * 2. Correct the odd 'em' font sizing in all browsers.
141
83
  */
142
84
  code,
143
85
  kbd,
144
- samp {
145
- font-family: monospace, monospace;
86
+ samp,
87
+ pre {
88
+ font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
146
89
 
147
90
  /* 1 */
148
91
  font-size: 1em;
@@ -156,8 +99,7 @@ small {
156
99
  font-size: 80%;
157
100
  }
158
101
  /**
159
- * Prevent `sub` and `sup` elements from affecting the line height in
160
- * all browsers.
102
+ * Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
161
103
  */
162
104
  sub,
163
105
  sup {
@@ -172,18 +114,20 @@ sub {
172
114
  sup {
173
115
  top: -0.5em;
174
116
  }
175
-
176
- /* Embedded content
177
- ========================================================================== */
117
+ /*
118
+ Tabular data
119
+ ============
120
+ */
178
121
  /**
179
- * Remove the border on images inside links in IE 10.
122
+ * Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
180
123
  */
181
- img {
182
- border-style: none;
124
+ table {
125
+ border-color: currentColor;
183
126
  }
184
-
185
- /* Forms
186
- ========================================================================== */
127
+ /*
128
+ Forms
129
+ =====
130
+ */
187
131
  /**
188
132
  * 1. Change the font styles in all browsers.
189
133
  * 2. Remove the margin in Firefox and Safari.
@@ -206,26 +150,6 @@ textarea {
206
150
 
207
151
  /* 2 */
208
152
  }
209
- /**
210
- * Show the overflow in IE.
211
- * 1. Show the overflow in Edge.
212
- */
213
- button,
214
- input {
215
- overflow: visible;
216
-
217
- /* 1 */
218
- }
219
- /**
220
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
221
- * 1. Remove the inheritance of text transform in Firefox.
222
- */
223
- button,
224
- select {
225
- text-transform: none;
226
-
227
- /* 1 */
228
- }
229
153
  /**
230
154
  * Correct the inability to style clickable types in iOS and Safari.
231
155
  */
@@ -236,86 +160,22 @@ button,
236
160
  -webkit-appearance: button;
237
161
  }
238
162
  /**
239
- * Remove the inner border and padding in Firefox.
240
- */
241
- button::-moz-focus-inner,
242
- [type="button"]::-moz-focus-inner,
243
- [type="reset"]::-moz-focus-inner,
244
- [type="submit"]::-moz-focus-inner {
245
- border-style: none;
246
- padding: 0;
247
- }
248
- /**
249
- * Restore the focus styles unset by the previous rule.
250
- */
251
- button:-moz-focusring,
252
- [type="button"]:-moz-focusring,
253
- [type="reset"]:-moz-focusring,
254
- [type="submit"]:-moz-focusring {
255
- outline: 1px dotted ButtonText;
256
- }
257
- /**
258
- * Correct the padding in Firefox.
259
- */
260
- fieldset {
261
- padding: 0.35em 0.75em 0.625em;
262
- }
263
- /**
264
- * 1. Correct the text wrapping in Edge and IE.
265
- * 2. Correct the color inheritance from `fieldset` elements in IE.
266
- * 3. Remove the padding so developers are not caught out when they zero out
267
- * `fieldset` elements in all browsers.
163
+ * Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
268
164
  */
269
165
  legend {
270
- box-sizing: border-box;
271
-
272
- /* 1 */
273
- color: inherit;
274
-
275
- /* 2 */
276
- display: table;
277
-
278
- /* 1 */
279
- max-width: 100%;
280
-
281
- /* 1 */
282
166
  padding: 0;
283
-
284
- /* 3 */
285
- white-space: normal;
286
-
287
- /* 1 */
288
167
  }
289
168
  /**
290
- * Add the correct vertical alignment in Chrome, Firefox, and Opera.
169
+ * Add the correct vertical alignment in Chrome and Firefox.
291
170
  */
292
171
  progress {
293
172
  vertical-align: baseline;
294
173
  }
295
174
  /**
296
- * Remove the default vertical scrollbar in IE 10+.
297
- */
298
- textarea {
299
- overflow: auto;
300
- }
301
- /**
302
- * 1. Add the correct box sizing in IE 10.
303
- * 2. Remove the padding in IE 10.
175
+ * Correct the cursor style of increment and decrement buttons in Safari.
304
176
  */
305
- [type="checkbox"],
306
- [type="radio"] {
307
- box-sizing: border-box;
308
-
309
- /* 1 */
310
- padding: 0;
311
-
312
- /* 2 */
313
- }
314
- /**
315
- * Correct the cursor style of increment and decrement buttons in Chrome.
316
- */
317
- [type="number"]::-webkit-inner-spin-button,
318
- [type="number"]::-webkit-outer-spin-button {
177
+ ::-webkit-inner-spin-button,
178
+ ::-webkit-outer-spin-button {
319
179
  height: auto;
320
180
  }
321
181
  /**
@@ -333,12 +193,12 @@ textarea {
333
193
  /**
334
194
  * Remove the inner padding in Chrome and Safari on macOS.
335
195
  */
336
- [type="search"]::-webkit-search-decoration {
196
+ ::-webkit-search-decoration {
337
197
  -webkit-appearance: none;
338
198
  }
339
199
  /**
340
200
  * 1. Correct the inability to style clickable types in iOS and Safari.
341
- * 2. Change font properties to `inherit` in Safari.
201
+ * 2. Change font properties to 'inherit' in Safari.
342
202
  */
343
203
  ::-webkit-file-upload-button {
344
204
  -webkit-appearance: button;
@@ -348,37 +208,17 @@ textarea {
348
208
 
349
209
  /* 2 */
350
210
  }
351
-
352
- /* Interactive
353
- ========================================================================== */
354
211
  /*
355
- * Add the correct display in Edge, IE 10+, and Firefox.
356
- */
357
- details {
358
- display: block;
359
- }
212
+ Interactive
213
+ ===========
214
+ */
360
215
  /*
361
- * Add the correct display in all browsers.
216
+ * Add the correct display in Chrome and Safari.
362
217
  */
363
218
  summary {
364
219
  display: list-item;
365
220
  }
366
221
 
367
- /* Misc
368
- ========================================================================== */
369
- /**
370
- * Add the correct display in IE 10+.
371
- */
372
- template {
373
- display: none;
374
- }
375
- /**
376
- * Add the correct display in IE 10.
377
- */
378
- [hidden] {
379
- display: none;
380
- }
381
-
382
222
 
383
223
  /*******************************
384
224
  Site Overrides