|
1 | 1 | /* Content Script 专用样式 - 使用 rb- 前缀避免与页面样式冲突 */ |
| 2 | +/* 所有样式都使用 !important 确保不被网站样式覆盖 */ |
| 3 | + |
2 | 4 | /* 容器默认隐藏 */ |
3 | 5 | #review-bookmark { |
4 | | - display: none; |
| 6 | + display: none !important; |
5 | 7 | } |
6 | 8 |
|
7 | 9 | #review-bookmark-notification { |
8 | | - display: none; |
| 10 | + display: none !important; |
9 | 11 | } |
10 | 12 |
|
11 | 13 | #review-bookmark-dialog { |
12 | | - display: none; |
| 14 | + display: none !important; |
13 | 15 | } |
14 | 16 |
|
15 | 17 | /* 显示状态类 */ |
|
19 | 21 |
|
20 | 22 | /* 对话框遮罩层 */ |
21 | 23 | .rb-dialog-overlay { |
22 | | - position: fixed; |
23 | | - top: 0; |
24 | | - left: 0; |
25 | | - right: 0; |
26 | | - bottom: 0; |
27 | | - background-color: rgba(0, 0, 0, 0.5); |
28 | | - z-index: 999999998; |
29 | | - display: flex; |
30 | | - align-items: center; |
31 | | - justify-content: center; |
| 24 | + position: fixed !important; |
| 25 | + top: 0 !important; |
| 26 | + left: 0 !important; |
| 27 | + right: 0 !important; |
| 28 | + bottom: 0 !important; |
| 29 | + background-color: rgba(0, 0, 0, 0.5) !important; |
| 30 | + z-index: 999999998 !important; |
| 31 | + display: flex !important; |
| 32 | + align-items: center !important; |
| 33 | + justify-content: center !important; |
32 | 34 | } |
33 | 35 |
|
34 | 36 | /* 对话框容器 */ |
35 | 37 | .rb-dialog-container { |
36 | | - background-color: #fff; |
37 | | - border-radius: 8px; |
38 | | - padding: 24px; |
39 | | - max-width: 512px; |
40 | | - width: calc(100% - 32px); |
41 | | - box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); |
| 38 | + background-color: #fff !important; |
| 39 | + border-radius: 8px !important; |
| 40 | + padding: 24px !important; |
| 41 | + max-width: 512px !important; |
| 42 | + width: calc(100% - 32px) !important; |
| 43 | + box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; |
42 | 44 | } |
43 | 45 |
|
44 | 46 | /* 对话框标题 */ |
45 | 47 | .rb-dialog-title { |
46 | | - font-size: 18px; |
47 | | - font-weight: 600; |
48 | | - margin-bottom: 8px; |
49 | | - color: #444; |
| 48 | + font-size: 18px !important; |
| 49 | + font-weight: 600 !important; |
| 50 | + margin-bottom: 8px !important; |
| 51 | + color: #444 !important; |
50 | 52 | } |
51 | 53 |
|
52 | 54 | /* 对话框描述 */ |
53 | 55 | .rb-dialog-description { |
54 | | - font-size: 14px; |
55 | | - color: #666; |
56 | | - margin-bottom: 16px; |
| 56 | + font-size: 14px !important; |
| 57 | + color: #666 !important; |
| 58 | + margin-bottom: 16px !important; |
57 | 59 | } |
58 | 60 |
|
59 | 61 | /* 对话框按钮容器 */ |
60 | 62 | .rb-dialog-buttons { |
61 | | - display: flex; |
62 | | - justify-content: flex-end; |
63 | | - gap: 8px; |
| 63 | + display: flex !important; |
| 64 | + justify-content: flex-end !important; |
| 65 | + gap: 8px !important; |
64 | 66 | } |
65 | 67 |
|
66 | 68 | /* 对话框按钮 */ |
67 | 69 | .rb-dialog-button { |
68 | | - padding: 8px 16px; |
69 | | - font-size: 14px; |
70 | | - font-weight: 500; |
71 | | - border-radius: 4px; |
72 | | - border: none; |
73 | | - cursor: pointer; |
74 | | - transition: background-color 0.2s; |
| 70 | + padding: 8px 16px !important; |
| 71 | + font-size: 14px !important; |
| 72 | + font-weight: 500 !important; |
| 73 | + border-radius: 4px !important; |
| 74 | + border: none !important; |
| 75 | + cursor: pointer !important; |
| 76 | + transition: background-color 0.2s !important; |
| 77 | + background-color: transparent !important; |
| 78 | + color: inherit !important; |
75 | 79 | } |
76 | 80 |
|
77 | 81 | .rb-dialog-button-cancel { |
78 | | - background-color: #fff; |
79 | | - color: #444; |
80 | | - border: 1px solid #ccc; |
| 82 | + background-color: #fff !important; |
| 83 | + color: #444 !important; |
| 84 | + border: 1px solid #ccc !important; |
81 | 85 | } |
82 | 86 |
|
83 | 87 | .rb-dialog-button-cancel:hover { |
84 | | - background-color: #f3f4f6; |
| 88 | + background-color: #f3f4f6 !important; |
85 | 89 | } |
86 | 90 |
|
87 | 91 | .rb-dialog-button-confirm { |
88 | | - background-color: #53a8ff; |
89 | | - color: #fff; |
| 92 | + background-color: #53a8ff !important; |
| 93 | + color: #fff !important; |
90 | 94 | } |
91 | 95 |
|
92 | 96 | .rb-dialog-button-confirm:hover { |
93 | | - background-color: #4285d6; |
| 97 | + background-color: #4285d6 !important; |
94 | 98 | } |
95 | 99 |
|
96 | 100 | /* 通知容器 */ |
97 | 101 | .rb-notification { |
98 | | - position: fixed; |
99 | | - z-index: 999999999; |
100 | | - background-color: #fff; |
101 | | - border: 2px solid #53a8ff; |
102 | | - border-radius: 12px; |
103 | | - box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1); |
104 | | - padding: 20px; |
105 | | - min-width: 320px; |
106 | | - max-width: 420px; |
107 | | - pointer-events: auto; |
108 | | - color: #444; |
109 | | - font-family: system-ui, -apple-system, sans-serif; |
| 102 | + position: fixed !important; |
| 103 | + z-index: 999999999 !important; |
| 104 | + background-color: #fff !important; |
| 105 | + border: 2px solid #53a8ff !important; |
| 106 | + border-radius: 12px !important; |
| 107 | + box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important; |
| 108 | + padding: 20px !important; |
| 109 | + min-width: 320px !important; |
| 110 | + max-width: 420px !important; |
| 111 | + pointer-events: auto !important; |
| 112 | + color: #444 !important; |
| 113 | + font-family: system-ui, -apple-system, sans-serif !important; |
110 | 114 | } |
111 | 115 |
|
112 | 116 | .rb-notification-top-right { |
113 | | - top: 16px; |
114 | | - right: 16px; |
| 117 | + top: 16px !important; |
| 118 | + right: 16px !important; |
115 | 119 | } |
116 | 120 |
|
117 | 121 | .rb-notification-top-left { |
118 | | - top: 16px; |
119 | | - left: 16px; |
| 122 | + top: 16px !important; |
| 123 | + left: 16px !important; |
120 | 124 | } |
121 | 125 |
|
122 | 126 | .rb-notification-bottom-right { |
123 | | - bottom: 16px; |
124 | | - right: 16px; |
| 127 | + bottom: 16px !important; |
| 128 | + right: 16px !important; |
125 | 129 | } |
126 | 130 |
|
127 | 131 | .rb-notification-bottom-left { |
128 | | - bottom: 16px; |
129 | | - left: 16px; |
| 132 | + bottom: 16px !important; |
| 133 | + left: 16px !important; |
130 | 134 | } |
131 | 135 |
|
132 | 136 | /* 通知内容区域 */ |
133 | 137 | .rb-notification-content { |
134 | | - margin-bottom: 12px; |
| 138 | + margin-bottom: 12px !important; |
135 | 139 | } |
136 | 140 |
|
137 | 141 | .rb-notification-title { |
138 | | - font-weight: 700; |
139 | | - font-size: 16px; |
140 | | - margin-bottom: 10px; |
141 | | - color: #1f2937; |
142 | | - line-height: 1.4; |
| 142 | + font-weight: 700 !important; |
| 143 | + font-size: 16px !important; |
| 144 | + margin-bottom: 10px !important; |
| 145 | + color: #1f2937 !important; |
| 146 | + line-height: 1.4 !important; |
143 | 147 | } |
144 | 148 |
|
145 | 149 | .rb-notification-url { |
146 | | - font-size: 12px; |
147 | | - color: #666; |
148 | | - line-height: 14px; |
149 | | - word-break: break-all; |
| 150 | + font-size: 12px !important; |
| 151 | + color: #666 !important; |
| 152 | + line-height: 14px !important; |
| 153 | + word-break: break-all !important; |
150 | 154 | } |
151 | 155 |
|
152 | 156 | .rb-notification-url-link { |
153 | | - color: #2563eb; |
154 | | - text-decoration: none; |
| 157 | + color: #2563eb !important; |
| 158 | + text-decoration: none !important; |
155 | 159 | } |
156 | 160 |
|
157 | 161 | .rb-notification-url-link:hover { |
158 | | - text-decoration: underline; |
| 162 | + text-decoration: underline !important; |
159 | 163 | } |
160 | 164 |
|
161 | 165 | /* 通知按钮容器 */ |
162 | 166 | .rb-notification-buttons { |
163 | | - display: flex; |
164 | | - gap: 8px; |
| 167 | + display: flex !important; |
| 168 | + gap: 8px !important; |
165 | 169 | } |
166 | 170 |
|
167 | 171 | /* 通知按钮 */ |
168 | 172 | .rb-notification-button { |
169 | | - width: 36px; |
170 | | - height: 36px; |
171 | | - border-radius: 50%; |
172 | | - border: none; /* 移除边框,使用背景色 */ |
173 | | - color: #fff; /* 图标颜色为白色 */ |
174 | | - cursor: pointer; |
175 | | - display: flex; |
176 | | - align-items: center; |
177 | | - justify-content: center; |
178 | | - transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out; /* 添加 transform 过渡 */ |
179 | | - padding: 0; |
180 | | - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* 按钮阴影 */ |
| 173 | + width: 36px !important; |
| 174 | + height: 36px !important; |
| 175 | + border-radius: 50% !important; |
| 176 | + border: none !important; |
| 177 | + color: #fff !important; |
| 178 | + cursor: pointer !important; |
| 179 | + display: flex !important; |
| 180 | + align-items: center !important; |
| 181 | + justify-content: center !important; |
| 182 | + transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out !important; |
| 183 | + padding: 0 !important; |
| 184 | + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; |
| 185 | + background-color: transparent !important; |
| 186 | + font-size: inherit !important; |
| 187 | + font-weight: inherit !important; |
| 188 | + text-align: center !important; |
| 189 | + -webkit-appearance: none !important; |
| 190 | + appearance: none !important; |
181 | 191 | } |
182 | 192 |
|
183 | 193 | .rb-notification-button:hover { |
184 | | - transform: scale(1.05); /* hover 放大效果 */ |
| 194 | + transform: scale(1.05) !important; |
185 | 195 | } |
186 | 196 |
|
187 | 197 | .rb-notification-button-icon { |
188 | | - width: 18px; /* 增大图标尺寸 */ |
189 | | - height: 18px; /* 增大图标尺寸 */ |
190 | | - color: #fff; /* 图标颜色为白色 */ |
| 198 | + width: 18px !important; |
| 199 | + height: 18px !important; |
| 200 | + color: #fff !important; |
191 | 201 | } |
192 | 202 |
|
193 | 203 | .rb-notification-button-close { |
194 | | - background-color: #fbbf24; /* 橙色 */ |
| 204 | + background-color: #fbbf24 !important; |
195 | 205 | } |
| 206 | + |
196 | 207 | .rb-notification-button-close:hover { |
197 | | - background-color: #f59e0b; |
| 208 | + background-color: #f59e0b !important; |
198 | 209 | } |
199 | 210 |
|
200 | 211 | .rb-notification-button-block { |
201 | | - background-color: #3b82f6; /* 蓝色 */ |
| 212 | + background-color: #3b82f6 !important; |
202 | 213 | } |
| 214 | + |
203 | 215 | .rb-notification-button-block:hover { |
204 | | - background-color: #2563eb; |
| 216 | + background-color: #2563eb !important; |
205 | 217 | } |
206 | 218 |
|
207 | 219 | .rb-notification-button-edit { |
208 | | - background-color: #10b981; /* 绿色 */ |
| 220 | + background-color: #10b981 !important; |
209 | 221 | } |
| 222 | + |
210 | 223 | .rb-notification-button-edit:hover { |
211 | | - background-color: #059669; |
| 224 | + background-color: #059669 !important; |
212 | 225 | } |
213 | 226 |
|
214 | 227 | .rb-notification-button-remove { |
215 | | - background-color: #ef4444; /* 红色 */ |
| 228 | + background-color: #ef4444 !important; |
216 | 229 | } |
| 230 | + |
217 | 231 | .rb-notification-button-remove:hover { |
218 | | - background-color: #dc2626; |
| 232 | + background-color: #dc2626 !important; |
219 | 233 | } |
220 | 234 |
|
221 | 235 | /* 倒计时显示 */ |
222 | 236 | .rb-notification-countdown { |
223 | | - position: absolute; |
224 | | - bottom: 8px; |
225 | | - right: 8px; |
226 | | - font-size: 11px; |
227 | | - color: #9ca3af; |
228 | | - font-weight: 500; |
229 | | - background-color: rgba(0, 0, 0, 0.05); |
230 | | - padding: 2px 6px; |
231 | | - border-radius: 4px; |
232 | | - white-space: nowrap; |
233 | | - text-align: center; |
| 237 | + position: absolute !important; |
| 238 | + bottom: 8px !important; |
| 239 | + right: 8px !important; |
| 240 | + font-size: 11px !important; |
| 241 | + color: #9ca3af !important; |
| 242 | + font-weight: 500 !important; |
| 243 | + background-color: rgba(0, 0, 0, 0.05) !important; |
| 244 | + padding: 2px 6px !important; |
| 245 | + border-radius: 4px !important; |
| 246 | + white-space: nowrap !important; |
| 247 | + text-align: center !important; |
234 | 248 | } |
0 commit comments