@worktile/theia 13.0.1 → 13.0.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/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 +17 -16
- package/components/toolbar-dropdown/toolbar-dropdown.component.scss +18 -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 +1 -1
- package/esm2020/components/contextmenu/contextmenu.component.mjs +5 -5
- package/esm2020/components/conversion-hint/conversion-hint.component.mjs +1 -1
- package/esm2020/components/toolbar/toolbar.component.mjs +30 -15
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +5 -5
- package/esm2020/components/toolbar-group/toolbar-group.component.mjs +4 -4
- package/esm2020/components/toolbar-item/toolbar-item.component.mjs +11 -9
- package/esm2020/core/toolbar-item/base-toolbar-item.mjs +2 -2
- package/esm2020/editor.module.mjs +12 -9
- package/esm2020/plugins/code/code.component.mjs +7 -7
- package/esm2020/plugins/color/color.editor.mjs +2 -2
- package/esm2020/plugins/color/toolbar-item.component.mjs +9 -9
- package/esm2020/plugins/image/image.component.mjs +7 -6
- package/esm2020/plugins/quick-insert/components/quick-insert.component.mjs +1 -1
- package/esm2020/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.mjs +4 -4
- package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +15 -15
- package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +9 -7
- package/esm2020/plugins/table/toolbar-item.component.mjs +11 -9
- package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +7 -7
- package/fesm2015/worktile-theia.mjs +114 -120
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +114 -120
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/code/code.component.scss +16 -23
- package/plugins/font-size/toolbar-item.component.scss +1 -4
- package/plugins/image/image.component.scss +15 -13
- 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.scss +34 -42
- package/styles/editor.scss +15 -92
- package/styles/index.scss +29 -21
- package/styles/mixins.scss +76 -0
- package/styles/typo.scss +33 -54
- 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/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
@use '~ng-codemirror/index.scss';
|
|
3
|
+
@use '../../styles/mixins.scss' as mixins;
|
|
2
4
|
|
|
3
5
|
.the-code-container {
|
|
4
6
|
.resize-code-container{
|
|
@@ -6,31 +8,31 @@
|
|
|
6
8
|
font-size: 14px;
|
|
7
9
|
position: relative;
|
|
8
10
|
counter-reset: codeblock-lm;
|
|
9
|
-
border: 1px solid
|
|
11
|
+
border: 1px solid variables.$gray-300;
|
|
10
12
|
border-radius: 2px;
|
|
11
|
-
color:
|
|
13
|
+
color: variables.$gray-600;
|
|
12
14
|
background: rgba(243, 243, 243, 0.8);
|
|
13
15
|
&:hover{
|
|
14
|
-
border-color:
|
|
16
|
+
border-color: variables.$primary;
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
.resize-code-container.readonly, .resize-code-container.focus{
|
|
18
|
-
border-color:
|
|
20
|
+
border-color: variables.$gray-300;
|
|
19
21
|
&:hover{
|
|
20
|
-
border-color:
|
|
22
|
+
border-color: variables.$gray-300;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
.resize-code-container.active {
|
|
25
|
-
border-color:
|
|
27
|
+
border-color: variables.$primary;
|
|
26
28
|
&:hover{
|
|
27
|
-
border-color:
|
|
29
|
+
border-color: variables.$primary;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
.CodeMirror {
|
|
31
33
|
height: 100% !important;
|
|
32
34
|
z-index: 0;
|
|
33
|
-
color:
|
|
35
|
+
color: variables.$gray-600;
|
|
34
36
|
background: transparent;
|
|
35
37
|
border: none;
|
|
36
38
|
|
|
@@ -61,7 +63,7 @@
|
|
|
61
63
|
width: 45px;
|
|
62
64
|
left: 50%;
|
|
63
65
|
transform: translateX(-50%);
|
|
64
|
-
background:
|
|
66
|
+
background: variables.$gray-300;
|
|
65
67
|
bottom: -5px;
|
|
66
68
|
border-radius: 5px;
|
|
67
69
|
position: absolute;
|
|
@@ -70,7 +72,7 @@
|
|
|
70
72
|
position: absolute;
|
|
71
73
|
width: 34px;
|
|
72
74
|
height: 1px;
|
|
73
|
-
background:
|
|
75
|
+
background: variables.$white;
|
|
74
76
|
left: 50%;
|
|
75
77
|
transform: translateX(-50%);
|
|
76
78
|
top: 2px;
|
|
@@ -80,19 +82,10 @@
|
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
@include the-toolbar-active();
|
|
85
|
+
@include mixins.the-toolbar-active();
|
|
84
86
|
|
|
85
|
-
.
|
|
86
|
-
|
|
87
|
-
width: 100px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.auto-wrap{
|
|
91
|
-
margin-right: 5px;
|
|
92
|
-
.auto-wrap-btn{
|
|
93
|
-
margin-left: 5px;
|
|
94
|
-
transform: scale(0.8);
|
|
95
|
-
}
|
|
87
|
+
.auto-wrap-btn {
|
|
88
|
+
transform: scale(0.8);
|
|
96
89
|
}
|
|
97
90
|
}
|
|
98
91
|
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
.the-toolbar-dropdown-container.font-size {
|
|
2
|
-
width: 45px;
|
|
3
|
-
}
|
|
4
1
|
.the-toolbar-dropdown-popover.font-size {
|
|
5
2
|
.thy-popover-container {
|
|
6
3
|
min-width: 90px;
|
|
@@ -8,7 +5,7 @@
|
|
|
8
5
|
.dropdown {
|
|
9
6
|
width: 90px;
|
|
10
7
|
}
|
|
11
|
-
.
|
|
8
|
+
.dropdown-menu-item {
|
|
12
9
|
text-align: center;
|
|
13
10
|
}
|
|
14
11
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
|
|
1
3
|
.slate-element-image {
|
|
2
4
|
display: block;
|
|
3
5
|
|
|
@@ -32,9 +34,9 @@
|
|
|
32
34
|
width: 12px;
|
|
33
35
|
height: 12px;
|
|
34
36
|
border-radius: 50%;
|
|
35
|
-
background-color:
|
|
36
|
-
box-shadow: 0 0 4px 0 rgba(
|
|
37
|
-
border: 1px solid
|
|
37
|
+
background-color: variables.$white;
|
|
38
|
+
box-shadow: 0 0 4px 0 rgba(variables.$black, 0.13);
|
|
39
|
+
border: 1px solid variables.$gray-300;
|
|
38
40
|
z-index: 2;
|
|
39
41
|
&::before {
|
|
40
42
|
position: absolute;
|
|
@@ -47,7 +49,7 @@
|
|
|
47
49
|
margin-left: -4px;
|
|
48
50
|
margin-top: -4px;
|
|
49
51
|
border-radius: 50%;
|
|
50
|
-
background-color:
|
|
52
|
+
background-color: variables.$primary;
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
55
|
.left {
|
|
@@ -88,7 +90,7 @@
|
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
.image-profile.outline {
|
|
91
|
-
border: 1px dashed
|
|
93
|
+
border: 1px dashed variables.$primary;
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
.uploading {
|
|
@@ -98,7 +100,7 @@
|
|
|
98
100
|
right: 0;
|
|
99
101
|
top: 0;
|
|
100
102
|
display: block;
|
|
101
|
-
background-color: rgba(
|
|
103
|
+
background-color: rgba(variables.$white, 0.65);
|
|
102
104
|
|
|
103
105
|
.percentage {
|
|
104
106
|
position: absolute;
|
|
@@ -107,10 +109,10 @@
|
|
|
107
109
|
width: 102px;
|
|
108
110
|
height: 24px;
|
|
109
111
|
line-height: 24px;
|
|
110
|
-
border: 0.5px solid rgba(
|
|
112
|
+
border: 0.5px solid rgba(variables.$black, 0.05);
|
|
111
113
|
border-radius: 3px;
|
|
112
|
-
box-shadow: 0 1px 1px 0 rgba(
|
|
113
|
-
background:
|
|
114
|
+
box-shadow: 0 1px 1px 0 rgba(variables.$black, 0.05), 0 1px 4px 0 rgba(variables.$black, 0.1);
|
|
115
|
+
background: variables.$white;
|
|
114
116
|
color: grey;
|
|
115
117
|
font-weight: 500;
|
|
116
118
|
text-align: center;
|
|
@@ -157,10 +159,10 @@
|
|
|
157
159
|
height: 24px;
|
|
158
160
|
padding: 0 3px;
|
|
159
161
|
line-height: 24px;
|
|
160
|
-
border: 0.5px solid rgba(
|
|
162
|
+
border: 0.5px solid rgba(variables.$black, 0.05);
|
|
161
163
|
border-radius: 3px;
|
|
162
|
-
box-shadow: 0 1px 1px 0 rgba(
|
|
163
|
-
background:
|
|
164
|
+
box-shadow: 0 1px 1px 0 rgba(variables.$black, 0.05), 0 1px 4px 0 rgba(variables.$black, 0.1);
|
|
165
|
+
background: variables.$white;
|
|
164
166
|
color: grey;
|
|
165
167
|
font-weight: 500;
|
|
166
168
|
text-align: center;
|
|
@@ -176,7 +178,7 @@
|
|
|
176
178
|
width: 100%;
|
|
177
179
|
height: 280px;
|
|
178
180
|
background: rgb(244, 245, 247);
|
|
179
|
-
color:
|
|
181
|
+
color: variables.$gray-500;
|
|
180
182
|
}
|
|
181
183
|
}
|
|
182
184
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
|
|
1
3
|
.slate-element-inline-code{
|
|
2
4
|
margin: 0 4px;
|
|
3
5
|
padding: 2px 3px;
|
|
4
|
-
border: 1px solid
|
|
6
|
+
border: 1px solid variables.$gray-300;
|
|
5
7
|
border-radius: 2px;
|
|
6
8
|
font-family: monospace;
|
|
7
9
|
font-size: inherit;
|
|
@@ -9,5 +11,5 @@
|
|
|
9
11
|
line-height: 1;
|
|
10
12
|
word-wrap: break-word;
|
|
11
13
|
text-indent: 0;
|
|
12
|
-
color:
|
|
14
|
+
color: variables.$gray-700;
|
|
13
15
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
|
|
1
3
|
.slate-element-link {
|
|
2
4
|
cursor: pointer;
|
|
3
5
|
&:hover {
|
|
@@ -8,7 +10,7 @@
|
|
|
8
10
|
.the-link-over {
|
|
9
11
|
.thy-popover-container {
|
|
10
12
|
min-width: auto;
|
|
11
|
-
box-shadow: 0 2px 17px -1px rgba(
|
|
13
|
+
box-shadow: 0 2px 17px -1px rgba(variables.$black, 0.18);
|
|
12
14
|
border-radius: 4px;
|
|
13
15
|
}
|
|
14
16
|
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
display: inline-block;
|
|
44
46
|
width: 1px;
|
|
45
47
|
height: 1rem;
|
|
46
|
-
background:
|
|
48
|
+
background: variables.$gray-300;
|
|
47
49
|
position: relative;
|
|
48
50
|
margin-right: 15px;
|
|
49
51
|
|
|
@@ -56,7 +58,7 @@
|
|
|
56
58
|
.the-link-edit {
|
|
57
59
|
.thy-popover-container {
|
|
58
60
|
min-width: auto;
|
|
59
|
-
box-shadow: 0 2px 17px -1px rgba(
|
|
61
|
+
box-shadow: 0 2px 17px -1px rgba(variables.$black, 0.18);
|
|
60
62
|
border-radius: 4px;
|
|
61
63
|
}
|
|
62
64
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
|
|
1
3
|
.the-quick-insert {
|
|
2
4
|
position: absolute;
|
|
3
5
|
width: calc(100% - 30px);
|
|
@@ -11,11 +13,11 @@
|
|
|
11
13
|
left: -25px;
|
|
12
14
|
top: 3px;
|
|
13
15
|
font-size: 18px !important;
|
|
14
|
-
color:
|
|
16
|
+
color: variables.$gray-400 !important;
|
|
15
17
|
cursor: pointer;
|
|
16
18
|
|
|
17
19
|
&:hover {
|
|
18
|
-
color:
|
|
20
|
+
color: variables.$primary !important;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
|
|
1
3
|
.the-quick-toolbar {
|
|
2
4
|
width: 200px;
|
|
3
5
|
height: 400px;
|
|
@@ -6,11 +8,11 @@
|
|
|
6
8
|
|
|
7
9
|
.quick-toolbar-icon {
|
|
8
10
|
margin-right: 8px;
|
|
9
|
-
color:
|
|
11
|
+
color: variables.$gray-600;
|
|
10
12
|
}
|
|
11
13
|
.quick-toolbar-name {
|
|
12
14
|
flex: 1;
|
|
13
|
-
color:
|
|
15
|
+
color: variables.$gray-800;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
&-container {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
3
|
+
@use '../../../styles/variables.scss' as theVariables;
|
|
4
|
+
@use '../../../styles/mixins.scss' as mixins;
|
|
2
5
|
|
|
3
6
|
$expand-size: 12px;
|
|
4
|
-
$controls-border: 1px solid
|
|
7
|
+
$controls-border: 1px solid variables.$gray-300;
|
|
5
8
|
$table-scroll-wrap-padding-top: 31px;
|
|
6
9
|
$dot-zIndex: 20;
|
|
7
10
|
$dot-size: 19px;
|
|
@@ -50,13 +53,13 @@ $control-corner-width: 12px;
|
|
|
50
53
|
bottom: -1px;
|
|
51
54
|
border-width: 1px;
|
|
52
55
|
z-index: -1;
|
|
53
|
-
border-color:
|
|
56
|
+
border-color: variables.$primary;
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
&.selected-cell {
|
|
58
61
|
&::after {
|
|
59
|
-
background: rgba($color:
|
|
62
|
+
background: rgba($color: variables.$primary, $alpha: 0.1);
|
|
60
63
|
}
|
|
61
64
|
}
|
|
62
65
|
|
|
@@ -69,8 +72,8 @@ $control-corner-width: 12px;
|
|
|
69
72
|
bottom: -1px;
|
|
70
73
|
border-width: 1px;
|
|
71
74
|
z-index: -1;
|
|
72
|
-
border-color:
|
|
73
|
-
background: rgba($color:
|
|
75
|
+
border-color: variables.$danger;
|
|
76
|
+
background: rgba($color: variables.$danger, $alpha: 0.1);
|
|
74
77
|
}
|
|
75
78
|
}
|
|
76
79
|
}
|
|
@@ -124,7 +127,7 @@ $control-corner-width: 12px;
|
|
|
124
127
|
}
|
|
125
128
|
|
|
126
129
|
.the-temp-table-col-controls-wrapper .the-temp-table-col-controls {
|
|
127
|
-
background:
|
|
130
|
+
background: variables.$gray-100;
|
|
128
131
|
border-right: $controls-border;
|
|
129
132
|
border-top: $controls-border;
|
|
130
133
|
background-clip: padding-box;
|
|
@@ -154,7 +157,7 @@ $control-corner-width: 12px;
|
|
|
154
157
|
position: absolute;
|
|
155
158
|
width: 1px;
|
|
156
159
|
height: 12px;
|
|
157
|
-
background:
|
|
160
|
+
background: variables.$primary;
|
|
158
161
|
top: -1px;
|
|
159
162
|
}
|
|
160
163
|
&::before{
|
|
@@ -165,15 +168,15 @@ $control-corner-width: 12px;
|
|
|
165
168
|
}
|
|
166
169
|
}
|
|
167
170
|
&.active {
|
|
168
|
-
@include controlSelected;
|
|
171
|
+
@include mixins.controlSelected;
|
|
169
172
|
z-index: 11;
|
|
170
173
|
}
|
|
171
174
|
|
|
172
175
|
&.dangerous {
|
|
173
|
-
@include controlDangerous;
|
|
176
|
+
@include mixins.controlDangerous;
|
|
174
177
|
z-index: 11;
|
|
175
178
|
&::before, &::after{
|
|
176
|
-
background:
|
|
179
|
+
background: variables.$danger;
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
}
|
|
@@ -192,7 +195,7 @@ $control-corner-width: 12px;
|
|
|
192
195
|
height: $control-corner-width;
|
|
193
196
|
box-sizing: border-box;
|
|
194
197
|
border: $controls-border;
|
|
195
|
-
background:
|
|
198
|
+
background: variables.$gray-100;
|
|
196
199
|
padding: 0;
|
|
197
200
|
border-bottom: none;
|
|
198
201
|
border-right: none;
|
|
@@ -212,14 +215,14 @@ $control-corner-width: 12px;
|
|
|
212
215
|
&.active {
|
|
213
216
|
z-index: 1;
|
|
214
217
|
.the-temp-table-corner-button {
|
|
215
|
-
@include controlSelected;
|
|
218
|
+
@include mixins.controlSelected;
|
|
216
219
|
}
|
|
217
220
|
}
|
|
218
221
|
|
|
219
222
|
&.dangerous {
|
|
220
223
|
z-index: 1;
|
|
221
224
|
.the-temp-table-corner-button {
|
|
222
|
-
@include controlDangerous;
|
|
225
|
+
@include mixins.controlDangerous;
|
|
223
226
|
}
|
|
224
227
|
}
|
|
225
228
|
}
|
|
@@ -263,13 +266,13 @@ $control-corner-width: 12px;
|
|
|
263
266
|
&:not(.disabled) {
|
|
264
267
|
&:hover:after,
|
|
265
268
|
&:hover:before {
|
|
266
|
-
background-color:
|
|
269
|
+
background-color: variables.$white !important;
|
|
267
270
|
transform: scale(1);
|
|
268
271
|
}
|
|
269
272
|
|
|
270
273
|
&:hover:after {
|
|
271
|
-
box-shadow: inset $dot-padding-top 0 0 0
|
|
272
|
-
inset 0 (-$dot-shadow-top) 0 0
|
|
274
|
+
box-shadow: inset $dot-padding-top 0 0 0 variables.$primary, inset (-$dot-padding-top) 0 0 0 variables.$primary,
|
|
275
|
+
inset 0 (-$dot-shadow-top) 0 0 variables.$primary, inset 0 $dot-shadow-top 0 0 variables.$primary !important;
|
|
273
276
|
border-radius: 4px;
|
|
274
277
|
}
|
|
275
278
|
|
|
@@ -280,7 +283,7 @@ $control-corner-width: 12px;
|
|
|
280
283
|
|
|
281
284
|
.the-temp-table-controls-insert-line {
|
|
282
285
|
position: absolute;
|
|
283
|
-
background-color:
|
|
286
|
+
background-color: variables.$primary;
|
|
284
287
|
z-index: $dot-zIndex;
|
|
285
288
|
|
|
286
289
|
&[data-dot-type='column'] {
|
|
@@ -315,11 +318,11 @@ $control-corner-width: 12px;
|
|
|
315
318
|
.the-temp-table-controls-button {
|
|
316
319
|
display: block;
|
|
317
320
|
outline: none;
|
|
318
|
-
background-color:
|
|
321
|
+
background-color: variables.$gray-100;
|
|
319
322
|
box-sizing: border-box;
|
|
320
323
|
height: 42px;
|
|
321
324
|
width: $control-width;
|
|
322
|
-
border: 1px solid
|
|
325
|
+
border: 1px solid variables.$gray-300;
|
|
323
326
|
border-right: none;
|
|
324
327
|
padding: 0;
|
|
325
328
|
cursor: pointer;
|
|
@@ -329,7 +332,7 @@ $control-corner-width: 12px;
|
|
|
329
332
|
z-index: 1;
|
|
330
333
|
.the-temp-table-controls-button,
|
|
331
334
|
.the-temp-table-numbered-controls-button {
|
|
332
|
-
@include controlSelected;
|
|
335
|
+
@include mixins.controlSelected;
|
|
333
336
|
}
|
|
334
337
|
}
|
|
335
338
|
|
|
@@ -338,7 +341,7 @@ $control-corner-width: 12px;
|
|
|
338
341
|
|
|
339
342
|
.the-temp-table-controls-button,
|
|
340
343
|
.the-temp-table-numbered-controls-button {
|
|
341
|
-
@include controlDangerous;
|
|
344
|
+
@include mixins.controlDangerous;
|
|
342
345
|
}
|
|
343
346
|
}
|
|
344
347
|
}
|
|
@@ -356,21 +359,13 @@ $control-corner-width: 12px;
|
|
|
356
359
|
}
|
|
357
360
|
|
|
358
361
|
.the-temp-table-toolbar-wrap {
|
|
359
|
-
@include the-toolbar-layout();
|
|
362
|
+
@include mixins.the-toolbar-layout();
|
|
360
363
|
z-index: 10;
|
|
361
364
|
border-radius: 5px;
|
|
362
365
|
display: block;
|
|
363
366
|
|
|
364
|
-
.danger.thy-
|
|
365
|
-
@include remove-link-hover();
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.thy-icon-nav .thy-icon-nav-link {
|
|
369
|
-
margin-right: $thy-icon-nav-link-margin-right;
|
|
370
|
-
|
|
371
|
-
&:last-child {
|
|
372
|
-
margin-right: 0;
|
|
373
|
-
}
|
|
367
|
+
.danger.thy-action:hover {
|
|
368
|
+
@include mixins.remove-link-hover();
|
|
374
369
|
}
|
|
375
370
|
}
|
|
376
371
|
|
|
@@ -389,23 +384,20 @@ $control-corner-width: 12px;
|
|
|
389
384
|
.table-options {
|
|
390
385
|
background: transparent;
|
|
391
386
|
margin-right: 5px;
|
|
392
|
-
color:
|
|
387
|
+
color: variables.$gray-600;
|
|
393
388
|
&:hover {
|
|
394
|
-
background: rgba(
|
|
395
|
-
color:
|
|
389
|
+
background: rgba(variables.$primary, 0.1);
|
|
390
|
+
color: variables.$primary;
|
|
396
391
|
}
|
|
397
392
|
}
|
|
398
393
|
.table-options-active {
|
|
399
|
-
background: rgba(
|
|
400
|
-
color:
|
|
394
|
+
background: rgba(variables.$primary, 0.1);
|
|
395
|
+
color: variables.$primary;
|
|
401
396
|
}
|
|
402
397
|
.table-options-pannel {
|
|
403
398
|
.thy-popover-container {
|
|
404
399
|
min-width: 200px;
|
|
405
400
|
}
|
|
406
|
-
.action-menu {
|
|
407
|
-
width: 200px;
|
|
408
|
-
}
|
|
409
401
|
}
|
|
410
402
|
|
|
411
403
|
.the-temp-numbered-column-container {
|
|
@@ -418,7 +410,7 @@ $control-corner-width: 12px;
|
|
|
418
410
|
margin-left: 10px;
|
|
419
411
|
cursor: pointer;
|
|
420
412
|
.the-temp-table-numbered-controls-button {
|
|
421
|
-
background-color:
|
|
413
|
+
background-color: variables.$gray-100;
|
|
422
414
|
border: $controls-border;
|
|
423
415
|
border-right: none;
|
|
424
416
|
}
|
|
@@ -447,7 +439,7 @@ $control-corner-width: 12px;
|
|
|
447
439
|
}
|
|
448
440
|
}
|
|
449
441
|
|
|
450
|
-
|
|
442
|
+
|
|
451
443
|
.the-editor-readonly{
|
|
452
444
|
.the-temp-table-row-controls, .the-temp-table-col-controls{
|
|
453
445
|
cursor: default;
|
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,9 +225,6 @@ $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
230
|
.the-block-toolbar {
|
|
@@ -304,28 +237,18 @@ $thy-icon-nav-link-margin-right: 5px;
|
|
|
304
237
|
.the-block-toolbar-popover {
|
|
305
238
|
display: flex;
|
|
306
239
|
padding: 5px 10px;
|
|
307
|
-
background:
|
|
308
|
-
box-shadow:
|
|
309
|
-
|
|
310
|
-
.thy-icon-nav .thy-icon-nav-link {
|
|
311
|
-
margin-right: $thy-icon-nav-link-margin-right;
|
|
240
|
+
background: variables.$white;
|
|
241
|
+
box-shadow: variables.$box-shadow;
|
|
312
242
|
|
|
243
|
+
.thy-action {
|
|
313
244
|
&:last-child {
|
|
314
245
|
margin-right: 0;
|
|
315
246
|
}
|
|
316
247
|
|
|
317
248
|
&.remove-link:hover {
|
|
318
|
-
@include remove-link-hover();
|
|
249
|
+
@include mixins.remove-link-hover();
|
|
319
250
|
}
|
|
320
251
|
}
|
|
321
252
|
}
|
|
322
253
|
|
|
323
|
-
|
|
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
|
-
}
|
|
254
|
+
|