Skip to content

Commit 45c33db

Browse files
committed
Update CSS styles in injectcss.ts for improved hover effects and visual consistency
- Adjusted border-radius and opacity for the .rwkvOfflineTranslationResult class. - Enhanced hover effects for light and dark themes with updated outline and border-radius properties.
1 parent c865557 commit 45c33db

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pages/content/src/injectcss.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,32 @@ export const injectCss = () => {
4444
.rwkvOfflineTranslationResult {
4545
/* 基础样式 */
4646
transition: all 0.2s ease-in-out;
47-
cursor: pointer;
48-
border-radius: 4px;
49-
opacity: 0.8;
47+
border-radius: 0;
48+
opacity: 0.6;
49+
outline: 2px solid rgba(0, 187, 255, 0.0) !important;
5050
}
5151
5252
/* 浅色主题下的 hover 效果 */
5353
@media (prefers-color-scheme: light) {
5454
.rwkvOfflineTranslationResult:hover:not(.rwkvInspecting) {
5555
background-color: rgba(0, 0, 0, 0.1) !important;
56-
color: #1a1a1a !important;
5756
opacity: 1;
5857
transform: translateY(-1px);
5958
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
59+
outline: 2px solid rgba(0, 187, 255, 0.4) !important;
60+
border-radius: 4px;
6061
}
6162
}
6263
6364
/* 深色主题下的 hover 效果 */
6465
@media (prefers-color-scheme: dark) {
6566
.rwkvOfflineTranslationResult:hover:not(.rwkvInspecting) {
6667
background-color: rgba(255, 255, 255, 0.15) !important;
67-
color: #ffffff !important;
6868
opacity: 1;
6969
transform: translateY(-1px);
7070
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
71+
outline: 2px solid rgba(0, 187, 255, 0.4) !important;
72+
border-radius: 4px;
7173
}
7274
}
7375

0 commit comments

Comments
 (0)