@colijnit/inphoto 300.1.7 → 300.1.9

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.
Files changed (100) hide show
  1. package/assets/inphoto-add-products-tile.jpg +0 -0
  2. package/assets/inphoto-change-floorl.jpg +0 -0
  3. package/assets/inphoto-change-wall.jpg +0 -0
  4. package/fesm2022/colijnit-inphoto.mjs +1674 -681
  5. package/fesm2022/colijnit-inphoto.mjs.map +1 -1
  6. package/icons/layer_group_sharp_solid.svg +1 -0
  7. package/icons/paint_roller_sharp_solid.svg +1 -0
  8. package/index.d.ts +247 -75
  9. package/lib/component/ai-prompt/style/_layout.scss +76 -86
  10. package/lib/component/ai-prompt/style/_material-definition.scss +38 -6
  11. package/lib/component/ai-prompt/style/_theme.scss +78 -67
  12. package/lib/component/canvas-tool-bar/style/_layout.scss +71 -65
  13. package/lib/component/canvas-tool-bar/style/_material-definition.scss +40 -11
  14. package/lib/component/canvas-tool-bar/style/_theme.scss +138 -106
  15. package/lib/component/catalog/style/_layout.scss +68 -55
  16. package/lib/component/catalog/style/_material-definition.scss +22 -4
  17. package/lib/component/catalog/style/_theme.scss +43 -59
  18. package/lib/component/configuration-side-bar-menu/style/_layout.scss +33 -33
  19. package/lib/component/configuration-side-bar-menu/style/_material-definition.scss +10 -6
  20. package/lib/component/configuration-side-bar-menu/style/_theme.scss +4 -1
  21. package/lib/component/edit-canvas/style/_layout.scss +74 -75
  22. package/lib/component/edit-canvas/style/_material-definition.scss +21 -3
  23. package/lib/component/edit-canvas/style/_theme.scss +26 -46
  24. package/lib/component/error-dialog/style/_layout.scss +36 -39
  25. package/lib/component/error-dialog/style/_material-definition.scss +12 -3
  26. package/lib/component/error-dialog/style/_theme.scss +17 -10
  27. package/lib/component/header/style/_layout.scss +20 -21
  28. package/lib/component/header/style/_material-definition.scss +8 -6
  29. package/lib/component/header/style/_theme.scss +7 -0
  30. package/lib/component/image-enhancer/style/_layout.scss +37 -38
  31. package/lib/component/image-enhancer/style/_material-definition.scss +13 -6
  32. package/lib/component/image-enhancer/style/_theme.scss +45 -43
  33. package/lib/component/image-enhancer-style/style/_layout.scss +65 -107
  34. package/lib/component/image-enhancer-style/style/_material-definition.scss +16 -3
  35. package/lib/component/image-enhancer-style/style/_theme.scss +120 -72
  36. package/lib/component/image-enhancer-upload/style/_layout.scss +48 -11
  37. package/lib/component/image-enhancer-upload/style/_material-definition.scss +14 -3
  38. package/lib/component/image-enhancer-upload/style/_theme.scss +66 -87
  39. package/lib/component/image-history/style/_layout.scss +57 -127
  40. package/lib/component/image-history/style/_material-definition.scss +20 -5
  41. package/lib/component/image-history/style/_theme.scss +25 -46
  42. package/lib/component/image-history-tile/style/_layout.scss +53 -56
  43. package/lib/component/image-history-tile/style/_material-definition.scss +15 -3
  44. package/lib/component/image-history-tile/style/_theme.scss +32 -28
  45. package/lib/component/image-overlay/style/_layout.scss +84 -0
  46. package/lib/component/image-overlay/style/_material-definition.scss +21 -0
  47. package/lib/component/image-overlay/style/_theme.scss +40 -0
  48. package/lib/component/image-overlay/style/material.scss +3 -0
  49. package/lib/component/image-process-complete/style/_layout.scss +42 -33
  50. package/lib/component/image-process-complete/style/_material-definition.scss +13 -5
  51. package/lib/component/image-process-complete/style/_theme.scss +24 -18
  52. package/lib/component/image-tile/components/color-palette-option/style/_layout.scss +15 -17
  53. package/lib/component/image-tile/components/color-palette-option/style/_material-definition.scss +9 -3
  54. package/lib/component/image-tile/components/color-palette-option/style/_theme.scss +15 -12
  55. package/lib/component/image-tile/style/_layout.scss +102 -101
  56. package/lib/component/image-tile/style/_material-definition.scss +18 -3
  57. package/lib/component/image-tile/style/_theme.scss +58 -53
  58. package/lib/component/image-upload/style/_layout.scss +93 -103
  59. package/lib/component/image-upload/style/_material-definition.scss +35 -9
  60. package/lib/component/image-upload/style/_theme.scss +103 -80
  61. package/lib/component/inphoto/style/_layout.scss +11 -0
  62. package/lib/component/inphoto/style/_material-definition.scss +3 -1
  63. package/lib/component/inphoto/style/_theme.scss +2 -1
  64. package/lib/component/marker/style/_layout.scss +30 -0
  65. package/lib/component/marker/style/_material-definition.scss +12 -0
  66. package/lib/component/marker/style/_theme.scss +30 -0
  67. package/lib/component/marker/style/material.scss +3 -0
  68. package/lib/component/photo-editor/style/_layout.scss +38 -29
  69. package/lib/component/photo-editor/style/_material-definition.scss +8 -3
  70. package/lib/component/photo-editor/style/_theme.scss +2 -1
  71. package/lib/component/prepare-starting-image/style/_layout.scss +34 -26
  72. package/lib/component/prepare-starting-image/style/_material-definition.scss +11 -4
  73. package/lib/component/prepare-starting-image/style/_theme.scss +7 -0
  74. package/lib/component/process-loader/style/_layout.scss +74 -92
  75. package/lib/component/process-loader/style/_material-definition.scss +24 -6
  76. package/lib/component/process-loader/style/_theme.scss +128 -103
  77. package/lib/component/scene-context-menu/style/_layout.scss +59 -66
  78. package/lib/component/scene-context-menu/style/_material-definition.scss +27 -4
  79. package/lib/component/scene-context-menu/style/_theme.scss +57 -44
  80. package/lib/component/segment-inpaint/style/_layout.scss +51 -32
  81. package/lib/component/segment-inpaint/style/_material-definition.scss +11 -3
  82. package/lib/component/segment-inpaint/style/_theme.scss +29 -19
  83. package/lib/component/side-bar-menu/style/_layout.scss +26 -45
  84. package/lib/component/side-bar-menu/style/_material-definition.scss +12 -3
  85. package/lib/component/side-bar-menu/style/_theme.scss +32 -6
  86. package/lib/component/side-panel/style/_layout.scss +45 -40
  87. package/lib/component/side-panel/style/_material-definition.scss +16 -6
  88. package/lib/component/side-panel/style/_theme.scss +39 -44
  89. package/lib/component/step-tile/style/_layout.scss +50 -53
  90. package/lib/component/step-tile/style/_material-definition.scss +20 -6
  91. package/lib/component/step-tile/style/_theme.scss +78 -72
  92. package/lib/component/threedscene/style/_layout.scss +57 -35
  93. package/lib/component/threedscene/style/_material-definition.scss +12 -3
  94. package/lib/component/threedscene/style/_theme.scss +17 -8
  95. package/lib/component/upload-starting-image/style/_layout.scss +58 -51
  96. package/lib/component/upload-starting-image/style/_material-definition.scss +18 -3
  97. package/lib/component/upload-starting-image/style/_theme.scss +39 -46
  98. package/lib/style/_index.scss +0 -1
  99. package/lib/style/_variables.scss +5 -2
  100. package/package.json +1 -1
