@seafile/seafile-editor 0.3.76

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.
Files changed (156) hide show
  1. package/README.md +119 -0
  2. package/TODO.md +55 -0
  3. package/dist/components/add-formula-dialog.js +135 -0
  4. package/dist/components/add-image-dialog.js +78 -0
  5. package/dist/components/add-link-dialog.js +148 -0
  6. package/dist/components/comment-dialog.js +107 -0
  7. package/dist/components/comment-panel.js +452 -0
  8. package/dist/components/context-menu.js +112 -0
  9. package/dist/components/detail-list-view.js +119 -0
  10. package/dist/components/generate-share-link.js +412 -0
  11. package/dist/components/internal-link-dialog.js +96 -0
  12. package/dist/components/loading.js +32 -0
  13. package/dist/components/markdown-lint.js +87 -0
  14. package/dist/components/modal-portal.js +46 -0
  15. package/dist/components/outline.js +130 -0
  16. package/dist/components/participants-list.js +126 -0
  17. package/dist/components/related-files-list.js +75 -0
  18. package/dist/components/shortcut-dialog.js +167 -0
  19. package/dist/components/side-panel.js +175 -0
  20. package/dist/components/toast/alert.js +150 -0
  21. package/dist/components/toast/index.js +3 -0
  22. package/dist/components/toast/toast.js +179 -0
  23. package/dist/components/toast/toastManager.js +158 -0
  24. package/dist/components/toast/toaster.js +76 -0
  25. package/dist/components/toolbar.js +235 -0
  26. package/dist/components/topbar-component/button-group.js +31 -0
  27. package/dist/components/topbar-component/editor-toolbar.js +545 -0
  28. package/dist/components/topbar-component/file-info.js +65 -0
  29. package/dist/components/topbar-component/header-list.js +128 -0
  30. package/dist/components/topbar-component/icon-button.js +99 -0
  31. package/dist/components/topbar-component/insert-file.js +67 -0
  32. package/dist/components/topbar-component/table-toolbar.js +175 -0
  33. package/dist/components/topbar-component/upload-img.js +122 -0
  34. package/dist/components/user-help.js +205 -0
  35. package/dist/css/diff-viewer.css +105 -0
  36. package/dist/css/history-viewer.css +104 -0
  37. package/dist/css/keyboard-shortcuts.css +59 -0
  38. package/dist/css/layout.css +110 -0
  39. package/dist/css/markdown-viewer-slate/file-tags-list.css +76 -0
  40. package/dist/css/markdown-viewer.css +69 -0
  41. package/dist/css/plaineditor/markdown-editor.css +12 -0
  42. package/dist/css/react-mentions-default-style.js +72 -0
  43. package/dist/css/related-files-list.css +56 -0
  44. package/dist/css/richeditor/comments-list.css +184 -0
  45. package/dist/css/richeditor/detail-list-view.css +114 -0
  46. package/dist/css/richeditor/document-info.css +57 -0
  47. package/dist/css/richeditor/formula.css +19 -0
  48. package/dist/css/richeditor/image.css +141 -0
  49. package/dist/css/richeditor/link.css +7 -0
  50. package/dist/css/richeditor/navbar-imgbutton.css +79 -0
  51. package/dist/css/richeditor/participants-list.css +22 -0
  52. package/dist/css/richeditor/rich-editor-main.css +42 -0
  53. package/dist/css/richeditor/right-panel.css +84 -0
  54. package/dist/css/richeditor/side-panel.css +190 -0
  55. package/dist/css/richeditor/table.css +57 -0
  56. package/dist/css/richeditor/textlink-hovermenu.css +47 -0
  57. package/dist/css/richeditor/tree-view.css +67 -0
  58. package/dist/css/topbar.css +400 -0
  59. package/dist/editor/code-highlight-package.js +27 -0
  60. package/dist/editor/controller/block-element-controller.js +376 -0
  61. package/dist/editor/controller/inline-element-controller.js +129 -0
  62. package/dist/editor/controller/normalize-controller.js +107 -0
  63. package/dist/editor/controller/shortcut-controller.js +394 -0
  64. package/dist/editor/controller/void-element-controller.js +12 -0
  65. package/dist/editor/custom/custom.js +17 -0
  66. package/dist/editor/custom/get-event-transfer.js +34 -0
  67. package/dist/editor/custom/getNodesByTypeAtRange.js +69 -0
  68. package/dist/editor/custom/insertNodes.js +140 -0
  69. package/dist/editor/custom/is-empty-paragraph.js +13 -0
  70. package/dist/editor/custom/set-event-transfer.js +31 -0
  71. package/dist/editor/custom/split-nodes-at-point.js +162 -0
  72. package/dist/editor/custom/unwrap-node-by-type-at-range.js +81 -0
  73. package/dist/editor/editor-component/check-list-item.js +64 -0
  74. package/dist/editor/editor-component/code-block.js +150 -0
  75. package/dist/editor/editor-component/formula.js +79 -0
  76. package/dist/editor/editor-component/image.js +215 -0
  77. package/dist/editor/editor-component/link.js +11 -0
  78. package/dist/editor/editor-component/table.js +172 -0
  79. package/dist/editor/editor-component/textlink-hovermenu.js +136 -0
  80. package/dist/editor/editor-plugin.js +249 -0
  81. package/dist/editor/editor-utils/block-element-utils/blockquote-utils.js +96 -0
  82. package/dist/editor/editor-utils/block-element-utils/code-utils.js +162 -0
  83. package/dist/editor/editor-utils/block-element-utils/formula-utils.js +58 -0
  84. package/dist/editor/editor-utils/block-element-utils/index.js +38 -0
  85. package/dist/editor/editor-utils/block-element-utils/list-utils.js +398 -0
  86. package/dist/editor/editor-utils/block-element-utils/table-utils.js +418 -0
  87. package/dist/editor/editor-utils/common-editor-utils.js +587 -0
  88. package/dist/editor/editor-utils/inline-element-utils/index.js +95 -0
  89. package/dist/editor/editor-utils/mark-utils.js +25 -0
  90. package/dist/editor/editor-utils/range-utils.js +9 -0
  91. package/dist/editor/editor-utils/selection-utils.js +33 -0
  92. package/dist/editor/editor-utils/text-utils.js +130 -0
  93. package/dist/editor/editor.js +66 -0
  94. package/dist/editor/element-model/blockquote.js +16 -0
  95. package/dist/editor/element-model/image.js +19 -0
  96. package/dist/editor/element-model/link.js +19 -0
  97. package/dist/editor/element-model/table.js +50 -0
  98. package/dist/editor/element-model/text.js +13 -0
  99. package/dist/editor/load-script.js +83 -0
  100. package/dist/editor/plain-markdown-editor.js +324 -0
  101. package/dist/editor/rich-markdown-editor.js +580 -0
  102. package/dist/editor/seafile-editor.js +326 -0
  103. package/dist/editor/simple-editor.js +245 -0
  104. package/dist/editor-api.js +261 -0
  105. package/dist/index.css +97 -0
  106. package/dist/lib/slate-hyperscript/creators.js +263 -0
  107. package/dist/lib/slate-hyperscript/hyperscript.js +92 -0
  108. package/dist/lib/slate-hyperscript/index.js +3 -0
  109. package/dist/lib/slate-hyperscript/tokens.js +102 -0
  110. package/dist/lib/unified/index.js +470 -0
  111. package/dist/lib/vfile/core.js +172 -0
  112. package/dist/lib/vfile/index.js +48 -0
  113. package/dist/seafile-editor-chooser.js +45 -0
  114. package/dist/seafile-markdown-editor.js +301 -0
  115. package/dist/seafile-markdown-viewer.js +79 -0
  116. package/dist/seafile-simple-editor.js +56 -0
  117. package/dist/utils/copy-to-clipboard.js +47 -0
  118. package/dist/utils/deserialize-html.js +282 -0
  119. package/dist/utils/diff/compare-strings.js +46 -0
  120. package/dist/utils/diff/diff.js +855 -0
  121. package/dist/utils/diff/index.js +2 -0
  122. package/dist/utils/render-slate.js +219 -0
  123. package/dist/utils/seafile-markdown2html.js +62 -0
  124. package/dist/utils/slate2markdown/deserialize.js +689 -0
  125. package/dist/utils/slate2markdown/index.js +3 -0
  126. package/dist/utils/slate2markdown/serialize.js +407 -0
  127. package/dist/utils/utils.js +28 -0
  128. package/dist/viewer/diff-viewer.js +98 -0
  129. package/dist/viewer/markdown-viewer.js +139 -0
  130. package/dist/viewer/slate-viewer.js +73 -0
  131. package/dist/viewer/viewer-formula.js +67 -0
  132. package/dist/viewer/viewer-image.js +93 -0
  133. package/dist/viewer/viewer-outline.js +118 -0
  134. package/package.json +215 -0
  135. package/public/favicon.ico +0 -0
  136. package/public/index.html +45 -0
  137. package/public/locales/cs/seafile-editor.json +169 -0
  138. package/public/locales/de/seafile-editor.json +169 -0
  139. package/public/locales/en/seafile-editor.json +222 -0
  140. package/public/locales/es/seafile-editor.json +169 -0
  141. package/public/locales/es-AR/seafile-editor.json +169 -0
  142. package/public/locales/es-MX/seafile-editor.json +169 -0
  143. package/public/locales/fr/seafile-editor.json +169 -0
  144. package/public/locales/it/seafile-editor.json +169 -0
  145. package/public/locales/ru/seafile-editor.json +169 -0
  146. package/public/locales/zh-CN/seafile-editor.json +219 -0
  147. package/public/manifest.json +15 -0
  148. package/public/media/scripts/mathjax/tex-svg.js +1 -0
  149. package/public/media/seafile-editor-font/iconfont.eot +0 -0
  150. package/public/media/seafile-editor-font/iconfont.svg +164 -0
  151. package/public/media/seafile-editor-font/iconfont.ttf +0 -0
  152. package/public/media/seafile-editor-font/iconfont.woff +0 -0
  153. package/public/media/seafile-editor-font/iconfont.woff2 +0 -0
  154. package/public/media/seafile-editor-font.css +201 -0
  155. package/public/media/seafile-logo.png +0 -0
  156. package/public/media/seafile-ui.css +11169 -0
