返回 JoyAI-Echo
Toast.module.scss
根目录 / echo_longvideo / Director_Agent / webui / src / components / ui / Toast / Toast.module.scss
1 .toast {
2 position: fixed;
3 top: 30px;
4 left: 50%;
5 transform: translateX(-50%);
6 background: #fff;
7 border-radius: 10px;
8 padding: 12px 24px;
9 box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
10 display: flex;
11 align-items: center;
12 gap: 10px;
13 z-index: 9999;
14 opacity: 0;
15 pointer-events: none;
16 transition: opacity 0.3s;
17
18 &.visible {
19 opacity: 1;
20 }
21 }
22
23 .toastIcon {
24 width: 20px;
25 height: 20px;
26 border-radius: 50%;
27 background: #ef4444;
28 color: #fff;
29 display: flex;
30 align-items: center;
31 justify-content: center;
32 font-size: 13px;
33 font-weight: 700;
34 flex-shrink: 0;
35 }
36
37 .toastIconSuccess {
38 width: 20px;
39 height: 20px;
40 display: flex;
41 align-items: center;
42 justify-content: center;
43 flex-shrink: 0;
44 font-size: 20px;
45 color: #52c41a;
46 }
47
48 .toastText {
49 font-size: 13px;
50 color: #333;
51 white-space: nowrap;
52 }
53
53 lines Plain Text