@oceanbase/ui 1.0.0-alpha.4 → 1.0.0-alpha.6

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 (219) hide show
  1. package/dist/ui.min.css +1 -1
  2. package/dist/ui.min.js +1 -1
  3. package/es/Action/Item.d.ts +6 -15
  4. package/es/Action/Item.js +85 -128
  5. package/es/Action/index.d.ts +6 -3
  6. package/es/BasicLayout/style/index.js +30 -18
  7. package/es/BatchOperationBar/index.d.ts +0 -1
  8. package/es/BatchOperationBar/index.js +17 -13
  9. package/es/BatchOperationBar/style/index.d.ts +10 -0
  10. package/es/BatchOperationBar/style/index.js +51 -0
  11. package/es/Boundary/Components/Code.js +11 -5
  12. package/es/Boundary/Components/Exception.js +85 -74
  13. package/es/Boundary/Components/Function.js +11 -5
  14. package/es/Boundary/index.d.ts +0 -1
  15. package/es/Boundary/index.js +0 -1
  16. package/es/Boundary/style/index.d.ts +10 -0
  17. package/es/Boundary/style/index.js +46 -0
  18. package/es/ContentWithIcon/index.d.ts +0 -1
  19. package/es/ContentWithIcon/index.js +29 -29
  20. package/es/ContentWithIcon/style/index.d.ts +10 -0
  21. package/es/ContentWithIcon/style/index.js +26 -0
  22. package/es/DateRanger/PickerPanel.js +5 -4
  23. package/es/DateRanger/Ranger.d.ts +0 -1
  24. package/es/DateRanger/Ranger.js +13 -8
  25. package/es/DateRanger/style/index.d.ts +10 -0
  26. package/es/DateRanger/style/index.js +126 -0
  27. package/es/Dialog/Anchor.d.ts +2 -10
  28. package/es/Dialog/Anchor.js +67 -96
  29. package/es/Dialog/index.d.ts +0 -1
  30. package/es/Dialog/index.js +537 -578
  31. package/es/Dialog/style/index.d.ts +10 -0
  32. package/es/Dialog/style/index.js +97 -0
  33. package/es/FullscreenBox/index.d.ts +0 -1
  34. package/es/FullscreenBox/index.js +46 -37
  35. package/es/FullscreenBox/style/index.d.ts +10 -0
  36. package/es/FullscreenBox/style/index.js +53 -0
  37. package/es/GraphToolbar/index.d.ts +0 -1
  38. package/es/GraphToolbar/index.js +19 -16
  39. package/es/GraphToolbar/style/index.d.ts +10 -0
  40. package/es/GraphToolbar/style/index.js +60 -0
  41. package/es/Highlight/DiffView/index.d.ts +0 -1
  42. package/es/Highlight/DiffView/index.js +5 -5
  43. package/es/Highlight/JsonView.d.ts +0 -1
  44. package/es/Highlight/JsonView.js +5 -5
  45. package/es/Highlight/index.d.ts +0 -1
  46. package/es/Highlight/index.js +23 -23
  47. package/es/Highlight/style/index.d.ts +10 -0
  48. package/es/Highlight/style/index.js +213 -0
  49. package/es/Login/ActivateForm.d.ts +0 -1
  50. package/es/Login/ActivateForm.js +12 -9
  51. package/es/Login/LoginForm.d.ts +0 -1
  52. package/es/Login/LoginForm.js +20 -15
  53. package/es/Login/RegisterForm.d.ts +0 -1
  54. package/es/Login/RegisterForm.js +14 -11
  55. package/es/Login/index.d.ts +0 -1
  56. package/es/Login/index.js +24 -22
  57. package/es/Login/style/index.d.ts +10 -0
  58. package/es/Login/style/index.js +182 -0
  59. package/es/NavMenu/index.d.ts +1 -2
  60. package/es/NavMenu/index.js +11 -8
  61. package/es/NavMenu/style/index.d.ts +10 -0
  62. package/es/NavMenu/style/index.js +47 -0
  63. package/es/Ranger/QuickPicker.js +8 -4
  64. package/es/Ranger/Ranger.d.ts +0 -1
  65. package/es/Ranger/Ranger.js +12 -9
  66. package/es/Ranger/style/index.d.ts +10 -0
  67. package/es/Ranger/style/index.js +44 -0
  68. package/es/SideTip/index.d.ts +0 -1
  69. package/es/SideTip/index.js +24 -22
  70. package/es/SideTip/style/index.d.ts +10 -0
  71. package/es/SideTip/style/index.js +162 -0
  72. package/es/TagSelect/Group.d.ts +6 -6
  73. package/es/TagSelect/Group.js +5 -3
  74. package/es/TagSelect/Item.js +5 -3
  75. package/es/TaskGraph/Graph/style/index.d.ts +10 -0
  76. package/es/TaskGraph/Graph/style/index.js +28 -0
  77. package/es/TaskGraph/Graph.d.ts +0 -1
  78. package/es/TaskGraph/Graph.js +26 -10
  79. package/es/TaskGraph/index.d.ts +0 -1
  80. package/es/TaskGraph/index.js +10 -7
  81. package/es/TaskGraph/style/index.d.ts +10 -0
  82. package/es/TaskGraph/style/index.js +102 -0
  83. package/es/Welcome/index.d.ts +0 -1
  84. package/es/Welcome/index.js +30 -26
  85. package/es/Welcome/step/style/index.d.ts +10 -0
  86. package/es/Welcome/step/style/index.js +44 -0
  87. package/es/Welcome/step.d.ts +0 -1
  88. package/es/Welcome/step.js +17 -14
  89. package/es/Welcome/style/index.d.ts +10 -0
  90. package/es/Welcome/style/index.js +141 -0
  91. package/es/index.d.ts +0 -1
  92. package/es/index.js +0 -1
  93. package/lib/Action/Item.d.ts +6 -15
  94. package/lib/Action/Item.js +66 -81
  95. package/lib/Action/index.d.ts +6 -3
  96. package/lib/BasicLayout/style/index.js +27 -18
  97. package/lib/BatchOperationBar/index.d.ts +0 -1
  98. package/lib/BatchOperationBar/index.js +54 -50
  99. package/lib/BatchOperationBar/style/index.d.ts +10 -0
  100. package/lib/BatchOperationBar/style/index.js +82 -0
  101. package/lib/Boundary/Components/Code.js +23 -17
  102. package/lib/Boundary/Components/Exception.js +40 -29
  103. package/lib/Boundary/Components/Function.js +18 -12
  104. package/lib/Boundary/index.d.ts +0 -1
  105. package/lib/Boundary/index.js +0 -1
  106. package/lib/Boundary/style/index.d.ts +10 -0
  107. package/lib/Boundary/style/index.js +74 -0
  108. package/lib/ContentWithIcon/index.d.ts +0 -1
  109. package/lib/ContentWithIcon/index.js +35 -32
  110. package/lib/ContentWithIcon/style/index.d.ts +10 -0
  111. package/lib/ContentWithIcon/style/index.js +57 -0
  112. package/lib/DateRanger/PickerPanel.js +2 -2
  113. package/lib/DateRanger/Ranger.d.ts +0 -1
  114. package/lib/DateRanger/Ranger.js +353 -348
  115. package/lib/DateRanger/style/index.d.ts +10 -0
  116. package/lib/DateRanger/style/index.js +195 -0
  117. package/lib/Dialog/Anchor.d.ts +2 -10
  118. package/lib/Dialog/Anchor.js +58 -60
  119. package/lib/Dialog/index.d.ts +0 -1
  120. package/lib/Dialog/index.js +446 -422
  121. package/lib/Dialog/style/index.d.ts +10 -0
  122. package/lib/Dialog/style/index.js +135 -0
  123. package/lib/FullscreenBox/index.d.ts +0 -1
  124. package/lib/FullscreenBox/index.js +47 -38
  125. package/lib/FullscreenBox/style/index.d.ts +10 -0
  126. package/lib/FullscreenBox/style/index.js +86 -0
  127. package/lib/GraphToolbar/index.d.ts +0 -1
  128. package/lib/GraphToolbar/index.js +69 -66
  129. package/lib/GraphToolbar/style/index.d.ts +10 -0
  130. package/lib/GraphToolbar/style/index.js +91 -0
  131. package/lib/Highlight/DiffView/index.d.ts +0 -1
  132. package/lib/Highlight/DiffView/index.js +3 -3
  133. package/lib/Highlight/JsonView.d.ts +0 -1
  134. package/lib/Highlight/JsonView.js +3 -3
  135. package/lib/Highlight/index.d.ts +0 -1
  136. package/lib/Highlight/index.js +32 -29
  137. package/lib/Highlight/style/index.d.ts +10 -0
  138. package/lib/Highlight/style/index.js +293 -0
  139. package/lib/Login/ActivateForm.d.ts +0 -1
  140. package/lib/Login/ActivateForm.js +17 -9
  141. package/lib/Login/LoginForm.d.ts +0 -1
  142. package/lib/Login/LoginForm.js +25 -13
  143. package/lib/Login/RegisterForm.d.ts +0 -1
  144. package/lib/Login/RegisterForm.js +17 -9
  145. package/lib/Login/index.d.ts +0 -1
  146. package/lib/Login/index.js +96 -94
  147. package/lib/Login/style/index.d.ts +10 -0
  148. package/lib/Login/style/index.js +267 -0
  149. package/lib/NavMenu/index.d.ts +1 -2
  150. package/lib/NavMenu/index.js +20 -17
  151. package/lib/NavMenu/style/index.d.ts +10 -0
  152. package/lib/NavMenu/style/index.js +78 -0
  153. package/lib/Ranger/QuickPicker.js +4 -2
  154. package/lib/Ranger/Ranger.d.ts +0 -1
  155. package/lib/Ranger/Ranger.js +48 -45
  156. package/lib/Ranger/style/index.d.ts +10 -0
  157. package/lib/Ranger/style/index.js +82 -0
  158. package/lib/SideTip/index.d.ts +0 -1
  159. package/lib/SideTip/index.js +46 -38
  160. package/lib/SideTip/style/index.d.ts +10 -0
  161. package/lib/SideTip/style/index.js +211 -0
  162. package/lib/TagSelect/Group.d.ts +6 -6
  163. package/lib/TagSelect/Group.js +3 -2
  164. package/lib/TagSelect/Item.js +3 -2
  165. package/lib/TaskGraph/Graph/style/index.d.ts +10 -0
  166. package/lib/TaskGraph/Graph/style/index.js +56 -0
  167. package/lib/TaskGraph/Graph.d.ts +0 -1
  168. package/lib/TaskGraph/Graph.js +16 -7
  169. package/lib/TaskGraph/index.d.ts +0 -1
  170. package/lib/TaskGraph/index.js +6 -5
  171. package/lib/TaskGraph/style/index.d.ts +10 -0
  172. package/lib/TaskGraph/style/index.js +143 -0
  173. package/lib/Welcome/index.d.ts +0 -1
  174. package/lib/Welcome/index.js +64 -59
  175. package/lib/Welcome/step/style/index.d.ts +10 -0
  176. package/lib/Welcome/step/style/index.js +74 -0
  177. package/lib/Welcome/step.d.ts +0 -1
  178. package/lib/Welcome/step.js +17 -13
  179. package/lib/Welcome/style/index.d.ts +10 -0
  180. package/lib/Welcome/style/index.js +188 -0
  181. package/lib/index.d.ts +0 -1
  182. package/lib/index.js +0 -1
  183. package/package.json +4 -7
  184. package/es/BatchOperationBar/index.less +0 -46
  185. package/es/BatchOperationBar/index.less.d.ts +0 -15
  186. package/es/Boundary/index.less +0 -36
  187. package/es/ContentWithIcon/index.less +0 -21
  188. package/es/DateRanger/index.less +0 -180
  189. package/es/Dialog/index.less +0 -116
  190. package/es/FullscreenBox/index.less +0 -51
  191. package/es/GraphToolbar/index.less +0 -65
  192. package/es/Highlight/index.less +0 -381
  193. package/es/Login/index.less +0 -268
  194. package/es/NavMenu/index.less +0 -50
  195. package/es/Ranger/index.less +0 -57
  196. package/es/SideTip/index.less +0 -180
  197. package/es/TaskGraph/graph.less +0 -23
  198. package/es/TaskGraph/index.less +0 -117
  199. package/es/Welcome/index.less +0 -185
  200. package/es/index.less +0 -1
  201. package/es/variable.less +0 -54
  202. package/lib/BatchOperationBar/index.less +0 -46
  203. package/lib/BatchOperationBar/index.less.d.ts +0 -15
  204. package/lib/Boundary/index.less +0 -36
  205. package/lib/ContentWithIcon/index.less +0 -21
  206. package/lib/DateRanger/index.less +0 -180
  207. package/lib/Dialog/index.less +0 -116
  208. package/lib/FullscreenBox/index.less +0 -51
  209. package/lib/GraphToolbar/index.less +0 -65
  210. package/lib/Highlight/index.less +0 -381
  211. package/lib/Login/index.less +0 -268
  212. package/lib/NavMenu/index.less +0 -50
  213. package/lib/Ranger/index.less +0 -57
  214. package/lib/SideTip/index.less +0 -180
  215. package/lib/TaskGraph/graph.less +0 -23
  216. package/lib/TaskGraph/index.less +0 -117
  217. package/lib/Welcome/index.less +0 -185
  218. package/lib/index.less +0 -1
  219. package/lib/variable.less +0 -54
