@worktile/theia 13.0.0 → 13.0.3
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/components/color-select/color-select.component.scss +11 -8
- package/components/column-resize/column-resize.scss +6 -4
- package/components/inline-toolbar/inline-toolbar.component.scss +7 -4
- package/components/table-select/table-select.component.scss +7 -5
- package/components/toolbar/toolbar.component.d.ts +3 -2
- package/components/toolbar/toolbar.component.scss +15 -17
- package/components/toolbar-dropdown/toolbar-dropdown.component.scss +16 -27
- package/components/toolbar-group/toolbar-group.component.scss +5 -3
- package/editor.module.d.ts +58 -58
- package/esm2020/components/color-select/color-select.component.mjs +4 -4
- package/esm2020/components/column-resize/column-resize-notifier.mjs +4 -4
- package/esm2020/components/column-resize/column-resize.directive.mjs +4 -4
- package/esm2020/components/column-resize/column-resize.module.mjs +9 -9
- package/esm2020/components/column-resize/event-dispatcher.mjs +4 -4
- package/esm2020/components/column-resize/overlay-handle.component.mjs +4 -4
- package/esm2020/components/column-resize/resizing.store.mjs +4 -4
- package/esm2020/components/contextmenu/contextmenu.component.mjs +7 -7
- package/esm2020/components/conversion-hint/conversion-hint.component.mjs +4 -4
- package/esm2020/components/element/element.component.mjs +4 -4
- package/esm2020/components/inline-toolbar/inline-toolbar.component.mjs +4 -4
- package/esm2020/components/table-select/table-select.component.mjs +4 -4
- package/esm2020/components/template/template.component.mjs +4 -4
- package/esm2020/components/text/text.component.mjs +4 -4
- package/esm2020/components/toolbar/toolbar.component.mjs +31 -17
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +7 -7
- package/esm2020/components/toolbar-group/toolbar-group.component.mjs +6 -6
- package/esm2020/components/toolbar-item/toolbar-item.component.mjs +14 -12
- package/esm2020/core/toolbar-item/base-toolbar-item.mjs +8 -8
- package/esm2020/editor.component.mjs +4 -4
- package/esm2020/editor.module.mjs +16 -13
- package/esm2020/interfaces/view-base.mjs +4 -4
- package/esm2020/pipes.mjs +7 -7
- package/esm2020/plugins/blockquote/blockquote.component.mjs +4 -4
- package/esm2020/plugins/code/code.component.mjs +9 -9
- package/esm2020/plugins/color/color.editor.mjs +2 -2
- package/esm2020/plugins/color/toolbar-item.component.mjs +24 -14
- package/esm2020/plugins/hr/hr.component.mjs +4 -4
- package/esm2020/plugins/image/image.component.mjs +28 -29
- package/esm2020/plugins/inline-code/inline-code.component.mjs +4 -4
- package/esm2020/plugins/link/edit/link-edit.component.mjs +4 -4
- package/esm2020/plugins/link/hover/link-hover.component.mjs +4 -4
- package/esm2020/plugins/link/link.component.mjs +7 -7
- package/esm2020/plugins/list/components/bulleted-list.component.mjs +4 -4
- package/esm2020/plugins/list/components/list-item.component.mjs +4 -4
- package/esm2020/plugins/list/components/numbered-list.component.mjs +4 -4
- package/esm2020/plugins/quick-insert/components/quick-insert.component.mjs +4 -4
- package/esm2020/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.mjs +6 -6
- package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +4 -4
- package/esm2020/plugins/table/components/row/row.component.mjs +4 -4
- package/esm2020/plugins/table/components/table.component.mjs +29 -54
- package/esm2020/plugins/table/components/td/td.component.mjs +5 -10
- package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +18 -18
- package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +11 -9
- package/esm2020/plugins/table/table.service.mjs +4 -4
- package/esm2020/plugins/table/table.store.mjs +4 -4
- package/esm2020/plugins/table/toolbar-item.component.mjs +14 -12
- package/esm2020/plugins/todo-item/todo-item.component.mjs +4 -4
- package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +9 -9
- package/esm2020/services/color-select.service.mjs +4 -4
- package/esm2020/services/context.service.mjs +4 -4
- package/esm2020/services/table-contextmenu.service.mjs +4 -4
- package/esm2020/services/toolbar.service.mjs +4 -4
- package/fesm2015/worktile-theia.mjs +319 -346
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +318 -346
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/code/code.component.scss +16 -23
- package/plugins/color/toolbar-item.component.d.ts +2 -0
- package/plugins/font-size/toolbar-item.component.scss +1 -4
- package/plugins/image/image.component.d.ts +4 -1
- package/plugins/image/image.component.scss +15 -17
- package/plugins/inline-code/inline-code.component.scss +4 -2
- package/plugins/link/link.component.scss +5 -3
- package/plugins/quick-insert/components/quick-insert.component.scss +4 -2
- package/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.scss +4 -2
- package/plugins/table/components/table.component.d.ts +2 -7
- package/plugins/table/components/table.component.scss +35 -45
- package/plugins/table/components/td/td.component.d.ts +0 -1
- package/styles/editor.scss +10 -112
- package/styles/index.scss +29 -21
- package/styles/mixins.scss +83 -0
- package/styles/typo.scss +31 -65
- package/styles/variables.scss +21 -0
- package/components/nav-split-line/nav-split-line.component.d.ts +0 -13
- package/esm2020/components/nav-split-line/nav-split-line.component.mjs +0 -37
package/styles/editor.scss
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
@use './variables.scss' as theVariables;
|
|
3
|
+
@use './mixins.scss' as mixins;
|
|
2
4
|
|
|
3
5
|
.the-editor {
|
|
4
6
|
display: block;
|
|
5
|
-
border: 1px solid
|
|
7
|
+
border: 1px solid variables.$gray-200;
|
|
6
8
|
border-radius: 3px;
|
|
7
9
|
position: relative;
|
|
8
10
|
max-width: 100%;
|
|
@@ -36,7 +38,7 @@ $thy-icon-nav-link-margin-right: 5px;
|
|
|
36
38
|
cursor: auto;
|
|
37
39
|
}
|
|
38
40
|
input[type='checkbox']:not(:checked):hover {
|
|
39
|
-
border-color:
|
|
41
|
+
border-color: variables.$gray-300;
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
.the-todo-item-selectable {
|
|
@@ -52,7 +54,7 @@ $thy-icon-nav-link-margin-right: 5px;
|
|
|
52
54
|
cursor: auto;
|
|
53
55
|
}
|
|
54
56
|
input[type='checkbox']:not(:checked):hover {
|
|
55
|
-
border-color:
|
|
57
|
+
border-color: variables.$gray-300;
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
}
|
|
@@ -122,7 +124,7 @@ $thy-icon-nav-link-margin-right: 5px;
|
|
|
122
124
|
[the-code-line] {
|
|
123
125
|
margin: 0 4px;
|
|
124
126
|
padding: 2px 3px;
|
|
125
|
-
border: 1px solid
|
|
127
|
+
border: 1px solid variables.$gray-300;
|
|
126
128
|
border-radius: 2px;
|
|
127
129
|
font-family: monospace;
|
|
128
130
|
font-size: inherit;
|
|
@@ -130,7 +132,7 @@ $thy-icon-nav-link-margin-right: 5px;
|
|
|
130
132
|
line-height: inherit;
|
|
131
133
|
word-wrap: break-word;
|
|
132
134
|
text-indent: 0;
|
|
133
|
-
color:
|
|
135
|
+
color: variables.$gray-700;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
.leaf-with-placeholder {
|
|
@@ -159,7 +161,7 @@ $thy-icon-nav-link-margin-right: 5px;
|
|
|
159
161
|
@each $size, $liMl, $liMultiDigitMl in (12, 13, 14, 15, 16, 18, 20, (24 null 35px), (28 null 42px), (32 33px 50px), (40 40px 62px), (48 50px 78px)) {
|
|
160
162
|
[the-font-size="#{$size}"] {
|
|
161
163
|
font-size: #{$size}px;
|
|
162
|
-
line-height:
|
|
164
|
+
line-height: theVariables.$font-size-line-height;
|
|
163
165
|
}
|
|
164
166
|
.slate-element-list-item {
|
|
165
167
|
&.font-size-#{$size} {
|
|
@@ -209,74 +211,8 @@ $thy-icon-nav-link-margin-right: 5px;
|
|
|
209
211
|
}
|
|
210
212
|
}
|
|
211
213
|
|
|
212
|
-
.the-nav-split-line {
|
|
213
|
-
&.horizontal {
|
|
214
|
-
margin: 5px 20px;
|
|
215
|
-
display: block;
|
|
216
|
-
border-top: 1px solid $gray-200;
|
|
217
|
-
}
|
|
218
|
-
&.vertical {
|
|
219
|
-
width: 1px;
|
|
220
|
-
height: 1rem;
|
|
221
|
-
margin-top: 0.45rem;
|
|
222
|
-
margin-right: 5px;
|
|
223
|
-
background: $gray-300;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
@mixin controlSelected {
|
|
228
|
-
background-color: rgba($color: $primary, $alpha: 0.6);
|
|
229
|
-
border-color: $primary;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
@mixin controlDangerous {
|
|
233
|
-
background-color: rgba($color: $danger, $alpha: 0.6);
|
|
234
|
-
border-color: $danger;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
@mixin custom-thy-icon-nav() {
|
|
238
|
-
.thy-icon-nav .thy-icon-nav-link {
|
|
239
|
-
position: relative;
|
|
240
|
-
cursor: pointer;
|
|
241
|
-
&:not(:last-child) {
|
|
242
|
-
margin-right: $thy-icon-nav-link-margin-right;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
@mixin thy-icon-nav-disabled {
|
|
248
|
-
.thy-icon-nav .thy-icon-nav-link {
|
|
249
|
-
&.disabled {
|
|
250
|
-
cursor: not-allowed;
|
|
251
|
-
color: $gray-400;
|
|
252
|
-
&:hover {
|
|
253
|
-
background: transparent;
|
|
254
|
-
border-radius: unset;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
@mixin the-toolbar-disabled {
|
|
261
|
-
&.disabled {
|
|
262
|
-
cursor: not-allowed;
|
|
263
|
-
opacity: 0.25;
|
|
264
|
-
|
|
265
|
-
.thy-icon-nav-link {
|
|
266
|
-
pointer-events: none;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
@mixin the-toolbar-layout {
|
|
272
|
-
position: absolute;
|
|
273
|
-
padding: 5px 10px;
|
|
274
|
-
background: $white;
|
|
275
|
-
box-shadow: $box-shadow;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
214
|
.the-code-block-operation {
|
|
279
|
-
@include the-toolbar-layout();
|
|
215
|
+
@include mixins.the-toolbar-layout();
|
|
280
216
|
display: flex;
|
|
281
217
|
transform: translateY(-100%);
|
|
282
218
|
left: 0;
|
|
@@ -289,43 +225,5 @@ $thy-icon-nav-link-margin-right: 5px;
|
|
|
289
225
|
border: none;
|
|
290
226
|
}
|
|
291
227
|
}
|
|
292
|
-
.thy-icon-nav {
|
|
293
|
-
flex-wrap: nowrap;
|
|
294
|
-
}
|
|
295
228
|
}
|
|
296
229
|
|
|
297
|
-
.the-block-toolbar {
|
|
298
|
-
.thy-popover-container {
|
|
299
|
-
min-width: auto;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
.the-block-toolbar-popover {
|
|
305
|
-
display: flex;
|
|
306
|
-
padding: 5px 10px;
|
|
307
|
-
background: $white;
|
|
308
|
-
box-shadow: $box-shadow;
|
|
309
|
-
|
|
310
|
-
.thy-icon-nav .thy-icon-nav-link {
|
|
311
|
-
margin-right: $thy-icon-nav-link-margin-right;
|
|
312
|
-
|
|
313
|
-
&:last-child {
|
|
314
|
-
margin-right: 0;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
&.remove-link:hover {
|
|
318
|
-
@include remove-link-hover();
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
@mixin the-toolbar-active {
|
|
324
|
-
.thy-icon-nav-link.thy-popover-origin-active,
|
|
325
|
-
.the-toolbar-dropdown-container.thy-popover-origin-active .thy-icon-nav-link {
|
|
326
|
-
color: $primary;
|
|
327
|
-
background: rgba($primary, 0.1);
|
|
328
|
-
border-radius: 0.25rem;
|
|
329
|
-
visibility: visible !important;
|
|
330
|
-
}
|
|
331
|
-
}
|
package/styles/index.scss
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
@use './variables.scss' as theVariables;
|
|
3
|
+
@use './mixins.scss' as mixins;
|
|
4
|
+
@use 'ngx-tethys/styles/index.scss' as tethys;
|
|
5
|
+
@use 'ng-codemirror/index.scss' as codemirror;
|
|
6
|
+
|
|
7
|
+
@forward 'ngx-tethys/styles/variables.scss';
|
|
8
|
+
@forward 'ngx-tethys/styles/basic.scss';
|
|
9
|
+
|
|
10
|
+
@forward './typo.scss';
|
|
11
|
+
@forward './editor.scss';
|
|
12
|
+
@forward '../plugins/image/image.component.scss';
|
|
13
|
+
@forward '../plugins/todo-item/todo-item.component.scss';
|
|
14
|
+
@forward '../components/toolbar-dropdown/toolbar-dropdown.component.scss';
|
|
15
|
+
@forward '../components/toolbar-group/toolbar-group.component.scss';
|
|
16
|
+
@forward '../components/toolbar/toolbar.component.scss';
|
|
17
|
+
@forward '../components/color-select/color-select.component.scss';
|
|
18
|
+
@forward '../plugins/code/code.component.scss';
|
|
19
|
+
@forward '../plugins/link/link.component.scss';
|
|
20
|
+
@forward '../components/column-resize/column-resize.scss';
|
|
21
|
+
@forward '../plugins/table/components/table.component.scss';
|
|
22
|
+
@forward '../components/table-select/table-select.component.scss';
|
|
23
|
+
@forward '../components/conversion-hint/conversion-hint.component.scss';
|
|
24
|
+
@forward '../plugins/vertical-align/vertical-align.scss';
|
|
25
|
+
@forward '../components/inline-toolbar/inline-toolbar.component.scss';
|
|
26
|
+
@forward '../plugins/quick-insert/components/quick-insert.component.scss';
|
|
27
|
+
@forward '../plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.scss';
|
|
28
|
+
@forward '../plugins/font-size/toolbar-item.component.scss';
|
|
29
|
+
@forward '../plugins/inline-code/inline-code.component.scss';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
@use "ngx-tethys/styles/basic.scss" as thyBasic;
|
|
3
|
+
@use './variables.scss' as theVariables;
|
|
4
|
+
|
|
5
|
+
@mixin controlSelected {
|
|
6
|
+
background-color: rgba($color: variables.$primary, $alpha: 0.6);
|
|
7
|
+
border-color: variables.$primary;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@mixin controlDangerous {
|
|
11
|
+
background-color: rgba($color: variables.$danger, $alpha: 0.6);
|
|
12
|
+
border-color: variables.$danger;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin the-toolbar-disabled {
|
|
16
|
+
&.disabled {
|
|
17
|
+
cursor: not-allowed;
|
|
18
|
+
opacity: 0.25;
|
|
19
|
+
|
|
20
|
+
.thy-action {
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin the-toolbar-layout {
|
|
27
|
+
position: absolute;
|
|
28
|
+
padding: 5px 10px;
|
|
29
|
+
background: variables.$white;
|
|
30
|
+
box-shadow: variables.$box-shadow;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin the-toolbar-active {
|
|
34
|
+
.thy-action.thy-popover-origin-active,
|
|
35
|
+
.the-toolbar-dropdown-container.thy-popover-origin-active .thy-action {
|
|
36
|
+
color: variables.$primary;
|
|
37
|
+
background: rgba(variables.$primary, 0.1);
|
|
38
|
+
border-radius: 0.25rem;
|
|
39
|
+
visibility: visible !important;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@mixin the-toolbar-divider-spacing {
|
|
44
|
+
& + .thy-divider {
|
|
45
|
+
margin-left: #{theVariables.$thy-action-margin-right} !important;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@mixin the-custom-action() {
|
|
50
|
+
.thy-action {
|
|
51
|
+
position: relative;
|
|
52
|
+
color: variables.$gray-700;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
|
|
55
|
+
&.action-danger {
|
|
56
|
+
@include thyBasic.action-variant(variables.$action-color, variables.$danger, rgba(variables.$danger, 0.1));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.thy-action,
|
|
61
|
+
.the-toolbar-item,
|
|
62
|
+
.the-toolbar-dropdown-container {
|
|
63
|
+
&:not(:last-child) {
|
|
64
|
+
margin-right: theVariables.$thy-action-margin-right;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@include the-toolbar-divider-spacing();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@mixin the-action-disabled {
|
|
72
|
+
.thy-action {
|
|
73
|
+
&.disabled {
|
|
74
|
+
cursor: not-allowed;
|
|
75
|
+
color: variables.$gray-400;
|
|
76
|
+
|
|
77
|
+
&:hover {
|
|
78
|
+
background: transparent;
|
|
79
|
+
border-radius: unset;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
package/styles/typo.scss
CHANGED
|
@@ -1,32 +1,11 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
$headline-two-size: 24px;
|
|
6
|
-
$headline-three-size: 20px;
|
|
7
|
-
$headline-four-size: 18px;
|
|
8
|
-
$headline-five-size: 16px;
|
|
9
|
-
$headline-one-lineHeight: 40px;
|
|
10
|
-
$headline-two-lineHeight: 38px;
|
|
11
|
-
$headline-three-lineHeight: 34px;
|
|
12
|
-
$headline-four-lineHeight: 30px;
|
|
13
|
-
$headline-five-lineHeight: 28px;
|
|
14
|
-
$headline-six-lineHeight: 26px;
|
|
15
|
-
$the-font-size-base: 14px;
|
|
16
|
-
$block-mb: 8px;
|
|
17
|
-
$block-line-heith: 24px;
|
|
18
|
-
$nav-item-margin: 5px;
|
|
19
|
-
$selection-background: rgba($color: $primary, $alpha: 0.3);
|
|
20
|
-
$font-size-line-height: 1.5;
|
|
21
|
-
|
|
22
|
-
@mixin remove-link-hover {
|
|
23
|
-
color: $danger;
|
|
24
|
-
background: hsla(0,100%,73%,.1);
|
|
25
|
-
}
|
|
2
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
3
|
+
@use './variables.scss' as theVariables;
|
|
4
|
+
@use './mixins.scss' as mixins;
|
|
26
5
|
|
|
27
6
|
.the-editor-typo {
|
|
28
7
|
display: flow-root;
|
|
29
|
-
font-size:
|
|
8
|
+
font-size: theVariables.$the-font-size-base;
|
|
30
9
|
min-height: 250px;
|
|
31
10
|
padding: 28px 30px;
|
|
32
11
|
word-break: break-all;
|
|
@@ -40,28 +19,28 @@ $font-size-line-height: 1.5;
|
|
|
40
19
|
font-weight: bold;
|
|
41
20
|
}
|
|
42
21
|
h1 {
|
|
43
|
-
line-height:
|
|
44
|
-
font-size:
|
|
22
|
+
line-height: theVariables.$headline-one-lineHeight;
|
|
23
|
+
font-size: theVariables.$headline-one-size;
|
|
45
24
|
}
|
|
46
25
|
h2 {
|
|
47
|
-
line-height:
|
|
48
|
-
font-size:
|
|
26
|
+
line-height: theVariables.$headline-two-lineHeight;
|
|
27
|
+
font-size: theVariables.$headline-two-size;
|
|
49
28
|
}
|
|
50
29
|
h3 {
|
|
51
|
-
line-height:
|
|
52
|
-
font-size:
|
|
30
|
+
line-height: theVariables.$headline-three-lineHeight;
|
|
31
|
+
font-size: theVariables.$headline-three-size;
|
|
53
32
|
}
|
|
54
33
|
h4 {
|
|
55
|
-
line-height:
|
|
56
|
-
font-size:
|
|
34
|
+
line-height: theVariables.$headline-four-lineHeight;
|
|
35
|
+
font-size: theVariables.$headline-four-size;
|
|
57
36
|
}
|
|
58
37
|
h5 {
|
|
59
|
-
line-height:
|
|
60
|
-
font-size:
|
|
38
|
+
line-height: theVariables.$headline-five-lineHeight;
|
|
39
|
+
font-size: theVariables.$headline-five-size;
|
|
61
40
|
}
|
|
62
41
|
h6 {
|
|
63
|
-
line-height:
|
|
64
|
-
font-size:
|
|
42
|
+
line-height: theVariables.$headline-six-lineHeight;
|
|
43
|
+
font-size: theVariables.$the-font-size-base;
|
|
65
44
|
}
|
|
66
45
|
// margin
|
|
67
46
|
ul,
|
|
@@ -71,7 +50,7 @@ $font-size-line-height: 1.5;
|
|
|
71
50
|
padding: 0;
|
|
72
51
|
li {
|
|
73
52
|
margin-left: 2em;
|
|
74
|
-
margin-bottom: math.div(
|
|
53
|
+
margin-bottom: math.div(theVariables.$block-mb, 2);
|
|
75
54
|
&:last-child {
|
|
76
55
|
margin-bottom: 0;
|
|
77
56
|
}
|
|
@@ -80,9 +59,9 @@ $font-size-line-height: 1.5;
|
|
|
80
59
|
blockquote {
|
|
81
60
|
margin-left: 0;
|
|
82
61
|
margin-right: 0;
|
|
83
|
-
color:
|
|
62
|
+
color: variables.$gray-600;
|
|
84
63
|
padding-left: 10px !important;
|
|
85
|
-
border-left: 4px solid
|
|
64
|
+
border-left: 4px solid variables.$gray-200;
|
|
86
65
|
}
|
|
87
66
|
.the-hr {
|
|
88
67
|
border: 1px solid transparent;
|
|
@@ -92,7 +71,7 @@ $font-size-line-height: 1.5;
|
|
|
92
71
|
hr {
|
|
93
72
|
box-sizing: border-box;
|
|
94
73
|
width: 100%;
|
|
95
|
-
border-top: 1px solid
|
|
74
|
+
border-top: 1px solid variables.$gray-200;
|
|
96
75
|
padding: 0;
|
|
97
76
|
margin: 0;
|
|
98
77
|
}
|
|
@@ -108,7 +87,7 @@ $font-size-line-height: 1.5;
|
|
|
108
87
|
code {
|
|
109
88
|
margin: 0 4px;
|
|
110
89
|
padding: 2px 3px;
|
|
111
|
-
border: 1px solid
|
|
90
|
+
border: 1px solid variables.$gray-300;
|
|
112
91
|
border-radius: 2px;
|
|
113
92
|
font-family: monospace;
|
|
114
93
|
font-size: inherit;
|
|
@@ -116,7 +95,7 @@ $font-size-line-height: 1.5;
|
|
|
116
95
|
line-height: inherit;
|
|
117
96
|
word-wrap: break-word;
|
|
118
97
|
text-indent: 0;
|
|
119
|
-
color:
|
|
98
|
+
color: variables.$gray-700;
|
|
120
99
|
}
|
|
121
100
|
.slate-element-hr{
|
|
122
101
|
display: block;
|
|
@@ -125,18 +104,12 @@ $font-size-line-height: 1.5;
|
|
|
125
104
|
.slate-element-code,
|
|
126
105
|
.slate-element-image,
|
|
127
106
|
.slate-element-block-quote {
|
|
128
|
-
padding: math.div(
|
|
129
|
-
}
|
|
130
|
-
.slate-element-image {
|
|
131
|
-
.image-content {
|
|
132
|
-
max-width: 100%;
|
|
133
|
-
height: auto !important;
|
|
134
|
-
}
|
|
107
|
+
padding: math.div(theVariables.$default-text-space, 2) 0;
|
|
135
108
|
}
|
|
136
109
|
.slate-block-card {
|
|
137
110
|
.card-left,
|
|
138
111
|
.card-right {
|
|
139
|
-
bottom: math.div(
|
|
112
|
+
bottom: math.div(theVariables.$default-text-space, 2);
|
|
140
113
|
line-height: 17px; // cursor default height
|
|
141
114
|
}
|
|
142
115
|
&.slate-block-card-table {
|
|
@@ -154,32 +127,25 @@ $font-size-line-height: 1.5;
|
|
|
154
127
|
}
|
|
155
128
|
.slate-element-table-content,
|
|
156
129
|
.slate-element-paragraph {
|
|
157
|
-
line-height:
|
|
130
|
+
line-height: theVariables.$block-line-heith;
|
|
158
131
|
}
|
|
159
132
|
& .slate-block:not(:last-child),
|
|
160
133
|
& .slate-block-card:not(:last-child) {
|
|
161
|
-
margin-bottom:
|
|
134
|
+
margin-bottom: theVariables.$block-mb;
|
|
162
135
|
}
|
|
163
136
|
.CodeMirror-focused .CodeMirror-selected {
|
|
164
|
-
background:
|
|
137
|
+
background: theVariables.$selection-background;
|
|
165
138
|
}
|
|
166
139
|
::-moz-selection {
|
|
167
140
|
/* Code for Firefox */
|
|
168
|
-
background:
|
|
141
|
+
background: theVariables.$selection-background;
|
|
169
142
|
}
|
|
170
143
|
::selection {
|
|
171
|
-
background:
|
|
172
|
-
}
|
|
173
|
-
.thy-icon-nav .thy-icon-nav-link {
|
|
174
|
-
margin-right: 5px;
|
|
175
|
-
&:last-child {
|
|
176
|
-
margin-right: 0;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
.remove-link.thy-icon-nav-link:hover {
|
|
180
|
-
@include remove-link-hover();
|
|
144
|
+
background: theVariables.$selection-background;
|
|
181
145
|
}
|
|
182
146
|
|
|
147
|
+
@include mixins.the-custom-action();
|
|
148
|
+
|
|
183
149
|
// 处理 block-card 图文混排
|
|
184
150
|
.slate-block,
|
|
185
151
|
.slate-block-card {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
|
|
3
|
+
$default-text-space: 10px; // text white space 18(distance between paragrahp) - 8(block margin)
|
|
4
|
+
$headline-one-size: 28px;
|
|
5
|
+
$headline-two-size: 24px;
|
|
6
|
+
$headline-three-size: 20px;
|
|
7
|
+
$headline-four-size: 18px;
|
|
8
|
+
$headline-five-size: 16px;
|
|
9
|
+
$headline-one-lineHeight: 40px;
|
|
10
|
+
$headline-two-lineHeight: 38px;
|
|
11
|
+
$headline-three-lineHeight: 34px;
|
|
12
|
+
$headline-four-lineHeight: 30px;
|
|
13
|
+
$headline-five-lineHeight: 28px;
|
|
14
|
+
$headline-six-lineHeight: 26px;
|
|
15
|
+
$the-font-size-base: 14px;
|
|
16
|
+
$block-mb: 8px;
|
|
17
|
+
$block-line-heith: 24px;
|
|
18
|
+
$nav-item-margin: 5px;
|
|
19
|
+
$selection-background: rgba($color: variables.$primary, $alpha: 0.3);
|
|
20
|
+
$font-size-line-height: 1.5;
|
|
21
|
+
$thy-action-margin-right: 4px;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ToolbarItemMode } from '../../constants/toolbar';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NavSplitLineComponent implements OnInit {
|
|
5
|
-
mode: ToolbarItemMode;
|
|
6
|
-
theNavSplitLine: boolean;
|
|
7
|
-
get horizontal(): boolean;
|
|
8
|
-
get vertical(): boolean;
|
|
9
|
-
constructor();
|
|
10
|
-
ngOnInit(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NavSplitLineComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavSplitLineComponent, "nav-split-line", never, { "mode": "mode"; }, {}, never, never>;
|
|
13
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Component, HostBinding, Input } from '@angular/core';
|
|
2
|
-
import { ToolbarItemMode } from '../../constants/toolbar';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class NavSplitLineComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.mode = ToolbarItemMode.vertical;
|
|
7
|
-
this.theNavSplitLine = true;
|
|
8
|
-
}
|
|
9
|
-
get horizontal() {
|
|
10
|
-
return this.mode === ToolbarItemMode.horizontal;
|
|
11
|
-
}
|
|
12
|
-
get vertical() {
|
|
13
|
-
return this.mode === ToolbarItemMode.vertical;
|
|
14
|
-
}
|
|
15
|
-
ngOnInit() { }
|
|
16
|
-
}
|
|
17
|
-
NavSplitLineComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: NavSplitLineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
-
NavSplitLineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: NavSplitLineComponent, selector: "nav-split-line", inputs: { mode: "mode" }, host: { properties: { "class.the-nav-split-line": "this.theNavSplitLine", "class.horizontal": "this.horizontal", "class.vertical": "this.vertical" } }, ngImport: i0, template: '', isInline: true });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: NavSplitLineComponent, decorators: [{
|
|
20
|
-
type: Component,
|
|
21
|
-
args: [{
|
|
22
|
-
selector: 'nav-split-line',
|
|
23
|
-
template: ''
|
|
24
|
-
}]
|
|
25
|
-
}], ctorParameters: function () { return []; }, propDecorators: { mode: [{
|
|
26
|
-
type: Input
|
|
27
|
-
}], theNavSplitLine: [{
|
|
28
|
-
type: HostBinding,
|
|
29
|
-
args: ['class.the-nav-split-line']
|
|
30
|
-
}], horizontal: [{
|
|
31
|
-
type: HostBinding,
|
|
32
|
-
args: ['class.horizontal']
|
|
33
|
-
}], vertical: [{
|
|
34
|
-
type: HostBinding,
|
|
35
|
-
args: ['class.vertical']
|
|
36
|
-
}] } });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2LXNwbGl0LWxpbmUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvc3JjL2NvbXBvbmVudHMvbmF2LXNwbGl0LWxpbmUvbmF2LXNwbGl0LWxpbmUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUN0RSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0seUJBQXlCLENBQUM7O0FBTTFELE1BQU0sT0FBTyxxQkFBcUI7SUFjOUI7UUFiUyxTQUFJLEdBQW9CLGVBQWUsQ0FBQyxRQUFRLENBQUM7UUFHMUQsb0JBQWUsR0FBRyxJQUFJLENBQUM7SUFVUixDQUFDO0lBUmhCLElBQXFDLFVBQVU7UUFDM0MsT0FBTyxJQUFJLENBQUMsSUFBSSxLQUFLLGVBQWUsQ0FBQyxVQUFVLENBQUM7SUFDcEQsQ0FBQztJQUVELElBQW1DLFFBQVE7UUFDdkMsT0FBTyxJQUFJLENBQUMsSUFBSSxLQUFLLGVBQWUsQ0FBQyxRQUFRLENBQUM7SUFDbEQsQ0FBQztJQUlELFFBQVEsS0FBVSxDQUFDOztrSEFoQlYscUJBQXFCO3NHQUFyQixxQkFBcUIsd09BRnBCLEVBQUU7MkZBRUgscUJBQXFCO2tCQUpqQyxTQUFTO21CQUFDO29CQUNQLFFBQVEsRUFBRSxnQkFBZ0I7b0JBQzFCLFFBQVEsRUFBRSxFQUFFO2lCQUNmOzBFQUVZLElBQUk7c0JBQVosS0FBSztnQkFHTixlQUFlO3NCQURkLFdBQVc7dUJBQUMsMEJBQTBCO2dCQUdGLFVBQVU7c0JBQTlDLFdBQVc7dUJBQUMsa0JBQWtCO2dCQUlJLFFBQVE7c0JBQTFDLFdBQVc7dUJBQUMsZ0JBQWdCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBIb3N0QmluZGluZywgSW5wdXQsIE9uSW5pdCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgVG9vbGJhckl0ZW1Nb2RlIH0gZnJvbSAnLi4vLi4vY29uc3RhbnRzL3Rvb2xiYXInO1xuXG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogJ25hdi1zcGxpdC1saW5lJyxcbiAgICB0ZW1wbGF0ZTogJydcbn0pXG5leHBvcnQgY2xhc3MgTmF2U3BsaXRMaW5lQ29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcbiAgICBASW5wdXQoKSBtb2RlOiBUb29sYmFySXRlbU1vZGUgPSBUb29sYmFySXRlbU1vZGUudmVydGljYWw7XG5cbiAgICBASG9zdEJpbmRpbmcoJ2NsYXNzLnRoZS1uYXYtc3BsaXQtbGluZScpXG4gICAgdGhlTmF2U3BsaXRMaW5lID0gdHJ1ZTtcblxuICAgIEBIb3N0QmluZGluZygnY2xhc3MuaG9yaXpvbnRhbCcpIGdldCBob3Jpem9udGFsKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5tb2RlID09PSBUb29sYmFySXRlbU1vZGUuaG9yaXpvbnRhbDtcbiAgICB9XG5cbiAgICBASG9zdEJpbmRpbmcoJ2NsYXNzLnZlcnRpY2FsJykgZ2V0IHZlcnRpY2FsKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5tb2RlID09PSBUb29sYmFySXRlbU1vZGUudmVydGljYWw7XG4gICAgfVxuXG4gICAgY29uc3RydWN0b3IoKSB7fVxuXG4gICAgbmdPbkluaXQoKTogdm9pZCB7fVxufVxuIl19
|