@opensumi/ide-components 3.8.3-next-1741949132.0 → 3.8.3-next-1742183446.0

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.
@@ -1,205 +0,0 @@
1
- @import '../style/variable.less';
2
- @import '../style/mixins.less';
3
-
4
- @image-prefix-cls: ~'kt-image';
5
- @image-preview-prefix-cls: ~'@{image-prefix-cls}-preview';
6
-
7
- .@{image-prefix-cls} {
8
- position: relative;
9
- display: inline-block;
10
-
11
- &-img {
12
- width: 100%;
13
- height: auto;
14
- vertical-align: middle;
15
-
16
- &-placeholder {
17
- background-color: @image-bg;
18
- background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=');
19
- background-repeat: no-repeat;
20
- background-position: center center;
21
- background-size: 30%;
22
- }
23
- }
24
-
25
- &-mask {
26
- position: absolute;
27
- top: 0;
28
- right: 0;
29
- bottom: 0;
30
- left: 0;
31
- display: flex;
32
- align-items: center;
33
- justify-content: center;
34
- color: @text-color-inverse;
35
- background: fade(@black, 50%);
36
- cursor: pointer;
37
- opacity: 0;
38
- transition: opacity @animation-duration-slow;
39
-
40
- &-info {
41
- padding: 0 @padding-xss;
42
- overflow: hidden;
43
- white-space: nowrap;
44
- text-overflow: ellipsis;
45
- .@{iconfont-css-prefix} {
46
- margin-inline-end: @margin-xss;
47
- }
48
- }
49
-
50
- &:hover {
51
- opacity: 1;
52
- }
53
- }
54
-
55
- &-placeholder {
56
- .box();
57
- }
58
-
59
- &-preview {
60
- .modal-mask();
61
-
62
- height: 100%;
63
- text-align: center;
64
-
65
- &-body {
66
- .box();
67
- overflow: hidden;
68
- }
69
-
70
- &-img {
71
- max-width: 100%;
72
- max-height: 100%;
73
- vertical-align: middle;
74
- transform: scale3d(1, 1, 1);
75
- cursor: grab;
76
- transition: transform 0.3s @ease-out 0s;
77
- user-select: none;
78
- pointer-events: auto;
79
-
80
- &-wrapper {
81
- .box();
82
- transition: transform 0.3s @ease-out 0s;
83
-
84
- &::before {
85
- display: inline-block;
86
- width: 1px;
87
- height: 50%;
88
- margin-right: -1px;
89
- content: '';
90
- }
91
- }
92
- }
93
-
94
- &-moving {
95
- .@{image-prefix-cls}-preview-img {
96
- cursor: grabbing;
97
-
98
- &-wrapper {
99
- transition-duration: 0s;
100
- }
101
- }
102
- }
103
-
104
- &-wrap {
105
- z-index: @zindex-image;
106
- }
107
-
108
- // 暂时不需要控制
109
- &-operations-wrapper {
110
- display: none;
111
- // position: fixed;
112
- // top: 0;
113
- // right: 0;
114
- // z-index: @zindex-image + 1;
115
- // width: 100%;
116
- }
117
-
118
- &-operations {
119
- .reset-component();
120
- display: flex;
121
- flex-direction: row-reverse;
122
- align-items: center;
123
- color: @image-preview-operation-color;
124
- list-style: none;
125
- background: fade(@modal-mask-bg, 10%);
126
- pointer-events: auto;
127
-
128
- &-operation {
129
- margin-left: @control-padding-horizontal;
130
- padding: @control-padding-horizontal;
131
- cursor: pointer;
132
- transition: all 0.3s;
133
-
134
- &:hover {
135
- background: fade(@modal-mask-bg, 20%);
136
- }
137
-
138
- &-disabled {
139
- color: @image-preview-operation-disabled-color;
140
- pointer-events: none;
141
- }
142
-
143
- &:last-of-type {
144
- margin-left: 0;
145
- }
146
- }
147
-
148
- &-progress {
149
- position: absolute;
150
- left: 50%;
151
- transform: translateX(-50%);
152
- }
153
-
154
- &-icon {
155
- font-size: @image-preview-operation-size;
156
- }
157
- }
158
-
159
- &-switch-left,
160
- &-switch-right {
161
- position: fixed;
162
- top: 50%;
163
- right: 8px;
164
- z-index: @zindex-image + 1;
165
- display: flex;
166
- align-items: center;
167
- justify-content: center;
168
- width: 44px;
169
- height: 44px;
170
- color: @image-preview-operation-color;
171
- background: fade(@modal-mask-bg, 10%);
172
- border-radius: 50%;
173
- transform: translateY(-50%);
174
- cursor: pointer;
175
- transition: all 0.3s;
176
- pointer-events: auto;
177
-
178
- &:hover {
179
- background: fade(@modal-mask-bg, 20%);
180
- }
181
-
182
- &-disabled,
183
- &-disabled:hover {
184
- color: @image-preview-operation-disabled-color;
185
- background: fade(@modal-mask-bg, 10%);
186
- cursor: not-allowed;
187
- > .@{iconfont-css-prefix} {
188
- cursor: not-allowed;
189
- }
190
- }
191
-
192
- > .@{iconfont-css-prefix} {
193
- font-size: 18px;
194
- }
195
- }
196
-
197
- &-switch-left {
198
- left: 8px;
199
- }
200
-
201
- &-switch-right {
202
- right: 8px;
203
- }
204
- }
205
- }