|
10 | 10 |
|
11 | 11 | .backup-header { |
12 | 12 | padding: 8px 12px; |
13 | | - background-color: #f9f9f9; |
14 | | - border-bottom: 1px solid #ddd; |
| 13 | + background-color: var(--white); |
| 14 | + border-bottom: var(--border-in-light); |
15 | 15 | flex-shrink: 0; |
16 | 16 | max-height: 50vh; /* 限制最大高度为视口的50% */ |
17 | 17 | overflow-y: auto; /* 当内容过多时允许滚动 */ |
|
21 | 21 | text-align: center; |
22 | 22 | margin-bottom: 10px; |
23 | 23 | font-size: 18px; |
24 | | - color: #333333; |
| 24 | + color: var(--black); |
25 | 25 | } |
26 | 26 | .window-action-button { |
27 | 27 | position: absolute; |
|
41 | 41 | margin-bottom: 6px; |
42 | 42 | font-weight: bold; |
43 | 43 | font-size: 14px; |
44 | | - color: #555555; |
| 44 | + color: var(--text-color-secondary); |
45 | 45 | } |
46 | 46 |
|
47 | 47 | .input { |
48 | 48 | flex: 1; |
49 | 49 | width: 100%; |
50 | 50 | min-width: 400px; |
51 | 51 | padding: 6px 10px; |
52 | | - border: 1px solid #cccccc; |
| 52 | + border: var(--border-in-light); |
53 | 53 | border-radius: 5px; |
54 | 54 | font-size: 14px; |
55 | 55 | margin-right: 0.2rem; |
56 | 56 | box-sizing: border-box; |
57 | 57 | transition: border-color 0.3s ease; |
58 | 58 | display: block; |
| 59 | + background-color: var(--white); |
| 60 | + color: var(--black); |
59 | 61 |
|
60 | 62 | &:focus { |
61 | | - border-color: #007bff; |
| 63 | + border-color: var(--primary); |
62 | 64 | outline: none; |
63 | 65 | } |
64 | 66 |
|
65 | 67 | &:disabled { |
66 | | - background-color: #f5f5f5; |
| 68 | + background-color: var(--button-disabled-bg); |
67 | 69 | } |
68 | 70 | } |
69 | 71 |
|
|
78 | 80 | padding: 10px 20px; |
79 | 81 | margin-bottom: 5px; |
80 | 82 | font-size: 14px; |
81 | | - color: #ffffff; |
82 | | - background-color: #007bff; |
| 83 | + color: var(--white); |
| 84 | + background-color: var(--primary); |
83 | 85 | border: none; |
84 | 86 | border-radius: 5px; |
85 | 87 | cursor: pointer; |
86 | 88 | transition: background-color 0.3s ease; |
87 | 89 |
|
88 | 90 | &:hover:not(:disabled) { |
89 | | - background-color: #0056b3; |
| 91 | + opacity: 0.8; |
90 | 92 | } |
91 | 93 |
|
92 | 94 | &:disabled { |
93 | | - background-color: #6c757d; |
| 95 | + background-color: var(--button-disabled-bg); |
94 | 96 | cursor: not-allowed; |
95 | 97 | } |
96 | 98 | } |
|
100 | 102 | text-align: center; |
101 | 103 | font-weight: bold; |
102 | 104 | font-size: 16px; |
| 105 | + color: var(--text-color); |
103 | 106 | } |
104 | 107 | } |
105 | 108 |
|
|
109 | 112 | padding: 10px; |
110 | 113 | max-height: 55vh; |
111 | 114 | overflow-y: auto; |
112 | | - background-color: #fafafa; |
| 115 | + background-color: var(--background-color-secondary); |
113 | 116 |
|
114 | 117 | // 滚动条样式 |
115 | 118 | scrollbar-width: thin; /* Firefox */ |
116 | 119 | scrollbar-color: #3298eb #f1f1f1; /* Firefox */ |
117 | | - |
| 120 | + |
118 | 121 | .fileListContainer::-webkit-scrollbar { |
119 | 122 | width: 16px; |
120 | 123 | } |
121 | | - |
| 124 | + |
122 | 125 | .fileListContainer::-webkit-scrollbar-track { |
123 | 126 | background: #f1f1f1; |
124 | 127 | border-radius: 8px; |
125 | 128 | } |
126 | | - |
| 129 | + |
127 | 130 | .fileListContainer::-webkit-scrollbar-thumb { |
128 | 131 | background: #3298eb; |
129 | 132 | border-radius: 8px; |
130 | 133 | } |
131 | | - |
| 134 | + |
132 | 135 | .fileListContainer::-webkit-scrollbar-thumb:hover { |
133 | 136 | background: #499ee5; |
134 | 137 | } |
135 | 138 |
|
136 | 139 | .subtitle { |
137 | 140 | font-size: 18px; |
138 | | - color: #333333; |
| 141 | + color: var(--black); |
139 | 142 | margin-bottom: 18px; |
140 | 143 | text-align: center; |
141 | 144 | } |
|
151 | 154 | justify-content: space-between; |
152 | 155 | align-items: center; |
153 | 156 | padding: 12px 10px; |
154 | | - border: 1px solid #eee; |
| 157 | + border: var(--border-in-light); |
155 | 158 | border-radius: 5px; |
156 | 159 | margin-bottom: 8px; |
157 | | - background-color: #ffffff; |
| 160 | + background-color: var(--white); |
158 | 161 | transition: background-color 0.3s ease; |
159 | 162 |
|
160 | 163 | &:hover { |
161 | | - background-color: #f9f9f9; |
| 164 | + background-color: var(--hover-color); |
162 | 165 | } |
163 | 166 |
|
164 | 167 | .fileInfo { |
165 | 168 | flex: 2; |
166 | 169 | font-size: 14px; |
167 | | - color: #555555; |
| 170 | + color: var(--text-color-secondary); |
168 | 171 | word-break: break-all; |
169 | 172 | } |
170 | 173 |
|
171 | 174 | .renameInput { |
172 | 175 | width: 100%; |
173 | 176 | padding: 6px 10px; |
174 | | - border: 1px solid #cccccc; |
| 177 | + border: var(--border-in-light); |
175 | 178 | border-radius: 4px; |
176 | 179 | font-size: 13px; |
177 | 180 | box-sizing: border-box; |
| 181 | + background-color: var(--white); |
| 182 | + color: var(--black); |
178 | 183 | } |
179 | 184 |
|
180 | 185 | .fileActions { |
|
187 | 192 | .actionButton { |
188 | 193 | padding: 6px 10px; |
189 | 194 | font-size: 13px; |
190 | | - color: #ffffff; |
191 | | - background-color: #007bff; |
| 195 | + color: var(--white); |
| 196 | + background-color: var(--primary); |
192 | 197 | border: none; |
193 | 198 | border-radius: 4px; |
194 | 199 | cursor: pointer; |
195 | 200 | transition: background-color 0.3s ease; |
196 | 201 |
|
197 | 202 | &:hover:not(:disabled) { |
198 | | - background-color: #0056b3; |
| 203 | + background-color: var(--primary-hover); |
199 | 204 | } |
200 | 205 |
|
201 | 206 | &:disabled { |
202 | | - background-color: #6c757d; |
| 207 | + background-color: var(--button-disabled-bg); |
203 | 208 | cursor: not-allowed; |
204 | 209 | } |
205 | 210 | } |
|
0 commit comments