fomantic-ui 2.10.0-beta.1 → 2.10.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.all-contributorsrc +9 -0
- package/.eslintrc.js +0 -10
- package/CONTRIBUTING.md +4 -1
- package/CONTRIBUTORS.md +1 -0
- package/FAQ.md +7 -2
- package/README.md +5 -9
- package/ROADMAP.md +4 -4
- package/SECURITY.md +8 -7
- package/changelog-setup.js +64 -70
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +103 -142
- 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 +157 -210
- 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 +1 -2
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +1 -2
- package/dist/components/calendar.js +314 -352
- 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 -2
- package/dist/components/checkbox.js +85 -135
- package/dist/components/checkbox.min.css +2 -2
- 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 +2 -4
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +1 -11
- package/dist/components/dimmer.js +61 -94
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +1 -2
- package/dist/components/divider.min.css +2 -2
- package/dist/components/dropdown.css +30 -51
- package/dist/components/dropdown.js +736 -1055
- 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 +85 -114
- 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 +2 -3
- package/dist/components/flyout.js +226 -355
- package/dist/components/flyout.min.css +2 -2
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +5 -95
- package/dist/components/form.js +335 -444
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +2 -58
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +4 -4
- 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 +1 -536
- 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 +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -3
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +1 -9
- package/dist/components/menu.min.css +2 -2
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +5 -9
- package/dist/components/modal.js +261 -384
- 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 +68 -98
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -2
- package/dist/components/popup.js +198 -271
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +109 -144
- package/dist/components/progress.min.css +1 -1
- 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 +91 -123
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +2 -2
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +2 -9
- package/dist/components/search.js +277 -379
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +2 -7
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -2
- package/dist/components/shape.js +158 -224
- package/dist/components/shape.min.css +2 -2
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +2 -3
- package/dist/components/sidebar.js +124 -206
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +9 -25
- package/dist/components/site.js +38 -57
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +246 -329
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +70 -100
- 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 +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +135 -180
- 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 +176 -244
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +3 -37
- 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 -3
- package/dist/components/toast.js +109 -147
- 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 +91 -146
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +146 -224
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +3906 -8720
- package/dist/semantic.js +4397 -6155
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/examples/assets/show-examples.js +2 -4
- package/gulpfile.js +5 -7
- package/package.json +3 -5
- package/scripts/nightly-version.js +7 -10
- package/src/README.md +3 -3
- package/src/definitions/behaviors/api.js +156 -209
- package/src/definitions/behaviors/form.js +334 -443
- package/src/definitions/behaviors/state.js +69 -99
- package/src/definitions/behaviors/visibility.js +145 -223
- package/src/definitions/collections/form.less +1 -13
- package/src/definitions/collections/grid.less +1 -61
- package/src/definitions/collections/menu.less +0 -11
- package/src/definitions/collections/table.less +1 -35
- package/src/definitions/elements/input.less +1 -61
- package/src/definitions/elements/segment.less +0 -6
- package/src/definitions/globals/site.js +37 -56
- package/src/definitions/globals/site.less +2 -18
- package/src/definitions/modules/accordion.js +102 -141
- package/src/definitions/modules/calendar.js +313 -351
- package/src/definitions/modules/checkbox.js +84 -134
- package/src/definitions/modules/dimmer.js +60 -93
- package/src/definitions/modules/dimmer.less +0 -9
- package/src/definitions/modules/dropdown.js +735 -1054
- package/src/definitions/modules/dropdown.less +31 -47
- package/src/definitions/modules/embed.js +84 -113
- package/src/definitions/modules/flyout.js +225 -354
- package/src/definitions/modules/modal.js +260 -383
- package/src/definitions/modules/modal.less +1 -1
- package/src/definitions/modules/nag.js +67 -97
- package/src/definitions/modules/popup.js +197 -270
- package/src/definitions/modules/progress.js +108 -143
- package/src/definitions/modules/rating.js +90 -122
- package/src/definitions/modules/search.js +276 -378
- package/src/definitions/modules/search.less +0 -3
- package/src/definitions/modules/shape.js +157 -223
- package/src/definitions/modules/sidebar.js +123 -205
- package/src/definitions/modules/slider.js +245 -328
- package/src/definitions/modules/slider.less +1 -1
- package/src/definitions/modules/sticky.js +134 -179
- package/src/definitions/modules/tab.js +175 -243
- package/src/definitions/modules/toast.js +108 -146
- package/src/definitions/modules/toast.less +1 -1
- package/src/definitions/modules/transition.js +90 -145
- package/src/theme.less +0 -13
- package/src/themes/basic/elements/icon.variables +1 -1
- package/src/themes/default/collections/grid.variables +0 -30
- package/src/themes/default/collections/table.variables +1 -5
- package/src/themes/default/elements/icon.variables +3 -3
- package/src/themes/default/globals/site.variables +8 -15
- package/src/themes/default/globals/variation.variables +1 -2
- package/src/themes/default/modules/dropdown.variables +1 -0
- package/src/themes/default/modules/slider.variables +1 -1
- package/src/themes/github/elements/icon.variables +1 -1
- package/src/themes/material/elements/icon.variables +1 -1
- package/tasks/README.md +1 -1
- package/tasks/admin/components/create.js +89 -122
- package/tasks/admin/components/init.js +34 -65
- package/tasks/admin/components/update.js +50 -61
- package/tasks/admin/distributions/create.js +71 -111
- package/tasks/admin/distributions/init.js +32 -63
- package/tasks/admin/distributions/update.js +49 -57
- package/tasks/admin/publish.js +1 -1
- package/tasks/admin/register.js +14 -19
- package/tasks/admin/release.js +2 -2
- package/tasks/build/assets.js +14 -18
- package/tasks/build/css.js +59 -68
- package/tasks/build/javascript.js +48 -56
- package/tasks/build.js +4 -6
- package/tasks/check-install.js +5 -8
- package/tasks/clean.js +5 -7
- package/tasks/collections/admin.js +14 -16
- package/tasks/collections/build.js +6 -8
- package/tasks/collections/docs.js +4 -6
- 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 +9 -19
- package/tasks/config/admin/templates/README.md +2 -2
- package/tasks/config/admin/templates/bower.json +2 -4
- package/tasks/config/admin/templates/composer.json +1 -1
- package/tasks/config/admin/templates/css-package.js +1 -4
- package/tasks/config/admin/templates/less-package.js +1 -3
- package/tasks/config/defaults.js +0 -1
- package/tasks/config/npm/gulpfile.js +4 -6
- package/tasks/config/project/config.js +27 -35
- package/tasks/config/project/install.js +64 -82
- package/tasks/config/project/release.js +7 -9
- package/tasks/config/tasks.js +10 -21
- package/tasks/config/user.js +14 -20
- package/tasks/docs/build.js +26 -31
- package/tasks/docs/metadata.js +30 -39
- package/tasks/docs/serve.js +23 -27
- package/tasks/install.js +94 -128
- package/tasks/rtl/build.js +2 -4
- package/tasks/rtl/watch.js +3 -5
- package/tasks/watch.js +13 -13
- package/test/meteor/fonts.js +1 -2
- package/test/modules/module.spec.js +16 -18
- package/types/fomantic-ui-calendar.d.ts +1 -1
- package/types/fomantic-ui-dropdown.d.ts +45 -1
- package/types/fomantic-ui-embed.d.ts +1 -1
- package/types/fomantic-ui-flyout.d.ts +1 -1
- package/types/fomantic-ui-form.d.ts +0 -7
- package/types/fomantic-ui-modal.d.ts +1 -1
- package/types/fomantic-ui-search.d.ts +12 -6
- package/types/fomantic-ui-toast.d.ts +1 -1
- package/src/themes/basic/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/src/themes/default/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/src/themes/github/assets/fonts/octicons.woff +0 -0
- package/src/themes/material/assets/fonts/icons.woff +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.10+3ca268e - Container
|
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.container{display:block;max-width:100%}@media only screen and (max-width:767.98px){.ui.ui.ui.container:not(.fluid){width:auto;margin-left:1em;margin-right:1em}.ui.ui.ui.grid.container{width:auto}.ui.ui.ui.relaxed.grid.container{width:auto}.ui.ui.ui.very.relaxed.grid.container{width:auto}}@media only screen and (min-width:768px) and (max-width:991.98px){.ui.ui.ui.container:not(.fluid){width:723px;margin-left:auto;margin-right:auto}.ui.ui.ui.grid.container{width:calc(723px + 2rem)}.ui.ui.ui.relaxed.grid.container{width:calc(723px + 3rem)}.ui.ui.ui.very.relaxed.grid.container{width:calc(723px + 5rem)}}@media only screen and (min-width:992px) and (max-width:1199.98px){.ui.ui.ui.container:not(.fluid){width:933px;margin-left:auto;margin-right:auto}.ui.ui.ui.grid.container{width:calc(933px + 2rem)}.ui.ui.ui.relaxed.grid.container{width:calc(933px + 3rem)}.ui.ui.ui.very.relaxed.grid.container{width:calc(933px + 5rem)}}@media only screen and (min-width:1200px){.ui.ui.ui.container:not(.fluid){width:1127px;margin-left:auto;margin-right:auto}.ui.ui.ui.grid.container{width:calc(1127px + 2rem)}.ui.ui.ui.relaxed.grid.container{width:calc(1127px + 3rem)}.ui.ui.ui.very.relaxed.grid.container{width:calc(1127px + 5rem)}}.ui.text.container{font-family:Lato,system-ui,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";max-width:700px;line-height:1.5;font-size:1.14285714rem}@media only screen and (min-width:768px) and (max-width:991.98px){.ui.ui.ui.wide.container{width:867.6px}}@media only screen and (min-width:992px) and (max-width:1199.98px){.ui.ui.ui.wide.container{width:1119.6px}}@media only screen and (min-width:1200px){.ui.ui.ui.wide.container{width:1352.4px}}.ui.fluid.container{width:100%}.ui[class*="left aligned"].container{text-align:left}.ui[class*="center aligned"].container{text-align:center}.ui[class*="right aligned"].container{text-align:right}.ui.justified.container{text-align:justify;-webkit-hyphens:auto
|
9
|
+
*/.ui.container{display:block;max-width:100%}@media only screen and (max-width:767.98px){.ui.ui.ui.container:not(.fluid){width:auto;margin-left:1em;margin-right:1em}.ui.ui.ui.grid.container{width:auto}.ui.ui.ui.relaxed.grid.container{width:auto}.ui.ui.ui.very.relaxed.grid.container{width:auto}}@media only screen and (min-width:768px) and (max-width:991.98px){.ui.ui.ui.container:not(.fluid){width:723px;margin-left:auto;margin-right:auto}.ui.ui.ui.grid.container{width:calc(723px + 2rem)}.ui.ui.ui.relaxed.grid.container{width:calc(723px + 3rem)}.ui.ui.ui.very.relaxed.grid.container{width:calc(723px + 5rem)}}@media only screen and (min-width:992px) and (max-width:1199.98px){.ui.ui.ui.container:not(.fluid){width:933px;margin-left:auto;margin-right:auto}.ui.ui.ui.grid.container{width:calc(933px + 2rem)}.ui.ui.ui.relaxed.grid.container{width:calc(933px + 3rem)}.ui.ui.ui.very.relaxed.grid.container{width:calc(933px + 5rem)}}@media only screen and (min-width:1200px){.ui.ui.ui.container:not(.fluid){width:1127px;margin-left:auto;margin-right:auto}.ui.ui.ui.grid.container{width:calc(1127px + 2rem)}.ui.ui.ui.relaxed.grid.container{width:calc(1127px + 3rem)}.ui.ui.ui.very.relaxed.grid.container{width:calc(1127px + 5rem)}}.ui.text.container{font-family:Lato,system-ui,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";max-width:700px;line-height:1.5;font-size:1.14285714rem}@media only screen and (min-width:768px) and (max-width:991.98px){.ui.ui.ui.wide.container{width:867.6px}}@media only screen and (min-width:992px) and (max-width:1199.98px){.ui.ui.ui.wide.container{width:1119.6px}}@media only screen and (min-width:1200px){.ui.ui.ui.wide.container{width:1352.4px}}.ui.fluid.container{width:100%}.ui[class*="left aligned"].container{text-align:left}.ui[class*="center aligned"].container{text-align:center}.ui[class*="right aligned"].container{text-align:right}.ui.justified.container{text-align:justify;-webkit-hyphens:auto;hyphens:auto}.ui.scrolling.container{overflow:auto;overscroll-behavior:none}@media only screen and (max-width:767.98px){.ui.scrolling.container.short{max-height:11.25em}.ui.scrolling.container.short.resizable{height:11.25em}.ui.scrolling.container[class*="very short"]{max-height:7.5em}.ui.scrolling.container[class*="very short"].resizable{height:7.5em}.ui.scrolling.container{max-height:15em}.ui.scrolling.container.long{max-height:30em}.ui.scrolling.container.long.resizable{height:30em}.ui.scrolling.container[class*="very long"]{max-height:45em}.ui.scrolling.container[class*="very long"].resizable{height:45em}}@media only screen and (min-width:768px){.ui.scrolling.container.short{max-height:13.5em}.ui.scrolling.container.short.resizable{height:13.5em}.ui.scrolling.container[class*="very short"]{max-height:9em}.ui.scrolling.container[class*="very short"].resizable{height:9em}.ui.scrolling.container{max-height:18em}.ui.scrolling.container.resizable{height:18em}.ui.scrolling.container.long{max-height:36em}.ui.scrolling.container.long.resizable{height:36em}.ui.scrolling.container[class*="very long"]{max-height:54em}.ui.scrolling.container[class*="very long"].resizable{height:54em}}@media only screen and (min-width:992px){.ui.scrolling.container.short{max-height:18em}.ui.scrolling.container.short.resizable{height:18em}.ui.scrolling.container[class*="very short"]{max-height:12em}.ui.scrolling.container[class*="very short"].resizable{height:12em}.ui.scrolling.container{max-height:24em}.ui.scrolling.container.resizable{height:24em}.ui.scrolling.container.long{max-height:48em}.ui.scrolling.container.long.resizable{height:48em}.ui.scrolling.container[class*="very long"]{max-height:72em}.ui.scrolling.container[class*="very long"].resizable{height:72em}}@media only screen and (min-width:1920px){.ui.scrolling.container.short{max-height:22.5em}.ui.scrolling.container.short.resizable{height:22.5em}.ui.scrolling.container[class*="very short"]{max-height:15em}.ui.scrolling.container[class*="very short"].resizable{height:15em}.ui.scrolling.container{max-height:30em}.ui.scrolling.container.resizable{height:30em}.ui.scrolling.container.long{max-height:60em}.ui.scrolling.container.long.resizable{height:60em}.ui.scrolling.container[class*="very long"]{max-height:90em}.ui.scrolling.container[class*="very long"].resizable{height:90em}}.ui.resizable.scrolling.container{resize:vertical;max-height:none}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.10+3ca268e - Dimmer
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -36,7 +36,6 @@
|
|
36
36
|
align-items: center;
|
37
37
|
justify-content: center;
|
38
38
|
-webkit-user-select: none;
|
39
|
-
-ms-user-select: none;
|
40
39
|
user-select: none;
|
41
40
|
will-change: opacity;
|
42
41
|
z-index: 1000;
|
@@ -45,7 +44,6 @@
|
|
45
44
|
/* Dimmer Content */
|
46
45
|
.ui.dimmer > .content {
|
47
46
|
-webkit-user-select: text;
|
48
|
-
-ms-user-select: text;
|
49
47
|
user-select: text;
|
50
48
|
color: #fff;
|
51
49
|
}
|
@@ -68,14 +66,6 @@
|
|
68
66
|
.ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb:hover {
|
69
67
|
background: rgba(255, 255, 255, 0.35);
|
70
68
|
}
|
71
|
-
.ui.dimmer:not(.inverted) {
|
72
|
-
|
73
|
-
/* IE11 */
|
74
|
-
scrollbar-face-color: #656565;
|
75
|
-
scrollbar-shadow-color: #656565;
|
76
|
-
scrollbar-track-color: #323232;
|
77
|
-
scrollbar-arrow-color: #323232;
|
78
|
-
}
|
79
69
|
@supports (-moz-appearance: none) {
|
80
70
|
.ui.dimmer:not(.inverted) {
|
81
71
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.10+3ca268e - Dimmer
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -20,45 +20,41 @@
|
|
20
20
|
: globalThis;
|
21
21
|
|
22
22
|
$.fn.dimmer = function (parameters) {
|
23
|
-
|
24
|
-
$allModules = $(this),
|
23
|
+
let $allModules = $(this);
|
25
24
|
|
26
|
-
|
27
|
-
|
25
|
+
let time = Date.now();
|
26
|
+
let performance = [];
|
28
27
|
|
29
|
-
|
30
|
-
|
31
|
-
|
28
|
+
let query = arguments[0];
|
29
|
+
let methodInvoked = typeof query === 'string';
|
30
|
+
let queryArguments = [].slice.call(arguments, 1);
|
32
31
|
|
33
|
-
|
34
|
-
;
|
32
|
+
let returnedValue;
|
35
33
|
|
36
34
|
$allModules.each(function () {
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
: $.extend({}, $.fn.dimmer.settings),
|
35
|
+
let settings = $.isPlainObject(parameters)
|
36
|
+
? $.extend(true, {}, $.fn.dimmer.settings, parameters)
|
37
|
+
: $.extend({}, $.fn.dimmer.settings);
|
41
38
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
39
|
+
let selector = settings.selector;
|
40
|
+
let namespace = settings.namespace;
|
41
|
+
let className = settings.className;
|
42
|
+
let error = settings.error;
|
46
43
|
|
47
|
-
|
48
|
-
|
44
|
+
let eventNamespace = '.' + namespace;
|
45
|
+
let moduleNamespace = 'module-' + namespace;
|
49
46
|
|
50
|
-
|
51
|
-
|
52
|
-
|
47
|
+
let clickEvent = 'ontouchstart' in document.documentElement
|
48
|
+
? 'touchstart'
|
49
|
+
: 'click';
|
53
50
|
|
54
|
-
|
55
|
-
|
56
|
-
|
51
|
+
let $module = $(this);
|
52
|
+
let $dimmer;
|
53
|
+
let $dimmable;
|
57
54
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
;
|
55
|
+
let element = this;
|
56
|
+
let instance = $module.data(moduleNamespace);
|
57
|
+
let module;
|
62
58
|
|
63
59
|
module = {
|
64
60
|
|
@@ -90,8 +86,7 @@
|
|
90
86
|
module.verbose('Storing instance of module', module);
|
91
87
|
instance = module;
|
92
88
|
$module
|
93
|
-
.data(moduleNamespace, instance)
|
94
|
-
;
|
89
|
+
.data(moduleNamespace, instance);
|
95
90
|
},
|
96
91
|
|
97
92
|
destroy: function () {
|
@@ -99,8 +94,7 @@
|
|
99
94
|
module.unbind.events();
|
100
95
|
module.remove.variation();
|
101
96
|
$dimmable
|
102
|
-
.off(eventNamespace)
|
103
|
-
;
|
97
|
+
.off(eventNamespace);
|
104
98
|
},
|
105
99
|
|
106
100
|
bind: {
|
@@ -108,12 +102,10 @@
|
|
108
102
|
if (settings.on === 'hover') {
|
109
103
|
$dimmable
|
110
104
|
.on('mouseenter' + eventNamespace, module.show)
|
111
|
-
.on('mouseleave' + eventNamespace, module.hide)
|
112
|
-
;
|
105
|
+
.on('mouseleave' + eventNamespace, module.hide);
|
113
106
|
} else if (settings.on === 'click') {
|
114
107
|
$dimmable
|
115
|
-
.on(clickEvent + eventNamespace, module.toggle)
|
116
|
-
;
|
108
|
+
.on(clickEvent + eventNamespace, module.toggle);
|
117
109
|
}
|
118
110
|
if (module.is.page()) {
|
119
111
|
module.debug('Setting as a page dimmer', $dimmable);
|
@@ -123,8 +115,7 @@
|
|
123
115
|
if (module.is.closable()) {
|
124
116
|
module.verbose('Adding dimmer close event', $dimmer);
|
125
117
|
$dimmable
|
126
|
-
.on(clickEvent + eventNamespace, selector.dimmer, module.event.click)
|
127
|
-
;
|
118
|
+
.on(clickEvent + eventNamespace, selector.dimmer, module.event.click);
|
128
119
|
}
|
129
120
|
},
|
130
121
|
},
|
@@ -132,11 +123,9 @@
|
|
132
123
|
unbind: {
|
133
124
|
events: function () {
|
134
125
|
$module
|
135
|
-
.removeData(moduleNamespace)
|
136
|
-
;
|
126
|
+
.removeData(moduleNamespace);
|
137
127
|
$dimmable
|
138
|
-
.off(eventNamespace)
|
139
|
-
;
|
128
|
+
.off(eventNamespace);
|
140
129
|
},
|
141
130
|
},
|
142
131
|
|
@@ -151,9 +140,7 @@
|
|
151
140
|
},
|
152
141
|
|
153
142
|
addContent: function (element) {
|
154
|
-
|
155
|
-
$content = $(element)
|
156
|
-
;
|
143
|
+
let $content = $(element);
|
157
144
|
module.debug('Add content to dimmer', $content);
|
158
145
|
if ($content.parent()[0] !== $dimmer[0]) {
|
159
146
|
$content.detach().appendTo($dimmer);
|
@@ -161,16 +148,13 @@
|
|
161
148
|
},
|
162
149
|
|
163
150
|
create: function () {
|
164
|
-
|
165
|
-
$element = $(settings.template.dimmer(settings))
|
166
|
-
;
|
151
|
+
let $element = $(settings.template.dimmer(settings));
|
167
152
|
if (settings.dimmerName) {
|
168
153
|
module.debug('Creating named dimmer', settings.dimmerName);
|
169
154
|
$element.addClass(settings.dimmerName);
|
170
155
|
}
|
171
156
|
$element
|
172
|
-
.appendTo($dimmable)
|
173
|
-
;
|
157
|
+
.appendTo($dimmable);
|
174
158
|
|
175
159
|
return $element;
|
176
160
|
},
|
@@ -259,8 +243,7 @@
|
|
259
243
|
settings.onVisible.call($dimmer);
|
260
244
|
callback();
|
261
245
|
},
|
262
|
-
})
|
263
|
-
;
|
246
|
+
});
|
264
247
|
} else {
|
265
248
|
module.verbose('Showing dimmer animation with javascript');
|
266
249
|
module.set.dimmed();
|
@@ -279,8 +262,7 @@
|
|
279
262
|
module.set.active();
|
280
263
|
settings.onVisible.call($dimmer);
|
281
264
|
callback();
|
282
|
-
})
|
283
|
-
;
|
265
|
+
});
|
284
266
|
}
|
285
267
|
},
|
286
268
|
hide: function (callback) {
|
@@ -308,8 +290,7 @@
|
|
308
290
|
settings.onHidden.call($dimmer);
|
309
291
|
callback();
|
310
292
|
},
|
311
|
-
})
|
312
|
-
;
|
293
|
+
});
|
313
294
|
} else {
|
314
295
|
module.verbose('Hiding dimmer with javascript');
|
315
296
|
$dimmer
|
@@ -320,8 +301,7 @@
|
|
320
301
|
$dimmer.removeAttr('style');
|
321
302
|
settings.onHidden.call($dimmer);
|
322
303
|
callback();
|
323
|
-
})
|
324
|
-
;
|
304
|
+
});
|
325
305
|
}
|
326
306
|
},
|
327
307
|
},
|
@@ -394,11 +374,9 @@
|
|
394
374
|
|
395
375
|
set: {
|
396
376
|
opacity: function (opacity) {
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
isRGB = colorArray && colorArray.length >= 3
|
401
|
-
;
|
377
|
+
let color = $dimmer.css('background-color');
|
378
|
+
let colorArray = color.split(',');
|
379
|
+
let isRGB = colorArray && colorArray.length >= 3;
|
402
380
|
opacity = settings.opacity === 0 ? 0 : settings.opacity || opacity;
|
403
381
|
if (isRGB) {
|
404
382
|
colorArray[2] = colorArray[2].replace(')', '');
|
@@ -439,8 +417,7 @@
|
|
439
417
|
remove: {
|
440
418
|
active: function () {
|
441
419
|
$dimmer
|
442
|
-
.removeClass(className.active)
|
443
|
-
;
|
420
|
+
.removeClass(className.active);
|
444
421
|
},
|
445
422
|
legacy: function () {
|
446
423
|
$dimmer.removeClass(className.legacy);
|
@@ -510,11 +487,9 @@
|
|
510
487
|
},
|
511
488
|
performance: {
|
512
489
|
log: function (message) {
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
previousTime
|
517
|
-
;
|
490
|
+
let currentTime;
|
491
|
+
let executionTime;
|
492
|
+
let previousTime;
|
518
493
|
if (settings.performance) {
|
519
494
|
currentTime = Date.now();
|
520
495
|
previousTime = time || currentTime;
|
@@ -533,10 +508,8 @@
|
|
533
508
|
}, 500);
|
534
509
|
},
|
535
510
|
display: function () {
|
536
|
-
|
537
|
-
|
538
|
-
totalTime = 0
|
539
|
-
;
|
511
|
+
let title = settings.name + ':';
|
512
|
+
let totalTime = 0;
|
540
513
|
time = false;
|
541
514
|
clearTimeout(module.performance.timer);
|
542
515
|
$.each(performance, function (index, data) {
|
@@ -561,22 +534,19 @@
|
|
561
534
|
},
|
562
535
|
},
|
563
536
|
invoke: function (query, passedArguments, context) {
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
response
|
569
|
-
;
|
537
|
+
let object = instance;
|
538
|
+
let maxDepth;
|
539
|
+
let found;
|
540
|
+
let response;
|
570
541
|
passedArguments = passedArguments || queryArguments;
|
571
542
|
context = context || element;
|
572
543
|
if (typeof query === 'string' && object !== undefined) {
|
573
544
|
query = query.split(/[ .]/);
|
574
545
|
maxDepth = query.length - 1;
|
575
546
|
$.each(query, function (depth, value) {
|
576
|
-
|
547
|
+
let camelCaseValue = depth !== maxDepth
|
577
548
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
578
|
-
: query
|
579
|
-
;
|
549
|
+
: query;
|
580
550
|
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
581
551
|
object = object[camelCaseValue];
|
582
552
|
} else if (object[camelCaseValue] !== undefined) {
|
@@ -643,7 +613,7 @@
|
|
643
613
|
verbose: false,
|
644
614
|
performance: true,
|
645
615
|
|
646
|
-
// whether should
|
616
|
+
// whether flex layout should be used
|
647
617
|
useFlex: true,
|
648
618
|
|
649
619
|
// name to distinguish between multiple dimmers in context
|
@@ -655,10 +625,10 @@
|
|
655
625
|
// whether to bind close events
|
656
626
|
closable: 'auto',
|
657
627
|
|
658
|
-
// whether to use
|
628
|
+
// whether to use CSS animations
|
659
629
|
useCSS: true,
|
660
630
|
|
661
|
-
//
|
631
|
+
// CSS animation to use
|
662
632
|
transition: 'fade',
|
663
633
|
|
664
634
|
// event to bind to
|
@@ -708,15 +678,12 @@
|
|
708
678
|
|
709
679
|
template: {
|
710
680
|
dimmer: function (settings) {
|
711
|
-
|
712
|
-
|
713
|
-
l
|
714
|
-
;
|
681
|
+
let d = $('<div/>').addClass('ui dimmer');
|
682
|
+
let l;
|
715
683
|
if (settings.displayLoader) {
|
716
684
|
l = $('<div/>')
|
717
685
|
.addClass(settings.className.loader)
|
718
|
-
.addClass(settings.loaderVariation)
|
719
|
-
;
|
686
|
+
.addClass(settings.loaderVariation);
|
720
687
|
if (settings.loaderText) {
|
721
688
|
l.text(settings.loaderText);
|
722
689
|
l.addClass('text');
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.10+3ca268e - Dimmer
|
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
|
-
*/.dimmable:not(body){position:relative}.ui.dimmer{display:none;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;vertical-align:middle;padding:1em;background:rgba(0,0,0,.85);opacity:0;line-height:1;animation-fill-mode:both;animation-duration:.5s;transition:all .5s linear;flex-direction:column;align-items:center;justify-content:center;-webkit-user-select:none
|
9
|
+
*/.dimmable:not(body){position:relative}.ui.dimmer{display:none;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;vertical-align:middle;padding:1em;background:rgba(0,0,0,.85);opacity:0;line-height:1;animation-fill-mode:both;animation-duration:.5s;transition:all .5s linear;flex-direction:column;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;will-change:opacity;z-index:1000}.ui.dimmer>.content{-webkit-user-select:text;user-select:text;color:#fff}.ui.segment>.ui.dimmer:not(.page){border-radius:inherit}.ui.dimmer:not(.inverted)::-webkit-scrollbar-track{background:rgba(255,255,255,.1)}.ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25)}.ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb:window-inactive{background:rgba(255,255,255,.15)}.ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.35)}@supports (-moz-appearance:none){.ui.dimmer:not(.inverted){scrollbar-color:rgba(255,255,255,.25) rgba(255,255,255,.1)}}.animating.dimmable:not(body),.dimmed.dimmable:not(body){overflow:hidden}.dimmed.dimmable>.ui.animating.dimmer,.dimmed.dimmable>.ui.visible.dimmer,.ui.active.dimmer{display:flex;opacity:1}.ui.disabled.dimmer{width:0!important;height:0!important}.dimmed.dimmable>.ui.animating.legacy.dimmer,.dimmed.dimmable>.ui.visible.legacy.dimmer,.ui.active.legacy.dimmer{display:block}.ui[class*="top aligned"].dimmer{justify-content:flex-start}.ui[class*="bottom aligned"].dimmer{justify-content:flex-end}.ui.page.dimmer{position:fixed;transform-style:"";perspective:2000px;transform-origin:center center}.ui.page.dimmer.modals{-moz-perspective:none}body.animating.in.dimmable,body.dimmed.dimmable{overflow:hidden}body.dimmable>.dimmer{position:fixed}@supports (not (-webkit-backdrop-filter:none)) and (not ((-webkit-backdrop-filter:none) or (backdrop-filter:none))){.blurring.dimmable>:not(.dimmer){filter:initial;transition:.8s filter ease}.blurring.dimmed.dimmable>:not(.dimmer):not(.popup){filter:blur(5px) grayscale(.7)}}.blurring.dimmable>.dimmer{background:rgba(0,0,0,.6);-webkit-backdrop-filter:blur(5px) grayscale(.7);backdrop-filter:blur(5px) grayscale(.7)}.blurring.dimmable>.inverted.dimmer{background:rgba(255,255,255,.6)}.ui.dimmer>.top.aligned.content>*{vertical-align:top}.ui.dimmer>.bottom.aligned.content>*{vertical-align:bottom}.medium.medium.medium.medium.medium.dimmer{background:rgba(0,0,0,.65)}.light.light.light.light.light.dimmer{background:rgba(0,0,0,.45)}.very.very.very.very.light.dimmer{background:rgba(0,0,0,.25)}.ui.inverted.dimmer{background:rgba(255,255,255,.85)}.ui.inverted.dimmer>.content,.ui.inverted.dimmer>.content>*{color:#000}.medium.medium.medium.medium.medium.inverted.dimmer{background:rgba(255,255,255,.65)}.light.light.light.light.light.inverted.dimmer{background:rgba(255,255,255,.45)}.very.very.very.very.light.inverted.dimmer{background:rgba(255,255,255,.25)}.ui.simple.dimmer{display:block;overflow:hidden;opacity:0;width:0;height:0;z-index:-100;background:rgba(0,0,0,0)}.dimmed.dimmable>.ui.simple.dimmer{overflow:visible;opacity:1;width:100%;height:100%;background:rgba(0,0,0,.85);z-index:1}.ui.simple.inverted.dimmer{background:rgba(255,255,255,0)}.dimmed.dimmable>.ui.simple.inverted.dimmer{background:rgba(255,255,255,.85)}.ui[class*="bottom dimmer"],.ui[class*="center dimmer"],.ui[class*="top dimmer"]{height:auto}.ui[class*="bottom dimmer"]{top:auto;bottom:0}.ui[class*="center dimmer"]{top:50%;transform:translateY(-50%)}.ui.segment>.ui.ui[class*="top dimmer"]{border-bottom-left-radius:0;border-bottom-right-radius:0}.ui.segment>.ui.ui[class*="center dimmer"]{border-radius:0}.ui.segment>.ui.ui[class*="bottom dimmer"]{border-top-left-radius:0;border-top-right-radius:0}.ui[class*="center dimmer"].transition[class*="fade up"].in{animation-name:fadeInUpCenter}.ui[class*="center dimmer"].transition[class*="fade down"].in{animation-name:fadeInDownCenter}.ui[class*="center dimmer"].transition[class*="fade up"].out{animation-name:fadeOutUpCenter}.ui[class*="center dimmer"].transition[class*="fade down"].out{animation-name:fadeOutDownCenter}.ui[class*="center dimmer"].bounce.transition{animation-name:bounceCenter}@keyframes fadeInUpCenter{0%{opacity:0;transform:translateY(-40%)}100%{opacity:1;transform:translateY(-50%)}}@keyframes fadeInDownCenter{0%{opacity:0;transform:translateY(-60%)}100%{opacity:1;transform:translateY(-50%)}}@keyframes fadeOutUpCenter{0%{opacity:1;transform:translateY(-50%)}100%{opacity:0;transform:translateY(-45%)}}@keyframes fadeOutDownCenter{0%{opacity:1;transform:translateY(-50%)}100%{opacity:0;transform:translateY(-55%)}}@keyframes bounceCenter{0%,100%,20%,50%,80%{transform:translateY(-50%)}40%{transform:translateY(calc(-50% - 30px))}60%{transform:translateY(calc(-50% - 15px))}}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.10.0-beta.
|
2
|
+
* # Fomantic UI - 2.10.0-beta.10+3ca268e
|
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(x,e,T){"use strict";function S(e){return"function"==typeof e&&"number"!=typeof e.nodeType}e=void 0!==e&&e.Math===Math?e:globalThis,x.fn.dimmer=function(g){
|
11
|
+
!function(x,e,T){"use strict";function S(e){return"function"==typeof e&&"number"!=typeof e.nodeType}e=void 0!==e&&e.Math===Math?e:globalThis,x.fn.dimmer=function(g){let b=x(this),v=Date.now(),p=[],h=g,y="string"==typeof h,C=[].slice.call(arguments,1),w;return b.each(function(){let o=x.isPlainObject(g)?x.extend(!0,{},x.fn.dimmer.settings,g):x.extend({},x.fn.dimmer.settings),i=o.selector;var e=o.namespace;let n=o.className,d=o.error,t="."+e,a="module-"+e,r="ontouchstart"in T.documentElement?"touchstart":"click",s=x(this),m,l,c=this,u=s.data(a),f;(f={preinitialize:function(){m=f.is.dimmer()?(l=s.parent(),s):(l=s,f.has.dimmer()?o.dimmerName?l.find(i.dimmer).filter("."+o.dimmerName):l.find(i.dimmer):f.create())},initialize:function(){f.debug("Initializing dimmer",o),f.bind.events(),f.set.dimmable(),f.instantiate()},instantiate:function(){f.verbose("Storing instance of module",f),u=f,s.data(a,u)},destroy:function(){f.verbose("Destroying previous module",m),f.unbind.events(),f.remove.variation(),l.off(t)},bind:{events:function(){"hover"===o.on?l.on("mouseenter"+t,f.show).on("mouseleave"+t,f.hide):"click"===o.on&&l.on(r+t,f.toggle),f.is.page()&&(f.debug("Setting as a page dimmer",l),f.set.pageDimmer()),f.is.closable()&&(f.verbose("Adding dimmer close event",m),l.on(r+t,i.dimmer,f.event.click))}},unbind:{events:function(){s.removeData(a),l.off(t)}},event:{click:function(e){f.verbose("Determining if event occurred on dimmer",e),0!==m.find(e.target).length&&!x(e.target).is(i.content)||(f.hide(),e.stopImmediatePropagation())}},addContent:function(e){let i=x(e);f.debug("Add content to dimmer",i),i.parent()[0]!==m[0]&&i.detach().appendTo(m)},create:function(){let e=x(o.template.dimmer(o));return o.dimmerName&&(f.debug("Creating named dimmer",o.dimmerName),e.addClass(o.dimmerName)),e.appendTo(l),e},show:function(e){e=S(e)?e:function(){},f.is.dimmed()&&!f.is.animating()||!f.is.enabled()?f.debug("Dimmer is already shown or disabled"):!1===o.onShow.call(c)?f.verbose("Show callback returned false cancelling dimmer show"):(f.debug("Showing dimmer",m,o),f.set.variation(),f.animate.show(e),o.onChange.call(c))},hide:function(e){e=S(e)?e:function(){},f.is.dimmed()||f.is.animating()?!1===o.onHide.call(c)?f.verbose("Hide callback returned false cancelling dimmer hide"):(f.debug("Hiding dimmer",m),f.animate.hide(e),o.onChange.call(c)):f.debug("Dimmer is not visible")},toggle:function(){f.verbose("Toggling dimmer visibility",m),f.is.dimmed()?f.is.closable()&&f.hide():f.show()},animate:{show:function(e){e=S(e)?e:function(){},o.useCSS&&void 0!==x.fn.transition?(o.useFlex?(f.debug("Using flex dimmer"),f.remove.legacy()):(f.debug("Using legacy non-flex dimmer"),f.set.legacy()),"auto"!==o.opacity&&f.set.opacity(),m.transition({debug:o.debug,verbose:o.verbose,silent:o.silent,displayType:o.useFlex?"flex":"block",animation:(o.transition.showMethod||o.transition)+" in",queue:!1,duration:f.get.duration(),useFailSafe:!0,onStart:function(){f.set.dimmed()},onComplete:function(){f.set.active(),o.onVisible.call(m),e()}})):(f.verbose("Showing dimmer animation with javascript"),f.set.dimmed(),"auto"===o.opacity&&(o.opacity=.8),m.stop().css({opacity:0,width:"100%",height:"100%"}).fadeTo(f.get.duration(),o.opacity,function(){m.removeAttr("style"),f.set.active(),o.onVisible.call(m),e()}))},hide:function(e){e=S(e)?e:function(){},o.useCSS&&void 0!==x.fn.transition?(f.verbose("Hiding dimmer with css"),m.transition({debug:o.debug,verbose:o.verbose,silent:o.silent,displayType:o.useFlex?"flex":"block",animation:(o.transition.hideMethod||o.transition)+" out",queue:!1,duration:f.get.duration(),useFailSafe:!0,onComplete:function(){f.remove.dimmed(),f.remove.variation(),f.remove.active(),o.onHidden.call(m),e()}})):(f.verbose("Hiding dimmer with javascript"),m.stop().fadeOut(f.get.duration(),function(){f.remove.dimmed(),f.remove.active(),m.removeAttr("style"),o.onHidden.call(m),e()}))}},get:{dimmer:function(){return m},duration:function(){return f.is.active()?o.transition.hideDuration||o.duration.hide||o.duration:o.transition.showDuration||o.duration.show||o.duration}},has:{dimmer:function(){return o.dimmerName?0<s.find(i.dimmer).filter("."+o.dimmerName).length:0<s.find(i.dimmer).length}},is:{active:function(){return m.hasClass(n.active)},animating:function(){return m.is(":animated")||m.hasClass(n.animating)},closable:function(){return"auto"===o.closable?"hover"!==o.on:o.closable},dimmer:function(){return s.hasClass(n.dimmer)},dimmable:function(){return s.hasClass(n.dimmable)},dimmed:function(){return l.hasClass(n.dimmed)},disabled:function(){return l.hasClass(n.disabled)},enabled:function(){return!f.is.disabled()},page:function(){return l.is("body")},pageDimmer:function(){return m.hasClass(n.pageDimmer)}},can:{show:function(){return!m.hasClass(n.disabled)}},set:{opacity:function(e){let i=m.css("background-color"),n=i.split(",");var t=n&&3<=n.length;e=0===o.opacity?0:o.opacity||e,i=t?(n[2]=n[2].replace(")",""),n[3]=e+")",n.join(",")):"rgba(0, 0, 0, "+e+")",f.debug("Setting opacity to",e),m.css("background-color",i)},legacy:function(){m.addClass(n.legacy)},active:function(){m.addClass(n.active)},dimmable:function(){l.addClass(n.dimmable)},dimmed:function(){l.addClass(n.dimmed)},pageDimmer:function(){m.addClass(n.pageDimmer)},disabled:function(){m.addClass(n.disabled)},variation:function(e){(e=e||o.variation)&&m.addClass(e)}},remove:{active:function(){m.removeClass(n.active)},legacy:function(){m.removeClass(n.legacy)},dimmed:function(){l.removeClass(n.dimmed)},disabled:function(){m.removeClass(n.disabled)},variation:function(e){(e=e||o.variation)&&m.removeClass(e)}},setting:function(e,i){if(f.debug("Changing setting",e,i),x.isPlainObject(e))x.extend(!0,o,e);else{if(void 0===i)return o[e];x.isPlainObject(o[e])?x.extend(!0,o[e],i):o[e]=i}},internal:function(e,i){if(x.isPlainObject(e))x.extend(!0,f,e);else{if(void 0===i)return f[e];f[e]=i}},debug:function(){!o.silent&&o.debug&&(o.performance?f.performance.log(arguments):(f.debug=Function.prototype.bind.call(console.info,console,o.name+":"),f.debug.apply(console,arguments)))},verbose:function(){!o.silent&&o.verbose&&o.debug&&(o.performance?f.performance.log(arguments):(f.verbose=Function.prototype.bind.call(console.info,console,o.name+":"),f.verbose.apply(console,arguments)))},error:function(){o.silent||(f.error=Function.prototype.bind.call(console.error,console,o.name+":"),f.error.apply(console,arguments))},performance:{log:function(e){var i,n;o.performance&&(n=(i=Date.now())-(v||i),v=i,p.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:c,"Execution Time":n})),clearTimeout(f.performance.timer),f.performance.timer=setTimeout(function(){f.performance.display()},500)},display:function(){let e=o.name+":",n=0;v=!1,clearTimeout(f.performance.timer),x.each(p,function(e,i){n+=i["Execution Time"]}),e+=" "+n+"ms",1<b.length&&(e+=" ("+b.length+")"),0<p.length&&(console.groupCollapsed(e),console.table?console.table(p):x.each(p,function(e,i){console.log(i.Name+": "+i["Execution Time"]+"ms")}),console.groupEnd()),p=[]}},invoke:function(t,e,i){let o=u,a,r,n;return e=e||C,i=i||c,"string"==typeof t&&void 0!==o&&(t=t.split(/[ .]/),a=t.length-1,x.each(t,function(e,i){var n=e!==a?i+t[e+1].charAt(0).toUpperCase()+t[e+1].slice(1):t;if(x.isPlainObject(o[n])&&e!==a)o=o[n];else{if(void 0!==o[n])return r=o[n],!1;{if(!x.isPlainObject(o[i])||e===a)return void 0!==o[i]?r=o[i]:f.error(d.method,t),!1;o=o[i]}}})),S(r)?n=r.apply(i,e):void 0!==r&&(n=r),Array.isArray(w)?w.push(n):void 0!==w?w=[w,n]:void 0!==n&&(w=n),r}}).preinitialize(),y?(void 0===u&&f.initialize(),f.invoke(h)):(void 0!==u&&u.invoke("destroy"),f.initialize())}),void 0!==w?w:this},x.fn.dimmer.settings={name:"Dimmer",namespace:"dimmer",silent:!1,debug:!1,verbose:!1,performance:!0,useFlex:!0,dimmerName:!1,variation:!1,closable:"auto",useCSS:!0,transition:"fade",on:!1,opacity:"auto",duration:{show:500,hide:500},displayLoader:!1,loaderText:!1,loaderVariation:"",onChange:function(){},onShow:function(){},onHide:function(){},onVisible:function(){},onHidden:function(){},error:{method:"The method you called is not defined."},className:{active:"active",animating:"animating",dimmable:"dimmable",dimmed:"dimmed",dimmer:"dimmer",disabled:"disabled",hide:"hide",legacy:"legacy",pageDimmer:"page",show:"show",loader:"ui loader"},selector:{dimmer:"> .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(e){let i=x("<div/>").addClass("ui dimmer"),n;return e.displayLoader&&(n=x("<div/>").addClass(e.className.loader).addClass(e.loaderVariation),e.loaderText&&(n.text(e.loaderText),n.addClass("text")),i.append(n)),i}}}}(jQuery,window,document);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.10+3ca268e - Divider
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -22,7 +22,6 @@
|
|
22
22
|
letter-spacing: 0.05em;
|
23
23
|
color: rgba(0, 0, 0, 0.85);
|
24
24
|
-webkit-user-select: none;
|
25
|
-
-ms-user-select: none;
|
26
25
|
user-select: none;
|
27
26
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
28
27
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.10+3ca268e - Divider
|
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.divider{margin:1rem 0;line-height:1;height:0;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:rgba(0,0,0,.85);-webkit-user-select:none
|
9
|
+
*/.ui.divider{margin:1rem 0;line-height:1;height:0;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:rgba(0,0,0,.85);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ui.divider:not(.vertical):not(.horizontal){border-top:1px solid rgba(34,36,38,.15);border-bottom:1px solid rgba(255,255,255,.1)}.ui.grid>.column+.divider:not(.vertical),.ui.grid>.row>.column+.divider:not(.vertical){left:auto}.ui.horizontal.divider{display:table;white-space:nowrap;height:auto;margin:"";line-height:1;text-align:center}.ui.horizontal.divider::after,.ui.horizontal.divider::before{content:"";display:table-cell;position:relative;top:50%;width:50%;background-repeat:no-repeat}.ui.horizontal.divider::before{background-position:right 1em top 50%}.ui.horizontal.divider::after{background-position:left 1em top 50%}.ui.vertical.divider{position:absolute;z-index:2;top:50%;left:50%;margin:0;padding:0;width:auto;height:50%;line-height:0;text-align:center;transform:translateX(-50%)}.ui.vertical.divider::after,.ui.vertical.divider::before{position:absolute;left:50%;content:"";z-index:3;border-left:1px solid rgba(34,36,38,.15);border-right:1px solid rgba(255,255,255,.1);width:0;height:calc(100% - 1rem)}.ui.vertical.divider::before{top:-100%}.ui.vertical.divider::after{top:auto;bottom:0}.ui.grid .stackable.row .ui.vertical.divider,.ui.stackable.grid .ui.vertical.divider{flex:1}@media only screen and (max-width:767.98px){.ui.grid .stackable.row .column+.ui.vertical.divider,.ui.stackable.grid .column+.ui.vertical.divider{margin:1rem}.ui.grid .stackable.row .ui.vertical.divider,.ui.stackable.grid .ui.vertical.divider{display:table;white-space:nowrap;height:auto;margin:"";overflow:hidden;line-height:1;text-align:center;position:static;top:0;left:0;transform:none}.ui.grid .stackable.row .ui.vertical.divider::after,.ui.grid .stackable.row .ui.vertical.divider::before,.ui.stackable.grid .ui.vertical.divider::after,.ui.stackable.grid .ui.vertical.divider::before{left:0;border-left:none;border-right:none;content:"";display:table-cell;position:relative;top:50%;width:50%;background-repeat:no-repeat}.ui.grid .stackable.row .ui.vertical.divider::before,.ui.stackable.grid .ui.vertical.divider::before{background-position:right 1em top 50%}.ui.grid .stackable.row .ui.vertical.divider::after,.ui.stackable.grid .ui.vertical.divider::after{background-position:left 1em top 50%}}.ui.divider>.icon{margin:0;font-size:1rem;height:1em;vertical-align:middle}.ui.horizontal.divider[class*="left aligned"]::before{display:none}.ui.horizontal.divider[class*="left aligned"]::after{width:100%}.ui.horizontal.divider[class*="right aligned"]::before{width:100%}.ui.horizontal.divider[class*="right aligned"]::after{display:none}.ui.hidden.divider{border-color:transparent!important}.ui.hidden.divider::after,.ui.hidden.divider::before{display:none}.ui.divider.inverted,.ui.horizontal.inverted.divider,.ui.vertical.inverted.divider{color:#fff}.ui.divider.inverted,.ui.divider.inverted::after,.ui.divider.inverted::before{border-color:rgba(34,36,38,.15) rgba(255,255,255,.15) rgba(255,255,255,.15) rgba(34,36,38,.15)!important}.ui.fitted.divider{margin:0}.ui.clearing.divider{clear:both}.ui.section.divider{margin-top:2rem;margin-bottom:2rem}.ui.divider{font-size:1rem}.ui.mini.divider{font-size:.78571429rem}.ui.tiny.divider{font-size:.85714286rem}.ui.small.divider{font-size:.92857143rem}.ui.large.divider{font-size:1.14285714rem}.ui.big.divider{font-size:1.28571429rem}.ui.huge.divider{font-size:1.42857143rem}.ui.massive.divider{font-size:1.71428571rem}.ui.horizontal.divider::after,.ui.horizontal.divider::before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABaAAAAACCAYAAACuTHuKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1OThBRDY4OUNDMTYxMUU0OUE3NUVGOEJDMzMzMjE2NyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1OThBRDY4QUNDMTYxMUU0OUE3NUVGOEJDMzMzMjE2NyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjU5OEFENjg3Q0MxNjExRTQ5QTc1RUY4QkMzMzMyMTY3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjU5OEFENjg4Q0MxNjExRTQ5QTc1RUY4QkMzMzMyMTY3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+VU513gAAADVJREFUeNrs0DENACAQBDBIWLGBJQby/mUcJn5sJXQmOQMAAAAAAJqt+2prAAAAAACg2xdgANk6BEVuJgyMAAAAAElFTkSuQmCC)}@media only screen and (max-width:767px){.ui.grid .stackable.row .ui.vertical.divider::after,.ui.grid .stackable.row .ui.vertical.divider::before,.ui.stackable.grid .ui.vertical.divider::after,.ui.stackable.grid .ui.vertical.divider::before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABaAAAAACCAYAAACuTHuKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1OThBRDY4OUNDMTYxMUU0OUE3NUVGOEJDMzMzMjE2NyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1OThBRDY4QUNDMTYxMUU0OUE3NUVGOEJDMzMzMjE2NyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjU5OEFENjg3Q0MxNjExRTQ5QTc1RUY4QkMzMzMyMTY3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjU5OEFENjg4Q0MxNjExRTQ5QTc1RUY4QkMzMzMyMTY3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+VU513gAAADVJREFUeNrs0DENACAQBDBIWLGBJQby/mUcJn5sJXQmOQMAAAAAAJqt+2prAAAAAACg2xdgANk6BEVuJgyMAAAAAElFTkSuQmCC)}}
|