@a200888213/gbdocx 0.0.0-stage → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +206 -2
- package/index.html +25 -0
- package/package.json +48 -6
- package/serve.mjs +22 -0
- package/src/app/file-io.js +122 -0
- package/src/app/main.js +9 -0
- package/src/app/word/catalog.js +52 -0
- package/src/app/word/comments.js +112 -0
- package/src/app/word/doc.js +113 -0
- package/src/app/word/edit.js +72 -0
- package/src/app/word/file.js +162 -0
- package/src/app/word/hf.js +76 -0
- package/src/app/word/layout.js +155 -0
- package/src/app/word/menus.js +175 -0
- package/src/app/word/notes.js +110 -0
- package/src/app/word/shared.js +22 -0
- package/src/app/word/view.js +117 -0
- package/src/app/word-app.js +459 -0
- package/src/app/word-sheets.js +101 -0
- package/src/kernel/docx/catalog.js +41 -0
- package/src/kernel/docx/codec/blocks.js +123 -0
- package/src/kernel/docx/codec/carry.js +129 -0
- package/src/kernel/docx/codec/comments.js +25 -0
- package/src/kernel/docx/codec/docx.js +198 -0
- package/src/kernel/docx/codec/docxStyles.js +177 -0
- package/src/kernel/docx/codec/fonts.js +195 -0
- package/src/kernel/docx/codec/helpers.js +161 -0
- package/src/kernel/docx/codec/hfHtml.js +152 -0
- package/src/kernel/docx/codec/html.js +739 -0
- package/src/kernel/docx/codec/losses.js +420 -0
- package/src/kernel/docx/codec/markdown.js +170 -0
- package/src/kernel/docx/codec/parts.js +249 -0
- package/src/kernel/docx/codec/read.js +603 -0
- package/src/kernel/docx/codec/render.js +1156 -0
- package/src/kernel/docx/codec/roundtrip.js +236 -0
- package/src/kernel/docx/codec/write.js +833 -0
- package/src/kernel/docx/comments.js +14 -0
- package/src/kernel/docx/constants.js +63 -0
- package/src/kernel/docx/menus.js +211 -0
- package/src/kernel/docx/pageGeometry.js +123 -0
- package/src/kernel/docx/pagination.js +481 -0
- package/src/kernel/docx/watermark.js +45 -0
- package/src/kernel/docx/wordShortcuts.js +37 -0
- package/src/kernel/editor/constants.js +8 -0
- package/src/kernel/editor/engine/blocks.js +594 -0
- package/src/kernel/editor/engine/blocksEnter.js +109 -0
- package/src/kernel/editor/engine/blocksInsert.js +254 -0
- package/src/kernel/editor/engine/blocksStructure.js +226 -0
- package/src/kernel/editor/engine/commands.js +181 -0
- package/src/kernel/editor/engine/dom.js +646 -0
- package/src/kernel/editor/engine/editor.js +213 -0
- package/src/kernel/editor/engine/history.js +149 -0
- package/src/kernel/editor/engine/inline.js +656 -0
- package/src/kernel/editor/engine/input.js +554 -0
- package/src/kernel/editor/engine/interaction.js +137 -0
- package/src/kernel/editor/engine/pointer.js +39 -0
- package/src/kernel/editor/engine/revision.js +138 -0
- package/src/kernel/editor/engine/schema.js +417 -0
- package/src/kernel/editor/engine/search.js +113 -0
- package/src/kernel/editor/engine/selection.js +119 -0
- package/src/kernel/editor/engine/state.js +118 -0
- package/src/kernel/editor/engine/tableClip.js +154 -0
- package/src/kernel/editor/engine/tableGrid.js +55 -0
- package/src/kernel/editor/engine/tableInteraction.js +388 -0
- package/src/kernel/editor/engine/tableMenu.js +250 -0
- package/src/kernel/editor/engine/tableOps.js +174 -0
- package/src/kernel/editor/engine/tables.js +732 -0
- package/src/kernel/editor/overlayGeometry.js +20 -0
- package/src/kernel/editor/pasteClean.js +293 -0
- package/src/kernel/editor/utils.js +49 -0
- package/src/kernel/keyboard.js +114 -0
- package/src/kernel/notify.js +54 -0
- package/src/kernel/textStyles.js +84 -0
- package/src/kernel/util/clipboard.js +89 -0
- package/src/kernel/util/imageFile.js +91 -0
- package/src/kernel/util/safeValue.js +25 -0
- package/src/kernel/util/shortcutKey.js +33 -0
- package/src/surface/editor-surface.js +600 -0
- package/src/ui/color-panel.js +69 -0
- package/src/ui/context-menu.js +130 -0
- package/src/ui/dialogs.js +249 -0
- package/src/ui/find-bar.js +151 -0
- package/src/ui/icons.js +134 -0
- package/src/ui/menubar.js +28 -0
- package/src/ui/panels.js +115 -0
- package/src/ui/popup.js +79 -0
- package/src/ui/prompt.js +89 -0
- package/src/ui/ribbon.js +485 -0
- package/src/ui/special-chars.js +39 -0
- package/src/ui/statusbar.js +81 -0
- package/src/ui/toolbar.js +32 -0
- package/styles/app.css +944 -0
- package/styles/editor-content.css +440 -0
- package/styles/tokens.css +154 -0
- package/styles/word-panel.css +410 -0
package/styles/app.css
ADDED
|
@@ -0,0 +1,944 @@
|
|
|
1
|
+
/* [文件] gbdocx·应用外壳样式 —— 编辑器宿主浮件层 + 菜单栏/工具栏/状态栏/面板/浮层/对话框/通知 */
|
|
2
|
+
|
|
3
|
+
/* ==================== 编辑器宿主(.rich-edit-surface:移植 EditorSurface.vue 的 scoped 样式) ==================== */
|
|
4
|
+
|
|
5
|
+
.word-scope .rich-edit-surface {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
width: 100%;
|
|
10
|
+
min-height: 0;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
}
|
|
13
|
+
.word-scope .rich-edit-surface.gbd-is-fill {
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.word-scope .rich-edit-surface .re-scroll {
|
|
18
|
+
position: relative;
|
|
19
|
+
flex: 1;
|
|
20
|
+
min-width: 0;
|
|
21
|
+
overflow-y: auto;
|
|
22
|
+
overflow-x: auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.word-scope .rich-edit-surface .re-backdrop-host {
|
|
26
|
+
position: absolute;
|
|
27
|
+
inset: 0;
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* 浮件坐标探针(宽度由 overlayGeometry.PROBE_WIDTH 下发) */
|
|
32
|
+
.word-scope .rich-edit-surface .re-overlay-probe {
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
height: 0;
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.word-scope .rich-edit-surface .re-content {
|
|
41
|
+
/* 显式压住纸面层(不依赖 word-panel.css 里的嵌套选择器解析结果)*/
|
|
42
|
+
position: relative;
|
|
43
|
+
z-index: 1;
|
|
44
|
+
flex: 1;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
min-height: var(--gbd-re-content-min-h, 100%);
|
|
47
|
+
width: var(--gbd-re-content-w, auto);
|
|
48
|
+
margin: var(--gbd-re-content-m, 0);
|
|
49
|
+
/* 正文随纸层一起下移,首行才落在纸的版心线上(纸层顶部留白见 --gbd-wd-sheet-top) */
|
|
50
|
+
margin-top: var(--gbd-wd-sheet-top, 0px);
|
|
51
|
+
padding: var(--gbd-re-content-pad, 14px 18px);
|
|
52
|
+
outline: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* 纸面层只作背景,不接收指针(页眉页脚带自带 pointer-events:auto 例外) */
|
|
56
|
+
.word-scope .rich-edit-surface .word-sheets {
|
|
57
|
+
pointer-events: none;
|
|
58
|
+
z-index: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.word-scope .rich-edit-surface .re-marquee {
|
|
62
|
+
position: absolute;
|
|
63
|
+
z-index: 8;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
border: 1px solid var(--gbd-dt-accent);
|
|
66
|
+
background: var(--gbd-dt-accent-soft);
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.word-scope .rich-edit-surface .re-table-layer {
|
|
71
|
+
--gbd-re-handle-thickness: 12px;
|
|
72
|
+
position: absolute;
|
|
73
|
+
inset: 0;
|
|
74
|
+
overflow: visible;
|
|
75
|
+
z-index: 7;
|
|
76
|
+
pointer-events: none;
|
|
77
|
+
}
|
|
78
|
+
.word-scope .rich-edit-surface .re-table-handles {
|
|
79
|
+
position: absolute;
|
|
80
|
+
inset: 0;
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
}
|
|
83
|
+
.word-scope .rich-edit-surface .re-table-handle {
|
|
84
|
+
position: absolute;
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
padding: 0;
|
|
89
|
+
border: none;
|
|
90
|
+
background: var(--gbd-dt-surface);
|
|
91
|
+
color: var(--gbd-dt-text-secondary);
|
|
92
|
+
font-size: 14px;
|
|
93
|
+
line-height: 1;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
pointer-events: auto;
|
|
96
|
+
transition: background-color var(--gbd-dt-duration-fast) ease, color var(--gbd-dt-duration-fast) ease;
|
|
97
|
+
}
|
|
98
|
+
.word-scope .rich-edit-surface .re-table-handle:hover {
|
|
99
|
+
background: var(--gbd-dt-accent-soft);
|
|
100
|
+
color: var(--gbd-dt-accent);
|
|
101
|
+
}
|
|
102
|
+
.word-scope .rich-edit-surface .re-table-handle.gbd-is-column {
|
|
103
|
+
width: var(--gbd-re-handle-thickness);
|
|
104
|
+
border-radius: 0 999px 999px 0;
|
|
105
|
+
}
|
|
106
|
+
.word-scope .rich-edit-surface .re-table-handle.gbd-is-row {
|
|
107
|
+
height: var(--gbd-re-handle-thickness);
|
|
108
|
+
border-radius: 0 0 999px 999px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* 表格移动手柄(⠿):悬停表时浮在纸面上层、落在纸的左边距里,单击选中整表、拖拽换位(Word 口径) */
|
|
112
|
+
.word-scope .rich-edit-surface .re-table-move {
|
|
113
|
+
position: absolute;
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
width: 14px;
|
|
118
|
+
height: 20px;
|
|
119
|
+
padding: 0;
|
|
120
|
+
border: none;
|
|
121
|
+
border-radius: 3px;
|
|
122
|
+
background: transparent;
|
|
123
|
+
color: var(--gbd-dt-text-secondary);
|
|
124
|
+
cursor: grab;
|
|
125
|
+
pointer-events: auto;
|
|
126
|
+
transition: background-color var(--gbd-dt-duration-fast) ease, color var(--gbd-dt-duration-fast) ease;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.word-scope .rich-edit-surface .re-table-move:hover {
|
|
130
|
+
background: var(--gbd-dt-accent-soft);
|
|
131
|
+
color: var(--gbd-dt-accent);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.word-scope .rich-edit-surface .re-table-move:active {
|
|
135
|
+
cursor: grabbing;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* 拖表落点线:贴目标块上/下沿的一根强调线(与列宽提示线同层) */
|
|
139
|
+
.word-scope .rich-edit-surface .re-drop-line {
|
|
140
|
+
position: absolute;
|
|
141
|
+
height: 2px;
|
|
142
|
+
margin-top: -1px;
|
|
143
|
+
border-radius: 1px;
|
|
144
|
+
background: var(--gbd-dt-accent);
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* 拖表手势期整面换抓取光标:table 内文字光标一并让位,松手即摘 */
|
|
149
|
+
.word-scope .rich-edit-surface.gbd-is-table-moving,
|
|
150
|
+
.word-scope .rich-edit-surface.gbd-is-table-moving * {
|
|
151
|
+
cursor: grabbing !important;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.word-scope .rich-edit-surface .re-table-select {
|
|
155
|
+
position: absolute;
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
border: 1px solid var(--gbd-dt-accent);
|
|
158
|
+
background: var(--gbd-dt-accent-soft);
|
|
159
|
+
pointer-events: none;
|
|
160
|
+
}
|
|
161
|
+
.word-scope .rich-edit-surface .re-col-line {
|
|
162
|
+
position: absolute;
|
|
163
|
+
width: 6px;
|
|
164
|
+
margin-left: -3px;
|
|
165
|
+
pointer-events: none;
|
|
166
|
+
}
|
|
167
|
+
.word-scope .rich-edit-surface .re-col-line::after {
|
|
168
|
+
content: '';
|
|
169
|
+
position: absolute;
|
|
170
|
+
top: 0;
|
|
171
|
+
left: 2px;
|
|
172
|
+
width: 2px;
|
|
173
|
+
height: 100%;
|
|
174
|
+
background: var(--gbd-dt-accent-hover);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.word-scope .rich-edit-surface .re-resize-box {
|
|
178
|
+
position: absolute;
|
|
179
|
+
z-index: 6;
|
|
180
|
+
pointer-events: none;
|
|
181
|
+
}
|
|
182
|
+
.word-scope .rich-edit-surface .re-zoom-btn {
|
|
183
|
+
position: absolute;
|
|
184
|
+
top: -12px;
|
|
185
|
+
left: 50%;
|
|
186
|
+
width: 24px;
|
|
187
|
+
height: 24px;
|
|
188
|
+
padding: 0;
|
|
189
|
+
display: grid;
|
|
190
|
+
place-items: center;
|
|
191
|
+
transform: translateX(-50%);
|
|
192
|
+
border: 1px solid var(--gbd-dt-border-strong);
|
|
193
|
+
border-radius: 50%;
|
|
194
|
+
background: var(--gbd-dt-surface);
|
|
195
|
+
box-shadow: var(--gbd-dt-shadow-popup);
|
|
196
|
+
color: var(--gbd-dt-text-secondary);
|
|
197
|
+
cursor: pointer;
|
|
198
|
+
pointer-events: auto;
|
|
199
|
+
}
|
|
200
|
+
.word-scope .rich-edit-surface .re-zoom-btn:hover {
|
|
201
|
+
border-color: var(--gbd-dt-accent);
|
|
202
|
+
background: var(--gbd-dt-accent-soft);
|
|
203
|
+
color: var(--gbd-dt-accent);
|
|
204
|
+
}
|
|
205
|
+
.word-scope .rich-edit-surface .re-resize-handle {
|
|
206
|
+
position: absolute;
|
|
207
|
+
width: 10px;
|
|
208
|
+
height: 10px;
|
|
209
|
+
box-sizing: border-box;
|
|
210
|
+
border: 2px solid var(--gbd-dt-surface);
|
|
211
|
+
border-radius: 50%;
|
|
212
|
+
background: var(--gbd-dt-accent);
|
|
213
|
+
box-shadow: 0 0 0 1px var(--gbd-dt-border-strong);
|
|
214
|
+
pointer-events: auto;
|
|
215
|
+
cursor: nwse-resize;
|
|
216
|
+
}
|
|
217
|
+
.word-scope .rich-edit-surface .re-resize-handle.gbd-is-top-left { left: -5px; top: -5px; }
|
|
218
|
+
.word-scope .rich-edit-surface .re-resize-handle.gbd-is-top-right { right: -5px; top: -5px; cursor: nesw-resize; }
|
|
219
|
+
.word-scope .rich-edit-surface .re-resize-handle.gbd-is-bottom-left { left: -5px; bottom: -5px; cursor: nesw-resize; }
|
|
220
|
+
.word-scope .rich-edit-surface .re-resize-handle.gbd-is-bottom-right { right: -5px; bottom: -5px; }
|
|
221
|
+
|
|
222
|
+
.word-scope .rich-edit-surface .re-image-viewer {
|
|
223
|
+
position: fixed;
|
|
224
|
+
inset: 0;
|
|
225
|
+
z-index: 400;
|
|
226
|
+
display: flex;
|
|
227
|
+
align-items: center;
|
|
228
|
+
justify-content: center;
|
|
229
|
+
background: var(--gbd-dt-media-overlay);
|
|
230
|
+
cursor: zoom-out;
|
|
231
|
+
}
|
|
232
|
+
/* [坑] 上面的 display:flex 特异性高于 [hidden] 的 UA display:none:不补这条,
|
|
233
|
+
hidden 的图片查看器会常驻成一层深色遮罩(并挡住编辑区点击) */
|
|
234
|
+
.word-scope .rich-edit-surface .re-image-viewer[hidden] {
|
|
235
|
+
display: none;
|
|
236
|
+
}
|
|
237
|
+
.word-scope .rich-edit-surface .re-image-viewer img {
|
|
238
|
+
max-width: 92%;
|
|
239
|
+
max-height: 92%;
|
|
240
|
+
object-fit: contain;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* ==================== 应用外壳 ==================== */
|
|
244
|
+
/* [设计] 菜单栏 / 文档头 / 功能区 / 状态栏的视觉统一由 gbofficeui 提供;
|
|
245
|
+
本文件只保留应用骨架布局与正文区样式,不写第二份顶栏外观。 */
|
|
246
|
+
|
|
247
|
+
.word-scope .word-app {
|
|
248
|
+
display: flex;
|
|
249
|
+
flex-direction: column;
|
|
250
|
+
height: 100%;
|
|
251
|
+
min-height: 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.word-scope .word-head__dirty {
|
|
255
|
+
color: var(--gbd-dt-warning);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.word-scope .word-main {
|
|
259
|
+
display: flex;
|
|
260
|
+
flex: 1;
|
|
261
|
+
min-width: 0;
|
|
262
|
+
min-height: 0;
|
|
263
|
+
}
|
|
264
|
+
.word-scope .word-editor {
|
|
265
|
+
position: relative;
|
|
266
|
+
display: flex;
|
|
267
|
+
flex: 1;
|
|
268
|
+
min-width: 0;
|
|
269
|
+
min-height: 0;
|
|
270
|
+
}
|
|
271
|
+
.word-scope .word-editor-mount {
|
|
272
|
+
display: flex;
|
|
273
|
+
flex: 1;
|
|
274
|
+
min-width: 0;
|
|
275
|
+
min-height: 0;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* ==================== 按钮 ==================== */
|
|
279
|
+
|
|
280
|
+
.word-scope .gbd-btn {
|
|
281
|
+
padding: 4px 12px;
|
|
282
|
+
border: 1px solid var(--gbd-dt-border-strong);
|
|
283
|
+
border-radius: 6px;
|
|
284
|
+
background: var(--gbd-dt-bg);
|
|
285
|
+
color: var(--gbd-dt-text);
|
|
286
|
+
font-size: 13px;
|
|
287
|
+
cursor: pointer;
|
|
288
|
+
transition: background-color var(--gbd-dt-duration-fast) ease, border-color var(--gbd-dt-duration-fast) ease;
|
|
289
|
+
}
|
|
290
|
+
.word-scope .gbd-btn:hover {
|
|
291
|
+
border-color: var(--gbd-dt-accent);
|
|
292
|
+
background: var(--gbd-dt-accent-soft);
|
|
293
|
+
}
|
|
294
|
+
.word-scope .gbd-btn--gbd-primary {
|
|
295
|
+
border-color: var(--gbd-dt-accent);
|
|
296
|
+
background: var(--gbd-dt-accent);
|
|
297
|
+
color: var(--gbd-dt-on-accent);
|
|
298
|
+
}
|
|
299
|
+
.word-scope .gbd-btn--gbd-primary:hover {
|
|
300
|
+
background: var(--gbd-dt-accent-hover);
|
|
301
|
+
}
|
|
302
|
+
.word-scope .gbd-linkbtn {
|
|
303
|
+
padding: 0;
|
|
304
|
+
border: none;
|
|
305
|
+
background: none;
|
|
306
|
+
color: var(--gbd-dt-accent);
|
|
307
|
+
font-size: 12px;
|
|
308
|
+
cursor: pointer;
|
|
309
|
+
}
|
|
310
|
+
.word-scope .gbd-linkbtn--gbd-danger {
|
|
311
|
+
color: var(--gbd-dt-danger);
|
|
312
|
+
}
|
|
313
|
+
.word-scope .gbd-iconbtn {
|
|
314
|
+
width: 24px;
|
|
315
|
+
height: 24px;
|
|
316
|
+
display: grid;
|
|
317
|
+
place-items: center;
|
|
318
|
+
border: 1px solid transparent;
|
|
319
|
+
border-radius: 4px;
|
|
320
|
+
background: transparent;
|
|
321
|
+
color: var(--gbd-dt-text-secondary);
|
|
322
|
+
cursor: pointer;
|
|
323
|
+
}
|
|
324
|
+
.word-scope .gbd-iconbtn:hover {
|
|
325
|
+
background: var(--gbd-dt-hover);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.word-scope .gbd-input {
|
|
329
|
+
height: 28px;
|
|
330
|
+
padding: 0 8px;
|
|
331
|
+
border: 1px solid var(--gbd-dt-border-strong);
|
|
332
|
+
border-radius: 4px;
|
|
333
|
+
background: var(--gbd-dt-bg);
|
|
334
|
+
color: var(--gbd-dt-text);
|
|
335
|
+
font-size: 13px;
|
|
336
|
+
outline: none;
|
|
337
|
+
}
|
|
338
|
+
.word-scope .gbd-input:focus {
|
|
339
|
+
border-color: var(--gbd-dt-accent);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* ==================== 下拉选择 ==================== */
|
|
343
|
+
/* 注:菜单栏 / 功能区内的尺寸与状态由 gbofficeui 统一,这里只留独立分发时的基础外观 */
|
|
344
|
+
|
|
345
|
+
.word-scope .gbd-select {
|
|
346
|
+
display: inline-flex;
|
|
347
|
+
align-items: center;
|
|
348
|
+
gap: 4px;
|
|
349
|
+
height: 26px;
|
|
350
|
+
padding: 0 6px;
|
|
351
|
+
border: 1px solid var(--gbd-dt-border-strong);
|
|
352
|
+
border-radius: 4px;
|
|
353
|
+
background: var(--gbd-dt-bg);
|
|
354
|
+
color: var(--gbd-dt-text);
|
|
355
|
+
font-size: 12px;
|
|
356
|
+
cursor: pointer;
|
|
357
|
+
}
|
|
358
|
+
.word-scope .gbd-select__label {
|
|
359
|
+
flex: 1;
|
|
360
|
+
overflow: hidden;
|
|
361
|
+
text-overflow: ellipsis;
|
|
362
|
+
white-space: nowrap;
|
|
363
|
+
/* button 的 UA 默认 text-align:center 会继承给 label,WPS 的字体框是左对齐 */
|
|
364
|
+
text-align: left;
|
|
365
|
+
}
|
|
366
|
+
.word-scope .gbd-select__caret {
|
|
367
|
+
color: var(--gbd-dt-text-tertiary);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
/* ==================== 选项卡栏(Ribbon) ==================== */
|
|
372
|
+
/* 外壳 / 选项卡 / 分组 / 按钮的视觉由 gbofficeui/styles/office-chrome.css 统一,
|
|
373
|
+
本文件只保留 docx 专属的样式卡片(.gbd-rstyle)。 */
|
|
374
|
+
|
|
375
|
+
/* 样式卡片:样式名按自身字号预览(WPS 样式库口径),当前段落样式描边点亮 */
|
|
376
|
+
.word-scope .gbd-rstyle {
|
|
377
|
+
width: 56px;
|
|
378
|
+
height: 52px;
|
|
379
|
+
display: flex;
|
|
380
|
+
align-items: center;
|
|
381
|
+
justify-content: center;
|
|
382
|
+
padding: 2px;
|
|
383
|
+
border: 1px solid var(--gbd-dt-border-strong);
|
|
384
|
+
border-radius: 6px;
|
|
385
|
+
background: var(--gbd-dt-bg);
|
|
386
|
+
color: var(--gbd-dt-text);
|
|
387
|
+
cursor: pointer;
|
|
388
|
+
overflow: hidden;
|
|
389
|
+
transition: background-color var(--gbd-dt-duration-fast) ease, border-color var(--gbd-dt-duration-fast) ease;
|
|
390
|
+
}
|
|
391
|
+
.word-scope .gbd-rstyle:hover {
|
|
392
|
+
background: var(--gbd-dt-hover);
|
|
393
|
+
border-color: var(--gbd-dt-accent);
|
|
394
|
+
}
|
|
395
|
+
.word-scope .gbd-rstyle:focus-visible {
|
|
396
|
+
outline: 2px solid var(--gbd-dt-accent);
|
|
397
|
+
outline-offset: 1px;
|
|
398
|
+
}
|
|
399
|
+
.word-scope .gbd-rstyle.gbd-is-active {
|
|
400
|
+
border-color: var(--gbd-dt-accent);
|
|
401
|
+
background: var(--gbd-dt-accent-soft);
|
|
402
|
+
}
|
|
403
|
+
.word-scope .gbd-rstyle__preview {
|
|
404
|
+
font-size: 13px;
|
|
405
|
+
line-height: 1.2;
|
|
406
|
+
text-align: center;
|
|
407
|
+
white-space: nowrap;
|
|
408
|
+
color: var(--gbd-dt-text);
|
|
409
|
+
}
|
|
410
|
+
.word-scope .gbd-rstyle__preview--h1 {
|
|
411
|
+
font-size: 16px;
|
|
412
|
+
font-weight: 700;
|
|
413
|
+
}
|
|
414
|
+
.word-scope .gbd-rstyle__preview--h2 {
|
|
415
|
+
font-size: 15px;
|
|
416
|
+
font-weight: 700;
|
|
417
|
+
}
|
|
418
|
+
.word-scope .gbd-rstyle__preview--h3 {
|
|
419
|
+
font-size: 14px;
|
|
420
|
+
font-weight: 600;
|
|
421
|
+
}
|
|
422
|
+
.word-scope .gbd-rstyle.gbd-is-active .gbd-rstyle__preview {
|
|
423
|
+
color: var(--gbd-dt-accent);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/* ==================== 侧栏面板 ==================== */
|
|
427
|
+
|
|
428
|
+
.word-scope .gbd-panel {
|
|
429
|
+
display: flex;
|
|
430
|
+
flex-direction: column;
|
|
431
|
+
width: 250px;
|
|
432
|
+
min-height: 0;
|
|
433
|
+
border-right: 1px solid var(--gbd-dt-border);
|
|
434
|
+
background: var(--gbd-dt-bg);
|
|
435
|
+
}
|
|
436
|
+
.word-scope .gbd-comments {
|
|
437
|
+
border-right: none;
|
|
438
|
+
border-left: 1px solid var(--gbd-dt-border);
|
|
439
|
+
}
|
|
440
|
+
.word-scope .gbd-panel__title {
|
|
441
|
+
padding: 6px 10px;
|
|
442
|
+
border-bottom: 1px solid var(--gbd-dt-border);
|
|
443
|
+
color: var(--gbd-dt-text-secondary);
|
|
444
|
+
font-size: 12px;
|
|
445
|
+
}
|
|
446
|
+
.word-scope .gbd-panel__body {
|
|
447
|
+
flex: 1;
|
|
448
|
+
min-height: 0;
|
|
449
|
+
overflow-y: auto;
|
|
450
|
+
}
|
|
451
|
+
.word-scope .gbd-panel__empty {
|
|
452
|
+
padding: 16px 10px;
|
|
453
|
+
color: var(--gbd-dt-text-tertiary);
|
|
454
|
+
font-size: 12px;
|
|
455
|
+
text-align: center;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.word-scope .gbd-catalog__item {
|
|
459
|
+
display: block;
|
|
460
|
+
width: 100%;
|
|
461
|
+
padding: 4px 8px;
|
|
462
|
+
border: none;
|
|
463
|
+
background: transparent;
|
|
464
|
+
color: var(--gbd-dt-text);
|
|
465
|
+
font-size: 13px;
|
|
466
|
+
text-align: left;
|
|
467
|
+
cursor: pointer;
|
|
468
|
+
}
|
|
469
|
+
.word-scope .gbd-catalog__item:hover {
|
|
470
|
+
background: var(--gbd-dt-hover);
|
|
471
|
+
}
|
|
472
|
+
.word-scope .gbd-catalog__item.gbd-is-active {
|
|
473
|
+
background: var(--gbd-dt-accent-soft);
|
|
474
|
+
color: var(--gbd-dt-accent);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.word-scope .gbd-cmt-card {
|
|
478
|
+
padding: 8px 10px;
|
|
479
|
+
border-bottom: 1px solid var(--gbd-dt-border);
|
|
480
|
+
cursor: pointer;
|
|
481
|
+
}
|
|
482
|
+
.word-scope .gbd-cmt-card.gbd-is-active {
|
|
483
|
+
background: var(--gbd-dt-accent-soft);
|
|
484
|
+
}
|
|
485
|
+
.word-scope .gbd-cmt-card__meta {
|
|
486
|
+
display: flex;
|
|
487
|
+
align-items: center;
|
|
488
|
+
gap: 6px;
|
|
489
|
+
color: var(--gbd-dt-text-tertiary);
|
|
490
|
+
font-size: 11px;
|
|
491
|
+
}
|
|
492
|
+
.word-scope .gbd-cmt-card__done {
|
|
493
|
+
padding: 0 5px;
|
|
494
|
+
border-radius: 3px;
|
|
495
|
+
background: var(--gbd-dt-success-soft);
|
|
496
|
+
color: var(--gbd-dt-success);
|
|
497
|
+
}
|
|
498
|
+
.word-scope .gbd-cmt-card__text {
|
|
499
|
+
margin: 4px 0;
|
|
500
|
+
font-size: 12px;
|
|
501
|
+
line-height: 1.5;
|
|
502
|
+
white-space: pre-wrap;
|
|
503
|
+
word-break: break-word;
|
|
504
|
+
}
|
|
505
|
+
.word-scope .gbd-cmt-card__actions {
|
|
506
|
+
display: flex;
|
|
507
|
+
gap: 10px;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/* ==================== 浮层(菜单/气泡/色板) ==================== */
|
|
511
|
+
|
|
512
|
+
.word-scope .gbd-popup {
|
|
513
|
+
position: fixed;
|
|
514
|
+
z-index: 1000;
|
|
515
|
+
overflow-y: auto;
|
|
516
|
+
border: 1px solid var(--gbd-dt-border);
|
|
517
|
+
border-radius: 6px;
|
|
518
|
+
background: var(--gbd-dt-surface);
|
|
519
|
+
box-shadow: var(--gbd-dt-shadow-popup);
|
|
520
|
+
color: var(--gbd-dt-text);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.word-scope .gbd-menu__list {
|
|
524
|
+
min-width: 160px;
|
|
525
|
+
padding: 4px;
|
|
526
|
+
}
|
|
527
|
+
.word-scope .gbd-menu__item {
|
|
528
|
+
display: flex;
|
|
529
|
+
align-items: center;
|
|
530
|
+
gap: 6px;
|
|
531
|
+
padding: 5px 8px;
|
|
532
|
+
border-radius: 4px;
|
|
533
|
+
font-size: 13px;
|
|
534
|
+
white-space: nowrap;
|
|
535
|
+
cursor: pointer;
|
|
536
|
+
}
|
|
537
|
+
.word-scope .gbd-menu__item:hover {
|
|
538
|
+
background: var(--gbd-dt-hover);
|
|
539
|
+
}
|
|
540
|
+
.word-scope .gbd-menu__item.gbd-is-disabled {
|
|
541
|
+
color: var(--gbd-dt-text-disabled);
|
|
542
|
+
cursor: default;
|
|
543
|
+
}
|
|
544
|
+
.word-scope .gbd-menu__item.gbd-is-disabled:hover {
|
|
545
|
+
background: transparent;
|
|
546
|
+
}
|
|
547
|
+
.word-scope .gbd-menu__item.gbd-is-danger {
|
|
548
|
+
color: var(--gbd-dt-danger);
|
|
549
|
+
}
|
|
550
|
+
.word-scope .gbd-menu__lead {
|
|
551
|
+
width: 14px;
|
|
552
|
+
display: inline-flex;
|
|
553
|
+
justify-content: center;
|
|
554
|
+
}
|
|
555
|
+
.word-scope .gbd-menu__dot {
|
|
556
|
+
width: 12px;
|
|
557
|
+
height: 12px;
|
|
558
|
+
border-radius: 3px;
|
|
559
|
+
border: 1px solid var(--gbd-dt-border-strong);
|
|
560
|
+
}
|
|
561
|
+
.word-scope .gbd-menu__label {
|
|
562
|
+
flex: 1;
|
|
563
|
+
}
|
|
564
|
+
.word-scope .gbd-menu__shortcut {
|
|
565
|
+
color: var(--gbd-dt-text-tertiary);
|
|
566
|
+
font-size: 11px;
|
|
567
|
+
}
|
|
568
|
+
.word-scope .gbd-menu__arrow {
|
|
569
|
+
color: var(--gbd-dt-text-tertiary);
|
|
570
|
+
}
|
|
571
|
+
.word-scope .gbd-menu__sep {
|
|
572
|
+
height: 1px;
|
|
573
|
+
margin: 4px 0;
|
|
574
|
+
background: var(--gbd-dt-border);
|
|
575
|
+
}
|
|
576
|
+
.word-scope .gbd-menu__input {
|
|
577
|
+
display: inline-flex;
|
|
578
|
+
align-items: center;
|
|
579
|
+
gap: 3px;
|
|
580
|
+
}
|
|
581
|
+
.word-scope .gbd-menu__input input {
|
|
582
|
+
width: 40px;
|
|
583
|
+
height: 22px;
|
|
584
|
+
padding: 0 4px;
|
|
585
|
+
border: 1px solid var(--gbd-dt-border-strong);
|
|
586
|
+
border-radius: 3px;
|
|
587
|
+
background: var(--gbd-dt-bg);
|
|
588
|
+
color: var(--gbd-dt-text);
|
|
589
|
+
font-size: 12px;
|
|
590
|
+
}
|
|
591
|
+
.word-scope .gbd-menu__unit {
|
|
592
|
+
color: var(--gbd-dt-text-tertiary);
|
|
593
|
+
font-size: 11px;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.word-scope .gbd-prompt {
|
|
597
|
+
width: 260px;
|
|
598
|
+
padding: 10px;
|
|
599
|
+
}
|
|
600
|
+
.word-scope .gbd-prompt__title {
|
|
601
|
+
margin-bottom: 6px;
|
|
602
|
+
font-size: 13px;
|
|
603
|
+
font-weight: 600;
|
|
604
|
+
}
|
|
605
|
+
.word-scope .gbd-prompt__input {
|
|
606
|
+
width: 100%;
|
|
607
|
+
height: 30px;
|
|
608
|
+
padding: 0 8px;
|
|
609
|
+
border: 1px solid var(--gbd-dt-border-strong);
|
|
610
|
+
border-radius: 4px;
|
|
611
|
+
background: var(--gbd-dt-bg);
|
|
612
|
+
color: var(--gbd-dt-text);
|
|
613
|
+
font-size: 13px;
|
|
614
|
+
outline: none;
|
|
615
|
+
}
|
|
616
|
+
.word-scope .gbd-prompt__input:focus {
|
|
617
|
+
border-color: var(--gbd-dt-accent);
|
|
618
|
+
}
|
|
619
|
+
.word-scope .gbd-prompt__actions {
|
|
620
|
+
display: flex;
|
|
621
|
+
justify-content: flex-end;
|
|
622
|
+
gap: 8px;
|
|
623
|
+
margin-top: 8px;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.word-scope .gbd-color {
|
|
627
|
+
width: 232px;
|
|
628
|
+
padding: 10px;
|
|
629
|
+
}
|
|
630
|
+
.word-scope .gbd-color__title {
|
|
631
|
+
margin-bottom: 6px;
|
|
632
|
+
font-size: 12px;
|
|
633
|
+
color: var(--gbd-dt-text-secondary);
|
|
634
|
+
}
|
|
635
|
+
.word-scope .gbd-color__grid {
|
|
636
|
+
display: grid;
|
|
637
|
+
gap: 3px;
|
|
638
|
+
}
|
|
639
|
+
.word-scope .gbd-color__swatch {
|
|
640
|
+
width: 18px;
|
|
641
|
+
height: 18px;
|
|
642
|
+
border: 1px solid var(--gbd-dt-border-strong);
|
|
643
|
+
border-radius: 3px;
|
|
644
|
+
cursor: pointer;
|
|
645
|
+
}
|
|
646
|
+
.word-scope .gbd-color__swatch.gbd-is-active {
|
|
647
|
+
outline: 2px solid var(--gbd-dt-accent);
|
|
648
|
+
outline-offset: 1px;
|
|
649
|
+
}
|
|
650
|
+
.word-scope .gbd-color__custom {
|
|
651
|
+
display: flex;
|
|
652
|
+
align-items: center;
|
|
653
|
+
gap: 8px;
|
|
654
|
+
margin-top: 8px;
|
|
655
|
+
}
|
|
656
|
+
.word-scope .gbd-color__hex {
|
|
657
|
+
flex: 1;
|
|
658
|
+
height: 26px;
|
|
659
|
+
padding: 0 6px;
|
|
660
|
+
border: 1px solid var(--gbd-dt-border-strong);
|
|
661
|
+
border-radius: 4px;
|
|
662
|
+
background: var(--gbd-dt-bg);
|
|
663
|
+
color: var(--gbd-dt-text);
|
|
664
|
+
font-size: 12px;
|
|
665
|
+
}
|
|
666
|
+
.word-scope .gbd-color__actions {
|
|
667
|
+
display: flex;
|
|
668
|
+
justify-content: flex-end;
|
|
669
|
+
gap: 8px;
|
|
670
|
+
margin-top: 8px;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.word-scope .gbd-popup--gbd-peek {
|
|
674
|
+
max-width: 260px;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
/* ==================== 模态对话框 ==================== */
|
|
678
|
+
|
|
679
|
+
.word-scope .gbd-modal-overlay {
|
|
680
|
+
position: fixed;
|
|
681
|
+
inset: 0;
|
|
682
|
+
z-index: 1200;
|
|
683
|
+
display: flex;
|
|
684
|
+
align-items: center;
|
|
685
|
+
justify-content: center;
|
|
686
|
+
background: rgba(0, 0, 0, 0.32);
|
|
687
|
+
}
|
|
688
|
+
.word-scope .gbd-modal {
|
|
689
|
+
max-height: 86vh;
|
|
690
|
+
display: flex;
|
|
691
|
+
flex-direction: column;
|
|
692
|
+
border: 1px solid var(--gbd-dt-border);
|
|
693
|
+
border-radius: 8px;
|
|
694
|
+
background: var(--gbd-dt-surface);
|
|
695
|
+
box-shadow: var(--gbd-dt-shadow-window);
|
|
696
|
+
}
|
|
697
|
+
.word-scope .gbd-modal__head {
|
|
698
|
+
display: flex;
|
|
699
|
+
align-items: center;
|
|
700
|
+
padding: 10px 14px;
|
|
701
|
+
border-bottom: 1px solid var(--gbd-dt-border);
|
|
702
|
+
}
|
|
703
|
+
.word-scope .gbd-modal__title {
|
|
704
|
+
flex: 1;
|
|
705
|
+
font-size: 14px;
|
|
706
|
+
font-weight: 600;
|
|
707
|
+
}
|
|
708
|
+
.word-scope .gbd-modal__close {
|
|
709
|
+
border: none;
|
|
710
|
+
background: none;
|
|
711
|
+
color: var(--gbd-dt-text-secondary);
|
|
712
|
+
font-size: 14px;
|
|
713
|
+
cursor: pointer;
|
|
714
|
+
}
|
|
715
|
+
.word-scope .gbd-modal__body {
|
|
716
|
+
flex: 1;
|
|
717
|
+
overflow-y: auto;
|
|
718
|
+
padding: 14px;
|
|
719
|
+
}
|
|
720
|
+
.word-scope .gbd-modal__foot {
|
|
721
|
+
display: flex;
|
|
722
|
+
justify-content: flex-end;
|
|
723
|
+
gap: 8px;
|
|
724
|
+
padding: 10px 14px;
|
|
725
|
+
border-top: 1px solid var(--gbd-dt-border);
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.word-scope .gbd-field-grid {
|
|
729
|
+
display: grid;
|
|
730
|
+
grid-template-columns: 1fr 1fr;
|
|
731
|
+
gap: 8px 14px;
|
|
732
|
+
}
|
|
733
|
+
.word-scope .gbd-field {
|
|
734
|
+
display: flex;
|
|
735
|
+
align-items: center;
|
|
736
|
+
gap: 8px;
|
|
737
|
+
}
|
|
738
|
+
.word-scope .gbd-field__label {
|
|
739
|
+
width: 76px;
|
|
740
|
+
color: var(--gbd-dt-text-secondary);
|
|
741
|
+
font-size: 12px;
|
|
742
|
+
}
|
|
743
|
+
.word-scope .gbd-field .gbd-input {
|
|
744
|
+
flex: 1;
|
|
745
|
+
min-width: 0;
|
|
746
|
+
}
|
|
747
|
+
.word-scope .gbd-field-section {
|
|
748
|
+
margin: 14px 0 8px;
|
|
749
|
+
color: var(--gbd-dt-text-secondary);
|
|
750
|
+
font-size: 12px;
|
|
751
|
+
font-weight: 600;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/* ==================== 查找条 / 特殊字符 / 通知 ==================== */
|
|
755
|
+
|
|
756
|
+
.word-scope .gbd-findbar {
|
|
757
|
+
position: absolute;
|
|
758
|
+
top: 8px;
|
|
759
|
+
right: 16px;
|
|
760
|
+
z-index: 6;
|
|
761
|
+
display: flex;
|
|
762
|
+
flex-direction: column;
|
|
763
|
+
gap: 6px;
|
|
764
|
+
padding: 6px 8px;
|
|
765
|
+
border: 1px solid var(--gbd-dt-border);
|
|
766
|
+
border-radius: 6px;
|
|
767
|
+
background: var(--gbd-dt-surface);
|
|
768
|
+
box-shadow: var(--gbd-dt-shadow-popup);
|
|
769
|
+
}
|
|
770
|
+
/* [坑] 上面的 display:flex 特异性高于 [hidden] 的 UA display:none:不补这条,查找条会常驻且 ✕ 关不上 */
|
|
771
|
+
.word-scope .gbd-findbar[hidden] {
|
|
772
|
+
display: none;
|
|
773
|
+
}
|
|
774
|
+
.word-scope .gbd-findbar__row {
|
|
775
|
+
display: flex;
|
|
776
|
+
align-items: center;
|
|
777
|
+
gap: 6px;
|
|
778
|
+
}
|
|
779
|
+
.word-scope .gbd-findbar__row[hidden] {
|
|
780
|
+
display: none;
|
|
781
|
+
}
|
|
782
|
+
.word-scope .gbd-findbar__input,
|
|
783
|
+
.word-scope .gbd-findbar__replace {
|
|
784
|
+
width: 130px;
|
|
785
|
+
height: 26px;
|
|
786
|
+
padding: 0 8px;
|
|
787
|
+
border: 1px solid var(--gbd-dt-border-strong);
|
|
788
|
+
border-radius: 4px;
|
|
789
|
+
background: var(--gbd-dt-bg);
|
|
790
|
+
color: var(--gbd-dt-text);
|
|
791
|
+
font-size: 12px;
|
|
792
|
+
outline: none;
|
|
793
|
+
}
|
|
794
|
+
.word-scope .gbd-findbar__count {
|
|
795
|
+
color: var(--gbd-dt-text-secondary);
|
|
796
|
+
font-size: 12px;
|
|
797
|
+
}
|
|
798
|
+
.word-scope .gbd-findbar__case {
|
|
799
|
+
display: inline-flex;
|
|
800
|
+
align-items: center;
|
|
801
|
+
gap: 4px;
|
|
802
|
+
color: var(--gbd-dt-text-secondary);
|
|
803
|
+
font-size: 12px;
|
|
804
|
+
white-space: nowrap;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.word-scope .word-chars {
|
|
808
|
+
width: 288px;
|
|
809
|
+
max-height: 320px;
|
|
810
|
+
padding: 8px;
|
|
811
|
+
overflow-y: auto;
|
|
812
|
+
}
|
|
813
|
+
.word-scope .wc-group + .wc-group {
|
|
814
|
+
margin-top: 6px;
|
|
815
|
+
}
|
|
816
|
+
.word-scope .wc-label {
|
|
817
|
+
margin-bottom: 2px;
|
|
818
|
+
color: var(--gbd-dt-text-tertiary);
|
|
819
|
+
font-size: 11px;
|
|
820
|
+
}
|
|
821
|
+
.word-scope .wc-grid {
|
|
822
|
+
display: grid;
|
|
823
|
+
grid-template-columns: repeat(8, 1fr);
|
|
824
|
+
gap: 2px;
|
|
825
|
+
}
|
|
826
|
+
.word-scope .wc-item {
|
|
827
|
+
height: 28px;
|
|
828
|
+
border: none;
|
|
829
|
+
border-radius: 2px;
|
|
830
|
+
background: transparent;
|
|
831
|
+
color: var(--gbd-dt-text);
|
|
832
|
+
font-size: 14px;
|
|
833
|
+
cursor: pointer;
|
|
834
|
+
}
|
|
835
|
+
.word-scope .wc-item:hover {
|
|
836
|
+
background: var(--gbd-dt-hover);
|
|
837
|
+
}
|
|
838
|
+
.word-scope .word-chars-pop {
|
|
839
|
+
position: absolute;
|
|
840
|
+
top: 8px;
|
|
841
|
+
right: 16px;
|
|
842
|
+
z-index: 5;
|
|
843
|
+
border: 1px solid var(--gbd-dt-border);
|
|
844
|
+
border-radius: 6px;
|
|
845
|
+
background: var(--gbd-dt-surface);
|
|
846
|
+
box-shadow: var(--gbd-dt-shadow-popup);
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
.word-scope .gbdocx-notify-host {
|
|
850
|
+
position: fixed;
|
|
851
|
+
top: 14px;
|
|
852
|
+
right: 14px;
|
|
853
|
+
z-index: 2000;
|
|
854
|
+
display: flex;
|
|
855
|
+
flex-direction: column;
|
|
856
|
+
gap: 8px;
|
|
857
|
+
pointer-events: none;
|
|
858
|
+
}
|
|
859
|
+
.word-scope .gbdocx-notify {
|
|
860
|
+
display: flex;
|
|
861
|
+
align-items: center;
|
|
862
|
+
gap: 8px;
|
|
863
|
+
min-width: 200px;
|
|
864
|
+
max-width: 360px;
|
|
865
|
+
padding: 8px 12px;
|
|
866
|
+
border: 1px solid var(--gbd-dt-border);
|
|
867
|
+
border-radius: 6px;
|
|
868
|
+
background: var(--gbd-dt-surface);
|
|
869
|
+
box-shadow: var(--gbd-dt-shadow-popup);
|
|
870
|
+
font-size: 13px;
|
|
871
|
+
opacity: 0;
|
|
872
|
+
transform: translateY(-8px);
|
|
873
|
+
transition: opacity var(--gbd-dt-duration-normal) var(--gbd-dt-ease-out), transform var(--gbd-dt-duration-normal) var(--gbd-dt-ease-out);
|
|
874
|
+
pointer-events: auto;
|
|
875
|
+
cursor: pointer;
|
|
876
|
+
}
|
|
877
|
+
.word-scope .gbdocx-notify.gbd-is-in {
|
|
878
|
+
opacity: 1;
|
|
879
|
+
transform: translateY(0);
|
|
880
|
+
}
|
|
881
|
+
.word-scope .gbdocx-notify__badge {
|
|
882
|
+
width: 18px;
|
|
883
|
+
height: 18px;
|
|
884
|
+
display: grid;
|
|
885
|
+
place-items: center;
|
|
886
|
+
border-radius: 50%;
|
|
887
|
+
color: #fff;
|
|
888
|
+
font-size: 12px;
|
|
889
|
+
flex-shrink: 0;
|
|
890
|
+
}
|
|
891
|
+
.word-scope .gbdocx-notify--gbd-success .gbdocx-notify__badge { background: var(--gbd-dt-success); }
|
|
892
|
+
.word-scope .gbdocx-notify--gbd-error .gbdocx-notify__badge { background: var(--gbd-dt-danger); }
|
|
893
|
+
.word-scope .gbdocx-notify--gbd-warning .gbdocx-notify__badge { background: var(--gbd-dt-warning); }
|
|
894
|
+
.word-scope .gbdocx-notify--gbd-info .gbdocx-notify__badge { background: var(--gbd-dt-accent); }
|
|
895
|
+
.word-scope .gbdocx-notify__text {
|
|
896
|
+
word-break: break-word;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/* ==================== 预览模式 ==================== */
|
|
900
|
+
/* 只留文件头(标题/路径 + 退出预览)与正文;菜单、功能区、状态栏、侧栏等编辑界面全部收起 */
|
|
901
|
+
.word-scope .word-app.gb-is-preview .word-head__actions,
|
|
902
|
+
.word-scope .word-app.gb-is-preview .gbd-toolbar-host,
|
|
903
|
+
.word-scope .word-app.gb-is-preview .gbd-statusbar-host,
|
|
904
|
+
.word-scope .word-app.gb-is-preview .gbd-panel,
|
|
905
|
+
.word-scope .word-app.gb-is-preview .gbd-findbar,
|
|
906
|
+
.word-scope .word-app.gb-is-preview .word-chars-pop {
|
|
907
|
+
display: none;
|
|
908
|
+
}
|
|
909
|
+
/* 预览档本体也是只读档,但退出按钮不能被只读档的 55% 透明度压暗 */
|
|
910
|
+
.word-scope .word-app.gb-is-preview .word-head {
|
|
911
|
+
opacity: 1;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/* ==================== 只读档 ==================== */
|
|
915
|
+
/* 编辑控件已被 inert,压低视觉权重但不改底色;禁用态背景属状态反馈,不受静态背景约束 */
|
|
916
|
+
.word-scope .word-app.gb-is-readonly:not(.gb-is-preview) .word-head,
|
|
917
|
+
.word-scope .word-app.gb-is-readonly .gbd-toolbar-host { opacity: .55; }
|
|
918
|
+
|
|
919
|
+
/* ==================== 打印 ==================== */
|
|
920
|
+
@media print {
|
|
921
|
+
.word-scope .gbd-menubar-host,
|
|
922
|
+
.word-scope .word-head,
|
|
923
|
+
.word-scope .gbd-toolbar-host,
|
|
924
|
+
.word-scope .gbd-statusbar-host,
|
|
925
|
+
.word-scope .gbd-panel,
|
|
926
|
+
.word-scope .gbd-findbar,
|
|
927
|
+
.word-scope .word-chars-pop,
|
|
928
|
+
.word-scope .gbdocx-notify-host {
|
|
929
|
+
display: none !important;
|
|
930
|
+
}
|
|
931
|
+
.word-scope .word-main,
|
|
932
|
+
.word-scope .word-editor {
|
|
933
|
+
display: block;
|
|
934
|
+
background: #fff;
|
|
935
|
+
}
|
|
936
|
+
.word-scope .word-editor {
|
|
937
|
+
zoom: 1 !important;
|
|
938
|
+
}
|
|
939
|
+
.word-scope .rich-edit-surface,
|
|
940
|
+
.word-scope .re-scroll {
|
|
941
|
+
height: auto !important;
|
|
942
|
+
overflow: visible !important;
|
|
943
|
+
}
|
|
944
|
+
}
|