-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.css
More file actions
65 lines (61 loc) · 2.37 KB
/
Copy pathcontent.css
File metadata and controls
65 lines (61 loc) · 2.37 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
:root { color-scheme: light dark; }
/* Softer dark, proper light */
.inline-translate-bubble {
position: absolute;
z-index: 2147483647;
background: rgba(32,33,36,.92); /* softer than before */
color: #fff;
border: 1px solid rgba(255,255,255,.10);
border-radius: 14px;
box-shadow: 0 10px 28px rgba(0,0,0,.35);
padding: 10px 12px;
max-width: 420px;
min-width: 280px;
backdrop-filter: saturate(1.1) blur(6px);
-webkit-backdrop-filter: saturate(1.1) blur(6px);
user-select: none;
}
@media (prefers-color-scheme: light) {
.inline-translate-bubble {
background: rgba(255,255,255,.98);
color: #111;
border: 1px solid rgba(0,0,0,.10);
}
.inline-translate-bubble button {
color: #111;
border-color: rgba(0,0,0,.12);
}
}
.inline-translate-bubble .it-row { display:flex; align-items:center; gap:8px; }
.inline-translate-bubble .it-header { justify-content:space-between; margin-bottom:6px; }
.inline-translate-bubble .it-drag { margin-left:auto; opacity:.75; font-size:12px; cursor:grab; }
.inline-translate-bubble .it-ghost { background:transparent; border:none; color:inherit; font-size:16px; cursor:pointer; }
.inline-translate-bubble .it-output { white-space:pre-wrap; word-break:break-word; line-height:1.45; margin:6px 0 8px; }
.inline-translate-bubble .it-actions { display:flex; gap:10px; }
.inline-translate-bubble button {
padding:8px 10px;
background: rgba(255,255,255,.06);
color:#fff; border:1px solid rgba(255,255,255,.12);
border-radius:10px; cursor:pointer;
}
.inline-translate-bubble button:hover { background: rgba(255,255,255,.12); }
@media (prefers-color-scheme: light) {
.inline-translate-bubble button:hover { background: rgba(0,0,0,.05); }
}
.inline-translate-bubble .it-settings-panel {
border:1px solid rgba(255,255,255,.12);
border-radius:10px; padding:8px; margin:6px 0 8px;
}
.inline-translate-bubble .it-label { width:92px; opacity:.85; font-weight:600; font-size:12px; }
.inline-translate-bubble select, .inline-translate-bubble input[type="checkbox"] {
background: transparent;
color: inherit;
border:1px solid rgba(255,255,255,.18);
border-radius:8px; padding:4px 8px;
}
@media (prefers-color-scheme: light) {
.inline-translate-bubble select, .inline-translate-bubble input[type="checkbox"] {
border-color: rgba(0,0,0,.18);
}
}
.inline-translate-bubble .it-help { opacity:.7; font-size:11px; margin-left:6px; }