@seafile/sdoc-editor 0.1.0 → 0.1.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/dist/{new-editors/editor.js → editor.js} +38 -17
- package/dist/index.js +2 -36
- package/dist/slate-extension/core/transforms/move-children.js +1 -1
- package/dist/slate-extension/plugins/blockquote/helpers.js +3 -3
- package/dist/slate-extension/plugins/index.js +3 -2
- package/dist/slate-extension/plugins/list/transforms/normalize-list-item.js +2 -2
- package/dist/slate-extension/plugins/list/transforms/toggle-list.js +6 -8
- package/dist/slate-extension/plugins/socket/index.js +6 -0
- package/dist/slate-extension/plugins/socket/plugin.js +23 -0
- package/dist/slate-extension/socket/socket-client.js +94 -0
- package/dist/slate-extension/socket/socket-manager.js +63 -0
- package/dist/slate-extension/toolbar/index.js +1 -1
- package/dist/utils/event-bus.js +39 -0
- package/package.json +5 -25
- package/dist/assets/css/comment-dialog.css +0 -50
- package/dist/assets/css/diff-viewer.css +0 -105
- package/dist/assets/css/formula.css +0 -19
- package/dist/assets/css/history-viewer.css +0 -104
- package/dist/assets/css/image.css +0 -134
- package/dist/assets/css/issue-card.css +0 -43
- package/dist/assets/css/keyboard-shortcuts.css +0 -58
- package/dist/assets/css/link.css +0 -7
- package/dist/assets/css/markdown-editor.css +0 -12
- package/dist/assets/css/markdown-viewer.css +0 -69
- package/dist/assets/css/navbar-imgbutton.css +0 -83
- package/dist/assets/css/outline.css +0 -29
- package/dist/assets/css/table.css +0 -57
- package/dist/assets/css/textlink-hovermenu.css +0 -47
- package/dist/assets/css/topbar.css +0 -350
- package/dist/assets/css/tree-view.css +0 -67
- package/dist/assets/css/user-help.css +0 -84
- package/dist/assets/editor/plain-editor.css +0 -30
- package/dist/assets/editor/seatable-editor.css +0 -77
- package/dist/assets/editor/simple-editor.css +0 -77
- package/dist/components/click-outside.js +0 -46
- package/dist/components/context-menu.js +0 -97
- package/dist/components/dialogs/add-formula-dialog.js +0 -116
- package/dist/components/dialogs/add-image-dialog.js +0 -69
- package/dist/components/dialogs/add-link-dialog.js +0 -133
- package/dist/components/dialogs/comment-dialog.js +0 -97
- package/dist/components/dialogs/shortcut-dialog.js +0 -131
- package/dist/components/error-boundary.js +0 -28
- package/dist/components/load-script/index.js +0 -69
- package/dist/components/loading.js +0 -25
- package/dist/components/markdown-lint.js +0 -72
- package/dist/components/menu/index.js +0 -4
- package/dist/components/menu/item.js +0 -49
- package/dist/components/menu/menu.js +0 -38
- package/dist/components/menu/style.css +0 -42
- package/dist/components/modal-portal.js +0 -38
- package/dist/components/outline/index.js +0 -92
- package/dist/components/outline/outline-item.js +0 -58
- package/dist/components/select/_option.js +0 -44
- package/dist/components/select/field-setting.js +0 -106
- package/dist/components/select/index.js +0 -149
- package/dist/components/select/style.css +0 -144
- package/dist/components/svg-icons/check-mark-icon.js +0 -14
- package/dist/components/svg-icons/column-icon.js +0 -17
- package/dist/components/svg-icons/text-icon.js +0 -34
- package/dist/components/text-link-hover-menu/index.js +0 -123
- package/dist/components/toast/alert.js +0 -138
- package/dist/components/toast/index.js +0 -3
- package/dist/components/toast/toast.js +0 -159
- package/dist/components/toast/toastManager.js +0 -139
- package/dist/components/toast/toaster.js +0 -65
- package/dist/components/toolbar/header-list.js +0 -114
- package/dist/components/toolbar/help-group.js +0 -33
- package/dist/components/toolbar/index.js +0 -4
- package/dist/components/toolbar/insert-image.js +0 -106
- package/dist/components/toolbar/insert-table.js +0 -136
- package/dist/components/toolbar/table-group.js +0 -74
- package/dist/components/toolbar/toolbar.js +0 -317
- package/dist/components/toolbar/widgets/button-group.js +0 -24
- package/dist/components/toolbar/widgets/button-item.js +0 -129
- package/dist/components/toolbar/widgets/drop-list.js +0 -88
- package/dist/components/user-help/index.js +0 -179
- package/dist/config-0.js +0 -15
- package/dist/config.js +0 -16
- package/dist/constants/cell-types.js +0 -29
- package/dist/constants/column.js +0 -4
- package/dist/containers/code-highlight-package.js +0 -14
- package/dist/containers/controller/block-element-controller.js +0 -375
- package/dist/containers/controller/index.js +0 -5
- package/dist/containers/controller/inline-element-controller.js +0 -134
- package/dist/containers/controller/normalize-controller.js +0 -95
- package/dist/containers/controller/shortcut-controller.js +0 -385
- package/dist/containers/controller/void-element-controller.js +0 -9
- package/dist/containers/custom/custom.js +0 -18
- package/dist/containers/custom/get-event-transfer.js +0 -33
- package/dist/containers/custom/getNodesByTypeAtRange.js +0 -57
- package/dist/containers/custom/insertNodes.js +0 -120
- package/dist/containers/custom/is-empty-paragraph.js +0 -9
- package/dist/containers/custom/set-event-transfer.js +0 -30
- package/dist/containers/custom/split-nodes-at-point.js +0 -136
- package/dist/containers/custom/unwrap-node-by-type-at-range.js +0 -70
- package/dist/containers/editor-context.js +0 -85
- package/dist/containers/editor-utils/block-element-utils/blockquote-utils.js +0 -80
- package/dist/containers/editor-utils/block-element-utils/code-utils.js +0 -145
- package/dist/containers/editor-utils/block-element-utils/formula-utils.js +0 -51
- package/dist/containers/editor-utils/block-element-utils/index.js +0 -31
- package/dist/containers/editor-utils/block-element-utils/list-utils.js +0 -395
- package/dist/containers/editor-utils/block-element-utils/table-utils.js +0 -412
- package/dist/containers/editor-utils/clear-format-utils.js +0 -84
- package/dist/containers/editor-utils/common-editor-utils.js +0 -492
- package/dist/containers/editor-utils/inline-element-utils/index.js +0 -95
- package/dist/containers/editor-utils/mark-utils.js +0 -20
- package/dist/containers/editor-utils/range-utils.js +0 -7
- package/dist/containers/editor-utils/selection-utils.js +0 -30
- package/dist/containers/editor-utils/text-utils.js +0 -117
- package/dist/containers/editor-widgets/check-list-item.js +0 -53
- package/dist/containers/editor-widgets/code-block.js +0 -128
- package/dist/containers/editor-widgets/column.js +0 -100
- package/dist/containers/editor-widgets/formula.js +0 -67
- package/dist/containers/editor-widgets/image.js +0 -237
- package/dist/containers/editor-widgets/link.js +0 -9
- package/dist/containers/editor-widgets/table.js +0 -144
- package/dist/containers/element-model/blockquote.js +0 -13
- package/dist/containers/element-model/column.js +0 -19
- package/dist/containers/element-model/image.js +0 -16
- package/dist/containers/element-model/link.js +0 -16
- package/dist/containers/element-model/table.js +0 -57
- package/dist/containers/element-model/text.js +0 -10
- package/dist/containers/render-utils/common-utils.js +0 -80
- package/dist/containers/render-utils/editor-utils.js +0 -133
- package/dist/containers/render-utils/viewer-utils.js +0 -198
- package/dist/containers/viewer-widgets/viewer-formula/index.js +0 -54
- package/dist/containers/viewer-widgets/viewer-image/index.js +0 -70
- package/dist/containers/viewer-widgets/viewer-image/viewer-image.css +0 -3
- package/dist/editors/index.js +0 -78
- package/dist/editors/markdown-editor.js +0 -280
- package/dist/editors/plain-markdown-editor.js +0 -285
- package/dist/editors/seatable-editor.js +0 -210
- package/dist/editors/simple-editor.js +0 -200
- package/dist/utils/deserialize-html.js +0 -260
- package/dist/utils/diff/compare-strings.js +0 -35
- package/dist/utils/diff/diff.js +0 -769
- package/dist/utils/diff/index.js +0 -2
- package/dist/utils/seafile-markdown2html.js +0 -52
- package/dist/utils/slate2markdown/deserialize.js +0 -588
- package/dist/utils/slate2markdown/index.js +0 -3
- package/dist/utils/slate2markdown/serialize.js +0 -366
- package/dist/utils/utils.js +0 -69
- package/dist/viewer/diff-viewer.js +0 -85
- package/dist/viewer/index.js +0 -4
- package/dist/viewer/markdown-viewer.js +0 -121
- package/dist/viewer/seatable-viewer.js +0 -63
- package/dist/viewer/slate-viewer.js +0 -71
- /package/dist/assets/css/{new-editor-toolbar.css → sdoc-editor-toolbar.css} +0 -0
- /package/dist/assets/css/{new-editor.css → sdoc-editor.css} +0 -0
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
.seafile-history-side-panel {
|
|
2
|
-
user-select: none;
|
|
3
|
-
border-left: 1px solid #e5e5e5;
|
|
4
|
-
background-color: #fff;
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
flex: 0 0 auto;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.history-side-panel-title {
|
|
11
|
-
height: 50px;
|
|
12
|
-
border-bottom: 1px solid #e5e5e5;
|
|
13
|
-
line-height: 50px;
|
|
14
|
-
font-size: 1rem;
|
|
15
|
-
padding: 0 10px;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
background-color: rgb(250,250,249);
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: row;
|
|
20
|
-
justify-content: space-between;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.history-side-panel-title .history-tile-text {
|
|
24
|
-
font-weight: bolder;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
.history-side-panel-title .history-title-close {
|
|
29
|
-
color: #b9b9b9;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.history-side-panel-title .history-title-close:hover {
|
|
33
|
-
color: #888;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.history-list-container {
|
|
38
|
-
height: calc(100% - 36px);
|
|
39
|
-
overflow-y: hidden;
|
|
40
|
-
}
|
|
41
|
-
.history-list-container:hover {
|
|
42
|
-
overflow-y: auto;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.item-active {
|
|
46
|
-
background-color: #fdc297;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.history-item-container {
|
|
50
|
-
padding: 0.5rem .8rem;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.history-item-container:not(.item-active):hover {
|
|
54
|
-
background-color: #ffe7d5;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.history-item-container div {
|
|
58
|
-
width: 100%;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.history-item-container .owner {
|
|
62
|
-
margin-top: 0.2rem;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.history-item-container .owner i {
|
|
66
|
-
color: #549b5a;
|
|
67
|
-
font-size: 0.2rem;
|
|
68
|
-
margin-right: 0.2rem;
|
|
69
|
-
vertical-align: middle;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.history-item-container .owner span {
|
|
73
|
-
vertical-align: middle;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.diff-container {
|
|
77
|
-
flex: 1 1 auto;
|
|
78
|
-
overflow: auto;
|
|
79
|
-
box-sizing: border-box;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.diff-wrapper {
|
|
83
|
-
width: 90%;
|
|
84
|
-
border: 1px solid #e5e5e5;
|
|
85
|
-
margin: 20px auto;
|
|
86
|
-
background-color: #fff;
|
|
87
|
-
min-height: calc(100% - 40px);
|
|
88
|
-
padding: 70px 75px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@media (max-width:991.8px) {
|
|
92
|
-
.diff-container {
|
|
93
|
-
width: 100%;
|
|
94
|
-
box-sizing: border-box;
|
|
95
|
-
}
|
|
96
|
-
.diff-wrapper {
|
|
97
|
-
padding: 20px;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
@media (min-width:992px) {
|
|
101
|
-
.seafile-history-side-panel {
|
|
102
|
-
width: 260px;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
.seafile-ed-image {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: inline-block;
|
|
4
|
-
max-width: 100%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.seafile-ed-image .seafile-ed-image-inResizing {
|
|
8
|
-
box-shadow: 0 0 0 2px #007bff;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.seafile-ed-image .image-resizer {
|
|
12
|
-
width: 10px;
|
|
13
|
-
height: 10px;
|
|
14
|
-
position: absolute;
|
|
15
|
-
right: -5px;
|
|
16
|
-
bottom: -5px;
|
|
17
|
-
transform: ();
|
|
18
|
-
background-color: #007bff;
|
|
19
|
-
border: 1px solid #fff;
|
|
20
|
-
cursor: se-resize;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.image-size {
|
|
24
|
-
display: inline-block;
|
|
25
|
-
padding: 5px;
|
|
26
|
-
height: 22px;
|
|
27
|
-
position: absolute;
|
|
28
|
-
bottom: -25px;
|
|
29
|
-
left: 100%;
|
|
30
|
-
transform: translateX(5px);
|
|
31
|
-
border-radius: 3px;
|
|
32
|
-
line-height: 12px;
|
|
33
|
-
color: #fff;
|
|
34
|
-
background-color: #4c4c4c;
|
|
35
|
-
font-size: 12px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.seafile-ed-image .image-full-button {
|
|
39
|
-
position: absolute;
|
|
40
|
-
height: 26px;
|
|
41
|
-
display: inline-block;
|
|
42
|
-
width: 26px;
|
|
43
|
-
top: 0;
|
|
44
|
-
right: -32px;
|
|
45
|
-
text-align: center;
|
|
46
|
-
line-height: 20px;
|
|
47
|
-
padding: 2px;
|
|
48
|
-
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);
|
|
49
|
-
border-radius: 3px;
|
|
50
|
-
border: 1px solid rgba(0, 40, 100, 0.12);
|
|
51
|
-
background-color: #fff;
|
|
52
|
-
user-select: none!important;
|
|
53
|
-
z-index: 1000;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.seafile-ed-image-viwer:hover .image-full-button {
|
|
57
|
-
display: inline-block;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.seafile-ed-image-viwer .image-full-button {
|
|
61
|
-
position: absolute;
|
|
62
|
-
top: 5px;
|
|
63
|
-
right: 5px;
|
|
64
|
-
display: none;
|
|
65
|
-
background-color: #efefef;
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.image-full-button:hover{
|
|
70
|
-
display: block;
|
|
71
|
-
background-color: #efefef;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.image-tooltip {
|
|
75
|
-
display: none;
|
|
76
|
-
position: absolute;
|
|
77
|
-
box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2);
|
|
78
|
-
left: 50%;
|
|
79
|
-
bottom: -10px;
|
|
80
|
-
transform: translate(-50%, 100%);
|
|
81
|
-
background: #fff;
|
|
82
|
-
padding: 2px;
|
|
83
|
-
border-radius: 2px;
|
|
84
|
-
white-space:nowrap;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.image-tooltip::before{
|
|
88
|
-
position: absolute;
|
|
89
|
-
content: '';
|
|
90
|
-
top: -5px;
|
|
91
|
-
left: 50%;
|
|
92
|
-
margin-left: -5px;
|
|
93
|
-
transform: rotate(45deg);
|
|
94
|
-
border-width: 5px;
|
|
95
|
-
border-style: solid;
|
|
96
|
-
box-shadow: -2px -2px 3px rgba(0, 0, 0, 0.1);
|
|
97
|
-
border-color:#fff transparent transparent #fff;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.image-full-button:hover .image-tooltip {
|
|
101
|
-
display: inline;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/* set button font style in image previewer */
|
|
105
|
-
.sf-editor-image-previewer button.dtable-icon-fork-number,
|
|
106
|
-
.sf-editor-image-previewer .dtable-icon-right,
|
|
107
|
-
.sf-editor-image-previewer .dtable-icon-left {
|
|
108
|
-
font-family: "iconfont" !important;
|
|
109
|
-
font-style: normal;
|
|
110
|
-
-webkit-font-smoothing: antialiased;
|
|
111
|
-
-moz-osx-font-smoothing: grayscale;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.sf-editor-image-previewer button.dtable-icon-fork-number {
|
|
115
|
-
font-size: 16px;
|
|
116
|
-
line-height: normal;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.sf-editor-image-previewer .dtable-icon-left:before {
|
|
120
|
-
content: "\e756";
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.sf-editor-image-previewer .dtable-icon-right:before {
|
|
124
|
-
content: "\e755";
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.sf-editor-image-previewer .dtable-icon-fork-number:before {
|
|
128
|
-
content: "\e6ce";
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.sf-editor-image-previewer.ril__outer .ril__navButtonPrev.dtable-font,
|
|
132
|
-
.sf-editor-image-previewer.ril__outer .ril__navButtonNext.dtable-font {
|
|
133
|
-
padding: 40px 30px 80px;
|
|
134
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
.issue-container {
|
|
2
|
-
width: 100%;
|
|
3
|
-
padding: 0 10px 10px 10px;
|
|
4
|
-
margin-top: -10px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.issue-card {
|
|
8
|
-
background-color: #fff;
|
|
9
|
-
border: 1px solid rgba(0, 40, 100, 0.12);
|
|
10
|
-
border-radius: 5px;
|
|
11
|
-
padding-left: 5px;
|
|
12
|
-
margin-top: 10px;
|
|
13
|
-
position: relative;
|
|
14
|
-
word-break: break-word;
|
|
15
|
-
box-shadow: 0 5px 5px -2px rgba(200,200,200, 0.5);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.issue-card:before {
|
|
19
|
-
position: absolute;
|
|
20
|
-
left: 0;
|
|
21
|
-
top: 0;
|
|
22
|
-
bottom: 0;
|
|
23
|
-
width: 3px;
|
|
24
|
-
content: '';
|
|
25
|
-
background-color: rgb(217, 130, 43);
|
|
26
|
-
border-radius: 3px 0 0 3px;
|
|
27
|
-
}
|
|
28
|
-
.issue-card-title {
|
|
29
|
-
font-size: 16px;
|
|
30
|
-
padding: 5px 10px 3px 10px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.issue-card-description {
|
|
34
|
-
padding: 0 10px 5px 10px;
|
|
35
|
-
color: #aaa;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.size-panel-no-content {
|
|
39
|
-
width: 100%;
|
|
40
|
-
text-align: center;
|
|
41
|
-
color: #9a9a9a;
|
|
42
|
-
padding-top: 10px;
|
|
43
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
.keyboard-shortcut-dialog {
|
|
2
|
-
max-width: 500px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.keyboard-shortcut-dialog .modal-body {
|
|
6
|
-
max-height: 390px;
|
|
7
|
-
overflow: auto;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.keyboard-shortcut-container {
|
|
11
|
-
line-height: 1.5;
|
|
12
|
-
border-radius: 3px;
|
|
13
|
-
padding-top: .5rem;
|
|
14
|
-
padding-bottom: .5rem;
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
margin-top: 3px;
|
|
19
|
-
background-color: rgb(248, 248, 248);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.keyboard-shortcut-title {
|
|
23
|
-
font-size: 0.9rem;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.keyboard-shortcut-container>div:first-child {
|
|
27
|
-
text-align: right;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.keyboard-shortcut-container>div:last-child {
|
|
31
|
-
padding-left: 1rem;
|
|
32
|
-
padding-right: 1rem;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.keyboard-shortcut {
|
|
36
|
-
display: inline-block;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.keyboard-shortcut kbd {
|
|
40
|
-
font: inherit;
|
|
41
|
-
background-color: hsla(0,0%,100%,0.25);
|
|
42
|
-
border-color: rgba(0,0,0,0.1);
|
|
43
|
-
text-transform: uppercase;
|
|
44
|
-
text-align: center;
|
|
45
|
-
border-radius: 3px;
|
|
46
|
-
color: #333333;
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
border-style: solid;
|
|
49
|
-
border-width: 1px;
|
|
50
|
-
display: inline-block;
|
|
51
|
-
border-bottom-width: 2px;
|
|
52
|
-
font-size: 12px;
|
|
53
|
-
margin-left: 1px;
|
|
54
|
-
margin-right: 1px;
|
|
55
|
-
margin-bottom: 0px;
|
|
56
|
-
min-width: 12px;
|
|
57
|
-
padding: 1px 3px;
|
|
58
|
-
}
|
package/dist/assets/css/link.css
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
#root {
|
|
2
|
-
height: 100%;
|
|
3
|
-
}
|
|
4
|
-
.seafile-md-viewer-content .article {
|
|
5
|
-
padding: 0;
|
|
6
|
-
}
|
|
7
|
-
.seafile-md-viewer-content {
|
|
8
|
-
background: #fff;
|
|
9
|
-
padding: 70px 75px;
|
|
10
|
-
border:1px solid #e6e6dd;
|
|
11
|
-
min-height: calc(100% - 60px);
|
|
12
|
-
}
|
|
13
|
-
.seafile-md-viewer-outline-heading2,
|
|
14
|
-
.seafile-md-viewer-outline-heading3 {
|
|
15
|
-
margin-left: .75rem;
|
|
16
|
-
line-height: 2.5;
|
|
17
|
-
color:#666;
|
|
18
|
-
white-space: nowrap;
|
|
19
|
-
overflow:hidden;
|
|
20
|
-
text-overflow:ellipsis;
|
|
21
|
-
cursor:pointer;
|
|
22
|
-
}
|
|
23
|
-
.seafile-md-viewer-outline-heading3 {
|
|
24
|
-
margin-left: 2rem;
|
|
25
|
-
}
|
|
26
|
-
.seafile-md-viewer-outline-heading2:hover,
|
|
27
|
-
.seafile-md-viewer-outline-heading3:hover {
|
|
28
|
-
color: #eb8205;
|
|
29
|
-
}
|
|
30
|
-
.seafile-markdown-outline {
|
|
31
|
-
position: fixed;
|
|
32
|
-
padding-right: 1rem;
|
|
33
|
-
top: 97px;
|
|
34
|
-
right: 0;
|
|
35
|
-
width: 200px;
|
|
36
|
-
overflow: auto;
|
|
37
|
-
height: 80%;
|
|
38
|
-
}
|
|
39
|
-
.seafile-editor-outline {
|
|
40
|
-
border-left: 1px solid #ddd;
|
|
41
|
-
}
|
|
42
|
-
.seafile-markdown-outline .active {
|
|
43
|
-
color: #eb8205;
|
|
44
|
-
border-left: 1px solid #eb8205;
|
|
45
|
-
}
|
|
46
|
-
.seafile-markdown-outline .outline-h2, .seafile-markdown-outline .outline-h3 {
|
|
47
|
-
height: 30px;
|
|
48
|
-
margin-left: 0;
|
|
49
|
-
white-space: nowrap;
|
|
50
|
-
overflow: hidden;
|
|
51
|
-
text-overflow: ellipsis;
|
|
52
|
-
font-size: 14px;
|
|
53
|
-
}
|
|
54
|
-
.seafile-markdown-outline .outline-h2 {
|
|
55
|
-
padding-left: 20px;
|
|
56
|
-
}
|
|
57
|
-
.seafile-markdown-outline .outline-h3 {
|
|
58
|
-
padding-left: 40px;
|
|
59
|
-
}
|
|
60
|
-
@media (max-width:991.8px) {
|
|
61
|
-
.seafile-md-viewer-content {
|
|
62
|
-
padding: 40px;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
@media (max-width:768px) {
|
|
66
|
-
.seafile-md-viewer-content {
|
|
67
|
-
padding: 20px;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
.upload-localimg .btn {
|
|
2
|
-
margin-left: -1px;
|
|
3
|
-
border: none;
|
|
4
|
-
line-height: 20px;
|
|
5
|
-
margin-right: 5px;
|
|
6
|
-
padding: 0;
|
|
7
|
-
color: #555;
|
|
8
|
-
min-width: 30px;
|
|
9
|
-
height: 30px;
|
|
10
|
-
width: 30px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.upload-localimg-disabled .btn {
|
|
14
|
-
cursor: default;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.upload-localimg-hover .btn:hover {
|
|
18
|
-
background-color: #e5e5e5;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.upload-localimg-disable .btn {
|
|
22
|
-
color: #999999;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.editor-btn-group .image-uploader {
|
|
26
|
-
display: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.editor-btn-group .image-uploader-label {
|
|
30
|
-
margin-bottom: 0;
|
|
31
|
-
width: 100%;
|
|
32
|
-
padding: 0.25rem 1.5rem;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.editor-btn-group .image-uploader-btn {
|
|
36
|
-
padding: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.editor-btn-group .editor-clear-format {
|
|
40
|
-
margin-right: 5px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.insert-file {
|
|
44
|
-
position: relative;
|
|
45
|
-
display: inline-block;
|
|
46
|
-
overflow: hidden;
|
|
47
|
-
display: flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
margin-right: 10px;
|
|
51
|
-
}
|
|
52
|
-
.insert-file input {
|
|
53
|
-
position: absolute;
|
|
54
|
-
right: -7px;
|
|
55
|
-
top: -7px;
|
|
56
|
-
opacity: 0;
|
|
57
|
-
filter: alpha(opacity=0);
|
|
58
|
-
width: 40px;
|
|
59
|
-
height: 40px;
|
|
60
|
-
}
|
|
61
|
-
.insert-file:hover {
|
|
62
|
-
background-color: #e5e5e5;
|
|
63
|
-
}
|
|
64
|
-
.insert-file-disabled:hover {
|
|
65
|
-
background-color: #fff;
|
|
66
|
-
}
|
|
67
|
-
.insert-file-disabled input {
|
|
68
|
-
color: #999;
|
|
69
|
-
}
|
|
70
|
-
.button-container .toggle-side-panle-icon {
|
|
71
|
-
position: absolute;
|
|
72
|
-
}
|
|
73
|
-
.rich-menu .side-panel-btn {
|
|
74
|
-
display: none;
|
|
75
|
-
}
|
|
76
|
-
@media (max-width: 991.8px) {
|
|
77
|
-
.button-container .toggle-side-panle-icon {
|
|
78
|
-
display: none;
|
|
79
|
-
}
|
|
80
|
-
.rich-menu .side-panel-btn {
|
|
81
|
-
display: block;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
.seafile-editor-outline .outline-h2, .outline-h3 {
|
|
2
|
-
white-space: nowrap;
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
text-overflow: ellipsis;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.seafile-editor-outline .outline-h2 {
|
|
8
|
-
margin-left: 20px;
|
|
9
|
-
line-height: 2.5;
|
|
10
|
-
color:#364149;
|
|
11
|
-
white-space: nowrap;
|
|
12
|
-
cursor:pointer;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.seafile-editor-outline .outline-h2:hover {
|
|
16
|
-
color: #eb8205;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.seafile-editor-outline .outline-h3 {
|
|
20
|
-
margin-left: 40px;
|
|
21
|
-
line-height: 2.5;
|
|
22
|
-
color:#364149;
|
|
23
|
-
white-space: nowrap;
|
|
24
|
-
cursor:pointer;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.seafile-editor-outline .outline-h3:hover {
|
|
28
|
-
color: #eb8205;
|
|
29
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.article td {
|
|
3
|
-
position: relative;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.article .selected-cell {
|
|
7
|
-
caret-color: transparent;
|
|
8
|
-
background-color: #fff4e6;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.article .selected-cell-top:before {
|
|
12
|
-
content: "";
|
|
13
|
-
position: absolute;
|
|
14
|
-
top: 0;
|
|
15
|
-
left: 0;
|
|
16
|
-
bottom: 0;
|
|
17
|
-
right: 0;
|
|
18
|
-
margin: -1px;
|
|
19
|
-
border-top: 1px double #ffa94d;
|
|
20
|
-
z-index: 2;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.article .selected-cell-bottom:before {
|
|
24
|
-
content: "";
|
|
25
|
-
position: absolute;
|
|
26
|
-
left: 0;
|
|
27
|
-
right: 0;
|
|
28
|
-
top: 0;
|
|
29
|
-
bottom: 0;
|
|
30
|
-
margin: -1px;
|
|
31
|
-
border-bottom: 1px double #ffa94d;
|
|
32
|
-
z-index: 2;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.article .selected-cell-left:before {
|
|
36
|
-
content: "";
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: 0;
|
|
39
|
-
left: 0;
|
|
40
|
-
bottom: 0;
|
|
41
|
-
right: 0;
|
|
42
|
-
margin: -1px;
|
|
43
|
-
border-left: 1px double #ffa94d;
|
|
44
|
-
z-index: 2;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.article .selected-cell-right:before {
|
|
48
|
-
content: "";
|
|
49
|
-
position: absolute;
|
|
50
|
-
top: 0;
|
|
51
|
-
right: 0;
|
|
52
|
-
left: 0;
|
|
53
|
-
bottom: 0;
|
|
54
|
-
margin: -1px;
|
|
55
|
-
border-right: 1px double #ffa94d;
|
|
56
|
-
z-index: 2;
|
|
57
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
.seafile-ed-hovermenu {
|
|
2
|
-
width: 250px;
|
|
3
|
-
height: 40px;
|
|
4
|
-
display: flex;
|
|
5
|
-
position: absolute;
|
|
6
|
-
background-color: #fff;
|
|
7
|
-
border: 1px solid rgba(0, 40, 100, 0.12);
|
|
8
|
-
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
9
|
-
top: -3000px;
|
|
10
|
-
right: -3000px;
|
|
11
|
-
z-index: 1000;
|
|
12
|
-
}
|
|
13
|
-
.seafile-ed-hovermenu .seafile-ed-hovermenu-triangle {
|
|
14
|
-
width: 8px;
|
|
15
|
-
height: 8px;
|
|
16
|
-
transform: rotate(45deg);
|
|
17
|
-
background: #fff;
|
|
18
|
-
border-right: 1px solid rgba(0, 40, 100, 0.12);
|
|
19
|
-
border-bottom: 1px solid rgba(0, 40, 100, 0.12);
|
|
20
|
-
position: absolute;
|
|
21
|
-
top: 34px;
|
|
22
|
-
right: 50%;
|
|
23
|
-
z-index: 1001;
|
|
24
|
-
}
|
|
25
|
-
.seafile-ed-hovermenu .seafile-ed-hovermenu-link {
|
|
26
|
-
height: 38px;
|
|
27
|
-
max-width: 170px;
|
|
28
|
-
padding: 6px 12px;
|
|
29
|
-
display: inline-block;
|
|
30
|
-
line-height: 28px;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
}
|
|
33
|
-
.seafile-ed-hovermenu .seafile-ed-hovermenu-btn {
|
|
34
|
-
background-color: #fff;
|
|
35
|
-
width: 35px;
|
|
36
|
-
font-weight: normal;
|
|
37
|
-
color: #999999;
|
|
38
|
-
line-height: 26px;
|
|
39
|
-
font-size: 16px;
|
|
40
|
-
}
|
|
41
|
-
.seafile-ed-hovermenu .seafile-ed-hovermenu-btn, .seafile-ed-hovermenu .seafile-ed-hovermenu-btn:focus {
|
|
42
|
-
border: 0;
|
|
43
|
-
box-shadow: 0;
|
|
44
|
-
}
|
|
45
|
-
.seafile-ed-hovermenu-mouseclick {
|
|
46
|
-
background-color: #ddd;
|
|
47
|
-
}
|