ronds-metadata 1.2.21 → 1.2.22
Sign up to get free protection for your applications and to get access to all the features.
- package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
- package/es/comps/JsonView/index.less +41 -41
- package/es/comps/MdView/index.less +354 -354
- package/es/comps/MetadataEdit/index.less +10 -10
- package/es/comps/MetadataEdit/type.d.ts +20 -20
- package/es/comps/MetadataForm/DataCell/Input.js +7 -1
- package/es/comps/MetadataForm/DataCell/Number.js +9 -3
- package/es/comps/MetadataForm/DataCell/Select.js +7 -1
- package/es/comps/MetadataForm/DataCell/Switch.js +7 -1
- package/es/comps/MetadataForm/HOC/index.less +41 -41
- package/es/framework/metadata/types.d.ts +98 -98
- package/es/theme.less +77 -77
- package/package.json +93 -93
@@ -1,10 +1,10 @@
|
|
1
|
-
.metadata-edit {
|
2
|
-
height: 100%;
|
3
|
-
width: 100%;
|
4
|
-
.ant-row {
|
5
|
-
display: block;
|
6
|
-
}
|
7
|
-
.pr-10 {
|
8
|
-
padding-right: 10px;
|
9
|
-
}
|
10
|
-
}
|
1
|
+
.metadata-edit {
|
2
|
+
height: 100%;
|
3
|
+
width: 100%;
|
4
|
+
.ant-row {
|
5
|
+
display: block;
|
6
|
+
}
|
7
|
+
.pr-10 {
|
8
|
+
padding-right: 10px;
|
9
|
+
}
|
10
|
+
}
|
@@ -1,20 +1,20 @@
|
|
1
|
-
export interface IMetaFileds {
|
2
|
-
id: string;
|
3
|
-
type: 'object';
|
4
|
-
properties: any[];
|
5
|
-
value: any;
|
6
|
-
}
|
7
|
-
|
8
|
-
export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
|
9
|
-
|
10
|
-
export type IMetaProperty = {
|
11
|
-
/**
|
12
|
-
* 属性的名称
|
13
|
-
*/
|
14
|
-
id: string;
|
15
|
-
/**
|
16
|
-
* 类型
|
17
|
-
*/
|
18
|
-
type: string;
|
19
|
-
enum?: any[];
|
20
|
-
};
|
1
|
+
export interface IMetaFileds {
|
2
|
+
id: string;
|
3
|
+
type: 'object';
|
4
|
+
properties: any[];
|
5
|
+
value: any;
|
6
|
+
}
|
7
|
+
|
8
|
+
export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
|
9
|
+
|
10
|
+
export type IMetaProperty = {
|
11
|
+
/**
|
12
|
+
* 属性的名称
|
13
|
+
*/
|
14
|
+
id: string;
|
15
|
+
/**
|
16
|
+
* 类型
|
17
|
+
*/
|
18
|
+
type: string;
|
19
|
+
enum?: any[];
|
20
|
+
};
|
@@ -17,7 +17,7 @@ import _Input from "antd/es/input";
|
|
17
17
|
/*
|
18
18
|
* @Author: wangxian
|
19
19
|
* @Date: 2021-09-18 14:15:04
|
20
|
-
* @LastEditTime: 2023-
|
20
|
+
* @LastEditTime: 2023-03-08 15:50:12
|
21
21
|
*/
|
22
22
|
import React from 'react';
|
23
23
|
import { UploadOutlined } from '@ant-design/icons';
|
@@ -141,6 +141,9 @@ function Index(props) {
|
|
141
141
|
offset: 0
|
142
142
|
} : undefined,
|
143
143
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
144
|
+
style: {
|
145
|
+
width: "".concat((24 - labelSpan) * 100 / 24, "%")
|
146
|
+
},
|
144
147
|
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
145
148
|
offset: 0
|
146
149
|
} : undefined,
|
@@ -172,6 +175,9 @@ function Index(props) {
|
|
172
175
|
offset: 0
|
173
176
|
} : undefined,
|
174
177
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
178
|
+
style: {
|
179
|
+
width: "".concat((24 - labelSpan) * 100 / 24, "%")
|
180
|
+
},
|
175
181
|
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
176
182
|
offset: 0
|
177
183
|
} : undefined,
|
@@ -9,7 +9,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
9
9
|
/*
|
10
10
|
* @Author: wangxian
|
11
11
|
* @Date: 2021-09-18 14:15:04
|
12
|
-
* @LastEditTime: 2023-
|
12
|
+
* @LastEditTime: 2023-03-08 15:51:28
|
13
13
|
*/
|
14
14
|
import React from 'react';
|
15
15
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
@@ -69,6 +69,9 @@ function Index(props) {
|
|
69
69
|
offset: 0
|
70
70
|
} : undefined,
|
71
71
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
72
|
+
style: {
|
73
|
+
width: "".concat((24 - labelSpan) * 100 / 24, "%")
|
74
|
+
},
|
72
75
|
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
73
76
|
offset: 0
|
74
77
|
} : undefined,
|
@@ -95,11 +98,14 @@ function Index(props) {
|
|
95
98
|
} : {}
|
96
99
|
}, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
|
97
100
|
labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
98
|
-
|
101
|
+
flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
|
99
102
|
offset: 0
|
100
103
|
} : undefined,
|
101
104
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
102
|
-
|
105
|
+
style: {
|
106
|
+
width: "".concat((24 - labelSpan) * 100 / 24, "%")
|
107
|
+
},
|
108
|
+
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
103
109
|
offset: 0
|
104
110
|
} : undefined,
|
105
111
|
name: name,
|
@@ -34,7 +34,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
34
34
|
/*
|
35
35
|
* @Author:wangxian
|
36
36
|
* @Date: 2021-09-18 14:15:04
|
37
|
-
* @LastEditTime: 2023-03-
|
37
|
+
* @LastEditTime: 2023-03-08 15:52:32
|
38
38
|
*/
|
39
39
|
import React from 'react';
|
40
40
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
@@ -567,6 +567,9 @@ function Index(props) {
|
|
567
567
|
offset: 0
|
568
568
|
} : undefined,
|
569
569
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
570
|
+
style: {
|
571
|
+
width: "".concat((24 - labelSpan) * 100 / 24, "%")
|
572
|
+
},
|
570
573
|
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
571
574
|
offset: 0
|
572
575
|
} : undefined,
|
@@ -595,6 +598,9 @@ function Index(props) {
|
|
595
598
|
offset: 0
|
596
599
|
} : undefined,
|
597
600
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
601
|
+
style: {
|
602
|
+
width: "".concat((24 - labelSpan) * 100 / 24, "%")
|
603
|
+
},
|
598
604
|
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
599
605
|
offset: 0
|
600
606
|
} : undefined,
|
@@ -8,7 +8,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
8
8
|
/*
|
9
9
|
* @Author: wangxian
|
10
10
|
* @Date: 2021-09-18 14:15:04
|
11
|
-
* @LastEditTime: 2023-
|
11
|
+
* @LastEditTime: 2023-03-08 15:52:49
|
12
12
|
*/
|
13
13
|
import React from 'react';
|
14
14
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
@@ -47,6 +47,9 @@ function Index(props) {
|
|
47
47
|
offset: 0
|
48
48
|
} : undefined,
|
49
49
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
50
|
+
style: {
|
51
|
+
width: "".concat((24 - labelSpan) * 100 / 24, "%")
|
52
|
+
},
|
50
53
|
span: 24 - labelSpan,
|
51
54
|
offset: 0
|
52
55
|
} : undefined,
|
@@ -75,6 +78,9 @@ function Index(props) {
|
|
75
78
|
offset: 0
|
76
79
|
} : undefined,
|
77
80
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
81
|
+
style: {
|
82
|
+
width: "".concat((24 - labelSpan) * 100 / 24, "%")
|
83
|
+
},
|
78
84
|
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
79
85
|
offset: 0
|
80
86
|
} : undefined,
|
@@ -1,41 +1,41 @@
|
|
1
|
-
.with-add-on-after {
|
2
|
-
--card-bg: #ffffff;
|
3
|
-
position: relative;
|
4
|
-
width: 100%;
|
5
|
-
|
6
|
-
.ant-form-item-label {
|
7
|
-
padding: 0 !important;
|
8
|
-
}
|
9
|
-
|
10
|
-
& > .ant-form-item {
|
11
|
-
padding: 0 0 8px !important;
|
12
|
-
flex: 1;
|
13
|
-
}
|
14
|
-
&-extra {
|
15
|
-
position: absolute;
|
16
|
-
right: 20px;
|
17
|
-
top: 18px;
|
18
|
-
padding: 0 6px;
|
19
|
-
background-color: var(--card-bg);
|
20
|
-
z-index: 1000;
|
21
|
-
}
|
22
|
-
&-ref {
|
23
|
-
position: absolute;
|
24
|
-
right: 20px;
|
25
|
-
top: -10px;
|
26
|
-
padding: 0 6px;
|
27
|
-
background-color: var(--card-bg);
|
28
|
-
z-index: 1000;
|
29
|
-
}
|
30
|
-
.ant-select-tree-indent {
|
31
|
-
.ant-select-tree-indent-unit {
|
32
|
-
width: 10px !important;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
/* .ant-col-2.7 {
|
37
|
-
display: block;
|
38
|
-
flex: 0 0 75%;
|
39
|
-
max-width: 75%;
|
40
|
-
} */
|
41
|
-
}
|
1
|
+
.with-add-on-after {
|
2
|
+
--card-bg: #ffffff;
|
3
|
+
position: relative;
|
4
|
+
width: 100%;
|
5
|
+
|
6
|
+
.ant-form-item-label {
|
7
|
+
padding: 0 !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
& > .ant-form-item {
|
11
|
+
padding: 0 0 8px !important;
|
12
|
+
flex: 1;
|
13
|
+
}
|
14
|
+
&-extra {
|
15
|
+
position: absolute;
|
16
|
+
right: 20px;
|
17
|
+
top: 18px;
|
18
|
+
padding: 0 6px;
|
19
|
+
background-color: var(--card-bg);
|
20
|
+
z-index: 1000;
|
21
|
+
}
|
22
|
+
&-ref {
|
23
|
+
position: absolute;
|
24
|
+
right: 20px;
|
25
|
+
top: -10px;
|
26
|
+
padding: 0 6px;
|
27
|
+
background-color: var(--card-bg);
|
28
|
+
z-index: 1000;
|
29
|
+
}
|
30
|
+
.ant-select-tree-indent {
|
31
|
+
.ant-select-tree-indent-unit {
|
32
|
+
width: 10px !important;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
/* .ant-col-2.7 {
|
37
|
+
display: block;
|
38
|
+
flex: 0 0 75%;
|
39
|
+
max-width: 75%;
|
40
|
+
} */
|
41
|
+
}
|
@@ -1,98 +1,98 @@
|
|
1
|
-
/*
|
2
|
-
* @Author: wangxian
|
3
|
-
* @Date: 2021-09-18 14:15:04
|
4
|
-
* @LastEditTime: 2023-02-09 18:37:15
|
5
|
-
*/
|
6
|
-
export type IMetaType = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array' | string;
|
7
|
-
|
8
|
-
export type IMetaData = {
|
9
|
-
/**
|
10
|
-
* 类名称/属性名称
|
11
|
-
*/
|
12
|
-
id: string;
|
13
|
-
/**
|
14
|
-
* 类型
|
15
|
-
*/
|
16
|
-
type: IMetaType;
|
17
|
-
/**
|
18
|
-
* 属性
|
19
|
-
*/
|
20
|
-
properties?: IMetaProperties[];
|
21
|
-
|
22
|
-
/**
|
23
|
-
* 引用id
|
24
|
-
*/
|
25
|
-
refId?: string;
|
26
|
-
/**
|
27
|
-
* 静态的变量
|
28
|
-
*/
|
29
|
-
fields?: IMetaFileds[];
|
30
|
-
/**
|
31
|
-
* 内部类
|
32
|
-
*/
|
33
|
-
types?: IMetaData[];
|
34
|
-
};
|
35
|
-
|
36
|
-
export type IMetaProperties = {
|
37
|
-
/**
|
38
|
-
* 类规则名称
|
39
|
-
*/
|
40
|
-
id: string;
|
41
|
-
|
42
|
-
/**
|
43
|
-
* 类型
|
44
|
-
*/
|
45
|
-
type: IMetaType;
|
46
|
-
|
47
|
-
/**
|
48
|
-
* 引用id
|
49
|
-
*/
|
50
|
-
refId?: string;
|
51
|
-
/**
|
52
|
-
* 静态的变量
|
53
|
-
*/
|
54
|
-
fields?: IMetaFileds[];
|
55
|
-
/**
|
56
|
-
* 枚举值
|
57
|
-
*/
|
58
|
-
enum?: { value: string }[];
|
59
|
-
/**
|
60
|
-
* 数组类型
|
61
|
-
*/
|
62
|
-
items?: { type: IMetaType; refId?: string };
|
63
|
-
};
|
64
|
-
|
65
|
-
export type IMetaFileds = {
|
66
|
-
/**
|
67
|
-
* 规则名称
|
68
|
-
*/
|
69
|
-
id: string;
|
70
|
-
|
71
|
-
/**
|
72
|
-
* 类型
|
73
|
-
*/
|
74
|
-
type: IMetaType;
|
75
|
-
|
76
|
-
/**
|
77
|
-
* 引用id
|
78
|
-
*/
|
79
|
-
refId?: string;
|
80
|
-
|
81
|
-
/**
|
82
|
-
* 规则值
|
83
|
-
*/
|
84
|
-
value: any;
|
85
|
-
};
|
86
|
-
|
87
|
-
export interface IAPI {
|
88
|
-
// 获取元数据列表
|
89
|
-
GetMetadataList(keyWords?: string[]): Promise<{ id: string; name: string; schema: string }[]>;
|
90
|
-
// 通过元数据Id获取元数据详情
|
91
|
-
GetMetadataDetailById(metadataId: string): Promise<any>;
|
92
|
-
// 新增元数据
|
93
|
-
SaveMetadata(data: any, metadataTag: string): Promise<any>;
|
94
|
-
// 获取元数据的值
|
95
|
-
GetMetadataObjList(data: any): Promise<any[]>;
|
96
|
-
/** 通过扩展规则获取枚举类型的值 */
|
97
|
-
GetEnumDataByUrl(url: string, method: 'get' | 'post', body: any): Promise<any>;
|
98
|
-
}
|
1
|
+
/*
|
2
|
+
* @Author: wangxian
|
3
|
+
* @Date: 2021-09-18 14:15:04
|
4
|
+
* @LastEditTime: 2023-02-09 18:37:15
|
5
|
+
*/
|
6
|
+
export type IMetaType = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array' | string;
|
7
|
+
|
8
|
+
export type IMetaData = {
|
9
|
+
/**
|
10
|
+
* 类名称/属性名称
|
11
|
+
*/
|
12
|
+
id: string;
|
13
|
+
/**
|
14
|
+
* 类型
|
15
|
+
*/
|
16
|
+
type: IMetaType;
|
17
|
+
/**
|
18
|
+
* 属性
|
19
|
+
*/
|
20
|
+
properties?: IMetaProperties[];
|
21
|
+
|
22
|
+
/**
|
23
|
+
* 引用id
|
24
|
+
*/
|
25
|
+
refId?: string;
|
26
|
+
/**
|
27
|
+
* 静态的变量
|
28
|
+
*/
|
29
|
+
fields?: IMetaFileds[];
|
30
|
+
/**
|
31
|
+
* 内部类
|
32
|
+
*/
|
33
|
+
types?: IMetaData[];
|
34
|
+
};
|
35
|
+
|
36
|
+
export type IMetaProperties = {
|
37
|
+
/**
|
38
|
+
* 类规则名称
|
39
|
+
*/
|
40
|
+
id: string;
|
41
|
+
|
42
|
+
/**
|
43
|
+
* 类型
|
44
|
+
*/
|
45
|
+
type: IMetaType;
|
46
|
+
|
47
|
+
/**
|
48
|
+
* 引用id
|
49
|
+
*/
|
50
|
+
refId?: string;
|
51
|
+
/**
|
52
|
+
* 静态的变量
|
53
|
+
*/
|
54
|
+
fields?: IMetaFileds[];
|
55
|
+
/**
|
56
|
+
* 枚举值
|
57
|
+
*/
|
58
|
+
enum?: { value: string }[];
|
59
|
+
/**
|
60
|
+
* 数组类型
|
61
|
+
*/
|
62
|
+
items?: { type: IMetaType; refId?: string };
|
63
|
+
};
|
64
|
+
|
65
|
+
export type IMetaFileds = {
|
66
|
+
/**
|
67
|
+
* 规则名称
|
68
|
+
*/
|
69
|
+
id: string;
|
70
|
+
|
71
|
+
/**
|
72
|
+
* 类型
|
73
|
+
*/
|
74
|
+
type: IMetaType;
|
75
|
+
|
76
|
+
/**
|
77
|
+
* 引用id
|
78
|
+
*/
|
79
|
+
refId?: string;
|
80
|
+
|
81
|
+
/**
|
82
|
+
* 规则值
|
83
|
+
*/
|
84
|
+
value: any;
|
85
|
+
};
|
86
|
+
|
87
|
+
export interface IAPI {
|
88
|
+
// 获取元数据列表
|
89
|
+
GetMetadataList(keyWords?: string[]): Promise<{ id: string; name: string; schema: string }[]>;
|
90
|
+
// 通过元数据Id获取元数据详情
|
91
|
+
GetMetadataDetailById(metadataId: string): Promise<any>;
|
92
|
+
// 新增元数据
|
93
|
+
SaveMetadata(data: any, metadataTag: string): Promise<any>;
|
94
|
+
// 获取元数据的值
|
95
|
+
GetMetadataObjList(data: any): Promise<any[]>;
|
96
|
+
/** 通过扩展规则获取枚举类型的值 */
|
97
|
+
GetEnumDataByUrl(url: string, method: 'get' | 'post', body: any): Promise<any>;
|
98
|
+
}
|
package/es/theme.less
CHANGED
@@ -1,77 +1,77 @@
|
|
1
|
-
.ronds-metadata-dark {
|
2
|
-
--ronds-metadata-color-border-1: #314162;
|
3
|
-
--ronds-metadata-color-border-2: #0d9af3;
|
4
|
-
--ronds-metadata-color-bg-2: #0d1f40;
|
5
|
-
--ronds-metadata-color-bg-3: #0d1f40;
|
6
|
-
--ronds-metadata-color-bg-4: #1c3771;
|
7
|
-
--ronds-metadata-color-text-1: #ffffff;
|
8
|
-
--ronds-metadata-color-text-2: #ffffff;
|
9
|
-
--ronds-metadata-color-text-3: #ffffff;
|
10
|
-
|
11
|
-
::-webkit-scrollbar {
|
12
|
-
width: 6px;
|
13
|
-
height: 6px;
|
14
|
-
overflow: auto;
|
15
|
-
}
|
16
|
-
::-webkit-scrollbar-corner {
|
17
|
-
background-color: transparent;
|
18
|
-
color: transparent;
|
19
|
-
}
|
20
|
-
|
21
|
-
::-webkit-scrollbar-thumb {
|
22
|
-
box-shadow: inset 0 0 5px var(--scrollbar-bg-color);
|
23
|
-
background: var(--scrollbar-color);
|
24
|
-
min-height: 25px;
|
25
|
-
min-width: 25px;
|
26
|
-
border-radius: 3px;
|
27
|
-
|
28
|
-
&:hover {
|
29
|
-
border-radius: 2px;
|
30
|
-
// box-shadow: inset 0 0 5px var(--scrollbar-color-hover);
|
31
|
-
background: var(--scrollbar-color-hover);
|
32
|
-
}
|
33
|
-
|
34
|
-
&:active {
|
35
|
-
// box-shadow: inset 0 0 5px var(--scrollbar-bg-color);
|
36
|
-
background: var(--scrollbar-color-hover);
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
.ronds-metadata-normal {
|
42
|
-
--ronds-metadata-color-border-1: #d9d9d9;
|
43
|
-
--ronds-metadata-color-border-2: #165dff;
|
44
|
-
--ronds-metadata-color-bg-2: rgba(229, 238, 255, 0.85);
|
45
|
-
--ronds-metadata-color-bg-3: #f6f5f6;
|
46
|
-
--ronds-metadata-color-bg-4: #ffffff;
|
47
|
-
--ronds-metadata-color-text-1: #1d2129;
|
48
|
-
--ronds-metadata-color-text-2: #24292f;
|
49
|
-
--ronds-metadata-color-text-3: #f2f3f5;
|
50
|
-
|
51
|
-
::-webkit-scrollbar {
|
52
|
-
width: 6px;
|
53
|
-
height: 6px;
|
54
|
-
overflow: auto;
|
55
|
-
}
|
56
|
-
|
57
|
-
::-webkit-scrollbar-thumb {
|
58
|
-
background-color: var(--scrollbar-color);
|
59
|
-
min-height: 25px;
|
60
|
-
min-width: 25px;
|
61
|
-
border-radius: 3px;
|
62
|
-
|
63
|
-
&:hover {
|
64
|
-
background-color: #a8a8a8;
|
65
|
-
}
|
66
|
-
|
67
|
-
&:active {
|
68
|
-
background-color: #787878;
|
69
|
-
}
|
70
|
-
|
71
|
-
/* border: 1px solid #e0e0e0; */
|
72
|
-
}
|
73
|
-
|
74
|
-
::-webkit-scrollbar-track {
|
75
|
-
background-color: #f7f7f7;
|
76
|
-
}
|
77
|
-
}
|
1
|
+
.ronds-metadata-dark {
|
2
|
+
--ronds-metadata-color-border-1: #314162;
|
3
|
+
--ronds-metadata-color-border-2: #0d9af3;
|
4
|
+
--ronds-metadata-color-bg-2: #0d1f40;
|
5
|
+
--ronds-metadata-color-bg-3: #0d1f40;
|
6
|
+
--ronds-metadata-color-bg-4: #1c3771;
|
7
|
+
--ronds-metadata-color-text-1: #ffffff;
|
8
|
+
--ronds-metadata-color-text-2: #ffffff;
|
9
|
+
--ronds-metadata-color-text-3: #ffffff;
|
10
|
+
|
11
|
+
::-webkit-scrollbar {
|
12
|
+
width: 6px;
|
13
|
+
height: 6px;
|
14
|
+
overflow: auto;
|
15
|
+
}
|
16
|
+
::-webkit-scrollbar-corner {
|
17
|
+
background-color: transparent;
|
18
|
+
color: transparent;
|
19
|
+
}
|
20
|
+
|
21
|
+
::-webkit-scrollbar-thumb {
|
22
|
+
box-shadow: inset 0 0 5px var(--scrollbar-bg-color);
|
23
|
+
background: var(--scrollbar-color);
|
24
|
+
min-height: 25px;
|
25
|
+
min-width: 25px;
|
26
|
+
border-radius: 3px;
|
27
|
+
|
28
|
+
&:hover {
|
29
|
+
border-radius: 2px;
|
30
|
+
// box-shadow: inset 0 0 5px var(--scrollbar-color-hover);
|
31
|
+
background: var(--scrollbar-color-hover);
|
32
|
+
}
|
33
|
+
|
34
|
+
&:active {
|
35
|
+
// box-shadow: inset 0 0 5px var(--scrollbar-bg-color);
|
36
|
+
background: var(--scrollbar-color-hover);
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
.ronds-metadata-normal {
|
42
|
+
--ronds-metadata-color-border-1: #d9d9d9;
|
43
|
+
--ronds-metadata-color-border-2: #165dff;
|
44
|
+
--ronds-metadata-color-bg-2: rgba(229, 238, 255, 0.85);
|
45
|
+
--ronds-metadata-color-bg-3: #f6f5f6;
|
46
|
+
--ronds-metadata-color-bg-4: #ffffff;
|
47
|
+
--ronds-metadata-color-text-1: #1d2129;
|
48
|
+
--ronds-metadata-color-text-2: #24292f;
|
49
|
+
--ronds-metadata-color-text-3: #f2f3f5;
|
50
|
+
|
51
|
+
::-webkit-scrollbar {
|
52
|
+
width: 6px;
|
53
|
+
height: 6px;
|
54
|
+
overflow: auto;
|
55
|
+
}
|
56
|
+
|
57
|
+
::-webkit-scrollbar-thumb {
|
58
|
+
background-color: var(--scrollbar-color);
|
59
|
+
min-height: 25px;
|
60
|
+
min-width: 25px;
|
61
|
+
border-radius: 3px;
|
62
|
+
|
63
|
+
&:hover {
|
64
|
+
background-color: #a8a8a8;
|
65
|
+
}
|
66
|
+
|
67
|
+
&:active {
|
68
|
+
background-color: #787878;
|
69
|
+
}
|
70
|
+
|
71
|
+
/* border: 1px solid #e0e0e0; */
|
72
|
+
}
|
73
|
+
|
74
|
+
::-webkit-scrollbar-track {
|
75
|
+
background-color: #f7f7f7;
|
76
|
+
}
|
77
|
+
}
|