fomantic-ui 2.9.1-beta.28 → 2.9.1-beta.29
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 +0 -1
- package/.github/workflows/ci.yml +6 -0
- package/.prettierrc.js +12 -0
- package/.stylelintrc.js +13 -7
- package/README.md +1 -1
- package/dist/components/accordion.css +9 -21
- package/dist/components/accordion.js +3 -3
- package/dist/components/accordion.min.css +2 -2
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +2 -3
- package/dist/components/ad.min.css +2 -2
- package/dist/components/api.js +3 -3
- 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 +336 -713
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +5 -10
- package/dist/components/calendar.js +3 -3
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +88 -201
- package/dist/components/card.min.css +2 -2
- package/dist/components/checkbox.css +35 -86
- package/dist/components/checkbox.js +3 -3
- package/dist/components/checkbox.min.css +2 -2
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +4 -8
- package/dist/components/comment.min.css +2 -2
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +20 -129
- package/dist/components/dimmer.js +3 -3
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +3 -6
- package/dist/components/divider.min.css +2 -2
- package/dist/components/dropdown.css +51 -149
- package/dist/components/dropdown.js +13 -7
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +2 -7
- package/dist/components/embed.js +3 -3
- package/dist/components/embed.min.css +2 -2
- package/dist/components/embed.min.js +2 -2
- package/dist/components/emoji.css +1 -2
- package/dist/components/emoji.min.css +1 -1
- package/dist/components/feed.css +7 -21
- package/dist/components/feed.min.css +2 -2
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +30 -71
- package/dist/components/flyout.js +3 -16
- package/dist/components/flyout.min.css +2 -2
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +32 -101
- package/dist/components/form.js +3 -3
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +72 -182
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +5 -11
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +37 -74
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +8 -21
- package/dist/components/image.min.css +2 -2
- package/dist/components/input.css +15 -50
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +13 -38
- package/dist/components/item.min.css +2 -2
- package/dist/components/label.css +18 -45
- package/dist/components/label.min.css +2 -2
- package/dist/components/list.css +1 -7
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +21 -103
- package/dist/components/loader.min.css +2 -2
- package/dist/components/menu.css +49 -145
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +50 -114
- package/dist/components/message.min.css +2 -2
- package/dist/components/modal.css +20 -54
- package/dist/components/modal.js +3 -11
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +2 -5
- package/dist/components/nag.js +3 -3
- package/dist/components/nag.min.css +2 -2
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +7 -25
- package/dist/components/placeholder.min.css +2 -2
- package/dist/components/popup.css +68 -139
- package/dist/components/popup.js +16 -7
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +25 -120
- package/dist/components/progress.js +3 -3
- 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 +2 -39
- package/dist/components/rating.js +3 -3
- package/dist/components/rating.min.css +2 -2
- package/dist/components/rating.min.js +2 -2
- package/dist/components/reset.css +6 -11
- package/dist/components/reset.min.css +2 -2
- package/dist/components/reveal.css +26 -58
- package/dist/components/reveal.min.css +2 -2
- package/dist/components/search.css +8 -22
- package/dist/components/search.js +3 -3
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +32 -89
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +4 -16
- package/dist/components/shape.js +3 -15
- package/dist/components/shape.min.css +2 -2
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +59 -147
- package/dist/components/sidebar.js +3 -16
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +1 -14
- package/dist/components/site.js +11 -38
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.css +8 -26
- package/dist/components/slider.js +3 -3
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +3 -3
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +11 -43
- package/dist/components/statistic.min.css +2 -2
- package/dist/components/step.css +26 -89
- package/dist/components/step.min.css +2 -2
- package/dist/components/sticky.css +1 -5
- package/dist/components/sticky.js +3 -11
- package/dist/components/sticky.min.css +2 -2
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +3 -5
- package/dist/components/tab.js +3 -3
- package/dist/components/tab.min.css +2 -2
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +202 -409
- 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 +32 -108
- package/dist/components/toast.js +3 -3
- package/dist/components/toast.min.css +2 -2
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +264 -1312
- package/dist/components/transition.js +3 -3
- package/dist/components/transition.min.css +2 -2
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +3 -11
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +51 -3547
- package/dist/semantic.js +107 -181
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/examples/fixed.html +1 -1
- package/examples/grid.html +1 -1
- package/package.json +2 -2
- package/src/definitions/behaviors/api.js +2 -2
- package/src/definitions/behaviors/form.js +2 -2
- package/src/definitions/behaviors/state.js +2 -2
- package/src/definitions/behaviors/visibility.js +2 -10
- package/src/definitions/collections/table.less +4 -0
- package/src/definitions/elements/button.less +7 -2
- package/src/definitions/elements/icon.less +2 -3
- package/src/definitions/elements/image.less +0 -4
- package/src/definitions/elements/loader.less +2 -0
- package/src/definitions/elements/segment.less +3 -1
- package/src/definitions/globals/site.js +10 -37
- package/src/definitions/modules/accordion.js +2 -2
- package/src/definitions/modules/calendar.js +2 -2
- package/src/definitions/modules/checkbox.js +2 -2
- package/src/definitions/modules/dimmer.js +2 -2
- package/src/definitions/modules/dimmer.less +2 -10
- package/src/definitions/modules/dropdown.js +12 -6
- package/src/definitions/modules/dropdown.less +1 -4
- package/src/definitions/modules/embed.js +2 -2
- package/src/definitions/modules/flyout.js +2 -15
- package/src/definitions/modules/flyout.less +0 -1
- package/src/definitions/modules/modal.js +2 -10
- package/src/definitions/modules/modal.less +0 -2
- package/src/definitions/modules/nag.js +2 -2
- package/src/definitions/modules/popup.js +15 -6
- package/src/definitions/modules/popup.less +2 -0
- package/src/definitions/modules/progress.js +2 -2
- package/src/definitions/modules/rating.js +2 -2
- package/src/definitions/modules/rating.less +2 -4
- package/src/definitions/modules/search.js +2 -2
- package/src/definitions/modules/search.less +0 -1
- package/src/definitions/modules/shape.js +2 -14
- package/src/definitions/modules/sidebar.js +2 -15
- package/src/definitions/modules/sidebar.less +0 -1
- package/src/definitions/modules/slider.js +2 -2
- package/src/definitions/modules/sticky.js +2 -10
- package/src/definitions/modules/sticky.less +0 -7
- package/src/definitions/modules/tab.js +2 -2
- package/src/definitions/modules/toast.js +2 -2
- package/src/definitions/modules/toast.less +3 -1
- package/src/definitions/modules/transition.js +2 -2
- package/src/definitions/views/card.less +4 -15
- package/src/semantic.less +6 -6
- package/src/themes/amazon/elements/button.variables +4 -9
- package/src/themes/bootstrap3/elements/button.variables +3 -7
- package/src/themes/classic/elements/button.variables +6 -12
- package/src/themes/classic/views/card.overrides +2 -4
- package/src/themes/colored/modules/checkbox.variables +1 -3
- package/src/themes/default/collections/form.variables +1 -2
- package/src/themes/default/collections/menu.variables +2 -4
- package/src/themes/default/collections/message.variables +38 -76
- package/src/themes/default/collections/table.variables +2 -4
- package/src/themes/default/elements/button.variables +6 -12
- package/src/themes/default/elements/flag.variables +3 -3
- package/src/themes/default/elements/icon.variables +5 -10
- package/src/themes/default/elements/input.variables +1 -2
- package/src/themes/default/elements/list.variables +3 -7
- package/src/themes/default/elements/placeholder.variables +12 -8
- package/src/themes/default/elements/segment.variables +5 -6
- package/src/themes/default/elements/step.variables +1 -2
- package/src/themes/default/globals/site.variables +41 -83
- package/src/themes/default/modules/accordion.variables +4 -8
- package/src/themes/default/modules/checkbox.variables +4 -8
- package/src/themes/default/modules/dimmer.variables +1 -3
- package/src/themes/default/modules/dropdown.variables +1 -2
- package/src/themes/default/modules/embed.variables +2 -5
- package/src/themes/default/modules/modal.variables +3 -6
- package/src/themes/default/modules/progress.variables +1 -2
- package/src/themes/default/modules/rating.variables +1 -2
- package/src/themes/default/modules/search.variables +3 -6
- package/src/themes/default/modules/shape.variables +1 -2
- package/src/themes/default/modules/slider.variables +3 -1
- package/src/themes/default/views/card.variables +8 -18
- package/src/themes/github/collections/form.variables +1 -2
- package/src/themes/github/collections/menu.variables +1 -2
- package/src/themes/github/collections/message.variables +2 -4
- package/src/themes/github/elements/button.variables +4 -8
- package/src/themes/github/elements/input.variables +1 -2
- package/src/themes/github/modules/dropdown.variables +1 -3
- package/src/themes/material/elements/button.variables +2 -4
- package/src/themes/material/elements/icon.variables +1 -2
- package/src/themes/pulsar/elements/loader.overrides +0 -38
- package/src/themes/raised/elements/button.variables +1 -2
- package/src/themes/round/elements/button.variables +1 -3
- package/src/themes/striped/modules/progress.overrides +11 -11
- package/tasks/README.md +2 -2
- package/tasks/admin/components/create.js +2 -2
- package/tasks/build/assets.js +1 -1
- package/tasks/build/css.js +1 -1
- package/tasks/build/javascript.js +1 -1
- package/tasks/build.js +2 -2
- package/tasks/collections/docs.js +1 -1
- package/tasks/collections/install.js +2 -2
- package/tasks/collections/various.js +1 -1
- package/tasks/config/admin/release.js +5 -5
- package/tasks/config/admin/templates/README.md +8 -8
- package/tasks/config/admin/templates/bower.json +3 -2
- package/tasks/config/admin/templates/component-package.js +3 -3
- package/tasks/config/admin/templates/package.json +5 -5
- package/tasks/config/tasks.js +15 -11
- package/tasks/docs/build.js +2 -2
- package/tasks/install.js +2 -3
- package/tasks/watch.js +1 -1
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isFunction(obj) {
|
@@ -35,14 +35,6 @@
|
|
35
35
|
methodInvoked = typeof query === 'string',
|
36
36
|
queryArguments = [].slice.call(arguments, 1),
|
37
37
|
|
38
|
-
requestAnimationFrame = window.requestAnimationFrame
|
39
|
-
|| window.mozRequestAnimationFrame
|
40
|
-
|| window.webkitRequestAnimationFrame
|
41
|
-
|| window.msRequestAnimationFrame
|
42
|
-
|| function (callback) {
|
43
|
-
setTimeout(callback, 0);
|
44
|
-
},
|
45
|
-
|
46
38
|
returnedValue
|
47
39
|
;
|
48
40
|
|
@@ -1221,7 +1213,7 @@
|
|
1221
1213
|
if (moduleSelector) {
|
1222
1214
|
title += ' \'' + moduleSelector + '\'';
|
1223
1215
|
}
|
1224
|
-
if (
|
1216
|
+
if (performance.length > 0) {
|
1225
1217
|
console.groupCollapsed(title);
|
1226
1218
|
if (console.table) {
|
1227
1219
|
console.table(performance);
|
@@ -446,7 +446,6 @@
|
|
446
446
|
.scrolling.dimmable.dimmed > .dimmer {
|
447
447
|
overflow: auto;
|
448
448
|
overscroll-behavior: @overscrollBehavior;
|
449
|
-
-webkit-overflow-scrolling: touch;
|
450
449
|
}
|
451
450
|
.modals.dimmer .ui.scrolling.modal:not(.fullscreen) {
|
452
451
|
margin: @scrollingMargin auto;
|
@@ -463,7 +462,6 @@
|
|
463
462
|
.scrolling.undetached.dimmable.dimmed {
|
464
463
|
overflow: auto;
|
465
464
|
overscroll-behavior: @overscrollBehavior;
|
466
|
-
-webkit-overflow-scrolling: touch;
|
467
465
|
}
|
468
466
|
.scrolling.undetached.dimmable.dimmed > .dimmer {
|
469
467
|
overflow: hidden;
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isFunction(obj) {
|
@@ -382,7 +382,7 @@
|
|
382
382
|
if (moduleSelector) {
|
383
383
|
title += ' \'' + moduleSelector + '\'';
|
384
384
|
}
|
385
|
-
if (
|
385
|
+
if (performance.length > 0) {
|
386
386
|
console.groupCollapsed(title);
|
387
387
|
if (console.table) {
|
388
388
|
console.table(performance);
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isFunction(obj) {
|
@@ -414,7 +414,7 @@
|
|
414
414
|
animate: {
|
415
415
|
show: function (callback) {
|
416
416
|
callback = isFunction(callback) ? callback : function () {};
|
417
|
-
if (settings.transition &&
|
417
|
+
if (settings.transition && module.can.useElement('transition') && $module.transition('is supported')) {
|
418
418
|
module.set.visible();
|
419
419
|
$popup
|
420
420
|
.transition({
|
@@ -431,8 +431,6 @@
|
|
431
431
|
},
|
432
432
|
})
|
433
433
|
;
|
434
|
-
} else {
|
435
|
-
module.error(error.noTransition);
|
436
434
|
}
|
437
435
|
},
|
438
436
|
hide: function (callback) {
|
@@ -1073,6 +1071,17 @@
|
|
1073
1071
|
},
|
1074
1072
|
},
|
1075
1073
|
|
1074
|
+
can: {
|
1075
|
+
useElement: function (element) {
|
1076
|
+
if ($.fn[element] !== undefined) {
|
1077
|
+
return true;
|
1078
|
+
}
|
1079
|
+
module.error(error.noElement.replace('{element}', element));
|
1080
|
+
|
1081
|
+
return false;
|
1082
|
+
},
|
1083
|
+
},
|
1084
|
+
|
1076
1085
|
has: {
|
1077
1086
|
popup: function () {
|
1078
1087
|
return $popup && $popup.length > 0;
|
@@ -1229,7 +1238,7 @@
|
|
1229
1238
|
if (moduleSelector) {
|
1230
1239
|
title += ' \'' + moduleSelector + '\'';
|
1231
1240
|
}
|
1232
|
-
if (
|
1241
|
+
if (performance.length > 0) {
|
1233
1242
|
console.groupCollapsed(title);
|
1234
1243
|
if (console.table) {
|
1235
1244
|
console.table(performance);
|
@@ -1445,7 +1454,7 @@
|
|
1445
1454
|
invalidPosition: 'The position you specified is not a valid position',
|
1446
1455
|
cannotPlace: 'Popup does not fit within the boundaries of the viewport',
|
1447
1456
|
method: 'The method you called is not defined.',
|
1448
|
-
|
1457
|
+
noElement: 'This module requires ui {element}',
|
1449
1458
|
notFound: 'The target or popup you specified does not exist on the page',
|
1450
1459
|
},
|
1451
1460
|
|
@@ -175,6 +175,8 @@
|
|
175
175
|
[data-tooltip][data-position="left center"]:hover::after,
|
176
176
|
[data-tooltip][data-position="right center"]:hover::after {
|
177
177
|
transform: translateY(-50%) scale(1) !important;
|
178
|
+
// https://github.com/fomantic/Fomantic-UI/pull/1537
|
179
|
+
// stylelint-disable-next-line property-no-vendor-prefix
|
178
180
|
-moz-transform: translateY(-50%) scale(1.0001) !important;
|
179
181
|
}
|
180
182
|
[data-tooltip][data-position="top left"]::after,
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isFunction(obj) {
|
@@ -835,7 +835,7 @@
|
|
835
835
|
if (moduleSelector) {
|
836
836
|
title += ' \'' + moduleSelector + '\'';
|
837
837
|
}
|
838
|
-
if (
|
838
|
+
if (performance.length > 0) {
|
839
839
|
console.groupCollapsed(title);
|
840
840
|
if (console.table) {
|
841
841
|
console.table(performance);
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isFunction(obj) {
|
@@ -387,7 +387,7 @@
|
|
387
387
|
if ($allModules.length > 1) {
|
388
388
|
title += ' (' + $allModules.length + ')';
|
389
389
|
}
|
390
|
-
if (
|
390
|
+
if (performance.length > 0) {
|
391
391
|
console.groupCollapsed(title);
|
392
392
|
if (console.table) {
|
393
393
|
console.table(performance);
|
@@ -107,8 +107,7 @@
|
|
107
107
|
0 -@shadowWidth 0 @c,
|
108
108
|
-@shadowWidth 0 0 @c,
|
109
109
|
0 @shadowWidth 0 @c,
|
110
|
-
@shadowWidth 0 0 @c
|
111
|
-
;
|
110
|
+
@shadowWidth 0 0 @c;
|
112
111
|
}
|
113
112
|
.ui.@{color}.rating .icon.selected,
|
114
113
|
.ui.@{color}.rating .icon.selected.active,
|
@@ -119,8 +118,7 @@
|
|
119
118
|
0 -@shadowWidth 0 @h,
|
120
119
|
-@shadowWidth 0 0 @h,
|
121
120
|
0 @shadowWidth 0 @h,
|
122
|
-
@shadowWidth 0 0 @h
|
123
|
-
;
|
121
|
+
@shadowWidth 0 0 @h;
|
124
122
|
|
125
123
|
-webkit-text-stroke: unset;
|
126
124
|
background-clip: unset;
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isFunction(obj) {
|
@@ -1163,7 +1163,7 @@
|
|
1163
1163
|
if ($allModules.length > 1) {
|
1164
1164
|
title += ' (' + $allModules.length + ')';
|
1165
1165
|
}
|
1166
|
-
if (
|
1166
|
+
if (performance.length > 0) {
|
1167
1167
|
console.groupCollapsed(title);
|
1168
1168
|
if (console.table) {
|
1169
1169
|
console.table(performance);
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isFunction(obj) {
|
@@ -30,14 +30,6 @@
|
|
30
30
|
methodInvoked = typeof query === 'string',
|
31
31
|
queryArguments = [].slice.call(arguments, 1),
|
32
32
|
|
33
|
-
requestAnimationFrame = window.requestAnimationFrame
|
34
|
-
|| window.mozRequestAnimationFrame
|
35
|
-
|| window.webkitRequestAnimationFrame
|
36
|
-
|| window.msRequestAnimationFrame
|
37
|
-
|| function (callback) {
|
38
|
-
setTimeout(callback, 0);
|
39
|
-
},
|
40
|
-
|
41
33
|
returnedValue
|
42
34
|
;
|
43
35
|
|
@@ -216,10 +208,6 @@
|
|
216
208
|
if (settings.duration || settings.duration === 0) {
|
217
209
|
$sides.add($side)
|
218
210
|
.css({
|
219
|
-
'-webkit-transition-duration': duration,
|
220
|
-
'-moz-transition-duration': duration,
|
221
|
-
'-ms-transition-duration': duration,
|
222
|
-
'-o-transition-duration': duration,
|
223
211
|
'transition-duration': duration,
|
224
212
|
})
|
225
213
|
;
|
@@ -677,7 +665,7 @@
|
|
677
665
|
if ($allModules.length > 1) {
|
678
666
|
title += ' (' + $allModules.length + ')';
|
679
667
|
}
|
680
|
-
if (
|
668
|
+
if (performance.length > 0) {
|
681
669
|
console.groupCollapsed(title);
|
682
670
|
if (console.table) {
|
683
671
|
console.table(performance);
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isFunction(obj) {
|
@@ -37,14 +37,6 @@
|
|
37
37
|
methodInvoked = typeof query === 'string',
|
38
38
|
queryArguments = [].slice.call(arguments, 1),
|
39
39
|
|
40
|
-
requestAnimationFrame = window.requestAnimationFrame
|
41
|
-
|| window.mozRequestAnimationFrame
|
42
|
-
|| window.webkitRequestAnimationFrame
|
43
|
-
|| window.msRequestAnimationFrame
|
44
|
-
|| function (callback) {
|
45
|
-
setTimeout(callback, 0);
|
46
|
-
},
|
47
|
-
|
48
40
|
returnedValue;
|
49
41
|
|
50
42
|
$allModules.each(function () {
|
@@ -246,14 +238,12 @@
|
|
246
238
|
style += ''
|
247
239
|
+ ' .ui.visible.' + direction + '.sidebar ~ .fixed,'
|
248
240
|
+ ' .ui.visible.' + direction + '.sidebar ~ .pusher {'
|
249
|
-
+ ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
250
241
|
+ ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
251
242
|
+ ' }';
|
252
243
|
} else if (direction === 'top' || direction === 'bottom') {
|
253
244
|
style += ''
|
254
245
|
+ ' .ui.visible.' + direction + '.sidebar ~ .fixed,'
|
255
246
|
+ ' .ui.visible.' + direction + '.sidebar ~ .pusher {'
|
256
|
-
+ ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
257
247
|
+ ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
258
248
|
+ ' }';
|
259
249
|
}
|
@@ -265,13 +255,11 @@
|
|
265
255
|
module.debug('Adding CSS rules for animation distance', width);
|
266
256
|
style += ''
|
267
257
|
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
|
268
|
-
+ ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
269
258
|
+ ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
270
259
|
+ ' }';
|
271
260
|
} else if (direction === 'top' || direction === 'bottom') {
|
272
261
|
style += ''
|
273
262
|
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
|
274
|
-
+ ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
275
263
|
+ ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
276
264
|
+ ' }';
|
277
265
|
}
|
@@ -279,7 +267,6 @@
|
|
279
267
|
style += ''
|
280
268
|
+ ' body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher::after,'
|
281
269
|
+ ' body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher::after {'
|
282
|
-
+ ' -webkit-transform: translate3d(0, 0, 0);'
|
283
270
|
+ ' transform: translate3d(0, 0, 0);'
|
284
271
|
+ ' }';
|
285
272
|
}
|
@@ -937,7 +924,7 @@
|
|
937
924
|
if (moduleSelector) {
|
938
925
|
title += ' \'' + moduleSelector + '\'';
|
939
926
|
}
|
940
|
-
if (
|
927
|
+
if (performance.length > 0) {
|
941
928
|
console.groupCollapsed(title);
|
942
929
|
if (console.table) {
|
943
930
|
console.table(performance);
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isFunction(obj) {
|
@@ -1194,7 +1194,7 @@
|
|
1194
1194
|
if (moduleSelector) {
|
1195
1195
|
title += ' \'' + moduleSelector + '\'';
|
1196
1196
|
}
|
1197
|
-
if (
|
1197
|
+
if (performance.length > 0) {
|
1198
1198
|
console.groupCollapsed(title);
|
1199
1199
|
if (console.table) {
|
1200
1200
|
console.table(performance);
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isFunction(obj) {
|
@@ -55,14 +55,6 @@
|
|
55
55
|
|
56
56
|
instance = $module.data(moduleNamespace),
|
57
57
|
|
58
|
-
requestAnimationFrame = window.requestAnimationFrame
|
59
|
-
|| window.mozRequestAnimationFrame
|
60
|
-
|| window.webkitRequestAnimationFrame
|
61
|
-
|| window.msRequestAnimationFrame
|
62
|
-
|| function (callback) {
|
63
|
-
setTimeout(callback, 0);
|
64
|
-
},
|
65
|
-
|
66
58
|
element = this,
|
67
59
|
|
68
60
|
documentObserver,
|
@@ -768,7 +760,7 @@
|
|
768
760
|
if (moduleSelector) {
|
769
761
|
title += ' \'' + moduleSelector + '\'';
|
770
762
|
}
|
771
|
-
if (
|
763
|
+
if (performance.length > 0) {
|
772
764
|
console.groupCollapsed(title);
|
773
765
|
if (console.table) {
|
774
766
|
console.table(performance);
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isWindow(obj) {
|
@@ -810,7 +810,7 @@
|
|
810
810
|
if (moduleSelector) {
|
811
811
|
title += ' \'' + moduleSelector + '\'';
|
812
812
|
}
|
813
|
-
if (
|
813
|
+
if (performance.length > 0) {
|
814
814
|
console.groupCollapsed(title);
|
815
815
|
if (console.table) {
|
816
816
|
console.table(performance);
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isFunction(obj) {
|
@@ -707,7 +707,7 @@
|
|
707
707
|
if (moduleSelector) {
|
708
708
|
title += ' \'' + moduleSelector + '\'';
|
709
709
|
}
|
710
|
-
if (
|
710
|
+
if (performance.length > 0) {
|
711
711
|
console.groupCollapsed(title);
|
712
712
|
if (console.table) {
|
713
713
|
console.table(performance);
|
@@ -589,7 +589,9 @@
|
|
589
589
|
}
|
590
590
|
|
591
591
|
.ui.hoverfloating.message:hover when (@variationToastMessage) and (@variationToastFloating) {
|
592
|
-
box-shadow:
|
592
|
+
box-shadow:
|
593
|
+
0 0 0 1px inset,
|
594
|
+
@floatingShadow;
|
593
595
|
}
|
594
596
|
|
595
597
|
.ui.center.toast-container .toast-box,
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
(function ($, window, document
|
11
|
+
(function ($, window, document) {
|
12
12
|
'use strict';
|
13
13
|
|
14
14
|
function isFunction(obj) {
|
@@ -915,7 +915,7 @@
|
|
915
915
|
if ($allModules.length > 1) {
|
916
916
|
title += ' (' + $allModules.length + ')';
|
917
917
|
}
|
918
|
-
if (
|
918
|
+
if (performance.length > 0) {
|
919
919
|
console.groupCollapsed(title);
|
920
920
|
if (console.table) {
|
921
921
|
console.table(performance);
|
@@ -550,13 +550,6 @@
|
|
550
550
|
background-position: center;
|
551
551
|
justify-content: center;
|
552
552
|
align-items: center;
|
553
|
-
display: -webkit-box;
|
554
|
-
display: -moz-box;
|
555
|
-
& when (@supportIE) {
|
556
|
-
display: -ms-flexbox;
|
557
|
-
}
|
558
|
-
|
559
|
-
display: -webkit-flex;
|
560
553
|
display: flex;
|
561
554
|
width: 100%;
|
562
555
|
border-radius: @defaultBorderRadius 0 0 @defaultBorderRadius;
|
@@ -682,8 +675,7 @@
|
|
682
675
|
box-shadow:
|
683
676
|
@borderShadow,
|
684
677
|
0 @coloredShadowDistance 0 0 @c,
|
685
|
-
@shadowBoxShadow
|
686
|
-
;
|
678
|
+
@shadowBoxShadow;
|
687
679
|
}
|
688
680
|
& when (@variationCardLink) {
|
689
681
|
.ui.cards a.@{color}.card:hover,
|
@@ -695,8 +687,7 @@
|
|
695
687
|
box-shadow:
|
696
688
|
@borderShadow,
|
697
689
|
0 @coloredShadowDistance 0 0 @h,
|
698
|
-
@shadowHoverBoxShadow
|
699
|
-
;
|
690
|
+
@shadowHoverBoxShadow;
|
700
691
|
}
|
701
692
|
}
|
702
693
|
& when (@variationCardBasic) {
|
@@ -734,8 +725,7 @@
|
|
734
725
|
box-shadow:
|
735
726
|
0 @shadowDistance 3px 0 @solidWhiteBorderColor,
|
736
727
|
0 @coloredShadowDistance 0 0 @l,
|
737
|
-
0 0 0 @borderWidth @solidWhiteBorderColor
|
738
|
-
;
|
728
|
+
0 0 0 @borderWidth @solidWhiteBorderColor;
|
739
729
|
}
|
740
730
|
& when (@variationCardLink) {
|
741
731
|
.ui.inverted.cards a.@{color}.card:hover,
|
@@ -747,8 +737,7 @@
|
|
747
737
|
box-shadow:
|
748
738
|
0 @shadowDistance 3px 0 @solidWhiteBorderColor,
|
749
739
|
0 @coloredShadowDistance 0 0 @lh,
|
750
|
-
0 0 0 @borderWidth @solidWhiteBorderColor
|
751
|
-
;
|
740
|
+
0 0 0 @borderWidth @solidWhiteBorderColor;
|
752
741
|
}
|
753
742
|
}
|
754
743
|
& when (@variationCardBasic) {
|
package/src/semantic.less
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/*
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
███████╗ ██████╗ ███╗ ███╗ █████╗ ███╗ ██╗████████╗██╗ ██████╗ ██╗ ██╗██╗
|
4
|
+
██╔════╝██╔═══██╗████╗ ████║██╔══██╗████╗ ██║╚══██╔══╝██║██╔════╝ ██║ ██║██║
|
5
|
+
█████╗ ██║ ██║██╔████╔██║███████║██╔██╗ ██║ ██║ ██║██║ ██║ ██║██║
|
6
|
+
██╔══╝ ██║ ██║██║╚██╔╝██║██╔══██║██║╚██╗██║ ██║ ██║██║ ██║ ██║██║
|
7
|
+
██║ ╚██████╔╝██║ ╚═╝ ██║██║ ██║██║ ╚████║ ██║ ██║╚██████╗ ╚██████╔╝██║
|
8
|
+
╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝
|
9
9
|
|
10
10
|
Import this file into your LESS project to use Fomantic-UI without build tools
|
11
11
|
*/
|
@@ -11,8 +11,7 @@
|
|
11
11
|
opacity @defaultDuration @defaultEasing,
|
12
12
|
background-color @defaultDuration @defaultEasing,
|
13
13
|
color @defaultDuration @defaultEasing,
|
14
|
-
background @defaultDuration @defaultEasing
|
15
|
-
;
|
14
|
+
background @defaultDuration @defaultEasing;
|
16
15
|
|
17
16
|
@hoverBackgroundColor: #e0e0e0;
|
18
17
|
|
@@ -24,18 +23,14 @@
|
|
24
23
|
@backgroundImage: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.1));
|
25
24
|
@boxShadow:
|
26
25
|
0 1px 0 1px rgba(255, 255, 255, 0.3) inset,
|
27
|
-
0 0 0 1px #adb2bb inset
|
28
|
-
;
|
26
|
+
0 0 0 1px #adb2bb inset;
|
29
27
|
|
30
28
|
@coloredBackgroundImage: linear-gradient(rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.2));
|
31
|
-
@coloredBoxShadow:
|
32
|
-
0 1px 0 0 rgba(255, 255, 255, 0.2) inset
|
33
|
-
;
|
29
|
+
@coloredBoxShadow: 0 1px 0 0 rgba(255, 255, 255, 0.2) inset;
|
34
30
|
|
35
31
|
@downBoxShadow:
|
36
32
|
0 0 0 1px #adb2bb inset,
|
37
|
-
0 1px 3px rgba(0, 0, 0, 0.2) inset
|
38
|
-
;
|
33
|
+
0 1px 3px rgba(0, 0, 0, 0.2) inset;
|
39
34
|
|
40
35
|
@labeledIconBackgroundColor: #313a43;
|
41
36
|
@labeledIconColor: #fff;
|
@@ -38,8 +38,7 @@
|
|
38
38
|
@basicHoverBackground: transparent;
|
39
39
|
@basicDownBoxShadow:
|
40
40
|
0 0 0 1px #adadad inset,
|
41
|
-
0 3px 5px rgba(0, 0, 0, 0.125) inset
|
42
|
-
;
|
41
|
+
0 3px 5px rgba(0, 0, 0, 0.125) inset;
|
43
42
|
|
44
43
|
@groupButtonOffset: 0 0 0 -1px;
|
45
44
|
@verticalGroupOffset: 0 0 -1px 0;
|
@@ -47,15 +46,12 @@
|
|
47
46
|
/* States */
|
48
47
|
|
49
48
|
@hoverBackgroundColor: #e6e6e6;
|
50
|
-
@hoverBoxShadow:
|
51
|
-
0 0 0 1px #adadad inset
|
52
|
-
;
|
49
|
+
@hoverBoxShadow: 0 0 0 1px #adadad inset;
|
53
50
|
|
54
51
|
@downBackgroundColor: #e6e6e6;
|
55
52
|
@downBoxShadow:
|
56
53
|
0 0 0 1px #adadad inset,
|
57
|
-
0 3px 5px rgba(0, 0, 0, 0.125) inset
|
58
|
-
;
|
54
|
+
0 3px 5px rgba(0, 0, 0, 0.125) inset;
|
59
55
|
|
60
56
|
@activeBackgroundColor: #e6e6e6;
|
61
57
|
|