cfel-base-components 2.4.4 → 2.5.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,387 +1,167 @@
1
+ $header-height: 60px;
2
+ $base-color: #c6538c;
3
+
1
4
  body {
2
- margin: 0;
5
+ overflow: hidden;
3
6
  }
4
7
 
5
8
  .layout-warp {
6
- display: flex;
7
- flex-direction: column !important;
9
+ display: flex;
8
10
  }
9
11
 
10
- .layout-header {
11
- height: 48px;
12
- background: white;
13
- z-index: 1;
14
- box-shadow: 1px 0px 5px #ccc;
15
- position: relative;
16
- display: flex;
17
- justify-content: flex-start;
18
- align-items: center;
12
+ .ant-layout .ant-layout-sider {
13
+ background-image: linear-gradient(
14
+ -45deg,
15
+ rgba(103, 200, 21, 0.5),
16
+ rgba(55, 96, 244, 0.5),
17
+ rgba(245, 34, 45, 0.7)
18
+ );
19
+ background-position: center;
20
+ // background-color: #fff;
21
+ // background-color: #13c2c2;
22
+ background-color: #08979c;
23
+ // background-color: #531dab;
24
+ // background-color: #389e0d;
25
+
26
+ .ant-layout-sider-trigger {
27
+ background: transparent;
28
+ &:hover {
29
+ background: rgba(0, 0, 0, 0.12);
30
+ }
31
+ }
32
+ }
19
33
 
20
- .background {
21
- width: 800px;
22
- height: 100%;
23
- position: absolute;
24
- top: 0;
25
- right: 0;
26
- overflow: hidden;
34
+ .layout-side {
35
+ height: 100vh;
36
+ user-select: none;
37
+ overflow: hidden;
27
38
 
28
- .background-img {
29
- width: 800px;
30
- position: absolute;
31
- top: -65px;
32
- }
39
+ .layout-logo {
40
+ height: 60px;
41
+ margin: 8px auto;
42
+ display: flex;
43
+ justify-content: center;
44
+ align-items: center;
45
+ width: 100%;
46
+ z-index: 1;
33
47
 
34
- .background-mask {
35
- position: absolute;
36
- left: 0;
37
- top: 0;
38
- width: 100%;
39
- height: 100%;
40
- background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
41
- }
48
+ .logo-img {
49
+ position: absolute;
50
+ height: 60px;
51
+ line-height: 60px;
52
+ object-fit: cover;
53
+ transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
42
54
  }
43
55
 
44
- .layout-header-fill {
45
- flex: 1;
56
+ .current-logo {
57
+ left: 0;
58
+ right: 0;
59
+ margin: auto;
46
60
  }
47
61
 
48
- .layout-header-logo {
49
- left: 36px;
50
- height: 48px;
51
- top: 0;
52
- min-width: 255px;
53
- width: auto;
54
- position: absolute;
55
- z-index: 1;
56
- display: inline-flex;
57
- align-items: center;
58
-
59
- .logo-img {
60
- line-height: 48px;
61
- font-family: Lucida Calligraphy, cursive, serif, sans-serif;
62
- height: 40px;
63
- object-fit: cover;
64
- }
65
-
66
- .interval {
67
- width: 1px;
68
- height: 12px;
69
- background-color: rgba(0, 0, 0, 0.15);
70
- margin: 0 12px;
71
- }
72
-
73
- .app-name {
74
- margin-left: 12px;
75
- font-weight: 500;
76
- color: rgba(0, 0, 0, .65);
77
- }
78
-
79
-
80
- .app-list {
81
- .app-list-currentlist {
82
- font-size: 12px;
83
- height: 32px;
84
- line-height: 32px;
85
- padding: 0 12px;
86
- border-radius: 6px;
87
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
88
- 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
89
- 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
90
- cursor: pointer;
91
- transition: all 0.3s;
92
- color: rgba(0, 0, 0, 0.88);
93
- font-weight: 400;
94
- display: flex;
95
-
96
- img {
97
- max-width: 32px;
98
- margin-right: 4px;
99
- }
100
- }
101
-
102
- .app-list-currentlist:hover {
103
- background: rgba(0, 0, 0, 0.1);
104
- }
105
-
106
- .app-list-current {
107
- font-size: 12px;
108
- height: 32px;
109
- line-height: 32px;
110
- padding: 0 12px;
111
- border-radius: 6px;
112
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
113
- 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
114
- 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
115
- transition: all 0.3s;
116
- color: rgba(0, 0, 0, 0.88);
117
- font-weight: 400;
118
- display: flex;
119
-
120
- img {
121
- max-width: 32px;
122
- margin-right: 4px;
123
- }
124
- }
125
- }
62
+ .hide-logo {
63
+ left: -500px;
126
64
  }
127
-
128
- .layout-header-actions {
129
- display: flex;
130
- justify-content: flex-start;
131
- align-items: center;
132
- height: 100%;
133
- max-width: 300px;
134
- z-index: 2;
135
-
136
- .actions-item {
137
- height: 36px;
138
- border-radius: 6px;
139
- transition: all .3s;
140
- cursor: pointer;
141
- margin: 0 4px;
142
- padding: 0 4px;
143
-
144
- display: flex;
145
- justify-content: center;
146
- align-items: center;
147
-
148
- &:hover {
149
- background: rgba(255, 255, 255, .15);
150
- }
151
- }
65
+ .hide-sub-logo {
66
+ right: -500px;
152
67
  }
68
+ }
153
69
 
154
-
155
- .layout-header-user {
156
- height: 40px;
157
- display: flex;
158
- justify-content: flex-start;
159
- align-items: center;
160
- z-index: 2;
161
- transition: all .3s;
162
- padding: 0 12px;
163
- margin: 0 12px;
164
- border-radius: 6px;
165
- cursor: pointer;
166
-
167
- &:hover {
168
- background: rgba(255, 255, 255, .15);
169
- }
170
-
171
- .author {
172
- width: 36px;
173
- height: 36px;
174
- border-radius: 50%;
175
- background: rgba(255, 255, 255, 0.3);
176
- margin-right: 12px;
177
- }
178
-
179
- .name {
180
- color: white;
181
- }
70
+ .layout-menu-container {
71
+ height: calc(100vh - 60px - 16px - 48px);
72
+ overflow: auto;
73
+ .ant-menu {
74
+ background: transparent !important;
75
+ }
76
+ .ant-menu-item-selected {
77
+ background: rgba(255, 255, 255, 0.3) !important;
182
78
  }
79
+ }
183
80
  }
184
81
 
185
- .layout-main {
82
+ .layout-header {
83
+ height: $header-height;
84
+ background: white;
85
+ z-index: 1;
86
+ position: relative;
87
+ display: flex;
88
+ justify-content: flex-start;
89
+ align-items: center;
90
+
91
+ .app-name {
92
+ margin-left: 24px;
93
+ font-weight: 500;
94
+ color: rgba(0, 0, 0, 0.65);
95
+ }
96
+
97
+ .layout-header-fill {
98
+ flex: 1;
99
+ }
100
+
101
+ .layout-header-actions {
186
102
  display: flex;
103
+ justify-content: flex-start;
104
+ align-items: center;
187
105
  height: 100%;
188
- }
189
-
190
- .layout-side {
191
- height: calc(100vh - 96px);
192
- user-select: none;
193
- overflow: auto;
194
- }
195
-
196
- .layout-content {
197
- width: 100%;
198
- height: calc(100vh - 48px);
199
- overflow: auto;
200
- }
201
-
202
- //用户卡片
203
- .user-card {
204
- min-width: 182px;
205
- max-width: 262px;
206
-
207
- .user-info {
208
- display: flex;
209
-
210
- .author {
211
- width: 72px;
212
- height: 72px;
213
- border-radius: 50%;
214
- background: rgba(255, 255, 255, 0.3);
215
- margin-right: 12px;
216
- }
217
-
218
- .user-info-right {
219
- flex: 1;
220
- }
221
-
222
- .name {
223
- display: inline-block;
224
- margin-top: 18px;
225
- }
226
-
227
- .role-list {
228
- font-size: 12px;
229
- line-height: 16px;
230
- margin-top: 4px;
231
-
232
- .role-item {
233
- background: rgba(204, 204, 204, .55);
234
- padding: 2px 8px;
235
- border-radius: 8px;
236
- display: inline-block;
237
- margin-right: 4px;
238
- margin-bottom: 4px;
239
- }
240
- }
241
- }
242
-
243
- .lios-tenant {
244
- padding: 5px 0px;
245
- margin: 5px 0px;
246
- border-top: 1px solid rgba(5, 5, 5, 0.06);
247
-
248
- .tenant-label {
249
- font-size: 12px;
250
- color: rgba(0, 0, 0, .5);
251
- }
252
-
253
- .tenant-switch {
254
- display: flex;
255
-
256
- .tenant-value {
257
- flex: 1;
258
- font-size: 14px;
259
- color: rgba(0, 0, 0, .85);
260
- }
261
-
262
- .tenant-icon {
263
- width: 40px;
264
- text-align: center;
265
- color: rgba(0, 0, 0, .45);
266
- display: flex;
267
- justify-content: center;
268
- align-items: center;
269
- }
270
-
271
- .tenant-icon:hover {
272
- cursor: pointer;
273
- color: rgba(0, 0, 0, .85);
274
- }
275
- }
276
-
277
-
106
+ max-width: 300px;
107
+ z-index: 2;
108
+
109
+ .actions-item {
110
+ height: 36px;
111
+ border-radius: 6px;
112
+ transition: all 0.3s;
113
+ cursor: pointer;
114
+ margin: 0 4px;
115
+ padding: 0 4px;
116
+
117
+ display: flex;
118
+ justify-content: center;
119
+ align-items: center;
120
+
121
+ &:hover {
122
+ background: rgba(0, 0, 0, 0.06);
123
+ }
278
124
  }
125
+ }
279
126
 
280
- .lios-userInfo {
281
- padding: 5px 0px;
282
- margin: 5px 0px;
283
- border-top: 1px solid rgba(5, 5, 5, 0.06);
284
-
285
- .li-flex {
286
- display: flex;
287
-
288
- .lios-value {
289
- flex: 1;
290
- }
291
- }
292
-
293
- .lios-li {
294
- line-height: 22px;
295
-
296
- .lios-key {
297
- font-size: 12px;
298
- color: rgba(0, 0, 0, .5);
299
- display: inline-block;
300
- }
301
-
302
- .lios-value {
303
- padding-left: 8px;
304
- display: inline-block;
305
- font-size: 12px;
306
- color: rgba(0, 0, 0, .85);
307
-
308
- span {
309
- padding-left: 5px;
310
- }
311
- }
312
-
313
- .lios-icon {
314
- width: 40px;
315
- text-align: center;
316
- color: rgba(0, 0, 0, .45);
317
- }
318
-
319
- .lios-icon:hover {
320
- cursor: pointer;
321
- color: rgba(0, 0, 0, .85);
322
- }
323
- }
127
+ .layout-header-user {
128
+ height: 48px;
129
+ display: flex;
130
+ justify-content: flex-start;
131
+ align-items: center;
132
+ z-index: 2;
133
+ transition: all 0.3s;
134
+ padding: 4px 12px;
135
+ margin: 0 12px;
136
+ border-radius: 6px;
137
+ cursor: pointer;
324
138
 
139
+ &:hover {
140
+ background: rgba(0, 0, 0, 0.06);
325
141
  }
326
142
 
327
-
328
- .lios-logout {
329
- cursor: pointer;
330
- display: flex;
331
- justify-content: center;
332
- align-items: center;
333
- color: rgba(0, 0, 0, .45);
334
- border-radius: 4px;
335
- transition: background .3s;
336
- padding: 4px;
337
-
338
- &:hover {
339
- background: rgba(0, 0, 0, .08);
340
- }
341
-
342
- .logout-icon {
343
- width: 16px;
344
- height: 16px;
345
- margin-right: 8px;
346
- }
143
+ .avatar {
144
+ width: 40px;
145
+ height: 40px;
146
+ border-radius: 50%;
147
+ margin-right: 12px;
347
148
  }
149
+ }
348
150
  }
349
151
 
152
+ .layout-main {
153
+ flex: 1;
154
+ height: 100%;
155
+ }
350
156
 
351
-
352
- .app-list-other {
353
-
354
- .product-list-item {
355
- display: flex;
356
- justify-content: flex-start;
357
- align-items: center;
358
- margin: 8px 0;
359
- padding: 6px 12px;
360
- cursor: pointer;
361
- border-radius: 4px;
362
- transition: all .3s;
363
- color: rgba(0, 0, 0, .65);
364
-
365
-
366
- &:hover {
367
- background: rgba(22, 119, 255, .08);
368
- color: rgba(22, 119, 255, .8);
369
- }
370
-
371
- img {
372
- width: 32px;
373
- height: 32px;
374
- margin-right: 12px;
375
- }
376
- }
377
-
378
- .current-product {
379
- color: #1677FF !important;
380
- }
157
+ .layout-content {
158
+ width: 100%;
159
+ height: calc(100vh - #{$header-height});
160
+ overflow: auto;
381
161
  }
382
162
 
383
- .ant-layout-sider-trigger {
384
- &:hover {
385
- background: rgba(0, 0, 0, .02) !important;
386
- }
387
- }
163
+ .ant-menu-submenu-popup {
164
+ .ant-menu-item-selected {
165
+ background: rgba(255, 255, 255, 0.12) !important;
166
+ }
167
+ }