fomantic-ui 2.9.1-beta.2 → 2.9.1-beta.20
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 +110 -0
- package/.github/workflows/ci.yml +14 -4
- package/.stylelintrc.js +46 -0
- package/dist/components/accordion.css +19 -26
- package/dist/components/accordion.js +568 -595
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +31 -41
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +1161 -1179
- 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 +71 -106
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +18 -16
- package/dist/components/calendar.js +1895 -1809
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +83 -115
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +47 -64
- package/dist/components/checkbox.js +842 -841
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +37 -51
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +6 -5
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +31 -41
- package/dist/components/dimmer.js +708 -737
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +32 -44
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +129 -166
- package/dist/components/dropdown.js +4161 -4234
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +13 -19
- package/dist/components/embed.js +651 -675
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/emoji.css +7 -6
- package/dist/components/feed.css +24 -32
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +5 -3
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +44 -58
- package/dist/components/flyout.js +1464 -1465
- package/dist/components/flyout.min.css +2 -2
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +85 -111
- package/dist/components/form.js +1979 -2004
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +70 -96
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +47 -65
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +45 -66
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +32 -42
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +182 -65
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +55 -77
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +68 -91
- package/dist/components/label.min.css +2 -2
- package/dist/components/list.css +44 -59
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +16 -22
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +126 -186
- package/dist/components/message.css +25 -35
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +39 -40
- package/dist/components/modal.js +1491 -1485
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +21 -28
- package/dist/components/nag.js +518 -526
- package/dist/components/nag.min.css +2 -2
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +10 -12
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +352 -59
- package/dist/components/popup.js +1437 -1456
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +29 -39
- package/dist/components/progress.js +969 -997
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +2 -2
- package/dist/components/rail.css +15 -20
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +9 -13
- package/dist/components/rating.js +505 -523
- 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 +19 -26
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +43 -58
- package/dist/components/search.js +1498 -1534
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +64 -83
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +10 -14
- package/dist/components/shape.js +792 -809
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +43 -58
- package/dist/components/sidebar.js +1071 -1098
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +5 -5
- package/dist/components/site.js +462 -476
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.css +27 -37
- package/dist/components/slider.js +1287 -1306
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +639 -657
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +32 -41
- package/dist/components/statistic.min.css +2 -2
- package/dist/components/step.css +26 -35
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +857 -902
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +6 -8
- package/dist/components/tab.js +922 -963
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +93 -119
- 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 +4 -6
- package/dist/components/toast.js +886 -887
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +150 -3
- package/dist/components/transition.js +1041 -1077
- package/dist/components/transition.min.css +2 -2
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +1220 -1244
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +2529 -1778
- package/dist/semantic.js +28928 -29383
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/dist/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/dist/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
- package/dist/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/dist/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/dist/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/dist/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
- package/dist/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/dist/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
- package/examples/assets/show-examples.js +13 -13
- package/gulpfile.js +9 -10
- package/package.json +13 -8
- package/scripts/nightly-version.js +81 -75
- package/src/definitions/behaviors/api.js +1162 -1180
- package/src/definitions/behaviors/form.js +1978 -2003
- package/src/definitions/behaviors/state.js +645 -663
- package/src/definitions/behaviors/visibility.js +1219 -1243
- package/src/definitions/collections/breadcrumb.less +41 -44
- package/src/definitions/collections/form.less +869 -879
- package/src/definitions/collections/grid.less +1690 -1695
- package/src/definitions/collections/menu.less +1493 -1503
- package/src/definitions/collections/message.less +292 -295
- package/src/definitions/collections/table.less +1616 -1620
- package/src/definitions/elements/button.less +1721 -1743
- package/src/definitions/elements/container.less +209 -209
- package/src/definitions/elements/divider.less +205 -206
- package/src/definitions/elements/emoji.less +38 -44
- package/src/definitions/elements/flag.less +44 -46
- package/src/definitions/elements/header.less +337 -345
- package/src/definitions/elements/icon.less +516 -443
- package/src/definitions/elements/image.less +221 -225
- package/src/definitions/elements/input.less +663 -659
- package/src/definitions/elements/label.less +803 -793
- package/src/definitions/elements/list.less +809 -809
- package/src/definitions/elements/loader.less +272 -266
- package/src/definitions/elements/placeholder.less +171 -168
- package/src/definitions/elements/rail.less +91 -91
- package/src/definitions/elements/reveal.less +192 -196
- package/src/definitions/elements/segment.less +743 -746
- package/src/definitions/elements/step.less +425 -433
- package/src/definitions/elements/text.less +32 -34
- package/src/definitions/globals/reset.less +9 -6
- package/src/definitions/globals/site.js +461 -475
- package/src/definitions/globals/site.less +106 -108
- package/src/definitions/modules/accordion.js +567 -594
- package/src/definitions/modules/accordion.less +242 -246
- package/src/definitions/modules/calendar.js +1894 -1808
- package/src/definitions/modules/calendar.less +98 -95
- package/src/definitions/modules/checkbox.js +841 -840
- package/src/definitions/modules/checkbox.less +536 -542
- package/src/definitions/modules/dimmer.js +707 -736
- package/src/definitions/modules/dimmer.less +300 -297
- package/src/definitions/modules/dropdown.js +4160 -4233
- package/src/definitions/modules/dropdown.less +1577 -1589
- package/src/definitions/modules/embed.js +650 -674
- package/src/definitions/modules/embed.less +81 -82
- package/src/definitions/modules/flyout.js +1463 -1464
- package/src/definitions/modules/flyout.less +445 -451
- package/src/definitions/modules/modal.js +1490 -1484
- package/src/definitions/modules/modal.less +459 -459
- package/src/definitions/modules/nag.js +517 -525
- package/src/definitions/modules/nag.less +134 -138
- package/src/definitions/modules/popup.js +1436 -1455
- package/src/definitions/modules/popup.less +742 -687
- package/src/definitions/modules/progress.js +968 -996
- package/src/definitions/modules/progress.less +521 -494
- package/src/definitions/modules/rating.js +504 -522
- package/src/definitions/modules/rating.less +94 -101
- package/src/definitions/modules/search.js +1497 -1533
- package/src/definitions/modules/search.less +375 -382
- package/src/definitions/modules/shape.js +791 -808
- package/src/definitions/modules/shape.less +71 -76
- package/src/definitions/modules/sidebar.js +1070 -1097
- package/src/definitions/modules/sidebar.less +463 -472
- package/src/definitions/modules/slider.js +1286 -1305
- package/src/definitions/modules/slider.less +307 -308
- package/src/definitions/modules/sticky.js +873 -918
- package/src/definitions/modules/sticky.less +21 -23
- package/src/definitions/modules/tab.js +921 -962
- package/src/definitions/modules/tab.less +51 -52
- package/src/definitions/modules/toast.js +885 -886
- package/src/definitions/modules/toast.less +584 -586
- package/src/definitions/modules/transition.js +1040 -1076
- package/src/definitions/modules/transition.less +62 -28
- package/src/definitions/views/ad.less +206 -206
- package/src/definitions/views/card.less +968 -970
- package/src/definitions/views/comment.less +190 -198
- package/src/definitions/views/feed.less +220 -224
- package/src/definitions/views/item.less +436 -446
- package/src/definitions/views/statistic.less +271 -277
- package/src/theme.less +29 -32
- package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
- package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
- package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
- package/src/themes/default/elements/container.variables +0 -7
- package/src/themes/default/elements/icon.variables +18 -0
- package/src/themes/default/elements/segment.variables +0 -7
- package/src/themes/default/globals/colors.less +589 -589
- package/src/themes/default/globals/site.variables +8 -0
- package/src/themes/default/globals/variation.variables +13 -1
- package/src/themes/default/modules/calendar.variables +2 -0
- package/src/themes/default/modules/nag.variables +1 -1
- package/src/themes/default/modules/popup.variables +2 -0
- package/src/themes/default/modules/transition.variables +8 -1
- package/tasks/admin/components/create.js +274 -276
- package/tasks/admin/components/init.js +123 -130
- package/tasks/admin/components/update.js +149 -157
- package/tasks/admin/distributions/create.js +184 -187
- package/tasks/admin/distributions/init.js +123 -130
- package/tasks/admin/distributions/update.js +145 -152
- package/tasks/admin/publish.js +5 -7
- package/tasks/admin/register.js +36 -38
- package/tasks/admin/release.js +8 -10
- package/tasks/build/assets.js +42 -39
- package/tasks/build/css.js +225 -216
- package/tasks/build/javascript.js +118 -113
- package/tasks/build.js +10 -10
- package/tasks/check-install.js +14 -16
- package/tasks/clean.js +5 -5
- package/tasks/collections/admin.js +34 -36
- package/tasks/collections/build.js +18 -20
- package/tasks/collections/docs.js +9 -11
- package/tasks/collections/install.js +9 -11
- package/tasks/collections/rtl.js +9 -11
- package/tasks/collections/various.js +8 -10
- package/tasks/config/admin/github.js +17 -17
- package/tasks/config/admin/oauth.example.js +4 -4
- package/tasks/config/admin/release.js +98 -98
- package/tasks/config/admin/templates/component-package.js +9 -10
- package/tasks/config/admin/templates/css-package.js +18 -20
- package/tasks/config/admin/templates/less-package.js +11 -13
- package/tasks/config/defaults.js +116 -114
- package/tasks/config/docs.js +23 -23
- package/tasks/config/npm/gulpfile.js +8 -9
- package/tasks/config/project/config.js +127 -134
- package/tasks/config/project/install.js +715 -713
- package/tasks/config/project/release.js +32 -38
- package/tasks/config/tasks.js +165 -156
- package/tasks/config/user.js +23 -26
- package/tasks/docs/build.js +97 -95
- package/tasks/docs/metadata.js +90 -96
- package/tasks/docs/serve.js +80 -81
- package/tasks/install.js +370 -378
- package/tasks/rtl/build.js +2 -2
- package/tasks/rtl/watch.js +2 -2
- package/tasks/version.js +4 -4
- package/tasks/watch.js +28 -30
- package/test/meteor/assets.js +10 -13
- package/test/meteor/fonts.js +12 -13
- package/test/modules/accordion.spec.js +6 -8
- package/test/modules/checkbox.spec.js +5 -7
- package/test/modules/dropdown.spec.js +5 -7
- package/test/modules/modal.spec.js +6 -8
- package/test/modules/module.spec.js +158 -178
- package/test/modules/popup.spec.js +5 -7
- package/test/modules/search.spec.js +5 -7
- package/test/modules/shape.spec.js +5 -7
- package/test/modules/sidebar.spec.js +5 -7
- package/test/modules/tab.spec.js +6 -8
- package/test/modules/transition.spec.js +5 -7
- package/test/modules/video.spec.js +5 -7
@@ -8,12 +8,11 @@
|
|
8
8
|
*
|
9
9
|
*/
|
10
10
|
|
11
|
-
|
12
11
|
/*******************************
|
13
12
|
Theme
|
14
13
|
*******************************/
|
15
14
|
|
16
|
-
@type
|
15
|
+
@type : 'module';
|
17
16
|
@element : 'toast';
|
18
17
|
|
19
18
|
@import (multiple) '../../theme.config';
|
@@ -25,417 +24,417 @@
|
|
25
24
|
.ui.toast-container {
|
26
25
|
position: fixed;
|
27
26
|
z-index: 9999;
|
28
|
-
|
29
|
-
|
30
|
-
}
|
31
|
-
&.ui.attached when (@variationToastAttached) {
|
32
|
-
width: 100%;
|
33
|
-
left: 0;
|
34
|
-
& .vertical.attached when (@variationToastVertical) {
|
35
|
-
border-radius: 0;
|
36
|
-
}
|
37
|
-
&.ui.ui .attached.actions .button when (@variationToastActions) {
|
38
|
-
border-radius: 0;
|
27
|
+
&.absolute {
|
28
|
+
position: absolute;
|
39
29
|
}
|
40
|
-
|
41
|
-
margin: 0;
|
42
|
-
width: 100%;
|
43
|
-
border-radius: 0;
|
44
|
-
& > .ui.toast,
|
45
|
-
> .ui.message {
|
46
|
-
margin-left: 0;
|
47
|
-
}
|
48
|
-
& when (@variationToastFloating) {
|
49
|
-
&.floating,
|
50
|
-
&.hoverfloating:hover {
|
51
|
-
border: none;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
& > .vertical > .content when (@variationToastVertical) {
|
55
|
-
flex: 1;
|
56
|
-
}
|
57
|
-
& > * {
|
30
|
+
&.ui.attached when (@variationToastAttached) {
|
58
31
|
width: 100%;
|
59
|
-
|
60
|
-
&
|
61
|
-
|
32
|
+
left: 0;
|
33
|
+
& .vertical.attached when (@variationToastVertical) {
|
34
|
+
border-radius: 0;
|
35
|
+
}
|
36
|
+
&.ui.ui .attached.actions .button when (@variationToastActions) {
|
37
|
+
border-radius: 0;
|
38
|
+
}
|
39
|
+
& .toast-box {
|
40
|
+
margin: 0;
|
41
|
+
width: 100%;
|
42
|
+
border-radius: 0;
|
43
|
+
& > .ui.toast,
|
44
|
+
> .ui.message {
|
45
|
+
margin-left: 0;
|
46
|
+
}
|
47
|
+
& when (@variationToastFloating) {
|
48
|
+
&.floating,
|
49
|
+
&.hoverfloating:hover {
|
50
|
+
border: none;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
& > .vertical > .content when (@variationToastVertical) {
|
54
|
+
flex: 1;
|
55
|
+
}
|
56
|
+
& > * {
|
57
|
+
width: 100%;
|
58
|
+
border-radius: 0;
|
59
|
+
& > .vertical:not(.actions) when (@variationToastVertical) {
|
60
|
+
flex: 1;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
& > .attached.actions when (@variationToastActions) {
|
64
|
+
margin-right: @toastLeftRightMargin;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
&.top when (@variationToastTop) {
|
68
|
+
top: 0;
|
69
|
+
}
|
70
|
+
&.bottom when (@variationToastBottom) {
|
71
|
+
bottom: 0;
|
62
72
|
}
|
63
|
-
}
|
64
|
-
& > .attached.actions when (@variationToastActions) {
|
65
|
-
margin-right: @toastLeftRightMargin;
|
66
|
-
}
|
67
73
|
}
|
68
74
|
&.top when (@variationToastTop) {
|
69
|
-
|
75
|
+
&.right when (@variationToastRight) {
|
76
|
+
top: @toastContainerDistance;
|
77
|
+
right: @toastContainerDistance;
|
78
|
+
margin-left: @toastContainerDistance;
|
79
|
+
}
|
80
|
+
&.left when (@variationToastLeft) {
|
81
|
+
top: @toastContainerDistance;
|
82
|
+
left: @toastContainerDistance;
|
83
|
+
margin-right: @toastContainerDistance;
|
84
|
+
}
|
85
|
+
&.center when (@variationToastCenter) {
|
86
|
+
left: 50%;
|
87
|
+
transform: translate(-50%, 0);
|
88
|
+
top: @toastContainerDistance;
|
89
|
+
}
|
70
90
|
}
|
71
91
|
&.bottom when (@variationToastBottom) {
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
&.right when (@variationToastRight) {
|
77
|
-
top: @toastContainerDistance;
|
78
|
-
right: @toastContainerDistance;
|
79
|
-
margin-left: @toastContainerDistance;
|
80
|
-
}
|
81
|
-
&.left when (@variationToastLeft) {
|
82
|
-
top: @toastContainerDistance;
|
83
|
-
left: @toastContainerDistance;
|
84
|
-
margin-right: @toastContainerDistance;
|
85
|
-
}
|
86
|
-
&.center when (@variationToastCenter) {
|
87
|
-
left: 50%;
|
88
|
-
transform: translate(-50%, 0);
|
89
|
-
top: @toastContainerDistance;
|
90
|
-
}
|
91
|
-
}
|
92
|
-
&.bottom when (@variationToastBottom) {
|
93
|
-
&.right when (@variationToastRight) {
|
94
|
-
bottom: @toastContainerDistance;
|
95
|
-
right: @toastContainerDistance;
|
96
|
-
margin-left: @toastContainerDistance;
|
97
|
-
}
|
98
|
-
&.left when (@variationToastLeft) {
|
99
|
-
bottom: @toastContainerDistance;
|
100
|
-
left: @toastContainerDistance;
|
101
|
-
margin-right: @toastContainerDistance;
|
102
|
-
}
|
103
|
-
&.center when (@variationToastCenter) {
|
104
|
-
left: 50%;
|
105
|
-
transform: translate(-50%, 0);
|
106
|
-
bottom: @toastContainerDistance;
|
107
|
-
}
|
108
|
-
}
|
109
|
-
&.centered when (@variationToastCentered) {
|
110
|
-
transform: translate(-50%, -50%);
|
111
|
-
top: 50%;
|
112
|
-
left: 50%;
|
113
|
-
}
|
114
|
-
& .visible.toast-box,
|
115
|
-
.animating.toast-box,
|
116
|
-
.toast-box {
|
117
|
-
display: table !important;
|
118
|
-
}
|
119
|
-
&.horizontal when (@variationToastHorizontal) {
|
120
|
-
display: flex;
|
121
|
-
flex-direction: row;
|
122
|
-
& .toast-box {
|
123
|
-
margin-right: @toastBoxMarginRight;
|
124
|
-
}
|
125
|
-
}
|
126
|
-
& .toast-box {
|
127
|
-
margin-bottom: @toastBoxMarginBottom;
|
128
|
-
border-radius: @defaultBorderRadius;
|
129
|
-
cursor: default;
|
130
|
-
will-change: transform, opacity;
|
131
|
-
&:hover {
|
132
|
-
opacity: @toastOpacityOnHover;
|
133
|
-
}
|
134
|
-
&:not(.unclickable):hover {
|
135
|
-
cursor: @toastCursorOnHover;
|
136
|
-
}
|
137
|
-
& when (@variationToastFloating) {
|
138
|
-
&.floating,
|
139
|
-
&.hoverfloating:hover {
|
140
|
-
box-shadow: @floatingShadow;
|
141
|
-
border: @toastBoxBorder;
|
142
|
-
}
|
143
|
-
}
|
144
|
-
& when (@variationToastCompact) {
|
145
|
-
&.compact,
|
146
|
-
> .compact {
|
147
|
-
width: @toastWidth;
|
148
|
-
}
|
149
|
-
}
|
150
|
-
& > .ui.toast,
|
151
|
-
> .ui.message {
|
152
|
-
margin: @toastMargin;
|
153
|
-
position: relative;
|
154
|
-
}
|
155
|
-
& > .attached.progress when (@variationToastProgress) {
|
156
|
-
z-index:1;
|
157
|
-
&.bottom {
|
158
|
-
margin: @toastMarginProgress -@toastLeftRightMargin @toastMarginBottom;
|
159
|
-
}
|
160
|
-
&.top {
|
161
|
-
margin: @toastMarginBottom -@toastLeftRightMargin @toastMarginProgress;
|
162
|
-
}
|
163
|
-
& .bar {
|
164
|
-
min-width: 0;
|
165
|
-
}
|
166
|
-
&.info .bar.bar.bar {
|
167
|
-
background: @toastInfoProgressColor;
|
168
|
-
}
|
169
|
-
&.warning .bar.bar.bar {
|
170
|
-
background: @toastWarningProgressColor;
|
171
|
-
}
|
172
|
-
&.success .bar.bar.bar {
|
173
|
-
background: @toastSuccessProgressColor;
|
174
|
-
}
|
175
|
-
&.error .bar.bar.bar {
|
176
|
-
background: @toastErrorProgressColor;
|
177
|
-
}
|
178
|
-
&.neutral .bar.bar.bar {
|
179
|
-
background: @toastNeutralProgressColor;
|
180
|
-
}
|
181
|
-
}
|
182
|
-
& > .ui.message when (@variationToastMessage) {
|
183
|
-
& > .close.icon when (@variationToastClose){
|
184
|
-
top: @toastCloseTopDistance;
|
185
|
-
right: @toastCloseRightDistance;
|
186
|
-
}
|
187
|
-
& > .actions:last-child when (@variationToastActions) {
|
188
|
-
margin-bottom: @toastActionMargin;
|
189
|
-
}
|
190
|
-
&.icon when (@variationToastIcon) {
|
191
|
-
align-items: inherit;
|
192
|
-
& > :not(.icon):not(.actions) {
|
193
|
-
padding-left: @toastIconMessageContentPadding;
|
92
|
+
&.right when (@variationToastRight) {
|
93
|
+
bottom: @toastContainerDistance;
|
94
|
+
right: @toastContainerDistance;
|
95
|
+
margin-left: @toastContainerDistance;
|
194
96
|
}
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
top: e(%("calc(50%% - %d)", @toastIconCenteredAdjustment));
|
205
|
-
transform: none;
|
206
|
-
}
|
207
|
-
&.icon.icon.icon when (@variationToastIcon){
|
208
|
-
display: block;
|
209
|
-
}
|
97
|
+
&.left when (@variationToastLeft) {
|
98
|
+
bottom: @toastContainerDistance;
|
99
|
+
left: @toastContainerDistance;
|
100
|
+
margin-right: @toastContainerDistance;
|
101
|
+
}
|
102
|
+
&.center when (@variationToastCenter) {
|
103
|
+
left: 50%;
|
104
|
+
transform: translate(-50%, 0);
|
105
|
+
bottom: @toastContainerDistance;
|
210
106
|
}
|
211
|
-
}
|
212
107
|
}
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
108
|
+
&.centered when (@variationToastCentered) {
|
109
|
+
transform: translate(-50%, -50%);
|
110
|
+
top: 50%;
|
111
|
+
left: 50%;
|
112
|
+
}
|
113
|
+
& .visible.toast-box,
|
114
|
+
.animating.toast-box,
|
115
|
+
.toast-box {
|
116
|
+
display: table !important;
|
117
|
+
}
|
118
|
+
&.horizontal when (@variationToastHorizontal) {
|
119
|
+
display: flex;
|
120
|
+
flex-direction: row;
|
121
|
+
& .toast-box {
|
122
|
+
margin-right: @toastBoxMarginRight;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
& .toast-box {
|
126
|
+
margin-bottom: @toastBoxMarginBottom;
|
127
|
+
border-radius: @defaultBorderRadius;
|
128
|
+
cursor: default;
|
129
|
+
will-change: transform, opacity;
|
219
130
|
&:hover {
|
220
|
-
|
221
|
-
}
|
222
|
-
}
|
223
|
-
&.vertical > .close.icon when (@variationToastVertical) and (@variationToastClose) {
|
224
|
-
margin-top: -@toastCloseTopDistance;
|
225
|
-
margin-right: -@toastCloseTopDistance;
|
226
|
-
}
|
227
|
-
&:not(.vertical) > .close.icon when (@variationToastClose) {
|
228
|
-
position: absolute;
|
229
|
-
top: @toastCloseTopDistance;
|
230
|
-
&:not(.left) {
|
231
|
-
right: @toastCloseRightDistance;
|
131
|
+
opacity: @toastOpacityOnHover;
|
232
132
|
}
|
233
|
-
|
234
|
-
|
133
|
+
&:not(.unclickable):hover {
|
134
|
+
cursor: @toastCursorOnHover;
|
235
135
|
}
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
&.bottom {
|
242
|
-
border-top-left-radius: 0;
|
243
|
-
border-top-right-radius: 0;
|
244
|
-
&.horizontal {
|
245
|
-
& > .image > img {
|
246
|
-
border-top-left-radius: 0;
|
136
|
+
& when (@variationToastFloating) {
|
137
|
+
&.floating,
|
138
|
+
&.hoverfloating:hover {
|
139
|
+
box-shadow: @floatingShadow;
|
140
|
+
border: @toastBoxBorder;
|
247
141
|
}
|
248
|
-
|
249
|
-
|
142
|
+
}
|
143
|
+
& when (@variationToastCompact) {
|
144
|
+
&.compact,
|
145
|
+
> .compact {
|
146
|
+
width: @toastWidth;
|
250
147
|
}
|
251
|
-
}
|
252
148
|
}
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
149
|
+
& > .ui.toast,
|
150
|
+
> .ui.message {
|
151
|
+
margin: @toastMargin;
|
152
|
+
position: relative;
|
153
|
+
}
|
154
|
+
& > .attached.progress when (@variationToastProgress) {
|
155
|
+
z-index: 1;
|
156
|
+
&.bottom {
|
157
|
+
margin: @toastMarginProgress -@toastLeftRightMargin @toastMarginBottom;
|
259
158
|
}
|
260
|
-
|
261
|
-
|
159
|
+
&.top {
|
160
|
+
margin: @toastMarginBottom -@toastLeftRightMargin @toastMarginProgress;
|
161
|
+
}
|
162
|
+
& .bar {
|
163
|
+
min-width: 0;
|
164
|
+
}
|
165
|
+
&.info .bar.bar.bar {
|
166
|
+
background: @toastInfoProgressColor;
|
167
|
+
}
|
168
|
+
&.warning .bar.bar.bar {
|
169
|
+
background: @toastWarningProgressColor;
|
170
|
+
}
|
171
|
+
&.success .bar.bar.bar {
|
172
|
+
background: @toastSuccessProgressColor;
|
173
|
+
}
|
174
|
+
&.error .bar.bar.bar {
|
175
|
+
background: @toastErrorProgressColor;
|
176
|
+
}
|
177
|
+
&.neutral .bar.bar.bar {
|
178
|
+
background: @toastNeutralProgressColor;
|
262
179
|
}
|
263
|
-
}
|
264
|
-
}
|
265
|
-
}
|
266
|
-
&.horizontal.actions when (@variationToastActions) {
|
267
|
-
& > .image > img {
|
268
|
-
border-bottom-left-radius: 0;
|
269
180
|
}
|
270
|
-
& > .
|
271
|
-
|
181
|
+
& > .ui.message when (@variationToastMessage) {
|
182
|
+
& > .close.icon when (@variationToastClose) {
|
183
|
+
top: @toastCloseTopDistance;
|
184
|
+
right: @toastCloseRightDistance;
|
185
|
+
}
|
186
|
+
& > .actions:last-child when (@variationToastActions) {
|
187
|
+
margin-bottom: @toastActionMargin;
|
188
|
+
}
|
189
|
+
&.icon when (@variationToastIcon) {
|
190
|
+
align-items: inherit;
|
191
|
+
& > :not(.icon):not(.actions) {
|
192
|
+
padding-left: @toastIconMessageContentPadding;
|
193
|
+
}
|
194
|
+
& > i.icon:not(.close) when (@variationToastIcon) {
|
195
|
+
display: inline-block;
|
196
|
+
position: absolute;
|
197
|
+
width: @toastIconMessageWidth;
|
198
|
+
top: 50%;
|
199
|
+
transform: translateY(-50%);
|
200
|
+
}
|
201
|
+
&:not(.vertical) {
|
202
|
+
&.actions > i.icon:not(.close) when (@variationToastActions) and (@variationToastIcon) {
|
203
|
+
top: e(%("calc(50%% - %d)", @toastIconCenteredAdjustment));
|
204
|
+
transform: none;
|
205
|
+
}
|
206
|
+
&.icon.icon.icon when (@variationToastIcon) {
|
207
|
+
display: block;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
272
211
|
}
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
212
|
+
& .ui.toast {
|
213
|
+
& > .close.icon when (@variationToastClose) {
|
214
|
+
cursor: pointer;
|
215
|
+
margin: 0;
|
216
|
+
opacity: @toastCloseOpacity;
|
217
|
+
transition: @toastCloseTransition;
|
218
|
+
&:hover {
|
219
|
+
opacity: 1;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
&.vertical > .close.icon when (@variationToastVertical) and (@variationToastClose) {
|
223
|
+
margin-top: -@toastCloseTopDistance;
|
224
|
+
margin-right: -@toastCloseTopDistance;
|
225
|
+
}
|
226
|
+
&:not(.vertical) > .close.icon when (@variationToastClose) {
|
227
|
+
position: absolute;
|
228
|
+
top: @toastCloseTopDistance;
|
229
|
+
&:not(.left) {
|
230
|
+
right: @toastCloseRightDistance;
|
231
|
+
}
|
232
|
+
&.left {
|
233
|
+
margin-left: -@toastCloseRightDistance;
|
234
|
+
}
|
235
|
+
}
|
281
236
|
}
|
282
|
-
|
283
|
-
|
237
|
+
& .ui.card when (@variationToastCard) {
|
238
|
+
margin: 0;
|
239
|
+
&.attached:not(.vertical) when (@variationToastAttached) {
|
240
|
+
&.bottom {
|
241
|
+
border-top-left-radius: 0;
|
242
|
+
border-top-right-radius: 0;
|
243
|
+
&.horizontal {
|
244
|
+
& > .image > img {
|
245
|
+
border-top-left-radius: 0;
|
246
|
+
}
|
247
|
+
& > .image:last-child > img {
|
248
|
+
border-top-right-radius: 0;
|
249
|
+
}
|
250
|
+
}
|
251
|
+
}
|
252
|
+
&.top {
|
253
|
+
border-bottom-left-radius: 0;
|
254
|
+
border-bottom-right-radius: 0;
|
255
|
+
&.horizontal {
|
256
|
+
& > .image > img {
|
257
|
+
border-bottom-left-radius: 0;
|
258
|
+
}
|
259
|
+
& > .image:last-child > img {
|
260
|
+
border-bottom-right-radius: 0;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
}
|
264
|
+
}
|
265
|
+
&.horizontal.actions when (@variationToastActions) {
|
266
|
+
& > .image > img {
|
267
|
+
border-bottom-left-radius: 0;
|
268
|
+
}
|
269
|
+
& > .image:last-child > img {
|
270
|
+
border-bottom-right-radius: 0;
|
271
|
+
}
|
272
|
+
}
|
284
273
|
}
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
}
|
300
|
-
& .actions when (@variationToastActions) {
|
301
|
-
padding: @toastActionPadding @toastActionPadding @toastActionPaddingBottom @toastActionPadding;
|
302
|
-
text-align: right;
|
303
|
-
&.attached:not(.vertical) when (@variationToastAttached) {
|
304
|
-
margin-right: @toastLeftRightMargin;
|
274
|
+
& .progressing {
|
275
|
+
animation-iteration-count: 1;
|
276
|
+
animation-timing-function: linear;
|
277
|
+
& when (@variationToastProgress) {
|
278
|
+
&.up {
|
279
|
+
animation-name: progressUp;
|
280
|
+
}
|
281
|
+
&.down {
|
282
|
+
animation-name: progressDown;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
&.wait {
|
286
|
+
animation-name: progressWait;
|
287
|
+
}
|
305
288
|
}
|
306
|
-
&:
|
307
|
-
|
308
|
-
border-top: @toastActionBorder;
|
289
|
+
&:hover .pausable.progressing {
|
290
|
+
animation-play-state: paused;
|
309
291
|
}
|
310
|
-
|
311
|
-
|
292
|
+
& .ui.toast:not(.vertical) {
|
293
|
+
display: block;
|
312
294
|
}
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
border-top: 0;
|
332
|
-
margin-top: -@toastActionPaddingBottom;
|
333
|
-
margin-bottom: -@toastActionPaddingBottom;
|
334
|
-
margin-left: @toastActionMarginLeft;
|
335
|
-
justify-content: space-around;
|
336
|
-
&:not(.basic) {
|
337
|
-
border-left: @toastActionBorder;
|
338
|
-
}
|
339
|
-
& > .button:not(:last-child) {
|
340
|
-
margin-bottom: @toastActionMarginBottom;
|
295
|
+
& :not(.comment) {
|
296
|
+
&:not(.card) .actions when (@variationToastActions) {
|
297
|
+
margin: @toastActionMarginTop @toastActionMargin @toastActionMargin @toastActionMargin;
|
298
|
+
}
|
299
|
+
& .actions when (@variationToastActions) {
|
300
|
+
padding: @toastActionPadding @toastActionPadding @toastActionPaddingBottom @toastActionPadding;
|
301
|
+
text-align: right;
|
302
|
+
&.attached:not(.vertical) when (@variationToastAttached) {
|
303
|
+
margin-right: @toastLeftRightMargin;
|
304
|
+
}
|
305
|
+
&:not(.basic):not(.attached) {
|
306
|
+
background: @toastActionBackground;
|
307
|
+
border-top: @toastActionBorder;
|
308
|
+
}
|
309
|
+
&.left {
|
310
|
+
text-align: left;
|
311
|
+
}
|
312
|
+
}
|
341
313
|
}
|
342
|
-
|
343
|
-
|
314
|
+
& when (@variationToastVertical) {
|
315
|
+
& .vertical.actions > .button,
|
316
|
+
& > .vertical > .vertical.vertical,
|
317
|
+
& > .vertical.vertical.vertical {
|
318
|
+
display: flex;
|
319
|
+
}
|
344
320
|
}
|
345
|
-
|
346
|
-
|
321
|
+
& :not(.comment) .vertical.actions when (@variationToastVertical) and (@variationToastActions) {
|
322
|
+
flex-direction: column;
|
323
|
+
& > .button {
|
324
|
+
justify-content: center;
|
325
|
+
}
|
326
|
+
&.attached > .button when (@variationToastAttached) {
|
327
|
+
align-items: center;
|
328
|
+
}
|
329
|
+
&:not(.attached) {
|
330
|
+
border-top: 0;
|
331
|
+
margin-top: -@toastActionPaddingBottom;
|
332
|
+
margin-bottom: -@toastActionPaddingBottom;
|
333
|
+
margin-left: @toastActionMarginLeft;
|
334
|
+
justify-content: space-around;
|
335
|
+
&:not(.basic) {
|
336
|
+
border-left: @toastActionBorder;
|
337
|
+
}
|
338
|
+
& > .button:not(:last-child) {
|
339
|
+
margin-bottom: @toastActionMarginBottom;
|
340
|
+
}
|
341
|
+
&.top {
|
342
|
+
justify-content: flex-start;
|
343
|
+
}
|
344
|
+
&.bottom {
|
345
|
+
justify-content: flex-end;
|
346
|
+
}
|
347
|
+
}
|
347
348
|
}
|
348
|
-
}
|
349
349
|
}
|
350
|
-
}
|
351
350
|
}
|
352
351
|
|
353
352
|
.ui.vertical.attached when (@variationToastVertical) and (@variationToastAttached) {
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
353
|
+
&:not(.left) {
|
354
|
+
&.card when (@variationToastCard) {
|
355
|
+
& > .image > img {
|
356
|
+
border-top-right-radius: 0;
|
357
|
+
}
|
358
|
+
&.horizontal > .image:last-child > img {
|
359
|
+
border-top-right-radius: 0;
|
360
|
+
border-bottom-right-radius: 0;
|
361
|
+
}
|
362
|
+
}
|
363
|
+
&.card,
|
364
|
+
&.toast {
|
365
|
+
border-top-right-radius: 0;
|
366
|
+
border-bottom-right-radius: 0;
|
367
|
+
}
|
368
|
+
&.actions when (@variationToastActions) {
|
369
|
+
border-top-right-radius: @toastBorderRadius;
|
370
|
+
border-bottom-right-radius: @toastBorderRadius;
|
371
|
+
& .button:first-child,
|
372
|
+
.button:last-child {
|
373
|
+
border-top-left-radius: 0;
|
374
|
+
border-bottom-left-radius: 0;
|
375
|
+
}
|
376
|
+
}
|
377
|
+
&.message when (@variationToastMessage) {
|
378
|
+
border-top-right-radius: 0;
|
379
|
+
border-bottom-left-radius: @toastBorderRadius;
|
380
|
+
}
|
381
|
+
}
|
382
|
+
&.left {
|
383
|
+
&.card when (@variationToastCard) {
|
384
|
+
& > .image > img {
|
385
|
+
border-top-left-radius: 0;
|
386
|
+
}
|
387
|
+
&.horizontal > .image > img {
|
388
|
+
border-top-left-radius: 0;
|
389
|
+
border-bottom-left-radius: 0;
|
390
|
+
}
|
391
|
+
}
|
392
|
+
&.card,
|
393
|
+
&.toast {
|
394
|
+
border-top-left-radius: 0;
|
395
|
+
border-bottom-left-radius: 0;
|
396
|
+
}
|
397
|
+
&.actions when (@variationToastActions) {
|
398
|
+
border-top-left-radius: @toastBorderRadius;
|
399
|
+
border-bottom-left-radius: @toastBorderRadius;
|
400
|
+
& .button:first-child,
|
401
|
+
.button:last-child {
|
402
|
+
border-top-right-radius: 0;
|
403
|
+
border-bottom-right-radius: 0;
|
404
|
+
}
|
405
|
+
}
|
406
|
+
&.message.message.message when (@variationToastMessage) {
|
407
|
+
border-top-right-radius: @toastBorderRadius;
|
408
|
+
border-bottom-right-radius: @toastBorderRadius;
|
409
|
+
}
|
410
|
+
}
|
412
411
|
}
|
413
412
|
|
414
413
|
.ui.attached:not(.vertical) when (@variationToastAttached) {
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
414
|
+
&:not(.top) {
|
415
|
+
&.actions when (@variationToastActions) {
|
416
|
+
border-bottom-left-radius: @toastBorderRadius;
|
417
|
+
border-bottom-right-radius: @toastBorderRadius;
|
418
|
+
& .button:first-child {
|
419
|
+
border-bottom-left-radius: @toastBorderRadius;
|
420
|
+
}
|
421
|
+
& .button:last-child {
|
422
|
+
border-bottom-right-radius: @toastBorderRadius;
|
423
|
+
}
|
424
|
+
}
|
425
|
+
}
|
426
|
+
&.top {
|
427
|
+
&.actions when (@variationToastActions) {
|
428
|
+
border-top-left-radius: @toastBorderRadius;
|
429
|
+
border-top-right-radius: @toastBorderRadius;
|
430
|
+
& .button:first-child {
|
431
|
+
border-top-left-radius: @toastBorderRadius;
|
432
|
+
}
|
433
|
+
& .button:last-child {
|
434
|
+
border-top-right-radius: @toastBorderRadius;
|
435
|
+
}
|
436
|
+
}
|
437
|
+
}
|
439
438
|
}
|
440
439
|
|
441
440
|
/*******************************
|
@@ -449,149 +448,148 @@
|
|
449
448
|
margin: @toastMargin;
|
450
449
|
color: @toastInvertedTextColor;
|
451
450
|
background-color: @toastNeutralColor;
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
}
|
457
|
-
&.info when (@variationToastInfo) {
|
458
|
-
background-color: @toastInfoColor;
|
459
|
-
color: @toastTextColor;
|
460
|
-
}
|
461
|
-
&.warning when (@variationToastWarning) {
|
462
|
-
background-color: @toastWarningColor;
|
463
|
-
color: @toastTextColor;
|
464
|
-
}
|
465
|
-
&.success when (@variationToastSuccess) {
|
466
|
-
background-color: @toastSuccessColor;
|
467
|
-
color: @toastTextColor;
|
468
|
-
}
|
469
|
-
&.error when (@variationToastError) {
|
470
|
-
background-color: @toastErrorColor;
|
471
|
-
color: @toastTextColor;
|
472
|
-
}
|
473
|
-
&.neutral {
|
474
|
-
background-color: @toastNeutralColor;
|
475
|
-
color: @toastNeutralTextColor;
|
476
|
-
}
|
477
|
-
& > i.icon:not(.close) when (@variationToastIcon) {
|
478
|
-
font-size: @toastIconFontSize;
|
479
|
-
}
|
480
|
-
&:not(.vertical) {
|
481
|
-
&:not(.centered):not(.center) {
|
482
|
-
& > i.icon:not(.close) when (@variationToastIcon) {
|
483
|
-
position: absolute;
|
484
|
-
}
|
485
|
-
& > .ui.image when (@variationToastImage) {
|
486
|
-
position: absolute;
|
487
|
-
}
|
488
|
-
}
|
489
|
-
& > i.icon:not(.close) when (@variationToastIcon) {
|
490
|
-
& + .content {
|
491
|
-
padding-left: @toastIconContentPadding;
|
492
|
-
}
|
493
|
-
}
|
494
|
-
& > .close.icon + .content when (@variationToastClose){
|
495
|
-
padding-left: @toastCloseDistance;
|
496
|
-
}
|
497
|
-
& > .ui.image when (@variationToastImage) {
|
498
|
-
&.avatar + .content {
|
499
|
-
padding-left: @toastAvatarImageContentPadding;
|
500
|
-
min-height: @toastAvatarImageHeight;
|
501
|
-
}
|
502
|
-
&.mini + .content {
|
503
|
-
padding-left: @toastMiniImageContentPadding;
|
504
|
-
min-height: @toastMiniImageHeight;
|
505
|
-
}
|
506
|
-
&.tiny + .content {
|
507
|
-
padding-left: @toastTinyImageContentPadding;
|
508
|
-
min-height: @toastTinyImageHeight;
|
509
|
-
}
|
510
|
-
&.small + .content {
|
511
|
-
padding-left: @toastSmallImageContentPadding;
|
512
|
-
min-height: @toastSmallImageHeight;
|
513
|
-
}
|
514
|
-
}
|
515
|
-
&:not(.centered):not(.center) when (@variationToastImage) or (@variationToastIcon) {
|
516
|
-
& > .centered.image,
|
517
|
-
> .centered.icon {
|
518
|
-
transform: translateY(-50%);
|
519
|
-
top: 50%;
|
520
|
-
}
|
451
|
+
& > .content > .header {
|
452
|
+
font-weight: bold;
|
453
|
+
color: inherit;
|
454
|
+
margin: 0;
|
521
455
|
}
|
522
|
-
&.
|
523
|
-
|
456
|
+
&.info when (@variationToastInfo) {
|
457
|
+
background-color: @toastInfoColor;
|
458
|
+
color: @toastTextColor;
|
524
459
|
}
|
525
|
-
&.
|
526
|
-
|
460
|
+
&.warning when (@variationToastWarning) {
|
461
|
+
background-color: @toastWarningColor;
|
462
|
+
color: @toastTextColor;
|
527
463
|
}
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
flex-grow: 1;
|
464
|
+
&.success when (@variationToastSuccess) {
|
465
|
+
background-color: @toastSuccessColor;
|
466
|
+
color: @toastTextColor;
|
532
467
|
}
|
533
|
-
&.
|
534
|
-
|
468
|
+
&.error when (@variationToastError) {
|
469
|
+
background-color: @toastErrorColor;
|
470
|
+
color: @toastTextColor;
|
535
471
|
}
|
536
|
-
|
537
|
-
|
472
|
+
&.neutral {
|
473
|
+
background-color: @toastNeutralColor;
|
474
|
+
color: @toastNeutralTextColor;
|
538
475
|
}
|
539
|
-
&
|
540
|
-
|
541
|
-
> i.icon:not(.close) + .content {
|
542
|
-
padding-left: @toastImageContentPadding;
|
543
|
-
}
|
476
|
+
& > i.icon:not(.close) when (@variationToastIcon) {
|
477
|
+
font-size: @toastIconFontSize;
|
544
478
|
}
|
545
|
-
|
546
|
-
|
547
|
-
|
479
|
+
&:not(.vertical) {
|
480
|
+
&:not(.centered):not(.center) {
|
481
|
+
& > i.icon:not(.close) when (@variationToastIcon) {
|
482
|
+
position: absolute;
|
483
|
+
}
|
484
|
+
& > .ui.image when (@variationToastImage) {
|
485
|
+
position: absolute;
|
486
|
+
}
|
487
|
+
}
|
488
|
+
& > i.icon:not(.close) when (@variationToastIcon) {
|
489
|
+
& + .content {
|
490
|
+
padding-left: @toastIconContentPadding;
|
491
|
+
}
|
492
|
+
}
|
493
|
+
& > .close.icon + .content when (@variationToastClose) {
|
494
|
+
padding-left: @toastCloseDistance;
|
495
|
+
}
|
496
|
+
& > .ui.image when (@variationToastImage) {
|
497
|
+
&.avatar + .content {
|
498
|
+
padding-left: @toastAvatarImageContentPadding;
|
499
|
+
min-height: @toastAvatarImageHeight;
|
500
|
+
}
|
501
|
+
&.mini + .content {
|
502
|
+
padding-left: @toastMiniImageContentPadding;
|
503
|
+
min-height: @toastMiniImageHeight;
|
504
|
+
}
|
505
|
+
&.tiny + .content {
|
506
|
+
padding-left: @toastTinyImageContentPadding;
|
507
|
+
min-height: @toastTinyImageHeight;
|
508
|
+
}
|
509
|
+
&.small + .content {
|
510
|
+
padding-left: @toastSmallImageContentPadding;
|
511
|
+
min-height: @toastSmallImageHeight;
|
512
|
+
}
|
513
|
+
}
|
514
|
+
&:not(.centered):not(.center) when (@variationToastImage) or (@variationToastIcon) {
|
515
|
+
& > .centered.image,
|
516
|
+
> .centered.icon {
|
517
|
+
transform: translateY(-50%);
|
518
|
+
top: 50%;
|
519
|
+
}
|
520
|
+
}
|
521
|
+
&.actions > .centered.image when (@variationToastActions) and (@variationToastImage) {
|
522
|
+
top: e(%("calc(50%% - %d)", @toastImageCenteredAdjustment));
|
523
|
+
}
|
524
|
+
&.actions > .centered.icon when (@variationToastActions) and (@variationToastIcon) {
|
525
|
+
top: e(%("calc(50%% - %d)", @toastIconCenteredAdjustment));
|
526
|
+
}
|
548
527
|
}
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
528
|
+
&.vertical when (@variationToastVertical) {
|
529
|
+
& > .content {
|
530
|
+
flex-grow: 1;
|
531
|
+
}
|
532
|
+
&.attached when (@variationToastAttached) {
|
533
|
+
flex-grow: 1;
|
534
|
+
}
|
535
|
+
& > .close.icon + .content when (@variationToastClose) {
|
536
|
+
padding-left: @toastCloseDistanceVertical;
|
537
|
+
}
|
538
|
+
& when (@variationToastImage) or (@variationToastIcon) {
|
539
|
+
& > .ui.image + .content,
|
540
|
+
> i.icon:not(.close) + .content {
|
541
|
+
padding-left: @toastImageContentPadding;
|
542
|
+
}
|
543
|
+
}
|
544
|
+
& > .ui.image when (@variationToastImage) {
|
545
|
+
align-self: flex-start;
|
546
|
+
flex-shrink: 0; /* IE11 fix */
|
547
|
+
}
|
548
|
+
& when (@variationToastImage) or (@variationToastIcon) {
|
549
|
+
& > .centered.image,
|
550
|
+
> .centered.icon {
|
551
|
+
align-self: center;
|
552
|
+
}
|
553
|
+
}
|
554
554
|
}
|
555
|
-
}
|
556
555
|
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
556
|
+
&.attached when (@variationToastAttached) {
|
557
|
+
&.bottom {
|
558
|
+
border-top-left-radius: 0;
|
559
|
+
border-top-right-radius: 0;
|
560
|
+
}
|
561
|
+
&.top {
|
562
|
+
border-bottom-left-radius: 0;
|
563
|
+
border-bottom-right-radius: 0;
|
564
|
+
}
|
565
565
|
}
|
566
|
-
}
|
567
566
|
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
567
|
+
&.ui.ui.ui.image when (@variationToastImage) {
|
568
|
+
padding: 0;
|
569
|
+
& > .content {
|
570
|
+
padding-top: @inputVerticalPadding;
|
571
|
+
padding-bottom: @inputVerticalPadding;
|
572
|
+
padding-right: @inputHorizontalPadding;
|
573
|
+
}
|
574
|
+
& > .actions when (@variationToastActions) {
|
575
|
+
margin: 0;
|
576
|
+
}
|
577
|
+
& > .ui.image {
|
578
|
+
border-top-left-radius: @defaultBorderRadius;
|
579
|
+
border-bottom-left-radius: @defaultBorderRadius;
|
580
|
+
&.mini {
|
581
|
+
min-width: @toastImageMiniImageAdjustment;
|
582
|
+
& + .content {
|
583
|
+
min-height: @toastImageMiniImageAdjustment;
|
584
|
+
padding-left: @toastImageMiniImagePadding;
|
585
|
+
}
|
586
|
+
}
|
587
|
+
}
|
588
|
+
}
|
590
589
|
}
|
591
590
|
|
592
|
-
|
593
591
|
.ui.hoverfloating.message:hover when (@variationToastMessage) and (@variationToastFloating) {
|
594
|
-
|
592
|
+
box-shadow: 0 0 0 1px inset, @floatingShadow;
|
595
593
|
}
|
596
594
|
|
597
595
|
.ui.center.toast-container .toast-box,
|
@@ -604,114 +602,114 @@
|
|
604
602
|
}
|
605
603
|
|
606
604
|
& when (@variationToastCentered) {
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
605
|
+
.ui.ui.toast-container .toast-box .centered.toast,
|
606
|
+
.ui.ui.toast-container .toast-box .center.aligned.toast {
|
607
|
+
text-align: center;
|
608
|
+
display: flex;
|
609
|
+
justify-content: center;
|
612
610
|
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
611
|
+
& > .content,
|
612
|
+
& > .ui.image,
|
613
|
+
& > i.icon:not(.close) {
|
614
|
+
align-self: center;
|
615
|
+
}
|
617
616
|
}
|
618
|
-
}
|
619
617
|
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
618
|
+
.ui.toast-container .toast-box .toast .centered.content,
|
619
|
+
.ui.toast-container .toast-box .toast .center.aligned.content {
|
620
|
+
text-align: center;
|
621
|
+
}
|
624
622
|
|
625
|
-
|
626
|
-
|
627
|
-
|
623
|
+
.ui.toast-container .toast-box .centered.actions,
|
624
|
+
.ui.toast-container .toast-box .center.aligned.actions {
|
625
|
+
text-align: center;
|
628
626
|
|
629
|
-
|
630
|
-
|
631
|
-
|
627
|
+
&:not(.attached) > .button:not(.fluid) {
|
628
|
+
margin-left: @toastActionCenteredMargin;
|
629
|
+
margin-right: @toastActionCenteredMargin;
|
630
|
+
}
|
632
631
|
}
|
633
|
-
}
|
634
632
|
}
|
635
633
|
|
636
|
-
|
634
|
+
/* --------------
|
637
635
|
Colors
|
638
636
|
-------------- */
|
639
637
|
& when not (@variationToastColors = false) {
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
638
|
+
each(@variationToastColors, {
|
639
|
+
@color: @value;
|
640
|
+
@c: @colors[@@color][color];
|
641
|
+
@l: @colors[@@color][light];
|
644
642
|
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
643
|
+
.ui.@{color}.toast {
|
644
|
+
background-color: @c;
|
645
|
+
color: @toastTextColor;
|
646
|
+
}
|
647
|
+
& when (@variationToastInverted) {
|
648
|
+
.ui.inverted.@{color}.toast,
|
649
|
+
.ui.toast-container .toast-box > .inverted.@{color}.attached.progress .bar {
|
650
|
+
background-color: @l;
|
651
|
+
color: @toastInvertedTextColor;
|
652
|
+
}
|
653
|
+
}
|
654
|
+
})
|
657
655
|
}
|
658
656
|
|
659
657
|
& when (@variationToastInverted) {
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
658
|
+
.ui.inverted.toast {
|
659
|
+
color: @toastTextColor;
|
660
|
+
background-color: @toastInvertedColor;
|
661
|
+
}
|
664
662
|
}
|
665
663
|
|
666
664
|
@media only screen and (max-width: @mobileToastBreakpoint) {
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
665
|
+
.ui.toast-container .toast-box {
|
666
|
+
&.toast-box,
|
667
|
+
& > .compact,
|
668
|
+
& > .vertical > *,
|
669
|
+
& > * {
|
670
|
+
width: auto;
|
671
|
+
max-width: 100%;
|
672
|
+
}
|
673
|
+
& > *:not(.vertical) {
|
674
|
+
min-width: @mobileWidth;
|
675
|
+
}
|
676
|
+
& when (@variationToastCard) {
|
677
|
+
& > .ui.card.horizontal,
|
678
|
+
> .vertical > .ui.horizontal.card {
|
679
|
+
min-width: initial;
|
680
|
+
}
|
681
|
+
}
|
682
|
+
}
|
685
683
|
}
|
686
684
|
|
687
|
-
|
685
|
+
/* ---------------
|
688
686
|
Progress Bar
|
689
|
-
|
687
|
+
---------------- */
|
690
688
|
& when (@variationToastProgress) {
|
691
|
-
|
692
|
-
|
693
|
-
|
689
|
+
@keyframes progressDown {
|
690
|
+
0% {
|
691
|
+
width: 100%;
|
692
|
+
}
|
693
|
+
100% {
|
694
|
+
width: 0;
|
695
|
+
}
|
694
696
|
}
|
695
|
-
|
696
|
-
|
697
|
+
@keyframes progressUp {
|
698
|
+
0% {
|
699
|
+
width: 0;
|
700
|
+
}
|
701
|
+
100% {
|
702
|
+
width: 100%;
|
703
|
+
}
|
697
704
|
}
|
698
|
-
|
699
|
-
|
705
|
+
}
|
706
|
+
@keyframes progressWait {
|
700
707
|
0% {
|
701
|
-
|
708
|
+
opacity: 1;
|
702
709
|
}
|
703
710
|
100% {
|
704
|
-
|
711
|
+
opacity: 0;
|
705
712
|
}
|
706
|
-
}
|
707
|
-
}
|
708
|
-
@keyframes progressWait {
|
709
|
-
0% {
|
710
|
-
opacity: 1;
|
711
|
-
}
|
712
|
-
100% {
|
713
|
-
opacity: 0;
|
714
|
-
}
|
715
713
|
}
|
716
714
|
|
717
715
|
.loadUIOverrides();
|