gbpptx 0.6.1 → 0.6.2
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 -21
- package/README.md +253 -253
- package/package.json +48 -47
- package/src/index.js +29 -29
- package/src/kernel/model.js +651 -651
- package/src/kernel/parts.js +173 -173
- package/src/kernel/pptx.js +72 -72
- package/src/kernel/print.js +76 -76
- package/src/kernel/read.js +1018 -1018
- package/src/kernel/roundtrip.js +174 -174
- package/src/kernel/text.js +278 -278
- package/src/kernel/write.js +385 -385
- package/web/app/main.js +8 -8
- package/web/app/slides/arrange.js +101 -101
- package/web/app/slides/clipboard.js +93 -93
- package/web/app/slides/file.js +240 -240
- package/web/app/slides/find.js +201 -201
- package/web/app/slides/history.js +100 -100
- package/web/app/slides/keys.js +187 -187
- package/web/app/slides/menus.js +105 -105
- package/web/app/slides/objects.js +254 -254
- package/web/app/slides/render.js +183 -183
- package/web/app/slides/shared.js +85 -85
- package/web/app/slides/slides.js +103 -103
- package/web/app/slides/table.js +102 -102
- package/web/app/slides/text.js +418 -418
- package/web/app/slides/view.js +182 -182
- package/web/app/slides-app.js +354 -354
- package/web/app/ui/canvas.js +769 -769
- package/web/app/ui/color-panel.js +58 -58
- package/web/app/ui/dialogs.js +120 -120
- package/web/app/ui/file-io.js +116 -116
- package/web/app/ui/format-pane.js +427 -427
- package/web/app/ui/icons.js +241 -133
- package/web/app/ui/menu.js +77 -75
- package/web/app/ui/notify.js +45 -45
- package/web/app/ui/page-view.js +221 -221
- package/web/app/ui/popup.js +80 -80
- package/web/app/ui/present.js +292 -292
- package/web/app/ui/ribbon.js +855 -855
- package/web/app/ui/slide-pane.js +197 -197
- package/web/app/ui/statusbar.js +93 -93
- package/web/app/ui/text-styles.js +84 -84
- package/web/app/ui/titlebar.js +253 -253
- package/web/app/ui/transition.js +30 -30
- package/web/index.html +30 -29
- package/web/serve.mjs +26 -23
- package/web/styles/office.css +463 -463
- package/web/styles/slides.css +97 -97
- package/web/styles/tokens.css +154 -154
package/web/styles/slides.css
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
/* [文件] gbpptx·应用样式 —— 幻灯片页渲染 / 浮层 / 通知 */
|
|
2
|
-
|
|
3
|
-
[hidden] { display: none !important; }
|
|
4
|
-
|
|
5
|
-
.gbp-root { height: 100%; margin: 0; }
|
|
6
|
-
.gbp-root {
|
|
7
|
-
color: var(--gbp-dt-text);
|
|
8
|
-
background: var(--gbp-dt-bg-2);
|
|
9
|
-
font-family: 'Microsoft YaHei', -apple-system, 'Segoe UI', sans-serif;
|
|
10
|
-
font-size: 14px;
|
|
11
|
-
}
|
|
12
|
-
.gbp-root { height: 100%; min-height: 0; }
|
|
13
|
-
.gbp-root button { font-family: inherit; font-size: inherit; color: inherit; }
|
|
14
|
-
|
|
15
|
-
/* ==================== 幻灯片页渲染(缩略图/画布/放映/打印共用同一坐标系 960×540) ==================== */
|
|
16
|
-
|
|
17
|
-
.sl-page {
|
|
18
|
-
position: relative; width: 960px; height: 540px; overflow: hidden;
|
|
19
|
-
background: #fff; color: #202124;
|
|
20
|
-
}
|
|
21
|
-
.sl-obj { position: absolute; box-sizing: border-box; }
|
|
22
|
-
.sl-obj--gbp-text { }
|
|
23
|
-
.sl-obj--gbp-shape { display: flex; align-items: center; justify-content: center; }
|
|
24
|
-
.sl-obj--gbp-shape svg { position: absolute; inset: 0; width: 100%; height: 100%; }
|
|
25
|
-
.sl-obj--gbp-shape .sl-shape-text {
|
|
26
|
-
position: relative; z-index: 1; width: 100%; text-align: center; white-space: pre-wrap;
|
|
27
|
-
word-break: break-word; padding: 4px;
|
|
28
|
-
}
|
|
29
|
-
.sl-obj--gbp-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
|
|
30
|
-
.sl-obj--gbp-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
|
|
31
|
-
.sl-obj--gbp-table { display: block; }
|
|
32
|
-
.sl-obj.gbp-is-editing { outline: 1px dashed var(--gbp-dt-accent); outline-offset: 1px; }
|
|
33
|
-
.sl-table { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
|
|
34
|
-
.sl-table td { border: 1px solid var(--gbp-dt-border-strong); padding: 2px 6px; vertical-align: top; white-space: pre-wrap; word-break: break-word; }
|
|
35
|
-
|
|
36
|
-
/* 正文通用排版(渲染层与就地编辑器共用一份口径) */
|
|
37
|
-
.sl-text { width: 100%; height: 100%; line-height: 1.35; word-break: break-word; white-space: pre-wrap; outline: none; }
|
|
38
|
-
.sl-text div, .sl-text p { margin: 0 0 .35em; }
|
|
39
|
-
.sl-text ul, .sl-text ol { margin: 0 0 .35em; padding-left: 1.4em; }
|
|
40
|
-
.sl-text li { margin: 0; }
|
|
41
|
-
.sl-text img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; margin: .2em 0; }
|
|
42
|
-
|
|
43
|
-
/* ==================== 浮层(菜单/气泡/色板/模态) ==================== */
|
|
44
|
-
|
|
45
|
-
.gbp-popup {
|
|
46
|
-
position: fixed; z-index: 1000; overflow-y: auto; border: 1px solid var(--gbp-dt-border); border-radius: 6px;
|
|
47
|
-
background: var(--gbp-dt-surface); box-shadow: var(--gbp-dt-shadow-popup); color: var(--gbp-dt-text);
|
|
48
|
-
}
|
|
49
|
-
.gbp-menu__list { min-width: 160px; padding: 4px; }
|
|
50
|
-
.gbp-menu__item { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px; font-size: 13px; white-space: nowrap; cursor: pointer; }
|
|
51
|
-
.gbp-menu__item:hover { background: var(--gbp-dt-hover); }
|
|
52
|
-
.gbp-menu__item.gbp-is-disabled { color: var(--gbp-dt-text-disabled); cursor: default; }
|
|
53
|
-
.gbp-menu__item.gbp-is-disabled:hover { background: transparent; }
|
|
54
|
-
.gbp-menu__lead { width: 14px; display: inline-flex; justify-content: center; }
|
|
55
|
-
.gbp-menu__dot { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--gbp-dt-border-strong); }
|
|
56
|
-
.gbp-menu__label { flex: 1; }
|
|
57
|
-
.gbp-menu__shortcut { color: var(--gbp-dt-text-tertiary); font-size: 11px; }
|
|
58
|
-
.gbp-menu__arrow { color: var(--gbp-dt-text-tertiary); }
|
|
59
|
-
.gbp-menu__sep { height: 1px; margin: 4px 0; background: var(--gbp-dt-border); }
|
|
60
|
-
|
|
61
|
-
.gbp-btn { padding: 4px 12px; border: 1px solid var(--gbp-dt-border-strong); border-radius: 6px; background: var(--gbp-dt-bg); color: var(--gbp-dt-text); font-size: 13px; cursor: pointer; }
|
|
62
|
-
.gbp-btn:hover { border-color: var(--gbp-dt-accent); background: var(--gbp-dt-accent-soft); }
|
|
63
|
-
.gbp-btn--primary { border-color: var(--gbp-dt-accent); background: var(--gbp-dt-accent); color: var(--gbp-dt-on-accent); }
|
|
64
|
-
.gbp-iconbtn { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--gbp-dt-text-secondary); cursor: pointer; }
|
|
65
|
-
.gbp-iconbtn:hover { background: var(--gbp-dt-hover); }
|
|
66
|
-
.gbp-input { height: 28px; padding: 0 8px; border: 1px solid var(--gbp-dt-border-strong); border-radius: 4px; background: var(--gbp-dt-bg); color: var(--gbp-dt-text); font-size: 13px; outline: none; }
|
|
67
|
-
.gbp-input:focus { border-color: var(--gbp-dt-accent); }
|
|
68
|
-
|
|
69
|
-
.gbp-color { width: 232px; padding: 10px; }
|
|
70
|
-
.gbp-color__grid { display: grid; gap: 3px; }
|
|
71
|
-
.gbp-color__swatch { width: 18px; height: 18px; border: 1px solid var(--gbp-dt-border-strong); border-radius: 3px; cursor: pointer; }
|
|
72
|
-
.gbp-color__swatch.gbp-is-active { outline: 2px solid var(--gbp-dt-accent); outline-offset: 1px; }
|
|
73
|
-
.gbp-color__custom { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
|
|
74
|
-
.gbp-color__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
|
|
75
|
-
|
|
76
|
-
.gbp-modal-overlay { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.32); }
|
|
77
|
-
.gbp-modal { max-height: 86vh; display: flex; flex-direction: column; border: 1px solid var(--gbp-dt-border); border-radius: 8px; background: var(--gbp-dt-surface); box-shadow: var(--gbp-dt-shadow-window); }
|
|
78
|
-
.gbp-modal__head { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--gbp-dt-border); }
|
|
79
|
-
.gbp-modal__title { flex: 1; font-size: 14px; font-weight: 600; }
|
|
80
|
-
.gbp-modal__body { padding: 14px; overflow-y: auto; }
|
|
81
|
-
.gbp-modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--gbp-dt-border); }
|
|
82
|
-
.gbp-field { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
|
|
83
|
-
.gbp-field__label { width: 88px; color: var(--gbp-dt-text-secondary); font-size: 12px; }
|
|
84
|
-
.gbp-field .gbp-input { flex: 1; min-width: 0; }
|
|
85
|
-
.gbp-modal__foot .gbp-modal__close { border: none; background: none; color: var(--gbp-dt-text-secondary); font-size: 14px; cursor: pointer; }
|
|
86
|
-
|
|
87
|
-
/* ==================== 通知 ==================== */
|
|
88
|
-
|
|
89
|
-
.gbdocx-notify-host { position: fixed; top: 14px; right: 14px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
|
|
90
|
-
.gbp-notify { display: flex; align-items: center; gap: 8px; min-width: 200px; max-width: 360px; padding: 8px 12px; border: 1px solid var(--gbp-dt-border); border-radius: 6px; background: var(--gbp-dt-surface); box-shadow: var(--gbp-dt-shadow-popup); font-size: 13px; opacity: 0; transform: translateY(-8px); transition: opacity var(--gbp-dt-duration-normal) var(--gbp-dt-ease-out), transform var(--gbp-dt-duration-normal) var(--gbp-dt-ease-out); pointer-events: auto; cursor: pointer; }
|
|
91
|
-
.gbp-notify.gbp-is-in { opacity: 1; transform: translateY(0); }
|
|
92
|
-
.gbp-notify__badge { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; flex-shrink: 0; }
|
|
93
|
-
.gbp-notify--success .gbp-notify__badge { background: var(--gbp-dt-success); }
|
|
94
|
-
.gbp-notify--error .gbp-notify__badge { background: var(--gbp-dt-danger); }
|
|
95
|
-
.gbp-notify--warning .gbp-notify__badge { background: var(--gbp-dt-warning); }
|
|
96
|
-
.gbp-notify--info .gbp-notify__badge { background: var(--gbp-dt-accent); }
|
|
97
|
-
.gbp-notify__text { word-break: break-word; }
|
|
1
|
+
/* [文件] gbpptx·应用样式 —— 幻灯片页渲染 / 浮层 / 通知 */
|
|
2
|
+
|
|
3
|
+
[hidden] { display: none !important; }
|
|
4
|
+
|
|
5
|
+
.gbp-root { height: 100%; margin: 0; }
|
|
6
|
+
.gbp-root {
|
|
7
|
+
color: var(--gbp-dt-text);
|
|
8
|
+
background: var(--gbp-dt-bg-2);
|
|
9
|
+
font-family: 'Microsoft YaHei', -apple-system, 'Segoe UI', sans-serif;
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
}
|
|
12
|
+
.gbp-root { height: 100%; min-height: 0; }
|
|
13
|
+
.gbp-root button { font-family: inherit; font-size: inherit; color: inherit; }
|
|
14
|
+
|
|
15
|
+
/* ==================== 幻灯片页渲染(缩略图/画布/放映/打印共用同一坐标系 960×540) ==================== */
|
|
16
|
+
|
|
17
|
+
.sl-page {
|
|
18
|
+
position: relative; width: 960px; height: 540px; overflow: hidden;
|
|
19
|
+
background: #fff; color: #202124;
|
|
20
|
+
}
|
|
21
|
+
.sl-obj { position: absolute; box-sizing: border-box; }
|
|
22
|
+
.sl-obj--gbp-text { }
|
|
23
|
+
.sl-obj--gbp-shape { display: flex; align-items: center; justify-content: center; }
|
|
24
|
+
.sl-obj--gbp-shape svg { position: absolute; inset: 0; width: 100%; height: 100%; }
|
|
25
|
+
.sl-obj--gbp-shape .sl-shape-text {
|
|
26
|
+
position: relative; z-index: 1; width: 100%; text-align: center; white-space: pre-wrap;
|
|
27
|
+
word-break: break-word; padding: 4px;
|
|
28
|
+
}
|
|
29
|
+
.sl-obj--gbp-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
|
|
30
|
+
.sl-obj--gbp-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
|
|
31
|
+
.sl-obj--gbp-table { display: block; }
|
|
32
|
+
.sl-obj.gbp-is-editing { outline: 1px dashed var(--gbp-dt-accent); outline-offset: 1px; }
|
|
33
|
+
.sl-table { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
|
|
34
|
+
.sl-table td { border: 1px solid var(--gbp-dt-border-strong); padding: 2px 6px; vertical-align: top; white-space: pre-wrap; word-break: break-word; }
|
|
35
|
+
|
|
36
|
+
/* 正文通用排版(渲染层与就地编辑器共用一份口径) */
|
|
37
|
+
.sl-text { width: 100%; height: 100%; line-height: 1.35; word-break: break-word; white-space: pre-wrap; outline: none; }
|
|
38
|
+
.sl-text div, .sl-text p { margin: 0 0 .35em; }
|
|
39
|
+
.sl-text ul, .sl-text ol { margin: 0 0 .35em; padding-left: 1.4em; }
|
|
40
|
+
.sl-text li { margin: 0; }
|
|
41
|
+
.sl-text img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; margin: .2em 0; }
|
|
42
|
+
|
|
43
|
+
/* ==================== 浮层(菜单/气泡/色板/模态) ==================== */
|
|
44
|
+
|
|
45
|
+
.gbp-popup {
|
|
46
|
+
position: fixed; z-index: 1000; overflow-y: auto; border: 1px solid var(--gbp-dt-border); border-radius: 6px;
|
|
47
|
+
background: var(--gbp-dt-surface); box-shadow: var(--gbp-dt-shadow-popup); color: var(--gbp-dt-text);
|
|
48
|
+
}
|
|
49
|
+
.gbp-menu__list { min-width: 160px; padding: 4px; }
|
|
50
|
+
.gbp-menu__item { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px; font-size: 13px; white-space: nowrap; cursor: pointer; }
|
|
51
|
+
.gbp-menu__item:hover { background: var(--gbp-dt-hover); }
|
|
52
|
+
.gbp-menu__item.gbp-is-disabled { color: var(--gbp-dt-text-disabled); cursor: default; }
|
|
53
|
+
.gbp-menu__item.gbp-is-disabled:hover { background: transparent; }
|
|
54
|
+
.gbp-menu__lead { width: 14px; display: inline-flex; justify-content: center; }
|
|
55
|
+
.gbp-menu__dot { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--gbp-dt-border-strong); }
|
|
56
|
+
.gbp-menu__label { flex: 1; }
|
|
57
|
+
.gbp-menu__shortcut { color: var(--gbp-dt-text-tertiary); font-size: 11px; }
|
|
58
|
+
.gbp-menu__arrow { color: var(--gbp-dt-text-tertiary); }
|
|
59
|
+
.gbp-menu__sep { height: 1px; margin: 4px 0; background: var(--gbp-dt-border); }
|
|
60
|
+
|
|
61
|
+
.gbp-btn { padding: 4px 12px; border: 1px solid var(--gbp-dt-border-strong); border-radius: 6px; background: var(--gbp-dt-bg); color: var(--gbp-dt-text); font-size: 13px; cursor: pointer; }
|
|
62
|
+
.gbp-btn:hover { border-color: var(--gbp-dt-accent); background: var(--gbp-dt-accent-soft); }
|
|
63
|
+
.gbp-btn--primary { border-color: var(--gbp-dt-accent); background: var(--gbp-dt-accent); color: var(--gbp-dt-on-accent); }
|
|
64
|
+
.gbp-iconbtn { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--gbp-dt-text-secondary); cursor: pointer; }
|
|
65
|
+
.gbp-iconbtn:hover { background: var(--gbp-dt-hover); }
|
|
66
|
+
.gbp-input { height: 28px; padding: 0 8px; border: 1px solid var(--gbp-dt-border-strong); border-radius: 4px; background: var(--gbp-dt-bg); color: var(--gbp-dt-text); font-size: 13px; outline: none; }
|
|
67
|
+
.gbp-input:focus { border-color: var(--gbp-dt-accent); }
|
|
68
|
+
|
|
69
|
+
.gbp-color { width: 232px; padding: 10px; }
|
|
70
|
+
.gbp-color__grid { display: grid; gap: 3px; }
|
|
71
|
+
.gbp-color__swatch { width: 18px; height: 18px; border: 1px solid var(--gbp-dt-border-strong); border-radius: 3px; cursor: pointer; }
|
|
72
|
+
.gbp-color__swatch.gbp-is-active { outline: 2px solid var(--gbp-dt-accent); outline-offset: 1px; }
|
|
73
|
+
.gbp-color__custom { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
|
|
74
|
+
.gbp-color__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
|
|
75
|
+
|
|
76
|
+
.gbp-modal-overlay { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.32); }
|
|
77
|
+
.gbp-modal { max-height: 86vh; display: flex; flex-direction: column; border: 1px solid var(--gbp-dt-border); border-radius: 8px; background: var(--gbp-dt-surface); box-shadow: var(--gbp-dt-shadow-window); }
|
|
78
|
+
.gbp-modal__head { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--gbp-dt-border); }
|
|
79
|
+
.gbp-modal__title { flex: 1; font-size: 14px; font-weight: 600; }
|
|
80
|
+
.gbp-modal__body { padding: 14px; overflow-y: auto; }
|
|
81
|
+
.gbp-modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--gbp-dt-border); }
|
|
82
|
+
.gbp-field { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
|
|
83
|
+
.gbp-field__label { width: 88px; color: var(--gbp-dt-text-secondary); font-size: 12px; }
|
|
84
|
+
.gbp-field .gbp-input { flex: 1; min-width: 0; }
|
|
85
|
+
.gbp-modal__foot .gbp-modal__close { border: none; background: none; color: var(--gbp-dt-text-secondary); font-size: 14px; cursor: pointer; }
|
|
86
|
+
|
|
87
|
+
/* ==================== 通知 ==================== */
|
|
88
|
+
|
|
89
|
+
.gbdocx-notify-host { position: fixed; top: 14px; right: 14px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
|
|
90
|
+
.gbp-notify { display: flex; align-items: center; gap: 8px; min-width: 200px; max-width: 360px; padding: 8px 12px; border: 1px solid var(--gbp-dt-border); border-radius: 6px; background: var(--gbp-dt-surface); box-shadow: var(--gbp-dt-shadow-popup); font-size: 13px; opacity: 0; transform: translateY(-8px); transition: opacity var(--gbp-dt-duration-normal) var(--gbp-dt-ease-out), transform var(--gbp-dt-duration-normal) var(--gbp-dt-ease-out); pointer-events: auto; cursor: pointer; }
|
|
91
|
+
.gbp-notify.gbp-is-in { opacity: 1; transform: translateY(0); }
|
|
92
|
+
.gbp-notify__badge { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; flex-shrink: 0; }
|
|
93
|
+
.gbp-notify--success .gbp-notify__badge { background: var(--gbp-dt-success); }
|
|
94
|
+
.gbp-notify--error .gbp-notify__badge { background: var(--gbp-dt-danger); }
|
|
95
|
+
.gbp-notify--warning .gbp-notify__badge { background: var(--gbp-dt-warning); }
|
|
96
|
+
.gbp-notify--info .gbp-notify__badge { background: var(--gbp-dt-accent); }
|
|
97
|
+
.gbp-notify__text { word-break: break-word; }
|
package/web/styles/tokens.css
CHANGED
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
/* [文件] gbdocx·设计令牌 —— 全局视觉变量唯一数据源(移植自 guabi desks top tokens.css 的相关子集) */
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--gbp-dt-accent: #2a6bff;
|
|
5
|
-
--gbp-dt-accent-hover: #5a8bff;
|
|
6
|
-
--gbp-dt-accent-active: #1f52d8;
|
|
7
|
-
--gbp-dt-on-accent: #ffffff;
|
|
8
|
-
--gbp-dt-accent-soft: rgba(42, 107, 255, 0.14);
|
|
9
|
-
--gbp-dt-accent-soft-strong: rgba(42, 107, 255, 0.3);
|
|
10
|
-
--gbp-dt-accent-fill: rgba(42, 107, 255, 0.42);
|
|
11
|
-
|
|
12
|
-
--gbp-dt-surface: #ffffff;
|
|
13
|
-
--gbp-dt-surface-2: rgba(255, 255, 255, 0.72);
|
|
14
|
-
--gbp-dt-surface-3: rgba(255, 255, 255, 0.55);
|
|
15
|
-
|
|
16
|
-
--gbp-dt-bg: #ffffff;
|
|
17
|
-
--gbp-dt-bg-2: #ffffff;
|
|
18
|
-
--gbp-dt-bg-3: #ffffff;
|
|
19
|
-
--gbp-dt-scrim: #ffffff;
|
|
20
|
-
--gbp-dt-media-overlay: rgba(0, 0, 0, 0.68);
|
|
21
|
-
|
|
22
|
-
--gbp-dt-text: #171a1f;
|
|
23
|
-
--gbp-dt-text-secondary: rgba(23, 26, 31, 0.64);
|
|
24
|
-
--gbp-dt-text-tertiary: rgba(23, 26, 31, 0.44);
|
|
25
|
-
--gbp-dt-text-disabled: rgba(23, 26, 31, 0.3);
|
|
26
|
-
|
|
27
|
-
--gbp-dt-border: rgba(23, 26, 31, 0.09);
|
|
28
|
-
--gbp-dt-border-strong: rgba(23, 26, 31, 0.18);
|
|
29
|
-
|
|
30
|
-
--gbp-dt-hover: rgba(23, 26, 31, 0.05);
|
|
31
|
-
--gbp-dt-active: rgba(23, 26, 31, 0.09);
|
|
32
|
-
|
|
33
|
-
--gbp-dt-fill: rgba(23, 26, 31, 0.035);
|
|
34
|
-
--gbp-dt-fill-light: rgba(23, 26, 31, 0.02);
|
|
35
|
-
|
|
36
|
-
--gbp-dt-scrollbar: rgba(23, 26, 31, 0.18);
|
|
37
|
-
--gbp-dt-scrollbar-hover: rgba(23, 26, 31, 0.3);
|
|
38
|
-
|
|
39
|
-
--gbp-dt-success: #16a34a;
|
|
40
|
-
--gbp-dt-success-soft: rgba(22, 163, 74, 0.14);
|
|
41
|
-
--gbp-dt-warning: #f59e0b;
|
|
42
|
-
--gbp-dt-warning-soft: rgba(245, 158, 11, 0.14);
|
|
43
|
-
--gbp-dt-danger: #e5484d;
|
|
44
|
-
--gbp-dt-danger-hover: #d93a40;
|
|
45
|
-
--gbp-dt-danger-soft: rgba(229, 72, 77, 0.12);
|
|
46
|
-
|
|
47
|
-
--gbp-dt-shadow-popup: 0 10px 34px rgba(15, 23, 42, 0.18);
|
|
48
|
-
--gbp-dt-shadow-window: 0 10px 30px rgba(15, 23, 42, 0.14);
|
|
49
|
-
|
|
50
|
-
--gbp-dt-radius-sm: 8px;
|
|
51
|
-
--gbp-dt-radius-md: 10px;
|
|
52
|
-
--gbp-dt-radius-lg: 14px;
|
|
53
|
-
|
|
54
|
-
--gbp-dt-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
55
|
-
--gbp-dt-duration-fast: 0.15s;
|
|
56
|
-
--gbp-dt-duration-normal: 0.22s;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
[data-gbp-theme='dark'] {
|
|
60
|
-
--gbp-dt-on-accent: #ffffff;
|
|
61
|
-
--gbp-dt-accent-soft: rgba(122, 162, 255, 0.2);
|
|
62
|
-
--gbp-dt-accent-soft-strong: rgba(122, 162, 255, 0.4);
|
|
63
|
-
--gbp-dt-accent-fill: rgba(122, 162, 255, 0.5);
|
|
64
|
-
|
|
65
|
-
--gbp-dt-surface: #1a1d24;
|
|
66
|
-
--gbp-dt-surface-2: rgba(35, 39, 48, 0.72);
|
|
67
|
-
--gbp-dt-surface-3: rgba(47, 52, 63, 0.55);
|
|
68
|
-
|
|
69
|
-
--gbp-dt-bg: #1a1d24;
|
|
70
|
-
--gbp-dt-bg-2: #22262f;
|
|
71
|
-
--gbp-dt-bg-3: #282d37;
|
|
72
|
-
--gbp-dt-scrim: #1a1d24;
|
|
73
|
-
|
|
74
|
-
--gbp-dt-text: #eef1f6;
|
|
75
|
-
--gbp-dt-text-secondary: rgba(238, 241, 246, 0.64);
|
|
76
|
-
--gbp-dt-text-tertiary: rgba(238, 241, 246, 0.44);
|
|
77
|
-
--gbp-dt-text-disabled: rgba(238, 241, 246, 0.3);
|
|
78
|
-
|
|
79
|
-
--gbp-dt-border: rgba(255, 255, 255, 0.09);
|
|
80
|
-
--gbp-dt-border-strong: rgba(255, 255, 255, 0.18);
|
|
81
|
-
|
|
82
|
-
--gbp-dt-hover: rgba(255, 255, 255, 0.06);
|
|
83
|
-
--gbp-dt-active: rgba(255, 255, 255, 0.1);
|
|
84
|
-
|
|
85
|
-
--gbp-dt-fill: rgba(255, 255, 255, 0.04);
|
|
86
|
-
--gbp-dt-fill-light: rgba(255, 255, 255, 0.02);
|
|
87
|
-
|
|
88
|
-
--gbp-dt-scrollbar: rgba(255, 255, 255, 0.18);
|
|
89
|
-
--gbp-dt-scrollbar-hover: rgba(255, 255, 255, 0.3);
|
|
90
|
-
|
|
91
|
-
--gbp-dt-success: #34c47c;
|
|
92
|
-
--gbp-dt-success-soft: rgba(52, 196, 124, 0.16);
|
|
93
|
-
--gbp-dt-warning: #fbbf24;
|
|
94
|
-
--gbp-dt-warning-soft: rgba(251, 191, 36, 0.16);
|
|
95
|
-
--gbp-dt-danger: #ff6b6e;
|
|
96
|
-
--gbp-dt-danger-hover: #ff8d90;
|
|
97
|
-
--gbp-dt-danger-soft: rgba(255, 107, 110, 0.18);
|
|
98
|
-
|
|
99
|
-
--gbp-dt-shadow-popup: 0 10px 38px rgba(0, 0, 0, 0.58);
|
|
100
|
-
--gbp-dt-shadow-window: 0 12px 36px rgba(0, 0, 0, 0.55);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.gbp-root, .gbp-root * {
|
|
104
|
-
scrollbar-color: var(--gbp-dt-scrollbar) transparent;
|
|
105
|
-
box-sizing: border-box;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.gbp-root ::-webkit-scrollbar {
|
|
109
|
-
width: 8px;
|
|
110
|
-
height: 8px;
|
|
111
|
-
}
|
|
112
|
-
.gbp-root ::-webkit-scrollbar-track {
|
|
113
|
-
background: transparent;
|
|
114
|
-
}
|
|
115
|
-
.gbp-root ::-webkit-scrollbar-thumb {
|
|
116
|
-
background: var(--gbp-dt-scrollbar);
|
|
117
|
-
border-radius: 4px;
|
|
118
|
-
}
|
|
119
|
-
.gbp-root ::-webkit-scrollbar-thumb:hover {
|
|
120
|
-
background: var(--gbp-dt-scrollbar-hover);
|
|
121
|
-
}
|
|
122
|
-
.gbp-root ::-webkit-scrollbar-corner {
|
|
123
|
-
background: transparent;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.dt-scrollbar-thin::-webkit-scrollbar {
|
|
127
|
-
width: 4px;
|
|
128
|
-
height: 4px;
|
|
129
|
-
}
|
|
130
|
-
.dt-scrollbar-thin::-webkit-scrollbar-thumb {
|
|
131
|
-
border-radius: 2px;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.gbp-root {
|
|
135
|
-
height: 100%;
|
|
136
|
-
margin: 0;
|
|
137
|
-
}
|
|
138
|
-
.gbp-root {
|
|
139
|
-
color: var(--gbp-dt-text);
|
|
140
|
-
background: var(--gbp-dt-bg-2);
|
|
141
|
-
font-family: 'Microsoft YaHei', -apple-system, 'Segoe UI', sans-serif;
|
|
142
|
-
font-size: 14px;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.gbp-root {
|
|
146
|
-
height: 100%;
|
|
147
|
-
min-height: 0;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.gbp-root button {
|
|
151
|
-
font-family: inherit;
|
|
152
|
-
font-size: inherit;
|
|
153
|
-
color: inherit;
|
|
154
|
-
}
|
|
1
|
+
/* [文件] gbdocx·设计令牌 —— 全局视觉变量唯一数据源(移植自 guabi desks top tokens.css 的相关子集) */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--gbp-dt-accent: #2a6bff;
|
|
5
|
+
--gbp-dt-accent-hover: #5a8bff;
|
|
6
|
+
--gbp-dt-accent-active: #1f52d8;
|
|
7
|
+
--gbp-dt-on-accent: #ffffff;
|
|
8
|
+
--gbp-dt-accent-soft: rgba(42, 107, 255, 0.14);
|
|
9
|
+
--gbp-dt-accent-soft-strong: rgba(42, 107, 255, 0.3);
|
|
10
|
+
--gbp-dt-accent-fill: rgba(42, 107, 255, 0.42);
|
|
11
|
+
|
|
12
|
+
--gbp-dt-surface: #ffffff;
|
|
13
|
+
--gbp-dt-surface-2: rgba(255, 255, 255, 0.72);
|
|
14
|
+
--gbp-dt-surface-3: rgba(255, 255, 255, 0.55);
|
|
15
|
+
|
|
16
|
+
--gbp-dt-bg: #ffffff;
|
|
17
|
+
--gbp-dt-bg-2: #ffffff;
|
|
18
|
+
--gbp-dt-bg-3: #ffffff;
|
|
19
|
+
--gbp-dt-scrim: #ffffff;
|
|
20
|
+
--gbp-dt-media-overlay: rgba(0, 0, 0, 0.68);
|
|
21
|
+
|
|
22
|
+
--gbp-dt-text: #171a1f;
|
|
23
|
+
--gbp-dt-text-secondary: rgba(23, 26, 31, 0.64);
|
|
24
|
+
--gbp-dt-text-tertiary: rgba(23, 26, 31, 0.44);
|
|
25
|
+
--gbp-dt-text-disabled: rgba(23, 26, 31, 0.3);
|
|
26
|
+
|
|
27
|
+
--gbp-dt-border: rgba(23, 26, 31, 0.09);
|
|
28
|
+
--gbp-dt-border-strong: rgba(23, 26, 31, 0.18);
|
|
29
|
+
|
|
30
|
+
--gbp-dt-hover: rgba(23, 26, 31, 0.05);
|
|
31
|
+
--gbp-dt-active: rgba(23, 26, 31, 0.09);
|
|
32
|
+
|
|
33
|
+
--gbp-dt-fill: rgba(23, 26, 31, 0.035);
|
|
34
|
+
--gbp-dt-fill-light: rgba(23, 26, 31, 0.02);
|
|
35
|
+
|
|
36
|
+
--gbp-dt-scrollbar: rgba(23, 26, 31, 0.18);
|
|
37
|
+
--gbp-dt-scrollbar-hover: rgba(23, 26, 31, 0.3);
|
|
38
|
+
|
|
39
|
+
--gbp-dt-success: #16a34a;
|
|
40
|
+
--gbp-dt-success-soft: rgba(22, 163, 74, 0.14);
|
|
41
|
+
--gbp-dt-warning: #f59e0b;
|
|
42
|
+
--gbp-dt-warning-soft: rgba(245, 158, 11, 0.14);
|
|
43
|
+
--gbp-dt-danger: #e5484d;
|
|
44
|
+
--gbp-dt-danger-hover: #d93a40;
|
|
45
|
+
--gbp-dt-danger-soft: rgba(229, 72, 77, 0.12);
|
|
46
|
+
|
|
47
|
+
--gbp-dt-shadow-popup: 0 10px 34px rgba(15, 23, 42, 0.18);
|
|
48
|
+
--gbp-dt-shadow-window: 0 10px 30px rgba(15, 23, 42, 0.14);
|
|
49
|
+
|
|
50
|
+
--gbp-dt-radius-sm: 8px;
|
|
51
|
+
--gbp-dt-radius-md: 10px;
|
|
52
|
+
--gbp-dt-radius-lg: 14px;
|
|
53
|
+
|
|
54
|
+
--gbp-dt-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
55
|
+
--gbp-dt-duration-fast: 0.15s;
|
|
56
|
+
--gbp-dt-duration-normal: 0.22s;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-gbp-theme='dark'] {
|
|
60
|
+
--gbp-dt-on-accent: #ffffff;
|
|
61
|
+
--gbp-dt-accent-soft: rgba(122, 162, 255, 0.2);
|
|
62
|
+
--gbp-dt-accent-soft-strong: rgba(122, 162, 255, 0.4);
|
|
63
|
+
--gbp-dt-accent-fill: rgba(122, 162, 255, 0.5);
|
|
64
|
+
|
|
65
|
+
--gbp-dt-surface: #1a1d24;
|
|
66
|
+
--gbp-dt-surface-2: rgba(35, 39, 48, 0.72);
|
|
67
|
+
--gbp-dt-surface-3: rgba(47, 52, 63, 0.55);
|
|
68
|
+
|
|
69
|
+
--gbp-dt-bg: #1a1d24;
|
|
70
|
+
--gbp-dt-bg-2: #22262f;
|
|
71
|
+
--gbp-dt-bg-3: #282d37;
|
|
72
|
+
--gbp-dt-scrim: #1a1d24;
|
|
73
|
+
|
|
74
|
+
--gbp-dt-text: #eef1f6;
|
|
75
|
+
--gbp-dt-text-secondary: rgba(238, 241, 246, 0.64);
|
|
76
|
+
--gbp-dt-text-tertiary: rgba(238, 241, 246, 0.44);
|
|
77
|
+
--gbp-dt-text-disabled: rgba(238, 241, 246, 0.3);
|
|
78
|
+
|
|
79
|
+
--gbp-dt-border: rgba(255, 255, 255, 0.09);
|
|
80
|
+
--gbp-dt-border-strong: rgba(255, 255, 255, 0.18);
|
|
81
|
+
|
|
82
|
+
--gbp-dt-hover: rgba(255, 255, 255, 0.06);
|
|
83
|
+
--gbp-dt-active: rgba(255, 255, 255, 0.1);
|
|
84
|
+
|
|
85
|
+
--gbp-dt-fill: rgba(255, 255, 255, 0.04);
|
|
86
|
+
--gbp-dt-fill-light: rgba(255, 255, 255, 0.02);
|
|
87
|
+
|
|
88
|
+
--gbp-dt-scrollbar: rgba(255, 255, 255, 0.18);
|
|
89
|
+
--gbp-dt-scrollbar-hover: rgba(255, 255, 255, 0.3);
|
|
90
|
+
|
|
91
|
+
--gbp-dt-success: #34c47c;
|
|
92
|
+
--gbp-dt-success-soft: rgba(52, 196, 124, 0.16);
|
|
93
|
+
--gbp-dt-warning: #fbbf24;
|
|
94
|
+
--gbp-dt-warning-soft: rgba(251, 191, 36, 0.16);
|
|
95
|
+
--gbp-dt-danger: #ff6b6e;
|
|
96
|
+
--gbp-dt-danger-hover: #ff8d90;
|
|
97
|
+
--gbp-dt-danger-soft: rgba(255, 107, 110, 0.18);
|
|
98
|
+
|
|
99
|
+
--gbp-dt-shadow-popup: 0 10px 38px rgba(0, 0, 0, 0.58);
|
|
100
|
+
--gbp-dt-shadow-window: 0 12px 36px rgba(0, 0, 0, 0.55);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.gbp-root, .gbp-root * {
|
|
104
|
+
scrollbar-color: var(--gbp-dt-scrollbar) transparent;
|
|
105
|
+
box-sizing: border-box;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.gbp-root ::-webkit-scrollbar {
|
|
109
|
+
width: 8px;
|
|
110
|
+
height: 8px;
|
|
111
|
+
}
|
|
112
|
+
.gbp-root ::-webkit-scrollbar-track {
|
|
113
|
+
background: transparent;
|
|
114
|
+
}
|
|
115
|
+
.gbp-root ::-webkit-scrollbar-thumb {
|
|
116
|
+
background: var(--gbp-dt-scrollbar);
|
|
117
|
+
border-radius: 4px;
|
|
118
|
+
}
|
|
119
|
+
.gbp-root ::-webkit-scrollbar-thumb:hover {
|
|
120
|
+
background: var(--gbp-dt-scrollbar-hover);
|
|
121
|
+
}
|
|
122
|
+
.gbp-root ::-webkit-scrollbar-corner {
|
|
123
|
+
background: transparent;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.dt-scrollbar-thin::-webkit-scrollbar {
|
|
127
|
+
width: 4px;
|
|
128
|
+
height: 4px;
|
|
129
|
+
}
|
|
130
|
+
.dt-scrollbar-thin::-webkit-scrollbar-thumb {
|
|
131
|
+
border-radius: 2px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.gbp-root {
|
|
135
|
+
height: 100%;
|
|
136
|
+
margin: 0;
|
|
137
|
+
}
|
|
138
|
+
.gbp-root {
|
|
139
|
+
color: var(--gbp-dt-text);
|
|
140
|
+
background: var(--gbp-dt-bg-2);
|
|
141
|
+
font-family: 'Microsoft YaHei', -apple-system, 'Segoe UI', sans-serif;
|
|
142
|
+
font-size: 14px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.gbp-root {
|
|
146
|
+
height: 100%;
|
|
147
|
+
min-height: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.gbp-root button {
|
|
151
|
+
font-family: inherit;
|
|
152
|
+
font-size: inherit;
|
|
153
|
+
color: inherit;
|
|
154
|
+
}
|