@@ -0,0 +1,7 @@
1
+ .article .virtual-link {
2
+ color: #eb8205;
3
+ }
4
+
5
+ .article .virtual-link:hover {
6
+ text-decoration: underline;
7
+ }
@@ -0,0 +1,79 @@
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
+ .insert-file {
40
+ position: relative;
41
+ display: inline-block;
42
+ overflow: hidden;
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: center;
46
+ margin-right: 10px;
47
+ }
48
+ .insert-file input {
49
+ position: absolute;
50
+ right: -7px;
51
+ top: -7px;
52
+ opacity: 0;
53
+ filter: alpha(opacity=0);
54
+ width: 40px;
55
+ height: 40px;
56
+ }
57
+ .insert-file:hover {
58
+ background-color: #e5e5e5;
59
+ }
60
+ .insert-file-disabled:hover {
61
+ background-color: #fff;
62
+ }
63
+ .insert-file-disabled input {
64
+ color: #999;
65
+ }
66
+ .button-container .toggle-side-panle-icon {
67
+ position: absolute;
68
+ }
69
+ .rich-menu .side-panel-btn {
70
+ display: none;
71
+ }
72
+ @media (max-width: 991.8px) {
73
+ .button-container .toggle-side-panle-icon {
74
+ display: none;
75
+ }
76
+ .rich-menu .side-panel-btn {
77
+ display: block;
78
+ }
79
+ }
@@ -0,0 +1,22 @@
1
+ .participants {
2
+ min-height: 30px;
3
+ }
4
+ .participants .avatar {
5
+ width: 28px;
6
+ height: 28px;
7
+ border: 2px solid #fff;
8
+ }
9
+ .participants .add-participants {
10
+ position: absolute;
11
+ cursor: pointer;
12
+ bottom: -3px;
13
+ }
14
+ .participants .add-participants i {
15
+ font-size: 16px;
16
+ color: rgb(229, 162, 82);
17
+ border: 2px solid #fff;
18
+ border-radius: 50%;
19
+ }
20
+ .participants .participant-avatar, .participants .add-participants {
21
+ margin-right: -0.5rem;
22
+ }
@@ -0,0 +1,42 @@
1
+ .editor-main-panel {
2
+ background-color: rgb(250, 250, 249);
3
+ height: 100%;
4
+ width: 100%;
5
+ display: flex;
6
+ overflow-y: auto;
7
+ overflow-x: hidden;
8
+ position: relative;
9
+ }
10
+
11
+ .seafile-editor-resize {
12
+ height: 100%;
13
+ width: 3px;
14
+ background-color: transparent;
15
+ position: absolute;
16
+ top: 0;
17
+ cursor: col-resize;
18
+ z-index: 1;
19
+ }
20
+
21
+ .editor-container {
22
+ /* this container is needed to show the scroll bar */
23
+ height: 100%;
24
+ overflow-y: auto;
25
+ flex: 1 1 auto;
26
+ position: relative;
27
+ }
28
+ .editor {
29
+ min-height: calc(100% - 40px);
30
+ background: #fff;
31
+ padding: 40px 60px;
32
+ margin: 20px 40px;
33
+ border: 1px solid rgb(230,230,221);
34
+ overflow-x: hidden;
35
+ }
36
+
37
+ .rich-editor-container {
38
+ width: 80%;
39
+ flex: 1, 1, auto;
40
+ height: 100%;
41
+ margin: 0 auto;
42
+ }
@@ -0,0 +1,84 @@
1
+
2
+ .seafile-editor-help {
3
+ width: 250px;
4
+ height: 100%;
5
+ flex: 0 0 350px;
6
+ background-color: #fff;
7
+ overflow-y: auto;
8
+ overflow-x: hidden;
9
+ border-left: 1px solid #eee;
10
+ }
11
+
12
+ .seafile-editor-help .help-header{
13
+ height: 50px;
14
+ background-color: rgb(250,250,249);
15
+ justify-content: space-between;
16
+ padding: 0 10px;
17
+ box-sizing: border-box;
18
+ border-bottom: 1px solid #eee;
19
+ line-height: 50px;
20
+ font-size: 1rem;
21
+ }
22
+
23
+ .seafile-editor-help .help-title {
24
+ font-weight: bolder;
25
+ margin-bottom: 0;
26
+ }
27
+
28
+ .help-close {
29
+ font-weight: normal;
30
+ color: #b9b9b9;
31
+ }
32
+
33
+ .help-close:hover {
34
+ color: #888;
35
+ }
36
+
37
+ .help-content {
38
+ height: calc(100% - 50px);
39
+ overflow-y: auto;
40
+ padding: 0 15px;
41
+ box-sizing: border-box;
42
+ font-size: 0.8rem;
43
+ }
44
+
45
+ .help-shortcut {
46
+ display: flex;
47
+ border-bottom: 1px solid #eee;
48
+ justify-content: space-between;
49
+ color: #2c2d30;
50
+ padding: 10px 0;
51
+ }
52
+
53
+ .help-shortcut-left {
54
+ word-break: break-all;
55
+ line-height: 30px;
56
+ }
57
+
58
+ .help-content .help-shortcut-type {
59
+ border-bottom: 1px solid #eee;
60
+ /*height: 50px;*/
61
+ line-height: 2;
62
+ font-weight: bolder;
63
+ margin: 10px 0 0 0;
64
+ }
65
+
66
+ .help-shortcut .key {
67
+ display: inline-block;
68
+ border-radius: 3px;
69
+ background-color: #e8e8e8;
70
+ border: 1px solid #919191;
71
+ box-shadow: 0 1px 0 #919193;
72
+ padding: 3px 5px;
73
+ margin-left: 5px;
74
+ height: 30px;
75
+ line-height: 20px;
76
+ }
77
+
78
+ .help-shortcut-right {
79
+ min-width: max-content;
80
+ }
81
+
82
+ .help-shortcut-right-container:not(:first-child) {
83
+ margin-top: 10px;
84
+ }
@@ -0,0 +1,190 @@
1
+ .seafile-editor-module .side-panel {
2
+ user-select: none;
3
+ height:100%;
4
+ background-color: #f5f7fa;
5
+ }
6
+ .seafile-editor-module .side-panel .nav {
7
+ border-bottom: 1px solid #eee;
8
+ padding-top: 10px;
9
+ padding-bottom: 10px;
10
+ min-width: 125px;
11
+ height: 36px;
12
+ flex-wrap: nowrap;
13
+ }
14
+ .seafile-editor-module .side-panel .nav .nav-item {
15
+ padding: 0 0.75rem;
16
+ }
17
+ .seafile-editor-module .side-panel .nav .nav-link {
18
+ padding: 0 0.75rem;
19
+ transition: 0.3s color;
20
+ margin-right: 0;
21
+ }
22
+ .seafile-editor-module .side-panel .nav-link {
23
+ color: #888;
24
+ }
25
+ .seafile-editor-module .side-panel .nav .nav-link.active {
26
+ color: #f19645;
27
+ border-bottom: 0;
28
+ }
29
+ .seafile-editor-module .side-panel .nav .iconfont {
30
+ font-weight: 700;
31
+ font-size: 0.875rem;
32
+ }
33
+ .seafile-editor-module .side-panel-content {
34
+ padding-top: 8px;
35
+ padding-bottom: 8px;
36
+ height: calc(100% - 36px);
37
+ overflow: hidden;
38
+ font-size: 0.937rem;
39
+ }
40
+
41
+ .seafile-editor-module .side-panel-content:hover {
42
+ overflow: auto;
43
+ }
44
+
45
+ .seafile-editor-module .side-panel .issue-container {
46
+ width: 100%;
47
+ padding: 0 10px 10px 10px;
48
+ margin-top: -10px;
49
+ }
50
+
51
+ .issue-card {
52
+ background-color: #fff;
53
+ border: 1px solid rgba(0, 40, 100, 0.12);
54
+ border-radius: 5px;
55
+ padding-left: 5px;
56
+ margin-top: 10px;
57
+ position: relative;
58
+ word-break: break-word;
59
+ box-shadow: 0 5px 5px -2px rgba(200,200,200, 0.5);
60
+ }
61
+
62
+ .issue-card:before {
63
+ position: absolute;
64
+ left: 0;
65
+ top: 0;
66
+ bottom: 0;
67
+ width: 3px;
68
+ content: '';
69
+ background-color: rgb(217, 130, 43);
70
+ border-radius: 3px 0 0 3px;
71
+ }
72
+ .issue-card-title {
73
+ font-size: 16px;
74
+ padding: 5px 10px 3px 10px;
75
+ }
76
+
77
+ .issue-card-description {
78
+ padding: 0 10px 5px 10px;
79
+ color: #aaa;
80
+ }
81
+
82
+ .size-panel-no-content {
83
+ width: 100%;
84
+ text-align: center;
85
+ color: #9a9a9a;
86
+ padding-top: 10px;
87
+ }
88
+
89
+ .image-view {
90
+ width: 200px;
91
+ height: 150px;
92
+ position: absolute;
93
+ background-color: #fff;
94
+ z-index: 1004;
95
+ box-shadow: 0 0 10px #aaa;
96
+ border-radius: 3px;
97
+ line-height: 150px;
98
+ overflow: hidden;
99
+ font-size: 0;
100
+ text-align: center;
101
+ }
102
+
103
+ .image-view img {
104
+ max-width: 100%;
105
+ max-height: 100%;
106
+ }
107
+
108
+ .image-view i {
109
+ width: 100%;
110
+ height: 100%;
111
+ text-align: center;
112
+ line-height: 150px;
113
+ font-size: 30px;
114
+ color: #eb8205;
115
+ -moz-animation: rotate 1.5s ease infinite;
116
+ -webkit-animation: rotate 1.5s ease infinite;
117
+ animation: rotate 1.5s ease infinite;
118
+ }
119
+
120
+ @keyframes rotate {
121
+ 0% {
122
+ transform: rotate(0deg);
123
+ }
124
+
125
+ 100% {
126
+ transform: rotate(360deg);
127
+ }
128
+ }
129
+
130
+ .seafile-editor-outline {
131
+ margin-right: 1rem;
132
+ }
133
+
134
+ .outline-h2, .outline-h3 {
135
+ white-space: nowrap;
136
+ overflow: hidden;
137
+ text-overflow: ellipsis;
138
+ }
139
+
140
+ .outline-h2 {
141
+ margin-left: 20px;
142
+ line-height: 2.5;
143
+ color:#364149;
144
+ white-space: nowrap;
145
+ cursor:pointer;
146
+ }
147
+ .outline-h2:hover {
148
+ color: #eb8205;
149
+ }
150
+ .outline-h3 {
151
+ margin-left: 40px;
152
+ line-height: 2.5;
153
+ color:#364149;
154
+ white-space: nowrap;
155
+ cursor:pointer;
156
+ }
157
+ .outline-h3:hover {
158
+ color: #eb8205;
159
+ }
160
+
161
+ .seafile-editor-all-panel .editor-container .article {
162
+ margin: 20px auto;
163
+ max-width: 950px;
164
+ }
165
+
166
+ @media (max-width: 991.8px) {
167
+ .seafile-editor {
168
+ min-width: calc(100% - 40px);
169
+ }
170
+ .seafile-editor-main-panel {
171
+ width: calc(100% - 200px);
172
+ }
173
+ .seafile-editor-side-panel {
174
+ min-width: 200px;
175
+ }
176
+ .editor-container {
177
+ width: 100%;
178
+ }
179
+ .editor-container .editor {
180
+ margin: 20px !important;
181
+ padding: 20px 30px;
182
+ }
183
+ }
184
+ @media (max-width: 768px) {
185
+ .editor-container .editor {
186
+ margin: 0 !important;
187
+ padding: 10px 15px;
188
+ border: 0;
189
+ }
190
+ }
@@ -0,0 +1,57 @@
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
+ }
@@ -0,0 +1,47 @@
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
+ }
@@ -0,0 +1,67 @@
1
+ /*tree view */
2
+ /*
3
+ * .tree-view .tree
4
+ * .tree-node
5
+ * .tree-node-inner
6
+ * .tree-node-icon
7
+ * .folder-toggle-icon
8
+ * .tree-node-text
9
+ *
10
+ */
11
+ .seafile-editor-module .tree-view {
12
+ padding-left: 10px;
13
+ line-height: 1.5;
14
+ }
15
+
16
+ .seafile-editor-module .tree-view-loading {
17
+ text-align: center;
18
+ margin-top: 2rem;
19
+ font-size: 1.5rem;
20
+ }
21
+
22
+ .seafile-editor-module .tree-view-loading i {
23
+ color: #b0b0b0;
24
+ -moz-animation: rotate 1.5s ease infinite;
25
+ -webkit-animation: rotate 1.5s ease infinite;
26
+ animation: rotate 1.5s ease infinite;
27
+ }
28
+
29
+ .seafile-editor-module .tree-node {
30
+ min-width: -moz-max-content;
31
+ min-width: -webkit-max-content;
32
+ min-width: max-content;
33
+ }
34
+
35
+ .seafile-editor-module .tree-node:not([type = 'dir']):hover {
36
+ background-color: rgb(255,239,178);
37
+ }
38
+
39
+ .seafile-editor-module .tree-node-inner {
40
+ position: relative;
41
+ padding-left: 12px;
42
+ }
43
+
44
+ /*
45
+ the main reason to icon can not be align is that .folder has a real width it take the place
46
+ of .tree-node-inner causing tree-node-icon not aligned , use absolute can make sure .tree-node-icon
47
+ is always at the far left of .tree-node-inner
48
+ */
49
+ .seafile-editor-module .tree-node-icon {
50
+ margin-right: 0.4rem;
51
+ margin-left: 0.1rem;
52
+ display: inline-block;
53
+ width: 1rem;
54
+ text-align: center;
55
+ color: #b0b0b0;
56
+ }
57
+
58
+ .folder-toggle-icon {
59
+ position: absolute;
60
+ left: 0;
61
+ line-height: 1.5;
62
+ color: silver;
63
+ }
64
+
65
+ .seafile-editor-module .folder-toggle-icon.folder-caret-right {
66
+ left: -2.5px;
67
+ }