-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
94 lines (82 loc) · 1.79 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* New Tooltip styles for translation extension */
.translation-tooltip {
font-family: Arial, sans-serif;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 16px;
max-width: 300px;
animation: fadeIn 0.3s ease-out;
position: absolute;
z-index: 2147483647;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.translation-tooltip .audio-btn {
background: none;
border: none;
cursor: pointer;
font-size: 16px;
vertical-align: middle;
padding: 0 5px;
}
.translation-tooltip .audio-btn:hover {
color: #007bff;
}
.translation-tooltip .original-container {
display: flex;
align-items: center;
padding-bottom: 8px;
border-bottom: 1px solid #eee;
}
.translation-tooltip .original-text {
font-weight: bold;
margin-bottom: 8px;
}
.translation-tooltip .katakana-text {
font-style: italic;
margin-bottom: 8px;
color: #666;
}
.translation-tooltip .lang-select {
width: auto;
padding: 4px 8px;
margin-bottom: 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 12px;
height: 24px;
line-height: 24px;
align-self: flex-start !important;
}
.translation-tooltip .translations {
margin-top: 12px;
display: flex;
flex-direction: column;
align-items: stretch !important;
width: 100%;
}
.translation-tooltip .translation-item {
margin-bottom: 12px;
width: 100%;
}
.translation-tooltip .translation-item h4 {
margin: 0 0 4px 0;
font-size: 14px;
color: #666;
text-align: left;
}
.translation-tooltip .translation-item p {
margin: 0;
font-size: 16px;
color: #333;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
.translation-tooltip .lang-select option {
font-size: 12px;
padding: 2px 4px;
}