返回 AiToEarn
AccountSidebar.module.scss
根目录 / project / aitoearn-electron / src / views / account / components / AccountSidebar / AccountSidebar.module.scss
1 @use "@/styles/mixin";
2
3 .accountSidebar {
4 border-right: 1px solid var(--grayColor3);
5 width: 200px;
6 height: 100%;
7 min-height: 0;
8 flex-shrink: 0;
9 display: flex;
10 flex-direction: column;
11
12 p {
13 margin: 0;
14 }
15
16 :global {
17 .accountSidebar-userCount {
18 display: inline-block;
19 margin-left: 10px;
20 color: var(--grayColor6);
21 }
22
23 .accountSidebar-top {
24 flex-shrink: 0;
25 padding: 0 10px;
26 button {
27 width: 100%;
28 }
29 &-box {
30 display: flex;
31 margin: 10px 0;
32 }
33 &-addUser {
34 margin-left: 10px;
35 width: 60px !important;
36 }
37 }
38
39 .accountSidebar-footer {
40 padding: 5px 0;
41 border-top: 1px solid var(--grayColor3);
42 text-align: center;
43 }
44
45 .accountList {
46 width: 100%;
47 height: 100%;
48 min-width: 0;
49 display: flex;
50 flex-direction: column;
51 white-space: nowrap;
52 text-overflow: ellipsis;
53 overflow: auto;
54 &-item {
55 width: 100%;
56 min-width: 0;
57 display: flex;
58 align-items: center;
59 padding: 10px 15px;
60 box-sizing: border-box;
61 cursor: pointer;
62 background: #fff;
63 transition: 0.3s;
64 color: #333;
65 .ant-avatar {
66 flex-shrink: 0;
67 }
68 &-right {
69 margin-left: 10px;
70 box-sizing: border-box;
71 width: 100%;
72 overflow: hidden;
73 &-name {
74 text-align: left;
75 margin-bottom: 5px;
76 font-size: var(--fs-sm);
77 overflow: hidden;
78 text-overflow: ellipsis;
79 }
80 &-footer {
81 display: flex;
82 justify-content: space-between;
83 font-size: var(--fs-sm);
84 }
85 &-plat {
86 display: flex;
87 align-items: center;
88 img {
89 width: 15px;
90 margin-right: 5px;
91 }
92 span {
93 font-size: var(--fs-xs);
94 }
95 }
96 }
97
98 &:hover {
99 color: var(--colorPrimary5);
100 background: var(--colorPrimary1);
101 }
102
103 &--active {
104 background: var(--colorPrimary1);
105 }
106
107 &--abnormal {
108 color: red !important;
109 }
110
111 &--disable {
112 filter: grayscale(100%) !important;
113 opacity: 0.5 !important;
114 }
115 }
116 }
117
118 .ant-collapse {
119 overflow: auto;
120 height: 100%;
121 border: none;
122 background: transparent;
123 .ant-collapse-content-box {
124 padding: 0;
125 }
126 .ant-collapse-header {
127 background: transparent;
128 padding: 10px;
129 }
130 }
131 }
132 }
133
134 .accountPopoverInfo {
135 padding: 10px;
136 width: 250px;
137 :global {
138 .accountPopoverInfo_top {
139 display: flex;
140 font-size: var(--fs-sm);
141 padding: 5px 0 10px 0;
142 border-bottom: 1px solid #dedede;
143 margin-bottom: 15px;
144 color: var(--grayColor7);
145 &-right {
146 margin-left: 10px;
147 }
148 }
149 .accountPopoverInfo-item {
150 display: flex;
151 align-items: center;
152 margin-bottom: 5px;
153 p {
154 display: flex;
155 align-items: center;
156 &:nth-of-type(1) {
157 color: var(--grayColor7);
158 }
159 img {
160 width: 15px;
161 margin-right: 5px;
162 }
163
164 .anticon {
165 margin-right: 3px;
166 }
167 }
168 }
169 }
170 }
171
172 .userManageDeleteHitModal {
173 .userManageDeleteHitModal-users {
174 display: grid;
175 gap: 15px;
176 grid-template-columns: repeat(6, 1fr);
177 margin-top: 10px;
178 li {
179 display: flex;
180 justify-content: center;
181 flex-direction: column;
182 white-space: nowrap;
183 overflow: hidden;
184 & > span {
185 text-overflow: ellipsis;
186 display: block;
187 margin-top: 5px;
188 overflow: hidden;
189 width: 100%;
190 text-align: center;
191 font-size: var(--fs-xs);
192 color: var(--grayColor9);
193 }
194 }
195 }
196 }
197 .userManageModal {
198 :global {
199 .ant-modal-header {
200 margin-bottom: 0;
201 }
202 .ant-modal-content {
203 padding: 0 !important;
204 .ant-modal-title {
205 padding: 15px;
206 border-bottom: 1px solid var(--grayColor3);
207 }
208 }
209 }
210 }
211 .userManage {
212 display: flex;
213 min-width: 0;
214 height: 500px;
215 :global {
216 @include mixin.table-flex-container-with-selectors;
217
218 .ant-table-cell {
219 padding: 10px !important;
220 }
221
222 .userManage-sidebar {
223 width: 200px;
224 height: 100%;
225 border-right: 1px solid var(--grayColor3);
226 flex-shrink: 0;
227 display: flex;
228 flex-direction: column;
229 justify-content: space-between;
230 box-sizing: border-box;
231 padding-top: 10px;
232 &-top {
233 display: flex;
234 flex-direction: column;
235 min-height: 0;
236 }
237 &-bottom {
238 padding: 0 12px;
239 margin-bottom: 15px;
240 button {
241 width: 100%;
242 }
243 }
244 &-allUser, .userManage-sidebar-list-item {
245 display: flex;
246 justify-content: space-between;
247 padding-right: 10px;
248 padding-left: 10px;
249 background: transparent;
250 &:hover {
251 background: var(--colorPrimary3);
252 cursor: pointer;
253 }
254 }
255 &-allUser {
256 padding-top: 5px;
257 padding-bottom: 5px;
258 }
259 &-sortHandle {
260 cursor: move;
261 margin-right: 10px;
262 }
263 &-left {
264 display: flex;
265 }
266 &-name {
267 }
268 &-count {
269 color: var(--grayColor8);
270 }
271 &-list {
272 display: flex;
273 flex-direction: column;
274 min-height: 0;
275 height: 100%;
276
277 &-title {
278 margin: 10px 0 10px 10px;
279 font-size: var(--fs-xs);
280 color: var(--grayColor8);
281 }
282
283 &-item {
284 padding-top: 10px;
285 padding-bottom: 10px;
286 }
287
288 &-sortable {
289 height: 100%;
290 overflow: auto;
291 padding-bottom: 15px;
292 }
293 }
294 &--active {
295 background: var(--colorPrimary3) !important;
296 }
297 }
298
299 .userManage-content {
300 width: 100%;
301 overflow: hidden;
302 position: relative;
303 padding: 10px;
304
305 &-head {
306 display: flex;
307 justify-content: space-between;
308 margin-bottom: 10px;
309 &-proxy {
310
311 }
312 }
313
314 .ant-drawer-header {
315 height: 40px;
316 .ant-drawer-close {
317 position: absolute;
318 right: 10px;
319 }
320 }
321
322 .ant-drawer-content-wrapper {
323 border: 1px solid var(--grayColor3);
324 border-radius: 20px 20px 0 0;
325 overflow: hidden;
326 .ant-drawer-content {
327 }
328 .ant-drawer-body {
329 overflow: hidden;
330 }
331 }
332
333 &-multiple {
334 display: flex;
335 gap: 40px;
336 justify-content: center;
337 &-item {
338 cursor: pointer;
339 display: flex;
340 flex-direction: column;
341 align-items: center;
342 &-icon {
343 background: var(--grayColor1);
344 width: 36px;
345 height: 36px;
346 font-size: var(--fs-md);
347 border-radius: 50%;
348 display: flex;
349 justify-content: center;
350 align-items: center;
351 margin-bottom: 5px;
352 }
353 &:hover {
354 opacity: 0.6;
355 }
356 }
357 }
358
359 &-user {
360 overflow: hidden;
361 white-space: nowrap;
362 text-overflow: ellipsis;
363 &--disable {
364 filter: grayscale(100%);
365 opacity: 0.5;
366 }
367 .ant-avatar {
368 margin-right: 5px;
369 }
370 }
371 }
372 }
373 }
374
375 .createGroup {
376 display: flex;
377 align-items: center;
378 margin: 30px 0 50px 0;
379 label {
380 white-space: nowrap;
381 margin-right: 10px;
382 }
383 }
383 lines Plain Text