返回 AiToEarn
modal.css
1 .update-modal {
2 --primary-color: linear-gradient(to right, white, #a66ae4);
3
4 .update-modal__mask {
5 width: 100vw;
6 height: 100vh;
7 position: fixed;
8 left: 0;
9 top: 0;
10 z-index: 9;
11 background: rgba(0, 0, 0, 0.45);
12 }
13
14 .update-modal__warp {
15 position: fixed;
16 top: 50%;
17 left: 50%;
18 transform: translate(-50%, -50%);
19 z-index: 19;
20 }
21
22 .update-modal__content {
23 box-shadow: 0 0 10px -4px rgb(130, 86, 208);
24 overflow: hidden;
25 border-radius: 4px;
26
27 .content__header {
28 display: flex;
29 line-height: 38px;
30 background-color: var(--primary-color);
31
32 .content__header-text {
33 font-weight: bold;
34 width: 0;
35 flex-grow: 1;
36 }
37 }
38
39 .update-modal--close {
40 width: 30px;
41 height: 30px;
42 margin: 4px;
43 line-height: 34px;
44 text-align: center;
45 cursor: pointer;
46
47 svg {
48 width: 17px;
49 height: 17px;
50 }
51 }
52
53 .content__body {
54 padding: 10px;
55 background-color: #fff;
56 color: #333;
57 }
58
59 .content__footer {
60 padding: 10px;
61 background-color: #fff;
62 display: flex;
63 justify-content: flex-end;
64
65 button {
66 padding: 7px 11px;
67 background-color: var(--primary-color);
68 font-size: 14px;
69 margin-left: 10px;
70
71 &:first-child {
72 margin-left: 0;
73 }
74 }
75 }
76 }
77
78 .icon {
79 padding: 0 15px;
80 width: 20px;
81 fill: currentColor;
82
83 &:hover {
84 color: rgba(0, 0, 0, 0.4);
85 }
86 }
87 }
88
88 lines CSS