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.
- package/.eslintrc.js +6 -23
- package/.github/workflows/ci.yml +9 -9
- package/.github/workflows/depsreview.yml +1 -1
- package/.github/workflows/nightly.yml +7 -5
- package/.github/workflows/release.yml +2 -2
- package/.stylelintrc.js +1 -15
- package/CHANGELOG.md +5289 -2325
- package/README.md +8 -4
- package/changelog-setup.js +32 -10
- package/changelog-template.hbs +256 -251
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +62 -73
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +3 -3
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +101 -161
- package/dist/components/api.min.js +3 -3
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +5 -6
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +3 -3
- package/dist/components/calendar.js +283 -332
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +3 -3
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +58 -79
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +3 -3
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +2 -2
- package/dist/components/dimmer.js +39 -52
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +3 -3
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +21 -35
- package/dist/components/dropdown.js +435 -531
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +3 -3
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +55 -68
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +3 -3
- package/dist/components/emoji.css +3809 -7617
- package/dist/components/emoji.min.css +2 -2
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +149 -168
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +3 -3
- package/dist/components/form.css +3 -5
- package/dist/components/form.js +249 -269
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +3 -3
- package/dist/components/grid.css +2 -2
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +6 -6
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +10 -37
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +284 -12
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +6 -14
- package/dist/components/label.min.css +2 -2
- package/dist/components/list.css +3 -3
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +53 -53
- package/dist/components/loader.min.css +2 -2
- package/dist/components/menu.css +45 -60
- package/dist/components/menu.min.css +2 -2
- package/dist/components/message.css +2 -2
- package/dist/components/message.min.css +2 -2
- package/dist/components/modal.css +5 -5
- package/dist/components/modal.js +161 -170
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +3 -3
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +74 -88
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +3 -3
- package/dist/components/placeholder.css +2 -2
- package/dist/components/placeholder.min.css +2 -2
- package/dist/components/popup.css +19 -73
- package/dist/components/popup.js +105 -138
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +3 -3
- package/dist/components/progress.css +4 -13
- package/dist/components/progress.js +75 -97
- package/dist/components/progress.min.css +2 -2
- package/dist/components/progress.min.js +3 -3
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +49 -61
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +3 -3
- package/dist/components/reset.css +48 -208
- package/dist/components/reset.min.css +2 -2
- package/dist/components/reveal.css +2 -5
- package/dist/components/reveal.min.css +2 -2
- package/dist/components/search.css +2 -3
- package/dist/components/search.js +178 -198
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +3 -3
- package/dist/components/segment.css +6 -6
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +59 -69
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +3 -3
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +81 -101
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +3 -3
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +37 -58
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +3 -3
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +169 -183
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +3 -3
- package/dist/components/state.js +45 -59
- package/dist/components/state.min.js +3 -3
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +4 -4
- package/dist/components/step.min.css +2 -2
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +95 -117
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +3 -3
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +83 -115
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +3 -3
- package/dist/components/table.css +8 -8
- package/dist/components/table.min.css +2 -2
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +64 -74
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +3 -3
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +61 -85
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +3 -3
- package/dist/components/visibility.js +120 -140
- package/dist/components/visibility.min.js +3 -3
- package/dist/semantic.css +4480 -8222
- package/dist/semantic.js +2886 -3485
- package/dist/semantic.min.css +3 -3
- package/dist/semantic.min.js +3 -3
- package/examples/attached.html +1 -1
- package/examples/components/menu.html +1 -1
- package/package.json +8 -5
- package/scripts/nightly-version.js +4 -4
- package/src/definitions/behaviors/api.js +100 -160
- package/src/definitions/behaviors/form.js +248 -268
- package/src/definitions/behaviors/state.js +44 -58
- package/src/definitions/behaviors/visibility.js +119 -139
- package/src/definitions/collections/breadcrumb.less +0 -1
- package/src/definitions/collections/form.less +3 -9
- package/src/definitions/collections/grid.less +1 -2
- package/src/definitions/collections/menu.less +106 -117
- package/src/definitions/collections/message.less +1 -2
- package/src/definitions/collections/table.less +7 -8
- package/src/definitions/elements/button.less +4 -6
- package/src/definitions/elements/container.less +0 -1
- package/src/definitions/elements/divider.less +1 -2
- package/src/definitions/elements/emoji.less +1 -1
- package/src/definitions/elements/flag.less +1 -1
- package/src/definitions/elements/header.less +4 -5
- package/src/definitions/elements/icon.less +10 -37
- package/src/definitions/elements/image.less +0 -1
- package/src/definitions/elements/input.less +4 -7
- package/src/definitions/elements/label.less +5 -14
- package/src/definitions/elements/list.less +2 -3
- package/src/definitions/elements/loader.less +10 -11
- package/src/definitions/elements/placeholder.less +1 -2
- package/src/definitions/elements/rail.less +0 -1
- package/src/definitions/elements/reveal.less +1 -5
- package/src/definitions/elements/segment.less +5 -6
- package/src/definitions/elements/step.less +3 -4
- package/src/definitions/elements/text.less +0 -1
- package/src/definitions/globals/reset.less +0 -1
- package/src/definitions/globals/site.js +36 -57
- package/src/definitions/globals/site.less +0 -1
- package/src/definitions/modules/accordion.js +61 -72
- package/src/definitions/modules/accordion.less +0 -1
- package/src/definitions/modules/calendar.js +282 -331
- package/src/definitions/modules/calendar.less +2 -3
- package/src/definitions/modules/checkbox.js +57 -78
- package/src/definitions/modules/checkbox.less +0 -1
- package/src/definitions/modules/dimmer.js +38 -51
- package/src/definitions/modules/dimmer.less +1 -2
- package/src/definitions/modules/dropdown.js +434 -530
- package/src/definitions/modules/dropdown.less +27 -38
- package/src/definitions/modules/embed.js +54 -67
- package/src/definitions/modules/embed.less +0 -1
- package/src/definitions/modules/flyout.js +148 -167
- package/src/definitions/modules/flyout.less +0 -1
- package/src/definitions/modules/modal.js +160 -169
- package/src/definitions/modules/modal.less +3 -4
- package/src/definitions/modules/nag.js +73 -87
- package/src/definitions/modules/nag.less +0 -1
- package/src/definitions/modules/popup.js +104 -137
- package/src/definitions/modules/popup.less +18 -73
- package/src/definitions/modules/progress.js +74 -96
- package/src/definitions/modules/progress.less +3 -13
- package/src/definitions/modules/rating.js +48 -60
- package/src/definitions/modules/rating.less +0 -1
- package/src/definitions/modules/search.js +177 -197
- package/src/definitions/modules/search.less +2 -4
- package/src/definitions/modules/shape.js +58 -68
- package/src/definitions/modules/shape.less +0 -1
- package/src/definitions/modules/sidebar.js +80 -100
- package/src/definitions/modules/sidebar.less +0 -1
- package/src/definitions/modules/slider.js +168 -182
- package/src/definitions/modules/slider.less +0 -1
- package/src/definitions/modules/sticky.js +94 -116
- package/src/definitions/modules/sticky.less +0 -1
- package/src/definitions/modules/tab.js +82 -114
- package/src/definitions/modules/tab.less +0 -1
- package/src/definitions/modules/toast.js +63 -73
- package/src/definitions/modules/toast.less +0 -1
- package/src/definitions/modules/transition.js +60 -84
- package/src/definitions/modules/transition.less +1 -2
- package/src/definitions/views/ad.less +0 -1
- package/src/definitions/views/card.less +0 -1
- package/src/definitions/views/comment.less +0 -1
- package/src/definitions/views/feed.less +0 -1
- package/src/definitions/views/item.less +0 -1
- package/src/definitions/views/statistic.less +0 -1
- package/src/semantic.less +1 -1
- package/src/themes/amazon/elements/button.overrides +1 -1
- package/src/themes/amazon/elements/button.variables +5 -6
- package/src/themes/amazon/globals/site.variables +2 -3
- package/src/themes/bookish/elements/header.variables +2 -2
- package/src/themes/bootstrap3/elements/button.variables +4 -5
- package/src/themes/chubby/collections/menu.variables +1 -1
- package/src/themes/chubby/elements/button.overrides +4 -4
- package/src/themes/chubby/modules/accordion.overrides +1 -1
- package/src/themes/chubby/views/comment.overrides +2 -2
- package/src/themes/chubby/views/comment.variables +2 -2
- package/src/themes/classic/collections/table.variables +2 -2
- package/src/themes/classic/elements/button.variables +11 -11
- package/src/themes/classic/modules/progress.variables +2 -2
- package/src/themes/classic/views/card.variables +2 -2
- package/src/themes/default/collections/form.variables +2 -3
- package/src/themes/default/collections/menu.variables +28 -28
- package/src/themes/default/collections/message.variables +1 -1
- package/src/themes/default/collections/table.variables +4 -4
- package/src/themes/default/elements/button.variables +9 -10
- package/src/themes/default/elements/divider.variables +1 -1
- package/src/themes/default/elements/icon.variables +2 -2
- package/src/themes/default/elements/image.variables +1 -1
- package/src/themes/default/elements/input.variables +2 -2
- package/src/themes/default/elements/label.variables +4 -4
- package/src/themes/default/elements/list.variables +1 -1
- package/src/themes/default/elements/placeholder.variables +6 -6
- package/src/themes/default/elements/segment.variables +8 -8
- package/src/themes/default/globals/reset.overrides +45 -201
- package/src/themes/default/globals/site.variables +50 -50
- package/src/themes/default/globals/variation.variables +3 -2
- package/src/themes/default/modules/accordion.variables +0 -1
- package/src/themes/default/modules/checkbox.variables +1 -1
- package/src/themes/default/modules/dimmer.variables +12 -12
- package/src/themes/default/modules/dropdown.variables +17 -16
- package/src/themes/default/modules/embed.variables +2 -2
- package/src/themes/default/modules/flyout.variables +3 -3
- package/src/themes/default/modules/modal.variables +14 -14
- package/src/themes/default/modules/nag.variables +1 -1
- package/src/themes/default/modules/rating.variables +1 -1
- package/src/themes/default/modules/search.variables +1 -1
- package/src/themes/default/modules/shape.variables +1 -1
- package/src/themes/default/modules/sidebar.variables +2 -2
- package/src/themes/default/modules/toast.variables +4 -4
- package/src/themes/default/views/card.variables +6 -7
- package/src/themes/default/views/feed.variables +4 -4
- package/src/themes/default/views/item.variables +2 -3
- package/src/themes/flat/collections/form.variables +1 -1
- package/src/themes/flat/globals/site.variables +9 -9
- package/src/themes/github/collections/form.overrides +3 -3
- package/src/themes/github/collections/form.variables +3 -3
- package/src/themes/github/collections/menu.overrides +1 -1
- package/src/themes/github/collections/menu.variables +10 -10
- package/src/themes/github/collections/message.variables +6 -6
- package/src/themes/github/elements/button.variables +17 -17
- package/src/themes/github/elements/input.variables +3 -3
- package/src/themes/github/elements/segment.variables +2 -2
- package/src/themes/github/elements/step.overrides +4 -4
- package/src/themes/github/elements/step.variables +3 -3
- package/src/themes/github/globals/site.variables +2 -2
- package/src/themes/github/modules/dropdown.variables +1 -3
- package/src/themes/gmail/collections/message.variables +2 -2
- package/src/themes/material/collections/menu.variables +1 -1
- package/src/themes/material/elements/button.overrides +4 -4
- package/src/themes/material/elements/button.variables +5 -5
- package/src/themes/material/modules/dropdown.variables +1 -1
- package/src/themes/material/modules/modal.variables +1 -1
- package/src/themes/raised/elements/button.variables +1 -1
- package/src/themes/round/elements/button.variables +12 -12
- package/src/themes/striped/modules/progress.overrides +3 -3
- package/src/themes/timeline/views/feed.variables +2 -2
- package/src/themes/twitter/elements/button.overrides +1 -1
- package/src/themes/twitter/elements/button.variables +4 -5
- package/tasks/admin/components/create.js +12 -15
- package/tasks/admin/components/init.js +11 -12
- package/tasks/admin/components/update.js +19 -20
- package/tasks/admin/distributions/create.js +30 -51
- package/tasks/admin/distributions/init.js +11 -12
- package/tasks/admin/distributions/update.js +18 -19
- package/tasks/admin/register.js +7 -7
- package/tasks/build/assets.js +1 -1
- package/tasks/build/css.js +5 -5
- package/tasks/build/javascript.js +1 -1
- package/tasks/config/admin/github.js +1 -1
- package/tasks/config/admin/templates/css-package.js +1 -1
- package/tasks/config/admin/templates/less-package.js +1 -1
- package/tasks/config/project/config.js +10 -10
- package/tasks/config/project/install.js +12 -12
- package/tasks/config/project/release.js +6 -12
- package/tasks/config/tasks.js +15 -11
- package/tasks/config/user.js +1 -4
- package/tasks/docs/metadata.js +18 -20
- package/tasks/install.js +14 -12
- package/test/meteor/assets.js +4 -4
- package/test/meteor/fonts.js +10 -11
- package/test/modules/module.spec.js +18 -18
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
|
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 (
|
|
23
|
-
|
|
22
|
+
$.fn.rating = function (...args) {
|
|
23
|
+
const $allModules = $(this);
|
|
24
24
|
|
|
25
25
|
let time = Date.now();
|
|
26
26
|
let performance = [];
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
33
|
+
const settings = $.isPlainObject(parameters)
|
|
34
34
|
? $.extend(true, {}, $.fn.rating.settings, parameters)
|
|
35
35
|
: $.extend({}, $.fn.rating.settings);
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
45
|
-
|
|
44
|
+
const eventNamespace = '.' + namespace;
|
|
45
|
+
const moduleNamespace = 'module-' + namespace;
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
const element = this;
|
|
48
48
|
let instance = $(this).data(moduleNamespace);
|
|
49
49
|
|
|
50
|
-
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
227
|
-
rating - 1
|
|
228
|
-
? rating - 1
|
|
229
|
-
: 0
|
|
225
|
+
const ratingIndex = Math.floor(
|
|
226
|
+
Math.max(rating - 1, 0)
|
|
230
227
|
);
|
|
231
|
-
|
|
232
|
-
|
|
228
|
+
const $activeIcon = $icon.eq(ratingIndex);
|
|
229
|
+
const $partialActiveIcon = rating <= 1
|
|
233
230
|
? $activeIcon
|
|
234
231
|
: $activeIcon.next();
|
|
235
|
-
|
|
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(
|
|
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,
|
|
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(
|
|
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,
|
|
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,
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
|
484
|
-
const escape = {
|
|
472
|
+
const escapeMap = {
|
|
485
473
|
'"': '"',
|
|
486
474
|
'&': '&',
|
|
487
475
|
"'": ''',
|
|
@@ -489,12 +477,12 @@
|
|
|
489
477
|
'>': '>',
|
|
490
478
|
};
|
|
491
479
|
|
|
492
|
-
return string.replace(
|
|
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
|
-
|
|
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,11 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* # Fomantic UI - 2.10.0-beta.
|
|
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
|
|
6
|
+
* Copyright 2026 Contributors
|
|
7
7
|
* Released under the MIT license
|
|
8
8
|
* https://opensource.org/licenses/MIT
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
!function(
|
|
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={'"':""","&":"&","'":"'","<":"<",">":">"};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.
|
|
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
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
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.
|
|
140
|
-
* 2. Correct the odd
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
177
|
-
|
|
117
|
+
/*
|
|
118
|
+
Tabular data
|
|
119
|
+
============
|
|
120
|
+
*/
|
|
178
121
|
/**
|
|
179
|
-
*
|
|
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
|
-
|
|
182
|
-
border-
|
|
124
|
+
table {
|
|
125
|
+
border-color: currentColor;
|
|
183
126
|
}
|
|
184
|
-
|
|
185
|
-
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
-
|
|
306
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
display: block;
|
|
359
|
-
}
|
|
212
|
+
Interactive
|
|
213
|
+
===========
|
|
214
|
+
*/
|
|
360
215
|
/*
|
|
361
|
-
* Add the correct display in
|
|
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
|