@seafile/sdoc-editor 0.4.21 → 0.4.23
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/dist/basic-sdk/constants/index.js +2 -1
- package/dist/basic-sdk/extension/plugins/callout/helper.js +1 -10
- package/dist/basic-sdk/extension/plugins/callout/render-elem/color-selector.js +18 -21
- package/dist/basic-sdk/extension/plugins/callout/render-elem/index.js +33 -32
- package/dist/basic-sdk/extension/plugins/image/plugin.js +1 -1
- package/dist/basic-sdk/extension/plugins/search-replace/menu/index.js +4 -2
- package/dist/basic-sdk/extension/plugins/search-replace/popover/index.css +7 -0
- package/dist/basic-sdk/extension/plugins/search-replace/popover/index.js +16 -3
- package/dist/basic-sdk/extension/plugins/table/constants/index.js +8 -1
- package/dist/basic-sdk/extension/plugins/table/helpers.js +87 -86
- package/dist/basic-sdk/extension/plugins/table/render/index.css +47 -1
- package/dist/basic-sdk/extension/plugins/table/render/index.js +27 -3
- package/dist/basic-sdk/extension/plugins/table/render/render-cell.js +17 -5
- package/dist/basic-sdk/extension/plugins/table/render/resize-handlers/column-resize-handler.js +25 -45
- package/dist/basic-sdk/extension/plugins/table/render/resize-handlers/first-column-left-resize-handler.js +21 -41
- package/dist/basic-sdk/extension/plugins/table/render/resize-handlers/index.js +44 -35
- package/dist/basic-sdk/extension/plugins/table/render/resize-handlers/row-resize-handler.js +22 -32
- package/dist/basic-sdk/extension/plugins/table/render/resize-mask/index.js +133 -0
- package/dist/basic-sdk/extension/plugins/table/render/table-header/rows-header/row-header.js +9 -15
- package/package.json +1 -1
- package/public/locales/zh_CN/sdoc-editor.json +1 -1
- package/public/media/sdoc-editor-font/iconfont.eot +0 -0
- package/public/media/sdoc-editor-font/iconfont.svg +16 -2
- package/public/media/sdoc-editor-font/iconfont.ttf +0 -0
- package/public/media/sdoc-editor-font/iconfont.woff +0 -0
- package/public/media/sdoc-editor-font/iconfont.woff2 +0 -0
- package/public/media/sdoc-editor-font.css +38 -10
package/dist/basic-sdk/extension/plugins/table/render/table-header/rows-header/row-header.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React, { useRef, useCallback, useState, useEffect } from 'react';
|
|
2
|
-
import { ReactEditor } from '@seafile/slate-react';
|
|
1
|
+
import React, { useRef, useCallback, useState, useEffect, useLayoutEffect } from 'react';
|
|
3
2
|
import { useSlateStatic } from '@seafile/slate-react';
|
|
4
3
|
import classnames from 'classnames';
|
|
5
4
|
import ObjectUtils from '../../../../../../utils/object-utils';
|
|
@@ -7,7 +6,7 @@ import { useResizeHandlersContext, useTableSelectedRangeContext } from '../../ho
|
|
|
7
6
|
import { useScrollContext } from '../../../../../../hooks/use-scroll-context';
|
|
8
7
|
import { ELEMENT_TYPE } from '../../../../../constants';
|
|
9
8
|
import { findPath, getSelectedNodeByType } from '../../../../../core';
|
|
10
|
-
import { elementHasImage,
|
|
9
|
+
import { elementHasImage, getRowDomHeight } from '../../../helpers';
|
|
11
10
|
const RowHeader = _ref => {
|
|
12
11
|
let {
|
|
13
12
|
row,
|
|
@@ -18,8 +17,11 @@ const RowHeader = _ref => {
|
|
|
18
17
|
selectRange,
|
|
19
18
|
tableSize
|
|
20
19
|
} = _ref;
|
|
21
|
-
const oldRowHeight = getRowHeight(row);
|
|
22
20
|
const editor = useSlateStatic();
|
|
21
|
+
useLayoutEffect(() => {
|
|
22
|
+
setRowHeight(getRowDomHeight(editor, row));
|
|
23
|
+
}, [editor, row, tableSize]);
|
|
24
|
+
const oldRowHeight = getRowDomHeight(editor, row);
|
|
23
25
|
const [rowHeight, setRowHeight] = useState(oldRowHeight);
|
|
24
26
|
const rowHeaderRef = useRef(null);
|
|
25
27
|
const columns = useResizeHandlersContext();
|
|
@@ -28,23 +30,15 @@ const RowHeader = _ref => {
|
|
|
28
30
|
const currentCell = getSelectedNodeByType(editor, ELEMENT_TYPE.TABLE_CELL);
|
|
29
31
|
const currentCellPath = currentCell ? findPath(editor, currentCell, [-1, -1]) : [-1, -1];
|
|
30
32
|
const pathLength = currentCellPath.length;
|
|
31
|
-
const updateRowHeight = () => {
|
|
32
|
-
const cell = row.children.filter(cell => !cell.is_combined && (!cell.rowspan || cell.rowspan == 1))[0];
|
|
33
|
-
if (!cell) return;
|
|
34
|
-
const rowDom = ReactEditor.toDOMNode(editor, cell);
|
|
35
|
-
if (!rowDom) return;
|
|
36
|
-
if (rowHeight === rowDom.clientHeight) return;
|
|
37
|
-
setRowHeight(rowDom.clientHeight);
|
|
38
|
-
};
|
|
39
33
|
useEffect(() => {
|
|
40
34
|
if (elementHasImage(row)) {
|
|
41
35
|
// There is a delay in image loading
|
|
42
|
-
const time = setTimeout(
|
|
36
|
+
const time = setTimeout(() => setRowHeight(getRowDomHeight(editor, row)), 300);
|
|
43
37
|
return () => {
|
|
44
38
|
clearTimeout(time);
|
|
45
39
|
};
|
|
46
40
|
}
|
|
47
|
-
|
|
41
|
+
|
|
48
42
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
49
43
|
}, [columns, row, index]);
|
|
50
44
|
const onMouseMove = useCallback(event => {
|
|
@@ -89,7 +83,7 @@ const RowHeader = _ref => {
|
|
|
89
83
|
'range-selected-tip': !isSelectedARow && isSelectedSomeRow || currentCellPath[pathLength - 2] === index
|
|
90
84
|
}),
|
|
91
85
|
style: {
|
|
92
|
-
height: rowHeight
|
|
86
|
+
height: rowHeight
|
|
93
87
|
},
|
|
94
88
|
ref: rowHeaderRef,
|
|
95
89
|
onClick: () => selectRange(index),
|
package/package.json
CHANGED
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
"Replace_as": "替换为",
|
|
436
436
|
"Type_replace_content": "输入替换内容",
|
|
437
437
|
"Prevs": "上一个",
|
|
438
|
-
"Next": "
|
|
438
|
+
"Next": "下一个",
|
|
439
439
|
"Replace": "替换",
|
|
440
440
|
"Replace_all": "替换全部",
|
|
441
441
|
"Are_you_sure_to_replace_all_number_xxx_in_this_document_with_yyy": "确定要将此文档内的 {{number}} 处 \"{{originalWord}} \" 替换为 \"{{replacedWord}} \" 吗?",
|
|
Binary file
|
|
@@ -14,6 +14,22 @@
|
|
|
14
14
|
/>
|
|
15
15
|
<missing-glyph />
|
|
16
16
|
|
|
17
|
+
<glyph glyph-name="sdoc-callout-color" unicode="" d="M819.2 777.6c147.2-121.6 195.2-291.2 195.2-300.8v-3.2c22.4-118.4 3.2-208-51.2-262.4-86.4-83.2-227.2-57.6-249.6-54.4-25.6 3.2-44.8-6.4-60.8-22.4-16-19.2-19.2-44.8-12.8-60.8 12.8-44.8 16-76.8 6.4-102.4-28.8-67.2-89.6-99.2-182.4-99.2-22.4 0-44.8 3.2-67.2 6.4h-6.4C217.6-96 96 76.8 92.8 86.4-76.8 348.8 9.6 611.2 166.4 758.4c160 147.2 422.4 208 652.8 19.2zM230.4 688c-118.4-112-198.4-352-54.4-544C224 80 288 32 352 0s144-32 176 0 16 64 16 112 16 80 48 112 99.2 38.4 144 32 99.2-28.8 160 32c38.4 38.4 41.6 80 25.6 169.6-3.2 12.8-44.8 150.4-163.2 246.4-185.6 153.6-396.8 102.4-528-16z m-9.6-259.2c35.2 0 60.8-28.8 60.8-64s-28.8-64-60.8-64-60.8 28.8-60.8 64 25.6 64 60.8 64z m563.2 73.6c35.2 0 60.8-28.8 60.8-64s-28.8-64-60.8-64c-35.2 0-60.8 28.8-60.8 64s25.6 64 60.8 64zM291.2 614.4c35.2 0 60.8-28.8 60.8-64 0-22.4-12.8-41.6-32-54.4-19.2-12.8-41.6-12.8-60.8 0-19.2 12.8-32 32-32 54.4 3.2 38.4 32 64 64 64z m390.4 54.4c35.2 0 60.8-28.8 60.8-64s-28.8-64-60.8-64-60.8 28.8-60.8 64 25.6 64 60.8 64z m-204.8 51.2c35.2 0 60.8-28.8 60.8-64s-28.8-64-60.8-64-60.8 32-60.8 67.2 25.6 60.8 60.8 60.8z" horiz-adv-x="1024" />
|
|
18
|
+
|
|
19
|
+
<glyph glyph-name="sdoc-callout-icon" unicode="" d="M512-32c230.4 0 416 185.6 416 416S742.4 800 512 800 96 614.4 96 384s185.6-416 416-416z m0-96C230.4-128 0 102.4 0 384S230.4 896 512 896s512-230.4 512-512-230.4-512-512-512z m-160 528c44.8 0 80 35.2 80 80s-35.2 80-80 80-80-35.2-80-80 35.2-80 80-80z m320 0c44.8 0 80 35.2 80 80s-35.2 80-80 80-80-35.2-80-80 35.2-80 80-80z m-160-246.4c-80 0-153.6 51.2-188.8 128 0 0-3.2 32-38.4 32-35.2 0-32-32-32-32 35.2-108.8 137.6-192 256-192s227.2 83.2 256 192c0 0 0 32-32 32s-35.2-32-35.2-32c-25.6-73.6-102.4-128-185.6-128z" horiz-adv-x="1024" />
|
|
20
|
+
|
|
21
|
+
<glyph glyph-name="sdoc-trumpet" unicode="" d="M153.6 480h204.8l19.2-416c3.2-67.2-48-124.8-115.2-128H256c-67.2 0-121.6 54.4-121.6 121.6V64l19.2 416zM172.8 668.8L544 704v-448L172.8 291.2C76.8 297.6 0 380.8 0 480s76.8 182.4 172.8 188.8zM912 832C864 832 611.2 726.4 544 704c-48-16-128-96-128-224s67.2-201.6 128-224c73.6-28.8 198.4-73.6 368-128V832zM816 480a336 96 90 1 1 192 0 336 96 90 1 1-192 0ZM912 128c-73.6 0-112 176-112 352s38.4 352 112 352S1024 656 1024 480s-38.4-352-112-352z m0 672c-32 0-80-124.8-80-320s48-320 80-320S992 284.8 992 480 944 800 912 800z" horiz-adv-x="1024" />
|
|
22
|
+
|
|
23
|
+
<glyph glyph-name="sdoc-light-bulb" unicode="" d="M160 553.6c0-124.8 70.4-233.6 172.8-294.4 19.2-9.6 19.2-28.8 19.2-48V128c3.2 0 19.2 3.2 22.4 3.2h275.2c3.2 0 19.2 0 22.4-3.2v83.2c0 22.4 0 41.6 19.2 51.2 137.6 76.8 201.6 233.6 160 384S672 896 512 896C316.8 896 160 742.4 160 553.6zM438.4 227.2c0 19.2-9.6 38.4-28.8 48-102.4 60.8-163.2 169.6-163.2 288C249.6 729.6 377.6 873.6 544 896c-128 0-198.4-16-272-80s-112-160-112-256c0-121.6 60.8-230.4 160-288 16-9.6 32-25.6 32-44.8V128c3.2 0 6.4 3.2 9.6 3.2h76.8v96zM566.4 131.2c-9.6 0-16 6.4-16 16v144c0 12.8 3.2 28.8 12.8 38.4l22.4 28.8c3.2 6.4 6.4 12.8 6.4 19.2v150.4c0 9.6 6.4 16 16 16s16-6.4 16-16v-150.4c0-16-6.4-28.8-12.8-38.4l-22.4-28.8c-3.2-6.4-6.4-12.8-6.4-19.2v-144c0-3.2-3.2-9.6-3.2-12.8-3.2 0-9.6-3.2-12.8-3.2m-83.2 0c-3.2 0-9.6 3.2-12.8 3.2-3.2 3.2-3.2 6.4-3.2 12.8v144c0 6.4-3.2 16-6.4 19.2l-22.4 28.8c-9.6 12.8-12.8 25.6-12.8 38.4v150.4c0 9.6 6.4 16 16 16s16-6.4 16-16v-150.4c0-6.4 3.2-16 6.4-19.2l22.4-28.8c9.6-12.8 12.8-25.6 12.8-38.4v-144c0-3.2-3.2-9.6-3.2-12.8-3.2 0-9.6-3.2-12.8-3.2M633.6 777.6c-6.4 3.2-16 16-9.6 22.4s16 9.6 25.6 3.2c67.2-32 118.4-96 137.6-166.4 3.2-9.6-3.2-16-12.8-19.2-9.6-3.2-16 3.2-19.2 12.8-16 64-60.8 115.2-121.6 147.2zM448-32v-16c0-44.8 19.2-80 80-80s80 35.2 80 80V-32h-160zM480-32h-64v-12.8c0-25.6 9.6-51.2 32-67.2s32-16 96-16c-48 16-64 54.4-64 83.2V-32zM624 496h-201.6c-6.4 0-9.6 3.2-12.8 6.4s-3.2 9.6 0 16 9.6 6.4 12.8 6.4h201.6c6.4 0 9.6-3.2 12.8-6.4 3.2-6.4 3.2-9.6 0-16s-6.4-6.4-12.8-6.4M416 32h192c19.2 0 32-12.8 32-32v-32c0-19.2-12.8-32-32-32h-192c-19.2 0-32 12.8-32 32v32c0 19.2 12.8 32 32 32zM406.4-22.4c-9.6 0-19.2 9.6-22.4 22.4v-32c0-19.2 12.8-32 32-32h192c19.2 0 32 12.8 32 32v32c-3.2-12.8-12.8-22.4-22.4-22.4h-211.2zM384 96h256c19.2 0 32-12.8 32-32v-32c0-19.2-12.8-32-32-32h-256c-19.2 0-32 12.8-32 32v32c0 19.2 12.8 32 32 32zM380.8 41.6c-12.8 0-25.6 9.6-28.8 22.4v-32c0-19.2 12.8-32 32-32h256c19.2 0 32 12.8 32 32v32c-3.2-12.8-16-22.4-28.8-22.4h-262.4zM384 160h256c19.2 0 32-12.8 32-32v-32c0-19.2-12.8-32-32-32h-256c-19.2 0-32 12.8-32 32v32c0 19.2 12.8 32 32 32zM380.8 105.6c-12.8 0-25.6 9.6-28.8 22.4v-32c0-19.2 12.8-32 32-32h256c19.2 0 32 12.8 32 32v32c-3.2-12.8-16-22.4-28.8-22.4h-262.4z" horiz-adv-x="1024" />
|
|
24
|
+
|
|
25
|
+
<glyph glyph-name="sdoc-danger" unicode="" d="M999.1888 99.2L621.5888 784c-57.6 105.6-156.8 105.6-214.4 0L26.3888 99.2C-34.4112-9.6 13.5888-96 131.9888-96h761.6c118.4 0 166.4 86.4 105.6 195.2zM515.9888 0c-35.2 0-64 28.8-64 64s28.8 64 64 64 64-28.8 64-64c3.2-35.2-25.6-64-64-64zM576.7888 192h-128V640h128z" horiz-adv-x="1025" />
|
|
26
|
+
|
|
27
|
+
<glyph glyph-name="sdoc-prohibit" unicode="" d="M876.8 25.6C969.6 118.4 1024 246.4 1024 384c0 281.6-230.4 512-512 512-137.6 0-265.6-54.4-358.4-147.2l-3.2-3.2-3.2-3.2C54.4 649.6 0 521.6 0 384c0-281.6 230.4-512 512-512 137.6 0 265.6 54.4 358.4 147.2l3.2 3.2 3.2 3.2zM896 384c0-83.2-25.6-160-73.6-224L288 697.6C352 742.4 428.8 768 512 768c211.2 0 384-172.8 384-384zM128 384c0 83.2 25.6 160 73.6 224L736 70.4c-64-44.8-140.8-73.6-224-73.6C300.8 0 128 172.8 128 384z" horiz-adv-x="1024" />
|
|
28
|
+
|
|
29
|
+
<glyph glyph-name="sdoc-filter" unicode="" d="M987.61568 480h-243.2c-22.4 0-38.4 22.4-38.4 48s19.2 48 38.4 48h243.2c22.4 0 38.4-22.4 38.4-48s-19.2-48-38.4-48z m-3.2-256h-265.6c-25.6 0-41.6 22.4-41.6 48s22.4 48 41.6 48h265.6c25.6 0 41.6-22.4 41.6-48s-22.4-48-41.6-48z m-9.6-288h-313.6c-28.8 0-51.2 22.4-51.2 48s25.6 48 51.2 48h313.6c28.8 0 51.2-22.4 51.2-48s-25.6-48-51.2-48zM546.01568 444.8V32l-176-112c-38.4-22.4-80-12.8-102.4 25.6-6.4 9.6-9.6 25.6-9.6 38.4V448L21.21568 697.6c-28.8 32-28.8 83.2 3.2 115.2 12.8 12.8 35.2 19.2 51.2 19.2h611.2c19.2 0 44.8-3.2 60.8-16 41.6-32 28.8-89.6 0-121.6L546.01568 444.8z m-192 3.2v-409.6l96 64v352c0 22.4 6.4 44.8 22.4 60.8L658.01568 736h-544l214.4-220.8c16-16 25.6-41.6 25.6-67.2z" horiz-adv-x="1026" />
|
|
30
|
+
|
|
31
|
+
<glyph glyph-name="sdoc-chart" unicode="" d="M96 800H0v-864h1024v96H96V800z m128-384v-320h160V416H224z m288 224v-544h160V640h-160z m288 192v-736h160V832h-160z" horiz-adv-x="1024" />
|
|
32
|
+
|
|
17
33
|
<glyph glyph-name="sdoc-comment-quote" unicode="" d="M48 896C73.6 896 96 873.6 96 848v-928c0-25.6-22.4-48-48-48S0-105.6 0-80v928C0 873.6 22.4 896 48 896z m224-665.6c51.2 16 96 48 124.8 92.8 32 41.6 48 118.4 48 163.2-9.6-6.4-22.4-6.4-44.8-6.4-38.4 0-70.4 12.8-99.2 41.6-25.6 28.8-41.6 64-41.6 108.8s16 80 44.8 108.8 70.4 41.6 108.8 41.6c51.2 0 89.6-22.4 124.8-64 32-41.6 48-96 48-160 0-102.4-28.8-220.8-83.2-294.4-54.4-76.8-131.2-128-227.2-153.6l-3.2 121.6z m438.4 6.4c51.2 16 89.6 48 124.8 92.8 35.2 41.6 51.2 118.4 48 163.2-9.6-6.4-22.4-6.4-44.8-6.4-38.4 0-73.6 12.8-99.2 41.6-28.8 28.8-41.6 64-41.6 108.8s16 80 41.6 108.8c32 25.6 70.4 38.4 112 38.4 51.2 0 89.6-22.4 121.6-64s48-96 48-160c0-102.4-28.8-220.8-83.2-294.4-54.4-76.8-131.2-128-227.2-153.6v124.8z" horiz-adv-x="1024" />
|
|
18
34
|
|
|
19
35
|
<glyph glyph-name="sdoc-find-replace" unicode="" d="M468.66016 896C260.66016 896 81.46016 761.6 20.66016 566.4s16-409.6 185.6-521.6 396.8-102.4 553.6 25.6l185.6-185.6c19.2-16 48-16 64 0 19.2 19.2 19.2 48 0 64l-185.6 185.6c115.2 140.8 137.6 332.8 60.8 492.8S647.86016 896 468.66016 896zM97.46016 432C97.46016 636.8 260.66016 800 465.46016 800S833.46016 636.8 833.46016 432 670.26016 64 465.46016 64 97.46016 227.2 97.46016 432z" horiz-adv-x="1025" />
|
|
@@ -24,8 +40,6 @@
|
|
|
24
40
|
|
|
25
41
|
<glyph glyph-name="sdoc-callout" unicode="" d="M992 352H32c-19.2 0-32 12.8-32 32V832c0 19.2 12.8 32 32 32h960c19.2 0 32-12.8 32-32v-448c0-19.2-12.8-32-32-32zM96 448h832V768H96v-320z m-96-224v-96h1024v96H0z m0-224v-96h576v96H0z" horiz-adv-x="1024" />
|
|
26
42
|
|
|
27
|
-
<glyph glyph-name="sdoc-chart" unicode="" d="M992-128H32c-19.2 0-32 12.8-32 32V864c0 19.2 12.8 32 32 32h960c19.2 0 32-12.8 32-32v-960c0-19.2-12.8-32-32-32zM96-32h832V800H96v-832z m0 464v-96h832v96H96zM560 800h-96v-832h96V800z" horiz-adv-x="1024" />
|
|
28
|
-
|
|
29
43
|
<glyph glyph-name="sdoc-add" unicode="" d="M512-128C227.2-128 0 99.2 0 384S227.2 896 512 896s512-227.2 512-512-227.2-512-512-512z m-51.2 563.2H291.2c-19.2 0-35.2-12.8-35.2-35.2v-35.2c0-19.2 12.8-35.2 35.2-35.2h169.6V160c0-19.2 12.8-35.2 35.2-35.2h35.2c19.2 0 35.2 12.8 35.2 35.2v169.6H736c19.2 0 35.2 12.8 35.2 35.2v35.2c0 19.2-12.8 35.2-35.2 35.2h-169.6V604.8c0 19.2-12.8 35.2-35.2 35.2h-35.2c-19.2 0-35.2-12.8-35.2-35.2v-169.6z" horiz-adv-x="1024" />
|
|
30
44
|
|
|
31
45
|
<glyph glyph-name="sdoc-tag" unicode="" d="M521.353986 860.33363l466.979644-466.979644c22.389435-22.389435 35.183398-51.175851 35.183398-83.160758s-12.793963-60.771324-35.183398-83.160759l-323.047562-319.849071c-22.389435-22.389435-51.175851-35.183398-79.962268-35.183398-31.984907 0-60.771324 12.793963-83.160758 35.183398L35.183398 374.163042c-25.587926 25.587926-38.381889 60.771324-31.984907 95.954721l31.984907 291.062655c6.396981 54.374342 47.977361 95.954721 102.351703 102.351703l291.062654 31.984907c31.984907 3.198491 67.168305-9.595472 92.756231-35.183398zM444.590209 767.577399L159.924536 735.592492l-31.984908-281.467182L578.926819-0.060372l316.65058 313.45209L444.590209 767.577399z m12.793963-127.939628c57.572833-57.572833 57.572833-147.130573 0-204.703406-25.587926-25.587926-63.969814-41.580379-102.351703-41.580379-38.381889 0-73.565286 12.793963-102.351703 41.580379-57.572833 57.572833-57.572833 147.130573 0 204.703406 57.572833 57.572833 150.329063 57.572833 204.703406 0z m-102.351703-70.366796c-6.396981 0-15.992454-3.198491-22.389435-9.595472-12.793963-12.793963-12.793963-31.984907 0-44.77887 12.793963-12.793963 31.984907-12.793963 44.77887 0 12.793963 12.793963 12.793963 31.984907 0 44.77887-6.396981 6.396981-12.793963 9.595472-22.389435 9.595472z" horiz-adv-x="1024" />
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "sdocfont"; /* Project id 4097705 */
|
|
3
|
-
src: url('./sdoc-editor-font/iconfont.eot?t=
|
|
4
|
-
src: url('./sdoc-editor-font/iconfont.eot?t=
|
|
5
|
-
url('./sdoc-editor-font/iconfont.woff2?t=
|
|
6
|
-
url('./sdoc-editor-font/iconfont.woff?t=
|
|
7
|
-
url('./sdoc-editor-font/iconfont.ttf?t=
|
|
8
|
-
url('./sdoc-editor-font/iconfont.svg?t=
|
|
3
|
+
src: url('./sdoc-editor-font/iconfont.eot?t=1705289986460'); /* IE9 */
|
|
4
|
+
src: url('./sdoc-editor-font/iconfont.eot?t=1705289986460#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
5
|
+
url('./sdoc-editor-font/iconfont.woff2?t=1705289986460') format('woff2'),
|
|
6
|
+
url('./sdoc-editor-font/iconfont.woff?t=1705289986460') format('woff'),
|
|
7
|
+
url('./sdoc-editor-font/iconfont.ttf?t=1705289986460') format('truetype'),
|
|
8
|
+
url('./sdoc-editor-font/iconfont.svg?t=1705289986460#sdocfont') format('svg');
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.sdocfont {
|
|
@@ -16,6 +16,38 @@
|
|
|
16
16
|
-moz-osx-font-smoothing: grayscale;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
.sdoc-callout-color:before {
|
|
20
|
+
content: "\e666";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sdoc-callout-icon:before {
|
|
24
|
+
content: "\e665";
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sdoc-trumpet:before {
|
|
28
|
+
content: "\e664";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sdoc-light-bulb:before {
|
|
32
|
+
content: "\e663";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.sdoc-danger:before {
|
|
36
|
+
content: "\e662";
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.sdoc-prohibit:before {
|
|
40
|
+
content: "\e661";
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sdoc-filter:before {
|
|
44
|
+
content: "\e65e";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sdoc-chart:before {
|
|
48
|
+
content: "\e65b";
|
|
49
|
+
}
|
|
50
|
+
|
|
19
51
|
.sdoc-comment-quote:before {
|
|
20
52
|
content: "\e660";
|
|
21
53
|
}
|
|
@@ -36,10 +68,6 @@
|
|
|
36
68
|
content: "\e65c";
|
|
37
69
|
}
|
|
38
70
|
|
|
39
|
-
.sdoc-chart:before {
|
|
40
|
-
content: "\e65b";
|
|
41
|
-
}
|
|
42
|
-
|
|
43
71
|
.sdoc-add:before {
|
|
44
72
|
content: "\e658";
|
|
45
73
|
}
|