@vtx/components 3.1.5 → 3.1.6

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.
@@ -34,10 +34,10 @@
34
34
  height: 100%;
35
35
  }
36
36
  .vtx-datagrid .ant-table-has-fix-right .ant-table-body::-webkit-scrollbar {
37
- width: 17px;
37
+ width: 5px;
38
38
  }
39
39
  .vtx-datagrid-userAgent-mac .ant-table-has-fix-right .ant-table-body::-webkit-scrollbar {
40
- width: 15px;
40
+ width: 5px;
41
41
  }
42
42
  .vtx-datagrid .ant-table-thead > tr > th {
43
43
  background-color: #edf6ff;
@@ -8,11 +8,19 @@
8
8
  height: 100%;
9
9
  .ant-table-header,
10
10
  .ant-table-body {
11
- &::-webkit-scrollbar {
11
+ &::-webkit-scrollbar when(@theme=dark) {
12
+ width: 5px;
13
+ background-color: @body-background;
14
+ }
15
+ &::-webkit-scrollbar when(@theme=default) {
12
16
  width: 5px;
13
17
  background-color: hsla(0, 0%, 80%, 0.08);
14
18
  }
15
- &::-webkit-scrollbar-thumb {
19
+ &::-webkit-scrollbar-thumb when(@theme=dark) {
20
+ background-color: #434343;
21
+ border-radius: 3px;
22
+ }
23
+ &::-webkit-scrollbar-thumb when(@theme=default) {
16
24
  background-color: rgba(0, 0, 0, 0.05);
17
25
  border-radius: 3px;
18
26
  }
@@ -41,7 +49,7 @@
41
49
  .ant-table-has-fix-right {
42
50
  .ant-table-body {
43
51
  &::-webkit-scrollbar {
44
- width: 17px;
52
+ width: 5px;
45
53
  }
46
54
  }
47
55
  }
@@ -50,7 +58,7 @@
50
58
  .ant-table-has-fix-right {
51
59
  .ant-table-body {
52
60
  &::-webkit-scrollbar {
53
- width: 15px;
61
+ width: 5px;
54
62
  }
55
63
  }
56
64
  }
@@ -64,7 +64,7 @@
64
64
  }
65
65
  .vtx-form-layout .vtx-form-item--inline .ant-form-item-label > label {
66
66
  height: auto;
67
- color: rgba(0, 0, 0, 0.65);
67
+ color: rgba(0, 0, 0, 0.85);
68
68
  }
69
69
  .vtx-form-layout .vtx-form-item--inline .ant-form-item-label label::after {
70
70
  content: ':';
@@ -75,7 +75,7 @@
75
75
  }
76
76
  .vtx-form-layout .vtx-form-item--view .ant-form-item-label > label {
77
77
  height: auto;
78
- color: rgba(0, 0, 0, 0.65);
78
+ color: rgba(0, 0, 0, 0.85);
79
79
  }
80
80
  .vtx-form-layout .vtx-form-item--view .ant-form-item-label label::after {
81
81
  content: ':';
@@ -104,7 +104,7 @@
104
104
  overflow: hidden;
105
105
  }
106
106
  .vtx-form-layout .vtx-form-card-expand-icon {
107
- color: rgba(0, 0, 0, 0.45);
107
+ color: rgba(0, 0, 0, 0.75);
108
108
  transition: transform 0.24s, -webkit-transform 0.24s;
109
109
  }
110
110
  .vtx-form-layout .vtx-form-card .ant-card-body {
@@ -50,7 +50,7 @@
50
50
  margin-bottom: 0;
51
51
  & > label {
52
52
  height: auto;
53
- color: fade(@black, 65%);
53
+ color: @text-color;
54
54
  }
55
55
  label::after {
56
56
  content: ':';
@@ -65,7 +65,7 @@
65
65
  .ant-form-item-label {
66
66
  & > label {
67
67
  height: auto;
68
- color: fade(@black, 65%);
68
+ color: @text-color;
69
69
  }
70
70
  label::after {
71
71
  content: ':';
@@ -98,7 +98,7 @@
98
98
  width: 100%;
99
99
  overflow: hidden;
100
100
  &-expand-icon {
101
- color: fade(@black, 45%);
101
+ color: fade(@text-color, 75%);
102
102
  transition: transform 0.24s, -webkit-transform 0.24s;
103
103
  }
104
104
  .ant-card-body {
@@ -1,3 +1,5 @@
1
+ @import (reference) '~antd/lib/style/themes/index.less';
2
+
1
3
  @prefix-cls: vtx-split-pane;
2
4
 
3
5
  .@{prefix-cls} {
@@ -37,20 +39,34 @@
37
39
  }
38
40
  }
39
41
 
40
- &-resizer-left {
42
+ &-resizer-left when(@theme=default) {
41
43
  border-right: 1px solid rgb(232, 232, 232);
42
44
  &:hover {
43
45
  border-right: 1px solid rgb(191, 191, 191);
44
46
  transition: border-right 0.2s ease-in-out;
45
47
  }
46
48
  }
47
- &-resizer-right {
49
+ &-resizer-left when(@theme=dark) {
50
+ border-right: @border-color-base;
51
+ &:hover {
52
+ border-right: 1px solid @border-color-base;
53
+ transition: border-right 0.2s ease-in-out;
54
+ }
55
+ }
56
+ &-resizer-right when(@theme=default) {
48
57
  border-left: 1px solid rgb(232, 232, 232);
49
58
  &:hover {
50
59
  border-left: 1px solid rgb(191, 191, 191);
51
60
  transition: border-right 0.2s ease-in-out;
52
61
  }
53
62
  }
63
+ &-resizer-right when(@theme=dark) {
64
+ border-left: 1px solid @border-color-base;
65
+ &:hover {
66
+ border-left: 1px solid @border-color-base;
67
+ transition: border-right 0.2s ease-in-out;
68
+ }
69
+ }
54
70
  &-resizer.disabled {
55
71
  cursor: not-allowed;
56
72
  }
@@ -6,13 +6,12 @@
6
6
  padding-top: 52px;
7
7
  }
8
8
  .vtx-ztree::-webkit-scrollbar {
9
- width: 10px;
10
- background-color: hsla(0, 0%, 76%, 0.07);
9
+ width: 5px;
10
+ background-color: hsla(0, 0%, 80%, 0.08);
11
11
  }
12
12
  .vtx-ztree::-webkit-scrollbar-thumb {
13
- background-color: rgba(193, 193, 193, 0.6);
13
+ background-color: rgba(0, 0, 0, 0.05);
14
14
  border-radius: 3px;
15
- -webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.3);
16
15
  }
17
16
  .vtx-ztree-wraaper {
18
17
  position: relative;
@@ -27,3 +26,9 @@
27
26
  left: 12px;
28
27
  margin-bottom: 10px;
29
28
  }
29
+ .ztree li a {
30
+ color: rgba(0, 0, 0, 0.85) !important;
31
+ }
32
+ .ztree li a.curSelectedNode {
33
+ color: black !important;
34
+ }
@@ -1,3 +1,5 @@
1
+ @import (reference) '~antd/lib/style/themes/index.less';
2
+
1
3
  @prefix-cls: vtx-ztree;
2
4
 
3
5
  .@{prefix-cls} {
@@ -6,14 +8,21 @@
6
8
  &-has-search {
7
9
  padding-top: 52px;
8
10
  }
9
- &::-webkit-scrollbar {
10
- width: 10px;
11
- background-color: hsla(0, 0%, 76%, 0.07);
11
+ &::-webkit-scrollbar when(@theme=dark) {
12
+ width: 5px;
13
+ background-color: @body-background;
14
+ }
15
+ &::-webkit-scrollbar when(@theme=default) {
16
+ width: 5px;
17
+ background-color: hsla(0, 0%, 80%, 0.08);
18
+ }
19
+ &::-webkit-scrollbar-thumb when(@theme=dark) {
20
+ background-color: #434343;
21
+ border-radius: 3px;
12
22
  }
13
- &::-webkit-scrollbar-thumb {
14
- background-color: rgba(193, 193, 193, 0.6);
23
+ &::-webkit-scrollbar-thumb when(@theme=default) {
24
+ background-color: rgba(0, 0, 0, 0.05);
15
25
  border-radius: 3px;
16
- -webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.3);
17
26
  }
18
27
  &-wraaper {
19
28
  position: relative;
@@ -28,3 +37,9 @@
28
37
  margin-bottom: 10px;
29
38
  }
30
39
  }
40
+ .ztree li a {
41
+ color: @text-color !important;
42
+ }
43
+ .ztree li a.curSelectedNode {
44
+ color: black !important;
45
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/components",
3
- "version": "3.1.5",
3
+ "version": "3.1.6",
4
4
  "description": "React components for Vortex",
5
5
  "keywords": [
6
6
  "react",