@@ -1,26 +1,34 @@
1
- @use '../../../style' as cfg;
2
-
3
- @include cfg.export-module('co-prepare-starting-image-layout') {
4
- .co-prepare-starting-image {
5
- .prepare-starting-image-container {
6
- display: flex;
7
- width: 100%;
8
- height: 100%;
9
- min-height: 100vh;
10
-
11
-
12
- .prepare-image-preview {
13
- width: var(--co-inphoto-left-container-width);
14
- height: 100vh;
15
- background-size: var(--co-inphoto-background-size);
16
- background-repeat: var(--co-inphoto-background-repeat);
17
- background-position: var(--co-inphoto-background-position);
18
- }
19
-
20
- .prepare-starting-image-dialog {
21
- width: 100%;
22
- max-width: var(--co-inphoto-right-container-width);
23
- }
24
- }
25
- }
26
- }
1
+ @use '../../../style' as cfg;
2
+
3
+ @include cfg.export-module('co-prepare-starting-image-layout') {
4
+ .co-prepare-starting-image {
5
+ .prepare-starting-image-container {
6
+ display: flex;
7
+ align-items: flex-start;
8
+ width: var(--co-inphoto-prepare-starting-image-full-width);
9
+ min-height: var(--co-inphoto-prepare-starting-image-min-height);
10
+
11
+
12
+ .prepare-image-preview {
13
+ width: var(--co-inphoto-left-container-width);
14
+ margin: var(--co-inphoto-prepare-starting-image-preview-margin);
15
+ padding: var(--co-inphoto-prepare-starting-image-preview-padding);
16
+ display: inline-flex;
17
+
18
+ .prepare-image-view-container {
19
+ max-width: var(--co-inphoto-prepare-starting-image-preview-max-width);
20
+ img {
21
+ display: block;
22
+ max-width: var(--co-inphoto-prepare-starting-image-preview-max-width);
23
+ height: var(--co-inphoto-prepare-starting-image-image-height);
24
+ }
25
+ }
26
+ }
27
+
28
+ .prepare-starting-image-dialog {
29
+ width: var(--co-inphoto-prepare-starting-image-full-width);
30
+ max-width: var(--co-inphoto-right-container-width);
31
+ }
32
+ }
33
+ }
34
+ }
@@ -1,4 +1,11 @@
1
- :root {
2
- --co-inphoto-tile-next-background: #EFEEEE;
3
- --co-inphoto-prepare-icon-background: #FFF7ED;
4
- }
1
+ .co-prepare-starting-image {
2
+ --co-inphoto-prepare-starting-image-font-size-text: var(--co-inphoto-font-size-text);
3
+ --co-inphoto-prepare-starting-image-font-family: var(--co-inphoto-font-family);
4
+ --co-inphoto-prepare-icon-background: #FFF7ED;
5
+ --co-inphoto-prepare-starting-image-full-width: 100%;
6
+ --co-inphoto-prepare-starting-image-min-height: 100vh;
7
+ --co-inphoto-prepare-starting-image-preview-margin: 20px;
8
+ --co-inphoto-prepare-starting-image-preview-padding: 20px;
9
+ --co-inphoto-prepare-starting-image-preview-max-width: 100%;
10
+ --co-inphoto-prepare-starting-image-image-height: auto;
11
+ }
@@ -2,7 +2,14 @@
2
2
 
