fomantic-ui 2.10.0-beta.7 → 2.10.0-beta.70
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 -33
- 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 +11 -8
- package/changelog-setup.js +88 -72
- package/changelog-template.hbs +256 -251
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +116 -164
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +190 -303
- package/dist/components/api.min.js +2 -2
- 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 +397 -482
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +2 -2
- 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 +105 -166
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +2 -2
- 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 +75 -121
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +2 -2
- 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 +775 -1161
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +95 -146
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- 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 +242 -336
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +3 -5
- package/dist/components/form.js +425 -554
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- 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 +274 -369
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +109 -153
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- 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 +210 -303
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +4 -13
- package/dist/components/progress.js +128 -185
- package/dist/components/progress.min.css +2 -2
- package/dist/components/progress.min.js +2 -2
- 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 +92 -145
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +2 -2
- 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 +311 -425
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +2 -2
- 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 +173 -249
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +138 -199
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +59 -99
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +267 -364
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +88 -132
- package/dist/components/state.min.js +2 -2
- 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 +163 -228
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +192 -287
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- 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 +118 -155
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +114 -193
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +175 -271
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +4479 -8221
- package/dist/semantic.js +5023 -7182
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/examples/assets/show-examples.js +2 -4
- package/examples/attached.html +1 -1
- package/examples/components/menu.html +1 -1
- package/gulpfile.js +5 -7
- package/package.json +4 -5
- package/scripts/nightly-version.js +11 -14
- package/src/definitions/behaviors/api.js +189 -302
- package/src/definitions/behaviors/form.js +426 -555
- package/src/definitions/behaviors/state.js +87 -131
- package/src/definitions/behaviors/visibility.js +174 -270
- 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 +58 -98
- package/src/definitions/globals/site.less +0 -1
- package/src/definitions/modules/accordion.js +115 -163
- package/src/definitions/modules/accordion.less +0 -1
- package/src/definitions/modules/calendar.js +396 -481
- package/src/definitions/modules/calendar.less +2 -3
- package/src/definitions/modules/checkbox.js +104 -165
- package/src/definitions/modules/checkbox.less +0 -1
- package/src/definitions/modules/dimmer.js +74 -120
- package/src/definitions/modules/dimmer.less +1 -2
- package/src/definitions/modules/dropdown.js +774 -1160
- package/src/definitions/modules/dropdown.less +27 -38
- package/src/definitions/modules/embed.js +94 -145
- package/src/definitions/modules/embed.less +0 -1
- package/src/definitions/modules/flyout.js +241 -335
- package/src/definitions/modules/flyout.less +0 -1
- package/src/definitions/modules/modal.js +273 -368
- package/src/definitions/modules/modal.less +3 -4
- package/src/definitions/modules/nag.js +108 -152
- package/src/definitions/modules/nag.less +0 -1
- package/src/definitions/modules/popup.js +209 -302
- package/src/definitions/modules/popup.less +18 -73
- package/src/definitions/modules/progress.js +127 -184
- package/src/definitions/modules/progress.less +3 -13
- package/src/definitions/modules/rating.js +93 -146
- package/src/definitions/modules/rating.less +0 -1
- package/src/definitions/modules/search.js +312 -426
- package/src/definitions/modules/search.less +2 -4
- package/src/definitions/modules/shape.js +172 -248
- package/src/definitions/modules/shape.less +0 -1
- package/src/definitions/modules/sidebar.js +137 -198
- package/src/definitions/modules/sidebar.less +0 -1
- package/src/definitions/modules/slider.js +266 -363
- package/src/definitions/modules/slider.less +0 -1
- package/src/definitions/modules/sticky.js +162 -227
- package/src/definitions/modules/sticky.less +0 -1
- package/src/definitions/modules/tab.js +191 -286
- package/src/definitions/modules/tab.less +0 -1
- package/src/definitions/modules/toast.js +117 -154
- package/src/definitions/modules/toast.less +0 -1
- package/src/definitions/modules/transition.js +113 -192
- 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 +87 -110
- package/tasks/admin/components/init.js +26 -33
- package/tasks/admin/components/update.js +46 -54
- package/tasks/admin/distributions/create.js +74 -125
- package/tasks/admin/distributions/init.js +27 -34
- package/tasks/admin/distributions/update.js +45 -53
- package/tasks/admin/register.js +11 -15
- package/tasks/build/assets.js +14 -18
- package/tasks/build/css.js +59 -68
- package/tasks/build/javascript.js +46 -54
- package/tasks/build.js +4 -6
- package/tasks/check-install.js +5 -7
- package/tasks/clean.js +2 -4
- package/tasks/collections/admin.js +13 -15
- package/tasks/collections/build.js +6 -8
- package/tasks/collections/docs.js +2 -4
- package/tasks/collections/install.js +2 -4
- package/tasks/collections/rtl.js +2 -4
- package/tasks/collections/various.js +2 -4
- package/tasks/config/admin/github.js +8 -10
- package/tasks/config/admin/templates/css-package.js +1 -3
- package/tasks/config/admin/templates/less-package.js +1 -3
- package/tasks/config/npm/gulpfile.js +4 -6
- package/tasks/config/project/config.js +26 -34
- package/tasks/config/project/install.js +58 -72
- package/tasks/config/project/release.js +7 -15
- package/tasks/config/tasks.js +23 -24
- package/tasks/config/user.js +9 -16
- package/tasks/docs/build.js +26 -31
- package/tasks/docs/metadata.js +35 -43
- package/tasks/docs/serve.js +20 -26
- package/tasks/install.js +77 -102
- package/tasks/rtl/build.js +2 -4
- package/tasks/rtl/watch.js +2 -4
- package/tasks/watch.js +9 -11
- package/test/meteor/assets.js +4 -4
- package/test/meteor/fonts.js +11 -13
- package/test/modules/module.spec.js +25 -27
package/dist/components/nag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
|
2
|
+
* # Fomantic-UI 2.10.0-beta.70+88a499a - Nag
|
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -19,55 +19,50 @@
|
|
|
19
19
|
? window
|
|
20
20
|
: globalThis;
|
|
21
21
|
|
|
22
|
-
$.fn.nag = function (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
$context = win.frameElement ? contextCheck(context, win.parent) : $body;
|
|
41
|
-
}
|
|
22
|
+
$.fn.nag = function (...args) {
|
|
23
|
+
const $allModules = $(this);
|
|
24
|
+
const $body = $('body');
|
|
25
|
+
|
|
26
|
+
let time = Date.now();
|
|
27
|
+
let performance = [];
|
|
28
|
+
|
|
29
|
+
const parameters = args[0];
|
|
30
|
+
const methodInvoked = typeof parameters === 'string';
|
|
31
|
+
const queryArguments = args.slice(1);
|
|
32
|
+
const contextCheck = function (context, win) {
|
|
33
|
+
let $context;
|
|
34
|
+
if ([window, document].includes(context)) {
|
|
35
|
+
$context = $(context);
|
|
36
|
+
} else {
|
|
37
|
+
$context = $(win.document).find(context);
|
|
38
|
+
if ($context.length === 0) {
|
|
39
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : $body;
|
|
42
40
|
}
|
|
41
|
+
}
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
;
|
|
43
|
+
return $context;
|
|
44
|
+
};
|
|
45
|
+
let returnedValue;
|
|
48
46
|
$allModules.each(function () {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
: $.extend({}, $.fn.nag.settings),
|
|
47
|
+
const settings = $.isPlainObject(parameters)
|
|
48
|
+
? $.extend(true, {}, $.fn.nag.settings, parameters)
|
|
49
|
+
: $.extend({}, $.fn.nag.settings);
|
|
53
50
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
const selector = settings.selector;
|
|
52
|
+
const error = settings.error;
|
|
53
|
+
const namespace = settings.namespace;
|
|
57
54
|
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
const eventNamespace = '.' + namespace;
|
|
56
|
+
const moduleNamespace = namespace + '-module';
|
|
60
57
|
|
|
61
|
-
|
|
58
|
+
const $module = $(this);
|
|
62
59
|
|
|
63
|
-
|
|
60
|
+
const $context = settings.context ? contextCheck(settings.context, window) : $body;
|
|
64
61
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
;
|
|
70
|
-
module = {
|
|
62
|
+
const element = this;
|
|
63
|
+
const instance = $module.data(moduleNamespace);
|
|
64
|
+
let storage;
|
|
65
|
+
const module = {
|
|
71
66
|
|
|
72
67
|
initialize: function () {
|
|
73
68
|
module.verbose('Initializing element');
|
|
@@ -77,14 +72,12 @@
|
|
|
77
72
|
storage = module.get.storage();
|
|
78
73
|
$module
|
|
79
74
|
.on('click' + eventNamespace, selector.close, module.dismiss)
|
|
80
|
-
.data(moduleNamespace, module)
|
|
81
|
-
;
|
|
75
|
+
.data(moduleNamespace, module);
|
|
82
76
|
|
|
83
77
|
if (settings.detachable && $module.parent()[0] !== $context[0]) {
|
|
84
78
|
$module
|
|
85
79
|
.detach()
|
|
86
|
-
.prependTo($context)
|
|
87
|
-
;
|
|
80
|
+
.prependTo($context);
|
|
88
81
|
}
|
|
89
82
|
|
|
90
83
|
if (settings.displayTime > 0) {
|
|
@@ -99,8 +92,7 @@
|
|
|
99
92
|
module.verbose('Destroying instance');
|
|
100
93
|
$module
|
|
101
94
|
.removeData(moduleNamespace)
|
|
102
|
-
.off(eventNamespace)
|
|
103
|
-
;
|
|
95
|
+
.off(eventNamespace);
|
|
104
96
|
},
|
|
105
97
|
|
|
106
98
|
show: function () {
|
|
@@ -113,12 +105,10 @@
|
|
|
113
105
|
module.debug('Showing nag', settings.animation.show);
|
|
114
106
|
if (settings.animation.show === 'fade') {
|
|
115
107
|
$module
|
|
116
|
-
.fadeIn(settings.duration, settings.easing, settings.onVisible)
|
|
117
|
-
;
|
|
108
|
+
.fadeIn(settings.duration, settings.easing, settings.onVisible);
|
|
118
109
|
} else {
|
|
119
110
|
$module
|
|
120
|
-
.slideDown(settings.duration, settings.easing, settings.onVisible)
|
|
121
|
-
;
|
|
111
|
+
.slideDown(settings.duration, settings.easing, settings.onVisible);
|
|
122
112
|
}
|
|
123
113
|
}
|
|
124
114
|
},
|
|
@@ -132,12 +122,10 @@
|
|
|
132
122
|
module.debug('Hiding nag', settings.animation.hide);
|
|
133
123
|
if (settings.animation.hide === 'fade') {
|
|
134
124
|
$module
|
|
135
|
-
.fadeOut(settings.duration, settings.easing, settings.onHidden)
|
|
136
|
-
;
|
|
125
|
+
.fadeOut(settings.duration, settings.easing, settings.onHidden);
|
|
137
126
|
} else {
|
|
138
127
|
$module
|
|
139
|
-
.slideUp(settings.duration, settings.easing, settings.onHidden)
|
|
140
|
-
;
|
|
128
|
+
.slideUp(settings.duration, settings.easing, settings.onHidden);
|
|
141
129
|
}
|
|
142
130
|
},
|
|
143
131
|
|
|
@@ -182,65 +170,55 @@
|
|
|
182
170
|
module.error(error.expiresFormat);
|
|
183
171
|
},
|
|
184
172
|
storage: function () {
|
|
185
|
-
if (settings.storageMethod === 'localstorage'
|
|
173
|
+
if (settings.storageMethod === 'localstorage') {
|
|
186
174
|
module.debug('Using local storage');
|
|
187
175
|
|
|
188
176
|
return window.localStorage;
|
|
189
177
|
}
|
|
190
|
-
if (settings.storageMethod === 'sessionstorage'
|
|
178
|
+
if (settings.storageMethod === 'sessionstorage') {
|
|
191
179
|
module.debug('Using session storage');
|
|
192
180
|
|
|
193
181
|
return window.sessionStorage;
|
|
194
182
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
cookieOptions += '; ' + option;
|
|
213
|
-
if (typeof options[option] === 'string') {
|
|
214
|
-
cookieOptions += '=' + options[option].split(';')[0];
|
|
215
|
-
}
|
|
183
|
+
module.debug('Using cookie');
|
|
184
|
+
|
|
185
|
+
return {
|
|
186
|
+
setItem: function (key, value, options) {
|
|
187
|
+
// RFC6265 compliant encoding
|
|
188
|
+
key = encodeURIComponent(key)
|
|
189
|
+
.replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)
|
|
190
|
+
.replace(/[()]/g, escape);
|
|
191
|
+
value = encodeURIComponent(value)
|
|
192
|
+
.replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[B-D])/g, decodeURIComponent);
|
|
193
|
+
|
|
194
|
+
let cookieOptions = '';
|
|
195
|
+
for (const option in options) {
|
|
196
|
+
if (Object.prototype.hasOwnProperty.call(options, option)) {
|
|
197
|
+
cookieOptions += '; ' + option;
|
|
198
|
+
if (typeof options[option] === 'string') {
|
|
199
|
+
cookieOptions += '=' + options[option].split(';')[0];
|
|
216
200
|
}
|
|
217
201
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
return parts[1] || '';
|
|
229
|
-
}
|
|
202
|
+
}
|
|
203
|
+
document.cookie = key + '=' + value + cookieOptions;
|
|
204
|
+
},
|
|
205
|
+
getItem: function (key) {
|
|
206
|
+
const cookies = document.cookie.split('; ');
|
|
207
|
+
for (const c of cookies) {
|
|
208
|
+
const parts = c.split('=');
|
|
209
|
+
const foundKey = parts[0].replace(/(%[\da-f]{2})+/gi, decodeURIComponent);
|
|
210
|
+
if (key === foundKey) {
|
|
211
|
+
return parts[1] || '';
|
|
230
212
|
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
module.error(error.noStorage);
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
removeItem: function (key, options) {
|
|
216
|
+
storage.setItem(key, '', options);
|
|
217
|
+
},
|
|
218
|
+
};
|
|
239
219
|
},
|
|
240
220
|
storageOptions: function () {
|
|
241
|
-
|
|
242
|
-
options = {}
|
|
243
|
-
;
|
|
221
|
+
const options = {};
|
|
244
222
|
if (settings.expires) {
|
|
245
223
|
options.expires = module.get.expirationDate(settings.expires);
|
|
246
224
|
}
|
|
@@ -267,9 +245,7 @@
|
|
|
267
245
|
|
|
268
246
|
storage: {
|
|
269
247
|
set: function (key, value) {
|
|
270
|
-
|
|
271
|
-
options = module.get.storageOptions()
|
|
272
|
-
;
|
|
248
|
+
const options = module.get.storageOptions();
|
|
273
249
|
if (storage === window.localStorage && options.expires) {
|
|
274
250
|
module.debug('Storing expiration value in localStorage', key, options.expires);
|
|
275
251
|
storage.setItem(key + settings.expirationKey, options.expires);
|
|
@@ -277,17 +253,15 @@
|
|
|
277
253
|
module.debug('Value stored', key, value);
|
|
278
254
|
try {
|
|
279
255
|
storage.setItem(key, value, options);
|
|
280
|
-
} catch (
|
|
281
|
-
module.error(error.setItem,
|
|
256
|
+
} catch (error_) {
|
|
257
|
+
module.error(error.setItem, error_);
|
|
282
258
|
}
|
|
283
259
|
},
|
|
284
260
|
get: function (key) {
|
|
285
|
-
|
|
286
|
-
storedValue
|
|
287
|
-
;
|
|
261
|
+
let storedValue;
|
|
288
262
|
storedValue = storage.getItem(key);
|
|
289
263
|
if (storage === window.localStorage) {
|
|
290
|
-
|
|
264
|
+
const expiration = storage.getItem(key + settings.expirationKey);
|
|
291
265
|
if (expiration !== null && expiration !== undefined && new Date(expiration) < new Date()) {
|
|
292
266
|
module.debug('Value in localStorage has expired. Deleting key', key);
|
|
293
267
|
module.storage.remove(key);
|
|
@@ -301,9 +275,7 @@
|
|
|
301
275
|
return storedValue;
|
|
302
276
|
},
|
|
303
277
|
remove: function (key) {
|
|
304
|
-
|
|
305
|
-
options = module.get.storageOptions()
|
|
306
|
-
;
|
|
278
|
+
const options = module.get.storageOptions();
|
|
307
279
|
options.expires = module.get.expirationDate(-1);
|
|
308
280
|
if (storage === window.localStorage) {
|
|
309
281
|
storage.removeItem(key + settings.expirationKey);
|
|
@@ -335,39 +307,37 @@
|
|
|
335
307
|
return module[name];
|
|
336
308
|
}
|
|
337
309
|
},
|
|
338
|
-
debug: function () {
|
|
310
|
+
debug: function (...args) {
|
|
339
311
|
if (!settings.silent && settings.debug) {
|
|
340
312
|
if (settings.performance) {
|
|
341
|
-
module.performance.log(
|
|
313
|
+
module.performance.log(args);
|
|
342
314
|
} else {
|
|
343
315
|
module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
|
|
344
|
-
module.debug.apply(console,
|
|
316
|
+
module.debug.apply(console, args);
|
|
345
317
|
}
|
|
346
318
|
}
|
|
347
319
|
},
|
|
348
|
-
verbose: function () {
|
|
320
|
+
verbose: function (...args) {
|
|
349
321
|
if (!settings.silent && settings.verbose && settings.debug) {
|
|
350
322
|
if (settings.performance) {
|
|
351
|
-
module.performance.log(
|
|
323
|
+
module.performance.log(args);
|
|
352
324
|
} else {
|
|
353
325
|
module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
|
|
354
|
-
module.verbose.apply(console,
|
|
326
|
+
module.verbose.apply(console, args);
|
|
355
327
|
}
|
|
356
328
|
}
|
|
357
329
|
},
|
|
358
|
-
error: function () {
|
|
330
|
+
error: function (...args) {
|
|
359
331
|
if (!settings.silent) {
|
|
360
332
|
module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
|
|
361
|
-
module.error.apply(console,
|
|
333
|
+
module.error.apply(console, args);
|
|
362
334
|
}
|
|
363
335
|
},
|
|
364
336
|
performance: {
|
|
365
337
|
log: function (message) {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
previousTime
|
|
370
|
-
;
|
|
338
|
+
let currentTime;
|
|
339
|
+
let executionTime;
|
|
340
|
+
let previousTime;
|
|
371
341
|
if (settings.performance) {
|
|
372
342
|
currentTime = Date.now();
|
|
373
343
|
previousTime = time || currentTime;
|
|
@@ -375,7 +345,7 @@
|
|
|
375
345
|
time = currentTime;
|
|
376
346
|
performance.push({
|
|
377
347
|
Name: message[0],
|
|
378
|
-
Arguments:
|
|
348
|
+
Arguments: message.slice(1),
|
|
379
349
|
Element: element,
|
|
380
350
|
'Execution Time': executionTime,
|
|
381
351
|
});
|
|
@@ -386,10 +356,8 @@
|
|
|
386
356
|
}, 500);
|
|
387
357
|
},
|
|
388
358
|
display: function () {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
totalTime = 0
|
|
392
|
-
;
|
|
359
|
+
let title = settings.name + ':';
|
|
360
|
+
let totalTime = 0;
|
|
393
361
|
time = false;
|
|
394
362
|
clearTimeout(module.performance.timer);
|
|
395
363
|
$.each(performance, function (index, data) {
|
|
@@ -398,35 +366,24 @@
|
|
|
398
366
|
title += ' ' + totalTime + 'ms';
|
|
399
367
|
if (performance.length > 0) {
|
|
400
368
|
console.groupCollapsed(title);
|
|
401
|
-
|
|
402
|
-
console.table(performance);
|
|
403
|
-
} else {
|
|
404
|
-
$.each(performance, function (index, data) {
|
|
405
|
-
console.log(data.Name + ': ' + data['Execution Time'] + 'ms');
|
|
406
|
-
});
|
|
407
|
-
}
|
|
369
|
+
console.table(performance);
|
|
408
370
|
console.groupEnd();
|
|
409
371
|
}
|
|
410
372
|
performance = [];
|
|
411
373
|
},
|
|
412
374
|
},
|
|
413
|
-
invoke: function (query, passedArguments, context) {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
response
|
|
419
|
-
;
|
|
420
|
-
passedArguments = passedArguments || queryArguments;
|
|
421
|
-
context = context || element;
|
|
375
|
+
invoke: function (query, passedArguments = queryArguments, context = element) {
|
|
376
|
+
let object = instance;
|
|
377
|
+
let maxDepth;
|
|
378
|
+
let found;
|
|
379
|
+
let response;
|
|
422
380
|
if (typeof query === 'string' && object !== undefined) {
|
|
423
381
|
query = query.split(/[ .]/);
|
|
424
382
|
maxDepth = query.length - 1;
|
|
425
383
|
$.each(query, function (depth, value) {
|
|
426
|
-
|
|
384
|
+
const camelCaseValue = depth !== maxDepth
|
|
427
385
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
|
428
|
-
: query
|
|
429
|
-
;
|
|
386
|
+
: query;
|
|
430
387
|
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
|
431
388
|
object = object[camelCaseValue];
|
|
432
389
|
} else if (object[camelCaseValue] !== undefined) {
|
|
@@ -467,7 +424,7 @@
|
|
|
467
424
|
if (instance === undefined) {
|
|
468
425
|
module.initialize();
|
|
469
426
|
}
|
|
470
|
-
module.invoke(
|
|
427
|
+
module.invoke(parameters);
|
|
471
428
|
} else {
|
|
472
429
|
if (instance !== undefined) {
|
|
473
430
|
instance.invoke('destroy');
|
|
@@ -525,7 +482,6 @@
|
|
|
525
482
|
expirationKey: 'ExpirationDate',
|
|
526
483
|
|
|
527
484
|
error: {
|
|
528
|
-
noStorage: 'Unsupported storage method',
|
|
529
485
|
method: 'The method you called is not defined.',
|
|
530
486
|
setItem: 'Unexpected error while setting value',
|
|
531
487
|
expiresFormat: '"expires" must be a number of days or a Date Object',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* # Fomantic UI - 2.10.0-beta.
|
|
2
|
+
* # Fomantic UI - 2.10.0-beta.70+88a499a
|
|
3
3
|
* https://github.com/fomantic/Fomantic-UI
|
|
4
4
|
* https://fomantic-ui.com/
|
|
5
5
|
*
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* https://opensource.org/licenses/MIT
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
!function(w,
|
|
11
|
+
!function(x,w,D){"use strict";w=void 0!==w&&w.Math===Math?w:globalThis,x.fn.nag=function(...e){const n=x(this),g=x("body");let p=Date.now(),m=[];const f=e[0],h="string"==typeof f,b=e.slice(1),v=function(e,n){let t;return[w,D].includes(e)?t=x(e):0===(t=x(n.document).find(e)).length&&(t=n.frameElement?v(e,n.parent):g),t};let y;return n.each(function(){const o=x.isPlainObject(f)?x.extend(!0,{},x.fn.nag.settings,f):x.extend({},x.fn.nag.settings),e=o.selector,c=o.error;var n=o.namespace;const t="."+n,i=n+"-module",a=x(this),r=o.context?v(o.context,w):g,l=this,d=a.data(i);let s;const u={initialize:function(){u.verbose("Initializing element"),"string"!=typeof o.value&&(o.value=JSON.stringify(o.value)),s=u.get.storage(),a.on("click"+t,e.close,u.dismiss).data(i,u),o.detachable&&a.parent()[0]!==r[0]&&a.detach().prependTo(r),0<o.displayTime&&setTimeout(function(){u.hide()},o.displayTime),u.show()},destroy:function(){u.verbose("Destroying instance"),a.removeData(i).off(t)},show:function(){if(u.should.show()&&!a.is(":visible")){if(!1===o.onShow.call(l))return u.debug("onShow callback returned false, cancelling nag animation"),!1;u.debug("Showing nag",o.animation.show),"fade"===o.animation.show?a.fadeIn(o.duration,o.easing,o.onVisible):a.slideDown(o.duration,o.easing,o.onVisible)}},hide:function(){if(!1===o.onHide.call(l))return u.debug("onHide callback returned false, cancelling nag animation"),!1;u.debug("Hiding nag",o.animation.hide),"fade"===o.animation.hide?a.fadeOut(o.duration,o.easing,o.onHidden):a.slideUp(o.duration,o.easing,o.onHidden)},dismiss:function(e){!1!==u.hide()&&o.storageMethod&&(u.debug("Dismissing nag",o.storageMethod,o.key,o.value,o.expires),u.storage.set(o.key,o.value)),e&&(e.stopImmediatePropagation(),e.preventDefault())},should:{show:function(){return o.persist?(u.debug("Persistent nag is set, can show nag"),!0):u.storage.get(o.key)!=o.value.toString()?(u.debug("Stored value is not set, can show nag",u.storage.get(o.key)),!0):(u.debug("Stored value is set, cannot show nag",u.storage.get(o.key)),!1)}},get:{expirationDate:function(e){if((e="number"==typeof e?new Date(Date.now()+864e5*e):e)instanceof Date&&e.getTime())return e.toUTCString();u.error(c.expiresFormat)},storage:function(){return"localstorage"===o.storageMethod?(u.debug("Using local storage"),w.localStorage):"sessionstorage"===o.storageMethod?(u.debug("Using session storage"),w.sessionStorage):(u.debug("Using cookie"),{setItem:function(e,n,t){e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),n=encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[B-D])/g,decodeURIComponent);let o="";for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o+="; "+i,"string"==typeof t[i]&&(o+="="+t[i].split(";")[0]));D.cookie=e+"="+n+o},getItem:function(e){for(const n of D.cookie.split("; ")){const t=n.split("=");if(e===t[0].replace(/(%[\da-f]{2})+/gi,decodeURIComponent))return t[1]||""}},removeItem:function(e,n){s.setItem(e,"",n)}})},storageOptions:function(){const e={};return o.expires&&(e.expires=u.get.expirationDate(o.expires)),o.domain&&(e.domain=o.domain),o.path&&(e.path=o.path),o.secure&&(e.secure=o.secure),o.samesite&&(e.samesite=o.samesite),e}},clear:function(){u.storage.remove(o.key)},storage:{set:function(e,n){var t=u.get.storageOptions();s===w.localStorage&&t.expires&&(u.debug("Storing expiration value in localStorage",e,t.expires),s.setItem(e+o.expirationKey,t.expires)),u.debug("Value stored",e,n);try{s.setItem(e,n,t)}catch(e){u.error(c.setItem,e)}},get:function(e){let n;var t;return n=s.getItem(e),s===w.localStorage&&null!=(t=s.getItem(e+o.expirationKey))&&new Date(t)<new Date&&(u.debug("Value in localStorage has expired. Deleting key",e),u.storage.remove(e),n=null),n="undefined"!==n&&"null"!==n&&void 0!==n&&null!==n?n:void 0},remove:function(e){const n=u.get.storageOptions();n.expires=u.get.expirationDate(-1),s===w.localStorage&&s.removeItem(e+o.expirationKey),s.removeItem(e,n)}},setting:function(e,n){if(u.debug("Changing setting",e,n),x.isPlainObject(e))x.extend(!0,o,e);else{if(void 0===n)return o[e];x.isPlainObject(o[e])?x.extend(!0,o[e],n):o[e]=n}},internal:function(e,n){if(x.isPlainObject(e))x.extend(!0,u,e);else{if(void 0===n)return u[e];u[e]=n}},debug:function(...e){!o.silent&&o.debug&&(o.performance?u.performance.log(e):(u.debug=Function.prototype.bind.call(console.info,console,o.name+":"),u.debug.apply(console,e)))},verbose:function(...e){!o.silent&&o.verbose&&o.debug&&(o.performance?u.performance.log(e):(u.verbose=Function.prototype.bind.call(console.info,console,o.name+":"),u.verbose.apply(console,e)))},error:function(...e){o.silent||(u.error=Function.prototype.bind.call(console.error,console,o.name+":"),u.error.apply(console,e))},performance:{log:function(e){var n,t;o.performance&&(t=(n=Date.now())-(p||n),p=n,m.push({Name:e[0],Arguments:e.slice(1),Element:l,"Execution Time":t})),clearTimeout(u.performance.timer),u.performance.timer=setTimeout(function(){u.performance.display()},500)},display:function(){var e=o.name+":";let t=0;p=!1,clearTimeout(u.performance.timer),x.each(m,function(e,n){t+=n["Execution Time"]}),e+=" "+t+"ms",0<m.length&&(console.groupCollapsed(e),console.table(m),console.groupEnd()),m=[]}},invoke:function(o,e=b,n=l){let i=d,a,r,t;var s;return"string"==typeof o&&void 0!==i&&(o=o.split(/[ .]/),a=o.length-1,x.each(o,function(e,n){var t=e!==a?n+o[e+1].charAt(0).toUpperCase()+o[e+1].slice(1):o;if(x.isPlainObject(i[t])&&e!==a)i=i[t];else{if(void 0!==i[t])return r=i[t],!1;{if(!x.isPlainObject(i[n])||e===a)return void 0!==i[n]?r=i[n]:u.error(c.method,o),!1;i=i[n]}}})),"function"==typeof(s=r)&&"number"!=typeof s.nodeType?t=r.apply(n,e):void 0!==r&&(t=r),Array.isArray(y)?y.push(t):void 0!==y?y=[y,t]:void 0!==t&&(y=t),r}};h?(void 0===d&&u.initialize(),u.invoke(f)):(void 0!==d&&d.invoke("destroy"),u.initialize())}),void 0!==y?y:this},x.fn.nag.settings={name:"Nag",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"Nag",persist:!1,displayTime:0,animation:{show:"slide",hide:"slide"},context:!1,detachable:!1,expires:30,domain:!1,path:"/",secure:!1,samesite:!1,storageMethod:"cookie",key:"nag",value:"dismiss",expirationKey:"ExpirationDate",error:{method:"The method you called is not defined.",setItem:"Unexpected error while setting value",expiresFormat:'"expires" must be a number of days or a Date Object'},className:{bottom:"bottom",fixed:"fixed"},selector:{close:"> .close.icon"},duration:500,easing:"easeOutQuad",onShow:function(){},onVisible:function(){},onHide:function(){},onHidden:function(){}},x.extend(x.easing,{easeOutQuad:function(e){return 1-(1-e)*(1-e)}})}(jQuery,window,document);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
|
2
|
+
* # Fomantic-UI 2.10.0-beta.70+88a499a - Placeholder
|
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/* Image */
|
|
59
|
-
.ui.placeholder .image:not(.header
|
|
59
|
+
.ui.placeholder .image:not(.header, .ui, .icon) {
|
|
60
60
|
height: 100px;
|
|
61
61
|
}
|
|
62
62
|
.ui.placeholder .square.image:not(.header) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
|
2
|
+
* # Fomantic-UI 2.10.0-beta.70+88a499a - Placeholder
|
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
|
4
4
|
*
|
|
5
5
|
*
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://opensource.org/licenses/MIT
|
|
8
8
|
*
|
|
9
|
-
*/.ui.placeholder{position:static;overflow:hidden;animation:placeholderShimmer 2s linear;animation-iteration-count:infinite;background-color:#fff;background-image:linear-gradient(to right,rgba(0,0,0,.08) 0,rgba(0,0,0,.15) 15%,rgba(0,0,0,.08) 30%);background-size:1200px 100%;max-width:30rem}@keyframes placeholderShimmer{0%{background-position:-1200px 0}100%{background-position:1200px 0}}.ui.placeholder+.ui.placeholder{margin-top:2rem}.ui.placeholder+.ui.placeholder{animation-delay:.15s}.ui.placeholder+.ui.placeholder+.ui.placeholder{animation-delay:.3s}.ui.placeholder+.ui.placeholder+.ui.placeholder+.ui.placeholder{animation-delay:.45s}.ui.placeholder+.ui.placeholder+.ui.placeholder+.ui.placeholder+.ui.placeholder{animation-delay:.6s}.ui.placeholder,.ui.placeholder .image.header::after,.ui.placeholder .line,.ui.placeholder .line::after,.ui.placeholder>::before{background-color:#fff}.ui.placeholder.hidden{display:none}.ui.placeholder .image:not(.header
|
|
9
|
+
*/.ui.placeholder{position:static;overflow:hidden;animation:placeholderShimmer 2s linear;animation-iteration-count:infinite;background-color:#fff;background-image:linear-gradient(to right,rgba(0,0,0,.08) 0,rgba(0,0,0,.15) 15%,rgba(0,0,0,.08) 30%);background-size:1200px 100%;max-width:30rem}@keyframes placeholderShimmer{0%{background-position:-1200px 0}100%{background-position:1200px 0}}.ui.placeholder+.ui.placeholder{margin-top:2rem}.ui.placeholder+.ui.placeholder{animation-delay:.15s}.ui.placeholder+.ui.placeholder+.ui.placeholder{animation-delay:.3s}.ui.placeholder+.ui.placeholder+.ui.placeholder+.ui.placeholder{animation-delay:.45s}.ui.placeholder+.ui.placeholder+.ui.placeholder+.ui.placeholder+.ui.placeholder{animation-delay:.6s}.ui.placeholder,.ui.placeholder .image.header::after,.ui.placeholder .line,.ui.placeholder .line::after,.ui.placeholder>::before{background-color:#fff}.ui.placeholder.hidden{display:none}.ui.placeholder .image:not(.header,.ui,.icon){height:100px}.ui.placeholder .square.image:not(.header){height:0;overflow:hidden;padding-top:100%}.ui.placeholder .rectangular.image:not(.header){height:0;overflow:hidden;padding-top:75%}.ui.placeholder .line{position:relative;height:.85714286em}.ui.placeholder .line::after,.ui.placeholder .line::before{top:100%;position:absolute;content:"";background-color:inherit}.ui.placeholder .line::before{left:0}.ui.placeholder .line::after{right:0}.ui.placeholder .line{margin-bottom:.5em}.ui.placeholder .line::after,.ui.placeholder .line::before{height:.5em}.ui.placeholder .line:not(:first-child){margin-top:.5em}.ui.placeholder .line:nth-child(1)::after{width:0}.ui.placeholder .line:nth-child(2)::after{width:50%}.ui.placeholder .line:nth-child(3)::after{width:10%}.ui.placeholder .line:nth-child(4)::after{width:35%}.ui.placeholder .line:nth-child(5)::after{width:65%}.ui.placeholder .header{position:relative;overflow:hidden}.ui.placeholder .header .line{margin-bottom:.64285714em}.ui.placeholder .header .line::after,.ui.placeholder .header .line::before{height:.64285714em}.ui.placeholder .header .line:not(:first-child){margin-top:.64285714em}.ui.placeholder .header .line::after{width:20%}.ui.placeholder .header .line:nth-child(2)::after{width:60%}.ui.placeholder .image.header .line{margin-left:3em}.ui.placeholder .image.header .line::before{width:.71428571rem}.ui.placeholder .image.header::after{display:block;height:.85714286em;content:"";margin-left:3em}.ui.placeholder .header .line:first-child,.ui.placeholder .image .line:first-child,.ui.placeholder .paragraph .line:first-child{height:.01px}.ui.placeholder .header:not(:first-child)::before,.ui.placeholder .image:not(:first-child)::before,.ui.placeholder .paragraph:not(:first-child)::before{height:1.42857143em;content:"";display:block}.ui.inverted.placeholder{background-image:linear-gradient(to right,rgba(255,255,255,.08) 0,rgba(255,255,255,.14) 15%,rgba(255,255,255,.08) 30%)}.ui.inverted.placeholder,.ui.inverted.placeholder .image.header::after,.ui.inverted.placeholder .line,.ui.inverted.placeholder .line::after,.ui.inverted.placeholder>::before{background-color:#1b1c1d}.ui.placeholder .full.line.line.line::after{width:0}.ui.placeholder .very.long.line.line.line::after{width:10%}.ui.placeholder .long.line.line.line::after{width:35%}.ui.placeholder .medium.line.line.line::after{width:50%}.ui.placeholder .short.line.line.line::after{width:65%}.ui.placeholder .very.short.line.line.line::after{width:80%}.ui.fluid.placeholder{max-width:none}
|