-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.css
More file actions
117 lines (104 loc) · 2.57 KB
/
content.css
File metadata and controls
117 lines (104 loc) · 2.57 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
/**
* Copyright 2025 Qtom
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Notion翻译助手 - 样式
*/
#notion-translator-panel {
position: fixed;
bottom: 20px;
right: 20px;
width: 240px;
background-color: white;
border: 1px solid #e0e0e0;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 9999;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 14px;
line-height: 1.5;
overflow: hidden;
}
.translator-header {
display: flex;
flex-wrap: wrap;
align-items: center;
padding: 12px;
background-color: #f7f6f3;
border-bottom: 1px solid #e0e0e0;
}
.translator-title {
font-weight: 600;
margin-right: auto;
}
.translator-status {
width: 100%;
margin-top: 8px;
font-size: 12px;
color: #666;
}
.translator-button {
padding: 4px 8px;
background-color: #2eaadc;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
transition: background-color 0.2s;
}
.translator-button:hover {
background-color: #2196c4;
}
.translator-body {
padding: 12px;
}
.translator-options {
display: flex;
align-items: center;
}
.translator-options select {
width: 100%;
padding: 6px;
border: 1px solid #e0e0e0;
border-radius: 4px;
background-color: white;
font-size: 12px;
}
.notion-translator-overlay {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
line-height: 1.5;
white-space: pre-wrap;
word-break: break-word;
transition: none;
box-sizing: border-box;
font-size: inherit;
color: inherit;
will-change: transform, left, top;
}
.notion-translator-toggle-btn:hover {
background-color: #e0e0e0 !important;
}
#toggle-view-mode {
margin-left: 10px;
padding: 3px 8px;
background-color: #f0f0f0;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 12px;
cursor: pointer;
}
#toggle-view-mode:hover {
background-color: #e0e0e0;
}