3
3
  @include cfg.export-module('co-prepare-starting-image-theme') {
4
4
  .co-prepare-starting-image {
5
+ font-family: var(--co-inphoto-prepare-starting-image-font-family);
6
+ font-size: var(--co-inphoto-prepare-starting-image-font-size-text);
7
+
5
8
  .prepare-starting-image-container {
9
+ .prepare-image-preview {
10
+ box-shadow: var(--co-inphoto-container-box-shadow);
11
+ }
12
+
6
13
  .prepare-starting-image-dialog {
7
14
  .prepare-starting-dialog-header {
8
15
  .header-icon {
@@ -1,92 +1,74 @@
1
- @use '../../../style' as cfg;
2
-
3
- @include cfg.export-module('co-process-loader-layout') {
4
- .co-process-loader {
5
- .loader-wrapper {
6
- position: fixed;
7
- inset: 0;
8
- display: flex;
9
- align-items: center;
10
- justify-content: center;
11
- z-index: 101;
12
- }
13
-
14
- .loader-container {
15
- text-align: center;
16
- display: flex;
17
- flex-direction: column;
18
- align-items: center;
19
- width: 375px;
20
- padding: 25px;
21
-
22
- .loading-icon {
23
- width: 100px;
24
- height: 100px;
25
- display: flex;
26
- justify-content: space-around;
27
- align-items: center;
28
- border-radius: 50%;
29
- padding: 15px;
30
- }
31
-
32
- .loading-text-carousel {
33
- margin-top: 30px;
34
- width: 450px;
35
- height: 60px;
36
- overflow: hidden;
37
- }
38
-
39
- .loading-text-track {
40
- display: flex;
41
- flex-direction: column;
42
- transform: translateY(calc(var(--active, 0) * 60px * -1));
43
- transition: transform 0.5s ease-in-out;
44
-
45
- &.no-transition {
46
- transition: none;
47
- }
48
- }
49
-
50
- .loading-text-item {
51
- flex: 0 0 auto;
52
- height: 60px;
53
- display: flex;
54
- align-items: center;
55
- justify-content: center;
56
- text-align: center;
57
- white-space: normal;
58
- @include cfg.sub-header-text();
59
-
60
- &::before {
61
- content: '';
62
- flex: none;
63
- width: 1.5em;
64
- }
65
- }
66
-
67
- .lt-dots {
68
- display: inline-flex;
69
- flex: none;
70
- width: 1.5em;
71
-
72
- span {
73
- animation: drop 1.4s ease-in-out infinite;
74
-
75
- &:nth-child(2) {
76
- animation-delay: 0.15s;
77
- }
78
-
79
- &:nth-child(3) {
80
- animation-delay: 0.30s;
81
- }
82
- }
83
- }
84
- }
85
-
86
- @media (prefers-reduced-motion: reduce) {
87
- .loading-text-track {
88
- transition: none;
89
- }
90
- }
91
- }
92
- }
1
+ @use '../../../style' as cfg;
2
+
3
+ @include cfg.export-module('co-process-loader-layout') {
4
+ .co-process-loader {
5
+ .loader-wrapper {
6
+ position: var(--co-inphoto-process-loader-position-fixed);
7
+ inset: var(--co-inphoto-process-loader-inset-zero);
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ z-index: var(--co-inphoto-process-loader-wrapper-z-index);
12
+ }
13
+
14
+ .loader-container {
15
+ text-align: center;
16
+ display: flex;
17
+ flex-direction: column;
18
+ align-items: center;
19
+ width: var(--co-inphoto-process-loader-container-width);
20
+ padding: var(--co-inphoto-process-loader-container-padding);
21
+
22
+ .loading-icon {
23
+ width: var(--co-inphoto-process-loader-icon-size);
24
+ height: var(--co-inphoto-process-loader-icon-size);
25
+ display: flex;
26
+ justify-content: space-around;
27
+ align-items: center;
28
+ padding: var(--co-inphoto-process-loader-icon-padding);
29
+ }
30
+
31
+ .loading-text-carousel {
32
+ margin-top: var(--co-inphoto-process-loader-carousel-margin-top);
33
+ width: var(--co-inphoto-process-loader-carousel-width);
34
+ height: var(--co-inphoto-process-loader-text-item-height);
35
+ overflow: hidden;
36
+ }
37
+
38
+ .loading-text-track {
39
+ display: flex;
40
+ flex-direction: column;
41
+ transform: var(--co-inphoto-process-loader-track-transform);
42
+ }
43
+
44
+ .loading-text-item {
45
+ flex: 0 0 auto;
46
+ height: var(--co-inphoto-process-loader-text-item-height);
47
+ display: flex;
48
+ align-items: center;
49
+ justify-content: center;
50
+ text-align: center;
51
+ white-space: normal;
52
+ @include cfg.sub-header-text();
53
+
54
+ &::before {
55
+ content: '';
56
+ flex: none;
57
+ width: var(--co-inphoto-process-loader-dots-size);
58
+ }
59
+ }
60
+
61
+ .lt-dots {
62
+ display: inline-flex;
63
+ flex: none;
64
+ width: var(--co-inphoto-process-loader-dots-size);
65
+ }
66
+ }
67
+
68
+ @media (prefers-reduced-motion: reduce) {
69
+ .loading-text-track {
70
+ transition: var(--co-inphoto-process-loader-track-transition-none);
71
+ }
72
+ }
73
+ }
74
+ }
@@ -1,6 +1,24 @@
1
- :root {
2
-
3
- --co-inphoto-loader-icon-size: 220px;
4
- --co-inphoto-loader-pulse-duration: 2.4s;
5
- --co-inphoto-loader-twinkle-duration: 1.6s;
6
- }
1
+ .co-process-loader {
2
+ --co-inphoto-process-loader-font-size-text: var(--co-inphoto-font-size-text);
3
+ --co-inphoto-process-loader-font-family: var(--co-inphoto-font-family);
4
+ --co-inphoto-loader-pulse-duration: 2.4s;
5
+ --co-inphoto-loader-twinkle-duration: 1.6s;
6
+ --co-inphoto-process-loader-position-fixed: fixed;
7
+ --co-inphoto-process-loader-inset-zero: 0;
8
+ --co-inphoto-process-loader-wrapper-z-index: 101;
9
+ --co-inphoto-process-loader-container-width: 375px;
10
+ --co-inphoto-process-loader-container-padding: 25px;
11
+ --co-inphoto-process-loader-icon-size: 100px;
12
+ --co-inphoto-process-loader-icon-radius: 50%;
13
+ --co-inphoto-process-loader-icon-padding: 15px;
14
+ --co-inphoto-process-loader-carousel-margin-top: 30px;
15
+ --co-inphoto-process-loader-carousel-width: 450px;
16
+ --co-inphoto-process-loader-text-item-height: 60px;
17
+ --co-inphoto-process-loader-track-transform: translateY(calc(var(--active, 0) * var(--co-inphoto-process-loader-text-item-height) * -1));
18
+ --co-inphoto-process-loader-track-transition: transform 0.5s ease-in-out;
19
+ --co-inphoto-process-loader-track-transition-none: none;
20
+ --co-inphoto-process-loader-dots-size: 1.5em;
21
+ --co-inphoto-process-loader-dots-animation: drop 1.4s ease-in-out infinite;
22
+ --co-inphoto-process-loader-dots-delay-2: 0.15s;
23
+ --co-inphoto-process-loader-dots-delay-3: 0.30s;
24
+ }
@@ -1,103 +1,128 @@
1
- @use '../../../style' as cfg;
2
-
3
- @include cfg.export-module('co-process-loader-theme') {
4
- .co-process-loader {
5
-
6
- .loader-wrapper {
7
- background: var(--co-inphoto-loader-background-dark);
8
- }
9
-
10
- .loader-container {
11
- border-radius: var(--co-inphoto-border-radius);
12
- background: var(--co-inphoto-dialog-background-color);
13
- }
14
-
15
- .loading-icon {
16
- background: var(--co-inphoto-header-icon-background);
17
- animation: wrap-pulse 2.4s ease-in-out infinite;
18
-
19
- svg {
20
- width: 100%;
21
- height: 100%;
22
- overflow: visible;
23
- }
24
-
25
- .spark {
26
- fill: var(--co-inphoto-success-color);
27
- transform-box: fill-box;
28
- transform-origin: center;
29
- transform-style: preserve-3d;
30
-
31
- &--big {
32
- animation: pulse var(--co-inphoto-loader-pulse-duration) ease-in-out infinite;
33
- }
34
-
35
- &--small-a {
36
- animation: twinkle var(--co-inphoto-loader-twinkle-duration) ease-in-out infinite;
37
- animation-delay: 0.3s;
38
- }
39
-
40
- &--small-b {
41
- animation: twinkle var(--co-inphoto-loader-twinkle-duration) ease-in-out infinite;
42
- animation-delay: 0.9s;
43
- }
44
- }
45
- }
46
-
47
- @keyframes wrap-pulse {
48
- 0% {
49
- box-shadow: 0 0 0 0 rgba(222, 241, 221, 0.7);
50
- }
51
- 70% {
52
- box-shadow: 0 0 0 20px rgba(222, 241, 221, 0);
53
- }
54
- 100% {
55
- box-shadow: 0 0 0 0 rgba(222, 241, 221, 0);
56
- }
57
- }
58
-
59
- @keyframes pulse {
60
- 0%, 100% {
61
- transform: scale(1) rotate(0deg);
62
- opacity: 1;
63
- }
64
- 50% {
65
- transform: scale(1.12) rotate(8deg);
66
- opacity: 0.85;
67
- }
68
- }
69
-
70
- @keyframes twinkle {
71
- 0%, 100% {
72
- transform: scale(0.5);
73
- opacity: 0.25;
74
- }
75
- 50% {
76
- transform: scale(1.15);
77
- opacity: 1;
78
- }
79
- }
80
-
81
- @keyframes drop {
82
- 0% {
83
- transform: translateY(-0.6em);
84
- opacity: 0;
85
- }
86
- 20% {
87
- transform: translateY(0);
88
- opacity: 1;
89
- }
90
- 80% {
91
- transform: translateY(0);
92
- opacity: 1;
93
- }
94
- 100% {
95
- transform: translateY(-0.6em);
96
- opacity: 0;
97
- }
98
- }
99
- }
100
- }
101
-
102
-
103
-
1
+ @use '../../../style' as cfg;
2
+
3
+ @include cfg.export-module('co-process-loader-theme') {
4
+ .co-process-loader {
5
+ font-family: var(--co-inphoto-process-loader-font-family);
6
+ font-size: var(--co-inphoto-process-loader-font-size-text);
7
+
8
+ .loader-wrapper {
9
+ background: var(--co-inphoto-loader-background-dark);
10
+ }
11
+
12
+ .loader-container {
13
+ border-radius: var(--co-inphoto-border-radius);
14
+ background: var(--co-inphoto-dialog-background-color);
15
+
16
+ .loading-icon {
17
+ border-radius: var(--co-inphoto-process-loader-icon-radius);
18
+ }
19
+
20
+ .loading-text-track {
21
+ transition: var(--co-inphoto-process-loader-track-transition);
22
+
23
+ &.no-transition {
24
+ transition: var(--co-inphoto-process-loader-track-transition-none);
25
+ }
26
+ }
27
+
28
+ .lt-dots {
29
+ span {
30
+ animation: var(--co-inphoto-process-loader-dots-animation);
31
+
32
+ &:nth-child(2) {
33
+ animation-delay: var(--co-inphoto-process-loader-dots-delay-2);
34
+ }
35
+
36
+ &:nth-child(3) {
37
+ animation-delay: var(--co-inphoto-process-loader-dots-delay-3);
38
+ }
39
+ }
40
+ }
41
+ }
42
+
43
+ .loading-icon {
44
+ background: var(--co-inphoto-header-icon-background);
45
+ animation: wrap-pulse var(--co-inphoto-loader-pulse-duration) ease-in-out infinite;
46
+
47
+ svg {
48
+ width: 100%;
49
+ height: 100%;
50
+ overflow: visible;
51
+ }
52
+
53
+ .spark {
54
+ fill: var(--co-inphoto-success-color);
55
+ transform-box: fill-box;
56
+ transform-origin: center;
57
+ transform-style: preserve-3d;
58
+
59
+ &--big {
60
+ animation: pulse var(--co-inphoto-loader-pulse-duration) ease-in-out infinite;
61
+ }
62
+
63
+ &--small-a {
64
+ animation: twinkle var(--co-inphoto-loader-twinkle-duration) ease-in-out infinite;
65
+ animation-delay: 0.3s;
66
+ }
67
+
68
+ &--small-b {
69
+ animation: twinkle var(--co-inphoto-loader-twinkle-duration) ease-in-out infinite;
70
+ animation-delay: 0.9s;
71
+ }
72
+ }
73
+ }
74
+
75
+ @keyframes wrap-pulse {
76
+ 0% {
77
+ box-shadow: 0 0 0 0 rgba(222, 241, 221, 0.7);
78
+ }
79
+ 70% {
80
+ box-shadow: 0 0 0 20px rgba(222, 241, 221, 0);
81
+ }
82
+ 100% {
83
+ box-shadow: 0 0 0 0 rgba(222, 241, 221, 0);
84
+ }
85
+ }
86
+
87
+ @keyframes pulse {
88
+ 0%, 100% {
89
+ transform: scale(1) rotate(0deg);
90
+ opacity: 1;
91
+ }
92
+ 50% {
93
+ transform: scale(1.12) rotate(8deg);
94
+ opacity: 0.85;
95
+ }
96
+ }
97
+
98
+ @keyframes twinkle {
99
+ 0%, 100% {
100
+ transform: scale(0.5);
101
+ opacity: 0.25;
102
+ }
103
+ 50% {
104
+ transform: scale(1.15);
105
+ opacity: 1;
106
+ }
107
+ }
108
+
109
+ @keyframes drop {
110
+ 0% {
111
+ transform: translateY(-0.6em);
112
+ opacity: 0;
113
+ }
114
+ 20% {
115
+ transform: translateY(0);
116
+ opacity: 1;
117
+ }
118
+ 80% {
119
+ transform: translateY(0);
120
+ opacity: 1;
121
+ }
122
+ 100% {
123
+ transform: translateY(-0.6em);
124
+ opacity: 0;
125
+ }
126
+ }
127
+ }
128
+ }
@@ -1,66 +1,59 @@
1
- @use '../../../style' as cfg;
2
-
3
- @include cfg.export-module('co-scene-context-menu-layout') {
4
- .co-scene-context-menu {
5
- .scene-context-menu-container {
6
- position: absolute;
7
- bottom: 70px;
8
- left: 50%;
9
- transform: translateX(-50%);
10
- width: auto;
11
- padding: 6px;
12
- border-radius: 999px;
13
-
14
- .scene-context-menu-body {
15
- display: flex;
16
- align-items: center;
17
- gap: 4px;
18
-
19
- .scene-context-menu-item {
20
- cursor: pointer;
21
- display: flex;
22
- align-items: center;
23
- justify-content: center;
24
- width: 40px;
25
- height: 40px;
26
- padding: 0;
27
- position: relative;
28
- border-radius: 50%;
29
- transition: background 0.15s ease;
30
-
31
- .scene-context-menu-item-icon {
32
- display: flex;
33
- }
34
-
35
- .scene-context-menu-item-text {
36
- visibility: hidden;
37
- opacity: 0;
38
- white-space: nowrap;
39
- position: absolute;
40
- top: calc(100% + 10px);
41
- left: 50%;
42
- transform: translateX(-50%);
43
- padding: 6px 12px;
44
- border-radius: 8px;
45
- transition: opacity 0.15s ease, visibility 0.15s ease;
46
-
47
- &::before {
48
- content: '';
49
- position: absolute;
50
- bottom: 100%;
51
- left: 50%;
52
- transform: translateX(-50%);
53
- }
54
- }
55
-
56
- &:hover {
57
- .scene-context-menu-item-text {
58
- visibility: visible;
59
- opacity: 1;
60
- }
61
- }
62
- }
63
- }
64
- }
65
- }
66
- }
1
+ @use '../../../style' as cfg;
2
+
3
+ @include cfg.export-module('co-scene-context-menu-layout') {
4
+ .co-scene-context-menu {
5
+ .scene-context-menu-container {
6
+ position: var(--co-inphoto-scene-context-menu-position-absolute);
7
+ bottom: var(--co-inphoto-scene-context-menu-container-bottom);
8
+ left: var(--co-inphoto-scene-context-menu-center-x);
9
+ transform: var(--co-inphoto-scene-context-menu-translate-center-x);
10
+ width: var(--co-inphoto-scene-context-menu-container-width);
11
+ padding: var(--co-inphoto-scene-context-menu-container-padding);
12
+
13
+ .scene-context-menu-body {
14
+ display: flex;
15
+ align-items: center;
16
+ gap: var(--co-inphoto-scene-context-menu-body-gap);
17
+
18
+ .scene-context-menu-item {
19
+ cursor: pointer;
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ width: var(--co-inphoto-scene-context-menu-item-size);
24
+ height: var(--co-inphoto-scene-context-menu-item-size);
25
+ padding: var(--co-inphoto-scene-context-menu-item-padding-zero);
26
+ position: var(--co-inphoto-scene-context-menu-position-relative);
27
+
28
+ .scene-context-menu-item-icon {
29
+ display: flex;
30
+ }
31
+
32
+ .scene-context-menu-item-text {
33
+ visibility: hidden;
34
+ white-space: nowrap;
35
+ position: var(--co-inphoto-scene-context-menu-position-absolute);
36
+ top: var(--co-inphoto-scene-context-menu-item-text-top);
37
+ left: var(--co-inphoto-scene-context-menu-center-x);
38
+ transform: var(--co-inphoto-scene-context-menu-translate-center-x);
39
+ padding: var(--co-inphoto-scene-context-menu-item-text-padding);
40
+
41
+ &::before {
42
+ content: '';
43
+ position: var(--co-inphoto-scene-context-menu-position-absolute);
44
+ bottom: var(--co-inphoto-scene-context-menu-item-text-arrow-bottom);
45
+ left: var(--co-inphoto-scene-context-menu-center-x);
46
+ transform: var(--co-inphoto-scene-context-menu-translate-center-x);
47
+ }
48
+ }
49
+
50
+ &:hover {
51
+ .scene-context-menu-item-text {
52
+ visibility: visible;
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }