-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.css
More file actions
241 lines (218 loc) · 6.04 KB
/
Copy pathcontent.css
File metadata and controls
241 lines (218 loc) · 6.04 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
/* Dictionary Extension — inline tooltip styles.
All class names prefixed with dict-ext- to avoid host page CSS conflicts.
CSS variables scoped to .dict-ext-tooltip since content scripts can't own :root. */
.dict-ext-tooltip {
/* Light — colorhunt.co/palette/f4f0e444a194537d96ec8f8d */
--dext-bg: #F4F0E4; /* warm cream */
--dext-bg-header: #EAE5D3; /* slightly darker cream */
--dext-text: #2C3A38; /* deep teal-dark */
--dext-text-sec: #4A5E5B; /* muted teal-grey */
--dext-text-muted: #7A9896; /* lighter teal-grey */
--dext-accent: #44A194; /* palette teal */
--dext-accent-soft: rgba(68, 161, 148, 0.09);
--dext-accent-ring: rgba(68, 161, 148, 0.18);
--dext-accent-2: #537D96; /* palette steel blue — etymology */
--dext-border: #C8C2B0; /* warm grey-tan */
--dext-border-light: #DDD8C8; /* lighter warm */
--dext-link: #44A194;
--dext-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
position: absolute;
z-index: 2147483647;
width: 320px;
background: var(--dext-bg);
border: 1px solid var(--dext-border);
border-radius: 12px;
box-shadow: 0 4px 24px rgba(44, 58, 56, 0.12), 0 1px 3px rgba(44, 58, 56, 0.07);
font-family: var(--dext-font);
font-size: 12.5px;
line-height: 1.55;
color: var(--dext-text);
overflow: hidden;
text-align: left;
letter-spacing: normal;
word-spacing: normal;
text-transform: none;
font-style: normal;
font-weight: normal;
-webkit-font-smoothing: antialiased;
}
/* Dark theme override */
.dict-ext-tooltip.dark-theme {
--dext-bg: #1A2B2E; /* deep teal-navy */
--dext-bg-header: #1F3338; /* dark teal surface */
--dext-text: #E8E2D8; /* warm cream light */
--dext-text-sec: #B8CECC; /* muted teal-light */
--dext-text-muted: #6B8B88; /* grey-teal muted */
--dext-accent: #44A194; /* teal */
--dext-accent-soft: rgba(68, 161, 148, 0.12);
--dext-accent-ring: rgba(68, 161, 148, 0.25);
--dext-accent-2: #6899B0; /* lighter steel blue for dark bg */
--dext-border: #2E4449; /* subtle teal border */
--dext-border-light: #243C41; /* very subtle */
--dext-link: #44A194;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.20);
}
/* --- Stem notice --- */
.dict-ext-stem-notice {
padding: 5px 14px;
font-size: 11px;
font-weight: 600;
color: var(--dext-accent);
background: var(--dext-bg-header);
border-bottom: 1px solid var(--dext-border-light);
letter-spacing: 0.1px;
}
/* --- Header --- */
.dict-ext-header {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
padding: 11px 14px 9px;
background: var(--dext-bg-header);
border-bottom: 1px solid var(--dext-border-light);
}
/* Hero word */
.dict-ext-word {
font-size: 16px;
font-weight: 800;
color: var(--dext-text);
letter-spacing: -0.3px;
line-height: 1.2;
}
/* POS pill badge */
.dict-ext-pos {
display: inline-flex;
align-items: center;
padding: 2px 8px;
font-size: 9.5px;
font-weight: 700;
color: var(--dext-accent);
background: var(--dext-accent-soft);
border: 1px solid var(--dext-accent-ring);
border-radius: 99px;
text-transform: uppercase;
letter-spacing: 0.6px;
line-height: 1.6;
}
/* --- Pronunciation card --- */
.dict-ext-pronunciation {
display: flex;
align-items: center;
gap: 6px;
padding: 7px 14px;
background: var(--dext-accent-soft);
border-bottom: 1px solid var(--dext-accent-ring);
}
.dict-ext-ipa {
flex: 1;
font-size: 12px;
font-family: 'Lucida Sans Unicode', 'Noto Sans', 'DejaVu Sans', serif;
color: var(--dext-text-sec);
letter-spacing: 0.3px;
}
.dict-ext-speak-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
border: none;
border-radius: 50%;
background: var(--dext-accent-ring);
cursor: pointer;
color: var(--dext-accent);
flex-shrink: 0;
transition: background 0.2s, color 0.2s, transform 0.15s;
}
.dict-ext-speak-btn:hover {
background: var(--dext-accent);
color: #fff;
transform: scale(1.1);
}
/* --- Etymology (left-border, steel blue accent) --- */
.dict-ext-etymology {
padding: 6px 12px 6px 11px;
font-size: 11px;
font-style: italic;
color: var(--dext-text-sec);
border-left: 3px solid var(--dext-accent-2);
background: rgba(83, 125, 150, 0.07);
border-bottom: 1px solid var(--dext-border-light);
line-height: 1.5;
}
/* --- Definitions --- */
.dict-ext-defs {
margin: 0;
padding: 10px 14px 10px 32px;
list-style: decimal;
}
.dict-ext-def {
padding: 2px 0;
color: var(--dext-text-sec);
line-height: 1.65;
}
.dict-ext-def::marker {
color: var(--dext-text-muted);
font-size: 10px;
}
.dict-ext-example {
margin-top: 2px;
font-style: italic;
color: var(--dext-text-muted);
font-size: 11.5px;
line-height: 1.5;
}
/* --- Footer --- */
.dict-ext-footer {
padding: 7px 14px 9px;
border-top: 1px solid var(--dext-border-light);
}
.dict-ext-link {
font-size: 11px;
font-weight: 500;
color: var(--dext-text-muted);
text-decoration: none;
padding: 2px 5px;
border-radius: 4px;
transition: color 0.15s, background 0.15s;
}
.dict-ext-link:hover {
color: var(--dext-accent);
background: var(--dext-accent-soft);
}
/* --- Not found / suggestions --- */
.dict-ext-notfound {
padding: 14px;
font-size: 12.5px;
color: var(--dext-text-muted);
line-height: 1.6;
}
.dict-ext-suggestions {
padding: 4px 14px 10px;
font-size: 11px;
color: var(--dext-text-muted);
display: flex;
flex-wrap: wrap;
gap: 5px;
}
.dict-ext-suggestion {
display: inline-block;
padding: 3px 10px;
border: 1px solid var(--dext-accent-ring);
border-radius: 99px;
background: var(--dext-accent-soft);
color: var(--dext-accent);
font-family: var(--dext-font);
font-size: 11px;
font-weight: 600;
text-decoration: none;
transition: all 0.15s;
}
.dict-ext-suggestion:hover {
background: var(--dext-accent);
color: #fff;
border-color: var(--dext-accent);
box-shadow: 0 2px 6px var(--dext-accent-ring);
}