@@ -1,381 +0,0 @@
1
- @import '../variable.less';
2
-
3
- @prefix: ob-highlight;
4
-
5
- .@{prefix} {
6
- box-sizing: border-box;
7
- margin: 0;
8
- padding: 0;
9
- color: rgba(0, 0, 0, 0.88);
10
- font-size: 14px;
11
- line-height: 1.5714285714285714;
12
- list-style: none;
13
- border-radius: @borderRadius;
14
-
15
- &:not(:hover) .@{prefix}-copy {
16
- visibility: hidden;
17
- opacity: 0;
18
- }
19
-
20
- @keyframes copy-button-trans {
21
- 0% {
22
- opacity: 0.8;
23
- margin-block-start: 0;
24
- }
25
- 10% {
26
- opacity: 0.8;
27
- margin-block-start: -16px;
28
- }
29
- 90% {
30
- opacity: 0.8;
31
- margin-block-start: -16px;
32
- }
33
- 100% {
34
- opacity: 0.8;
35
- margin-block-start: 0;
36
- }
37
- }
38
-
39
- .@{prefix}-json-view {
40
- padding: 0;
41
-
42
- .react-json-view {
43
- padding: 0.5em;
44
- overflow: auto;
45
-
46
- .icon-container svg {
47
- transform: translateY(5px);
48
- }
49
- }
50
- }
51
-
52
- &.@{prefix}-light {
53
- .react-json-view {
54
- background: @colorBgLayout;
55
- }
56
-
57
- .@{prefix}-light-index {
58
- border-inline-end: 1px solid rgba(0, 0, 0, 0.05);
59
- }
60
-
61
- display: block;
62
- padding: 0.5em;
63
- overflow-x: auto;
64
- color: #383a42;
65
- background: @colorBgLayout;
66
-
67
- .hljs-comment,
68
- .hljs-quote {
69
- color: #a0a1a7;
70
- font-style: italic;
71
- }
72
-
73
- .hljs-doctag,
74
- .hljs-keyword,
75
- .hljs-formula {
76
- color: #a626a4;
77
- }
78
-
79
- .hljs-section,
80
- .hljs-name,
81
- .hljs-selector-tag,
82
- .hljs-deletion,
83
- .hljs-subst {
84
- color: #e45649;
85
- }
86
-
87
- .hljs-literal {
88
- color: #0184bb;
89
- }
90
-
91
- .hljs-string,
92
- .hljs-regexp,
93
- .hljs-addition,
94
- .hljs-attribute,
95
- .hljs-meta-string {
96
- color: #50a14f;
97
- }
98
-
99
- .hljs-built_in,
100
- .hljs-class,
101
- .hljs-title {
102
- color: #c18401;
103
- }
104
-
105
- .hljs-attr,
106
- .hljs-variable,
107
- .hljs-template-variable,
108
- .hljs-type,
109
- .hljs-selector-class,
110
- .hljs-selector-attr,
111
- .hljs-selector-pseudo,
112
- .hljs-number {
113
- color: #986801;
114
- }
115
-
116
- .hljs-symbol,
117
- .hljs-bullet,
118
- .hljs-link,
119
- .hljs-meta,
120
- .hljs-selector-id,
121
- .hljs-title {
122
- color: #4078f2;
123
- }
124
-
125
- .hljs-emphasis {
126
- font-style: italic;
127
- }
128
-
129
- .hljs-strong {
130
- font-weight: @fontWeightStrong;
131
- }
132
-
133
- .hljs-link {
134
- text-decoration: underline;
135
- }
136
- }
137
-
138
- .@{prefix}-index {
139
- box-sizing: border-box;
140
- width: 40px;
141
- min-width: 40px;
142
- color: #aaa;
143
- text-align: end;
144
- background: rgba(255, 255, 255, 0.03);
145
- user-select: none;
146
- padding-block: 2px;
147
- padding-inline: 8px;
148
- }
149
- .@{prefix}-content {
150
- padding-block: 2px;
151
- padding-inline: 8px;
152
- }
153
- .@{prefix}-copy {
154
- position: absolute;
155
- display: flex;
156
- flex-direction: column;
157
- width: 16px;
158
- height: 16px;
159
- padding: 0;
160
- overflow: hidden;
161
- border: 0;
162
- outline: none;
163
- cursor: pointer;
164
- opacity: 0.6;
165
- transition: opacity 0.2s;
166
- inset-block-start: 16px;
167
- inset-inline-end: 16px;
168
-
169
- &:hover {
170
- opacity: 0.8;
171
- }
172
- }
173
- &:not(:hover) &.@{prefix}-copy {
174
- visibility: hidden;
175
- opacity: 0;
176
- }
177
-
178
- .@{prefix}-copy-icon {
179
- width: 16px;
180
- height: 16px;
181
- font-size: 16px;
182
-
183
- &.scoll {
184
- animation: copy-button-trans 2s;
185
- animation-play-state: running;
186
- }
187
- }
188
-
189
- .@{prefix}-dark {
190
- display: block;
191
- padding: 0.5em;
192
- overflow-x: auto;
193
- color: #c0c5ce;
194
- background: #2b303b;
195
- border-radius: @borderRadius;
196
-
197
- &.@{prefix}-index {
198
- border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
199
- }
200
-
201
- /* Ocean Comment */
202
- .hljs-comment,
203
- .hljs-quote {
204
- color: #65737e;
205
- }
206
-
207
- /* Ocean Red */
208
- .hljs-variable,
209
- .hljs-template-variable,
210
- .hljs-tag,
211
- .hljs-name,
212
- .hljs-selector-id,
213
- .hljs-selector-class,
214
- .hljs-regexp,
215
- .hljs-deletion {
216
- color: #bf616a;
217
- }
218
-
219
- /* Ocean Orange */
220
- .hljs-number,
221
- .hljs-built_in,
222
- .hljs-builtin-name,
223
- .hljs-literal,
224
- .hljs-type,
225
- .hljs-params,
226
- .hljs-meta,
227
- .hljs-link {
228
- color: #d08770;
229
- }
230
-
231
- /* Ocean Yellow */
232
- .hljs-attribute {
233
- color: #ebcb8b;
234
- }
235
-
236
- /* Ocean Green */
237
- .hljs-string,
238
- .hljs-symbol,
239
- .hljs-bullet,
240
- .hljs-addition {
241
- color: #a3be8c;
242
- }
243
-
244
- /* Ocean Blue */
245
- .hljs-title,
246
- .hljs-section {
247
- color: #8fa1b3;
248
- }
249
-
250
- /* Ocean Purple */
251
- .hljs-keyword,
252
- .hljs-selector-tag {
253
- color: #b48ead;
254
- }
255
-
256
- .hljs-emphasis {
257
- font-style: italic;
258
- }
259
-
260
- .hljs-strong {
261
- font-weight: @fontWeightStrong;
262
- }
263
- }
264
-
265
- &.@{prefix}-diff {
266
- overflow-y: auto;
267
-
268
- // &.@{prefix} {
269
- // padding: 0;
270
- // }
271
-
272
- table {
273
- width: 100%;
274
- font-family: 'SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace';
275
- border-collapse: collapse;
276
- border-spacing: 0;
277
-
278
- td {
279
- vertical-align: top;
280
- }
281
- }
282
-
283
- .@{prefix}-diff-index,
284
- .@{prefix}-diff-mark,
285
- .@{prefix}-diff-code {
286
- padding-block: 2px;
287
- padding-inline: 8px;
288
- }
289
-
290
- .@{prefix}-diff-index,
291
- .@{prefix}-diff-mark {
292
- user-select: none;
293
- }
294
-
295
- .@{prefix}-diff-index {
296
- width: 40px;
297
- min-width: 40px;
298
- text-align: end;
299
- font-variant-numeric: tabular-nums;
300
- }
301
-
302
- .@{prefix}-diff-mark {
303
- width: 10px;
304
- min-width: 10px;
305
- text-align: center;
306
- }
307
-
308
- .@{prefix}-diff-code {
309
- white-space: pre-wrap;
310
- word-break: break-word;
311
- }
312
-
313
- // ======================= Theme =======================
314
- // Light
315
- &.@{prefix}-light {
316
- .@{prefix}-diff-index,
317
- .@{prefix}-diff-mark {
318
- color: #aaa;
319
- }
320
-
321
- .@{prefix}-diff-index {
322
- background: rgba(0, 0, 0, 0.01);
323
- border-inline-end: 1px solid rgba(0, 0, 0, 0.05);
324
- border-inline-start: 1px solid rgba(0, 0, 0, 0.1);
325
-
326
- &:first-child {
327
- border-inline-start: none;
328
- }
329
- }
330
-
331
- // &.@{prefix}-diff-cell {
332
- .@{prefix}-diff-cell-add {
333
- background: #e7f1e2;
334
- // .mix(##fafafa; 90)
335
- // .toHexString();
336
- }
337
- .@{prefix}-diff-cell-remove {
338
- background: #f6e3e4;
339
- // .mix(##fafafa; 90)
340
- // .toHexString();
341
- }
342
- .@{prefix}-diff-cell-empty {
343
- background: rgba(0, 0, 0, 0.03);
344
- }
345
- // }
346
- }
347
-
348
- // Dark
349
- &.@{prefix}-dark {
350
- .@{prefix}-diff-index,
351
- .@{prefix}-diff-mark {
352
- color: #aaa;
353
- }
354
-
355
- .@{prefix}-diff-index {
356
- background: rgba(255, 255, 255, 0.01);
357
- border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
358
- border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
359
-
360
- &:first-child {
361
- border-inline-start: none;
362
- }
363
- }
364
-
365
- .@{prefix}-diff-cell-add {
366
- background: #305c29;
367
- // .mix(#2b303b; 60)
368
- // .toHexString();
369
- }
370
- .@{prefix}-diff-cell-remove {
371
- background: #6d2431;
372
- // .mix(#2b303b; 60)
373
- // .toHexString();
374
- }
375
-
376
- .@{prefix}-diff-cell-empty {
377
- background: rgba(255, 255, 255, 0.03);
378
- }
379
- }
380
- }
381
- }
@@ -1,268 +0,0 @@
1
- @import '../variable.less';
2
-
3
- @prefix: ob-login;
4
-
5
- .@{prefix}-container {
6
- display: flex;
7
- justify-content: space-between;
8
- min-width: 960px;
9
- height: 100vh;
10
- min-height: 600px;
11
- overflow: auto;
12
-
13
- .@{prefix}-bg {
14
- width: 40%;
15
- height: 100%;
16
- background-repeat: no-repeat;
17
- background-size: cover;
18
- background-position: center;
19
-
20
- .@{prefix}-info {
21
- margin: 185px 48px 0 48px;
22
- color: #fff;
23
- font-weight: @fontWeightStrong;
24
- font-size: 56px;
25
- font-family: PingFangSC;
26
-
27
- .@{prefix}-start {
28
- margin-top: 22px;
29
- color: #f4f4f4;
30
- font-weight: @fontWeightStrong;
31
- font-size: 32px;
32
- letter-spacing: 0;
33
- }
34
- }
35
- }
36
- .@{prefix}-card {
37
- display: flex;
38
- flex: 1;
39
- align-items: center;
40
- justify-content: center;
41
- height: 100%;
42
- min-height: 600px;
43
- background-color: #fff;
44
-
45
- .@{prefix}-locale {
46
- position: absolute;
47
- top: 24px;
48
- right: 24px;
49
- color: @colorTextTertiary;
50
- font-family: PingFangSC-Regular;
51
- cursor: pointer;
52
- }
53
-
54
- .@{prefix}-board {
55
- position: absolute;
56
- top: 48px;
57
- }
58
-
59
- .@{prefix}-content {
60
- margin-top: -60px;
61
- width: 404px;
62
- .@{prefix}-logo {
63
- display: block;
64
- height: 68px;
65
- margin: 0 auto;
66
- margin-bottom: 40px;
67
- }
68
-
69
- .@{prefix}-activate-logo,
70
- .@{prefix}-reigster-logo {
71
- display: block;
72
- height: 68px;
73
- margin: 0 auto;
74
- }
75
-
76
- .@{prefix}-register,
77
- .@{prefix}-activate {
78
- .@{prefixCls}-form-item-with-help {
79
- margin-bottom: 24px;
80
- }
81
- }
82
-
83
- .@{prefix}-form {
84
- width: 100%;
85
-
86
- input::placeholder {
87
- font-size: 14px;
88
- }
89
-
90
- .@{prefixCls}-form-item {
91
- margin-bottom: 24px;
92
- padding-bottom: 0;
93
- }
94
-
95
- .@{prefixCls}-input-affix-wrapper {
96
- height: 40px;
97
- border-radius: 8px;
98
-
99
- .@{prefixCls}-input-prefix {
100
- .@{iconPrefixCls} {
101
- font-size: 20px;
102
- }
103
- }
104
-
105
- // 覆盖 input:-internal-autofill-selected 自带背景色样式问题
106
- .@{prefixCls}-input:not(.@{prefixCls}-input-disabled) {
107
- box-shadow: inset 0 0 0 1000px white !important;
108
- }
109
-
110
- .@{prefixCls}-input:-internal-autofill-selected {
111
- box-shadow: inset 0 0 0 1000px white !important;
112
- }
113
- .@{prefixCls}-input:focus:-internal-autofill-selected {
114
- box-shadow: inset 0 0 0 1000px white !important;
115
- }
116
- }
117
-
118
- .@{prefixCls}-input-affix-wrapper .@{prefixCls}-input:not(:first-child) {
119
- padding-left: 8px;
120
- }
121
-
122
- .@{prefixCls}-input-affix-wrapper-focused {
123
- border-color: @colorPrimary;
124
- }
125
-
126
- .@{prefix}-form-focus-input {
127
- .@{prefixCls}-input-prefix {
128
- .@{iconPrefixCls} {
129
- color: @colorPrimary;
130
- }
131
- }
132
- }
133
- }
134
-
135
- .@{prefix}-auth-code {
136
- display: flex;
137
- align-items: start;
138
- width: 100%;
139
- margin-bottom: 24px;
140
- padding-bottom: 0;
141
- & > .@{prefixCls}-space-item:first-child {
142
- flex: 1;
143
- }
144
- .@{prefixCls}-form-item {
145
- margin-bottom: 0;
146
- }
147
- .@{prefix}-code-btn {
148
- position: relative;
149
- height: 38px;
150
- border: 1px solid @colorBorder;
151
- border-radius: 8px;
152
- cursor: pointer;
153
- img {
154
- height: 38px;
155
- border-radius: 8px;
156
- }
157
- .@{prefix}-code-mask {
158
- position: absolute;
159
- display: flex;
160
- align-items: center;
161
- justify-content: center;
162
- height: 38px;
163
- color: #fff;
164
- background: rgba(0, 0, 0, 0.5);
165
- border-radius: 8px;
166
- cursor: pointer;
167
- opacity: 0;
168
- transition: opacity 0.3s;
169
- inset: 0;
170
- }
171
- &.@{prefix}-error,
172
- &:hover {
173
- .@{prefix}-code-mask {
174
- opacity: 1;
175
- }
176
- }
177
- }
178
- }
179
- .@{prefix}-submit-btn {
180
- height: 40px;
181
- border-radius: 8px;
182
- }
183
-
184
- .@{prefix}-switch-btn {
185
- margin-top: 24px;
186
- text-align: center;
187
- cursor: pointer;
188
- }
189
-
190
- .@{prefix}-watermark-wrapper {
191
- position: absolute;
192
- bottom: 40px;
193
- width: 404px;
194
- text-align: center;
195
-
196
- .@{prefix}-watermark {
197
- height: 16px;
198
- }
199
- }
200
-
201
- .@{prefix}-alert {
202
- margin-bottom: 24px;
203
- border-radius: 8px;
204
- }
205
- }
206
- }
207
- }
208
-
209
- // 设置的登录页最小高度,防止 logo 偏移位置偏移遮住输入框
210
- @media (max-height: 650px) {
211
- .@{prefix}-container {
212
- .@{prefix}-watermark-wrapper {
213
- position: absolute;
214
- top: 600px;
215
- }
216
- }
217
- }
218
-
219
- .@{prefix}-container-with-board {
220
- .@{prefix}-card {
221
- .@{prefix}-content {
222
- margin-top: 0;
223
- }
224
- }
225
- }
226
-
227
- .@{prefix}-container-mobile {
228
- flex-direction: column;
229
- min-width: auto;
230
- .@{prefix}-banner {
231
- // 移动端设置百分比高度,避免使用 vh,否则安卓端打开软键盘会重新计算高度,导致 banner 图片高度出现跳变
232
- height: 25%;
233
- }
234
- .@{prefix}-bg {
235
- width: 100%;
236
- }
237
- .@{prefix}-card {
238
- align-items: start;
239
- width: 100%;
240
- height: 75%;
241
- margin-top: -48px;
242
- padding: 0 32px;
243
- border-radius: 16px 16px 0 0;
244
- position: relative;
245
- .@{prefix}-board {
246
- top: 8px;
247
- left: 24px;
248
- }
249
- .@{prefix}-locale {
250
- top: 8px;
251
- }
252
- .@{prefix}-content {
253
- width: 100%;
254
- margin-top: 40px;
255
- .@{prefix}-logo {
256
- height: 48px;
257
- margin-bottom: 24px;
258
- }
259
- .@{prefix}-watermark-wrapper {
260
- // 移动端改为正常文档流,避免安卓端被软键盘顶起
261
- width: calc(100% - 64px);
262
- position: static;
263
- width: 100%;
264
- margin-top: 96px;
265
- }
266
- }
267
- }
268
- }
@@ -1,50 +0,0 @@
1
- @import '../variable.less';
2
-
3
- @prefix: ob-menu;
4
-
5
- .@{prefix}-container {
6
- margin-top: 21px;
7
- background-color: transparent;
8
- user-select: none;
9
-
10
- ul {
11
- background-color: transparent;
12
-
13
- li {
14
- padding-right: 0 !important;
15
-
16
- .@{prefixCls}-menu-title-content {
17
- padding: 0 20px;
18
- border-radius: 10px;
19
- transition: 0.6s;
20
-
21
- &:hover {
22
- background-color: #e4e8f5;
23
- }
24
- }
25
- }
26
-
27
- .@{prefixCls}-menu-item:not(.@{prefixCls}-menu-item-selected):hover {
28
- background-color: transparent !important;
29
- }
30
-
31
- .@{prefixCls}-menu-item-selected {
32
- background-color: transparent !important;
33
-
34
- .@{prefixCls}-menu-title-content {
35
- background-color: #d7e2fc;
36
-
37
- a {
38
- color: transparent;
39
- font-family: SourceSansPro-Semibold, SourceSansPro-Regular;
40
- background: linear-gradient(-45deg, #002bff 0%, #0080ff 100%);
41
- background-clip: text;
42
- }
43
- }
44
-
45
- &::after {
46
- display: none;
47
- }
48
- }
49
- }
50
- }