@delon/theme 17.3.0 → 18.0.0-beta.0
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/esm2022/layout-default/layout-header-item-trigger.directive.mjs +3 -3
- package/esm2022/layout-default/layout-header-item.component.mjs +3 -3
- package/esm2022/layout-default/layout-header.component.mjs +3 -3
- package/esm2022/layout-default/layout-nav.component.mjs +7 -7
- package/esm2022/layout-default/layout-top-menu-item.mjs +3 -3
- package/esm2022/layout-default/layout.component.mjs +3 -3
- package/esm2022/layout-default/layout.module.mjs +4 -4
- package/esm2022/layout-default/layout.service.mjs +3 -3
- package/esm2022/setting-drawer/setting-drawer-item.component.mjs +3 -3
- package/esm2022/setting-drawer/setting-drawer.component.mjs +7 -7
- package/esm2022/setting-drawer/setting-drawer.module.mjs +4 -4
- package/esm2022/src/locale/languages/ar-SA.mjs +83 -0
- package/esm2022/src/locale/locale.module.mjs +4 -4
- package/esm2022/src/locale/locale.service.mjs +3 -3
- package/esm2022/src/locale/public_api.mjs +2 -1
- package/esm2022/src/pipes/date/date.pipe.mjs +3 -3
- package/esm2022/src/pipes/keys/keys.pipe.mjs +3 -3
- package/esm2022/src/pipes/safe/html.pipe.mjs +3 -3
- package/esm2022/src/pipes/safe/url.pipe.mjs +3 -3
- package/esm2022/src/pipes/yn/yn.pipe.mjs +3 -3
- package/esm2022/src/services/drawer/drawer.helper.mjs +3 -3
- package/esm2022/src/services/http/http.client.mjs +4 -4
- package/esm2022/src/services/http/http.decorator.mjs +3 -3
- package/esm2022/src/services/i18n/i18n-url.guard.mjs +3 -3
- package/esm2022/src/services/i18n/i18n.mjs +6 -6
- package/esm2022/src/services/i18n/i18n.pipe.mjs +3 -3
- package/esm2022/src/services/menu/menu.service.mjs +10 -10
- package/esm2022/src/services/modal/modal.helper.mjs +3 -3
- package/esm2022/src/services/responsive/responsive.mjs +3 -3
- package/esm2022/src/services/rtl/rtl.service.mjs +3 -3
- package/esm2022/src/services/settings/settings.service.mjs +3 -3
- package/esm2022/src/services/title/title.service.mjs +9 -9
- package/esm2022/src/theme.module.mjs +4 -4
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/theme-btn/theme-btn.component.mjs +7 -7
- package/esm2022/theme-btn/theme-btn.module.mjs +4 -4
- package/fesm2022/layout-default.mjs +28 -28
- package/fesm2022/layout-default.mjs.map +1 -1
- package/fesm2022/setting-drawer.mjs +13 -13
- package/fesm2022/setting-drawer.mjs.map +1 -1
- package/fesm2022/theme-btn.mjs +10 -10
- package/fesm2022/theme-btn.mjs.map +1 -1
- package/fesm2022/theme.mjs +161 -78
- package/fesm2022/theme.mjs.map +1 -1
- package/layout-blank/style/index.less +0 -1
- package/layout-blank/style/theme-default.less +5 -2
- package/layout-blank/style/theme-variable.less +1 -0
- package/layout-default/style/_layout.less +7 -3
- package/layout-default/style/fix/_reuse-tab.less +3 -2
- package/layout-default/style/index.less +0 -1
- package/layout-default/style/theme-dark.less +1 -1
- package/layout-default/style/theme-default.less +8 -7
- package/layout-default/style/theme-variable.less +1 -0
- package/mixins.less +2 -0
- package/package.json +6 -6
- package/src/locale/languages/ar-SA.d.ts +3 -0
- package/src/locale/public_api.d.ts +1 -0
- package/src/services/http/http.client.d.ts +1 -1
- package/system/entry.less +0 -2
- package/system/index.less +6 -3
- package/system/mixins/_freak.js +49 -0
- package/system/mixins/_freak.less +1 -57
- package/system/theme-default.less +14 -22
- package/system/theme-variable.less +34 -0
- package/system/utils/_border.less +27 -14
- package/system/utils/_color.less +71 -38
- package/system/utils/_other.less +1 -1
- package/system/utils/_spacing.less +25 -10
- package/system/utils/_width.less +9 -6
- package/theme-compact.less +1 -0
- package/theme-dark.less +1 -0
- package/theme-default.less +1 -0
- package/theme-variable.less +6 -0
- package/variable.less +6 -0
- package/compact.css +0 -34506
- package/compact.min.css +0 -1
- package/dark.css +0 -35070
- package/dark.min.css +0 -1
- package/default.css +0 -34507
- package/default.min.css +0 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
@alain-blank-
|
|
2
|
-
@alain-blank-
|
|
1
|
+
@alain-blank-name: 'alain-blank';
|
|
2
|
+
@alain-blank-prefix: ~'.@{alain-blank-name}';
|
|
3
3
|
|
|
4
|
+
@alain-blank-zindex: @zindex-base;
|
|
4
5
|
@alain-blank-bg: #f5f7fa;
|
|
6
|
+
// @alain-blank-bg: ~'var(--@{alain-blank-name}-bg, #f5f7fa)';
|
|
7
|
+
|
|
5
8
|
@alain-blank-content-padding-vertical: 0;
|
|
6
9
|
@alain-blank-content-padding-horizontal: @layout-gutter * 2;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './theme-default.less';
|
|
@@ -35,7 +35,7 @@ body {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&__content {
|
|
38
|
-
margin: 0 @alain-default-content-padding @alain-default-content-padding
|
|
38
|
+
margin: 0 @alain-default-content-padding @alain-default-content-padding;
|
|
39
39
|
.router-ant();
|
|
40
40
|
|
|
41
41
|
&-title {
|
|
@@ -52,18 +52,19 @@ body {
|
|
|
52
52
|
background-color: @alain-default-content-heading-bg;
|
|
53
53
|
border-bottom: 1px solid @alain-default-content-heading-border;
|
|
54
54
|
|
|
55
|
-
>
|
|
55
|
+
>h1 {
|
|
56
56
|
margin-bottom: 0;
|
|
57
57
|
font-size: 18px;
|
|
58
58
|
font-weight: normal;
|
|
59
59
|
|
|
60
|
-
>
|
|
60
|
+
>small {
|
|
61
61
|
display: block;
|
|
62
62
|
font-size: 12px;
|
|
63
63
|
color: @muted-color;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
+
|
|
67
68
|
// fix width
|
|
68
69
|
nz-input-group {
|
|
69
70
|
width: auto;
|
|
@@ -89,6 +90,7 @@ body {
|
|
|
89
90
|
@{alain-default-prefix}__content {
|
|
90
91
|
margin-left: (@alain-default-aside-wd + @alain-default-content-padding);
|
|
91
92
|
}
|
|
93
|
+
|
|
92
94
|
@{alain-default-prefix}__collapsed {
|
|
93
95
|
@{alain-default-prefix} {
|
|
94
96
|
&__sidebar {
|
|
@@ -109,6 +111,7 @@ body {
|
|
|
109
111
|
margin-right: (@alain-default-aside-wd + @alain-default-content-padding);
|
|
110
112
|
margin-left: 0;
|
|
111
113
|
}
|
|
114
|
+
|
|
112
115
|
@{alain-default-prefix}__collapsed {
|
|
113
116
|
@{alain-default-prefix} {
|
|
114
117
|
&__content {
|
|
@@ -120,4 +123,5 @@ body {
|
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
125
|
}
|
|
126
|
+
|
|
123
127
|
.layout-default-rtl-mixin(@rtl-enabled);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@alain-default-aside-collapsed-width: @alain-default-aside-collapsed-wd + @alain-default-content-padding;
|
|
3
3
|
|
|
4
4
|
@{reuse-tab-prefix} {
|
|
5
|
-
margin: 0 -@alain-default-content-padding
|
|
5
|
+
margin: 0 -@alain-default-content-padding;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
@{alain-default-prefix}__fixed {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@media (min-width: @mobile-min) {
|
|
37
37
|
@{alain-default-prefix}__fixed {
|
|
38
38
|
@{reuse-tab-prefix} {
|
|
39
|
-
+
|
|
39
|
+
+router-outlet {
|
|
40
40
|
display: block;
|
|
41
41
|
height: @reuse-tab-height;
|
|
42
42
|
}
|
|
@@ -71,4 +71,5 @@
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
+
|
|
74
75
|
.layout-default-reuse-tab-rtl-mixin(@rtl-enabled);
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
@alain-default-aside-nav-selected-bg: @component-background;
|
|
8
8
|
@alain-default-content-heading-bg: @component-background;
|
|
9
9
|
@alain-default-content-heading-border: @border-color-split;
|
|
10
|
-
@alain-default-content-bg: @body-background;
|
|
10
|
+
@alain-default-content-bg: ~'var(--@{alain-default-name}-content-bg, @{body-background})';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@alain-default-
|
|
1
|
+
@alain-default-name: 'alain-default';
|
|
2
|
+
@alain-default-prefix: ~'.@{alain-default-name}';
|
|
2
3
|
@alain-default-zindex: @zindex-base;
|
|
3
4
|
@alain-default-ease: cubic-bezier(0.25, 0, 0.15, 1);
|
|
4
|
-
@alain-default-header-hg: 64px;
|
|
5
|
+
@alain-default-header-hg: ~'var(--@{alain-default-name}-header-hg, 64px)';
|
|
5
6
|
@alain-default-header-bg: @primary-color;
|
|
6
7
|
@alain-default-header-padding: @layout-gutter * 2;
|
|
7
8
|
@alain-default-header-search-enabled: true;
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
@alain-default-header-top-menu-item-padding: 0 16px;
|
|
14
15
|
|
|
15
16
|
@alain-default-aside-wd: 200px;
|
|
16
|
-
@alain-default-aside-bg: #fff;
|
|
17
|
+
@alain-default-aside-bg: ~'var(--@{alain-default-name}-aside-bg, #fff)';
|
|
17
18
|
@alain-default-aside-scrollbar-width: 0;
|
|
18
19
|
@alain-default-aside-scrollbar-height: 0;
|
|
19
20
|
@alain-default-aside-scrollbar-track-color: transparent;
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
@alain-default-aside-nav-text-hover-color: @primary-color;
|
|
29
30
|
@alain-default-aside-nav-group-text-color: @text-color-secondary;
|
|
30
31
|
@alain-default-aside-nav-selected-text-color: @primary-color;
|
|
31
|
-
@alain-default-aside-nav-selected-bg: #fcfcfc;
|
|
32
|
+
@alain-default-aside-nav-selected-bg: ~'var(--@{alain-default-name}-aside-nav-selected-bg, #fcfcfc)';
|
|
32
33
|
@alain-default-aside-nav-depth1-padding-left: @layout-gutter * 3;
|
|
33
34
|
@alain-default-aside-nav-depth2-padding-left: @layout-gutter * 4;
|
|
34
35
|
@alain-default-aside-nav-depth3-padding-left: @layout-gutter * 5;
|
|
@@ -40,10 +41,10 @@
|
|
|
40
41
|
@alain-default-aside-collapsed-nav-img-wh: 24px;
|
|
41
42
|
@alain-default-aside-collapsed-padding: (@layout-gutter * 2) 0;
|
|
42
43
|
|
|
43
|
-
@alain-default-content-heading-bg: #fafbfc;
|
|
44
|
-
@alain-default-content-heading-border: #efe3e5;
|
|
44
|
+
@alain-default-content-heading-bg: ~'var(--@{alain-default-name}-heading-bg, #fafbfc)';
|
|
45
|
+
@alain-default-content-heading-border: ~'var(--@{alain-default-name}-heading-border, #efe3e5)';
|
|
45
46
|
@alain-default-content-padding: @layout-gutter * 3;
|
|
46
|
-
@alain-default-content-bg: #f5f7fa;
|
|
47
|
+
@alain-default-content-bg: ~'var(--@{alain-default-name}-content-bg, #f5f7fa)';
|
|
47
48
|
|
|
48
49
|
@alain-default-widget-app-icons-enabled: true;
|
|
49
50
|
@alain-default-aside-user-enabled: true;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './theme-default.less';
|
package/mixins.less
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delon/theme",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0-beta.0",
|
|
4
4
|
"author": "cipchk<cipchk@qq.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"component"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"ng-zorro-antd": "^
|
|
25
|
-
"@delon/acl": "^
|
|
26
|
-
"@delon/abc": "^
|
|
27
|
-
"@delon/form": "^
|
|
28
|
-
"@delon/util": "^
|
|
24
|
+
"ng-zorro-antd": "^18.0.1",
|
|
25
|
+
"@delon/acl": "^18.0.0-beta.0",
|
|
26
|
+
"@delon/abc": "^18.0.0-beta.0",
|
|
27
|
+
"@delon/form": "^18.0.0-beta.0",
|
|
28
|
+
"@delon/util": "^18.0.0-beta.0",
|
|
29
29
|
"tslib": "^2.3.0"
|
|
30
30
|
},
|
|
31
31
|
"module": "fesm2022/theme.mjs",
|
|
@@ -16,3 +16,4 @@ export { default as fr_FR } from './languages/fr-FR';
|
|
|
16
16
|
export { default as es_ES } from './languages/es-ES';
|
|
17
17
|
export { default as it_IT } from './languages/it-IT';
|
|
18
18
|
export { default as vi_VI } from './languages/vi-VI';
|
|
19
|
+
export { default as ar_SA } from './languages/ar-SA';
|
|
@@ -156,7 +156,7 @@ export declare class _HttpClient {
|
|
|
156
156
|
*/
|
|
157
157
|
post<T>(url: string, body?: any, params?: any, options?: {
|
|
158
158
|
headers?: _HttpHeaders;
|
|
159
|
-
observe: 'response';
|
|
159
|
+
observe: 'body' | 'response';
|
|
160
160
|
reportProgress?: boolean;
|
|
161
161
|
responseType?: 'json';
|
|
162
162
|
withCredentials?: boolean;
|
package/system/entry.less
CHANGED
package/system/index.less
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/** antd: base */
|
|
2
2
|
@import 'ng-zorro-antd/style/entry.less';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
/** antd: all components */
|
|
4
5
|
@import 'ng-zorro-antd/components.less';
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
/** system */
|
|
8
|
+
@import './mixins/index.less';
|
|
6
9
|
@import './entry.less';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
install: function (less, pluginManager, functions) {
|
|
3
|
+
functions.add('genComment', function (value, ...comments) {
|
|
4
|
+
return (
|
|
5
|
+
'/* AUTOGENERATE: ' +
|
|
6
|
+
comments
|
|
7
|
+
.map(c => c.value)
|
|
8
|
+
.join('|SPLIT|')
|
|
9
|
+
.replace(/(\{0\})/g, '"' + value.value + '"') +
|
|
10
|
+
'*/'
|
|
11
|
+
);
|
|
12
|
+
});
|
|
13
|
+
functions.add('genCommentColor', function (color, ...comments) {
|
|
14
|
+
var imgColor = '  + '/fff.png&text=+)';
|
|
15
|
+
return (
|
|
16
|
+
'/* AUTOGENERATE: ' +
|
|
17
|
+
comments
|
|
18
|
+
.map(c => c.value + imgColor)
|
|
19
|
+
.join('|SPLIT|')
|
|
20
|
+
.replace(/(\{0\})/g, '"' + color.value + '"') +
|
|
21
|
+
'*/'
|
|
22
|
+
);
|
|
23
|
+
});
|
|
24
|
+
functions.add('genCommentTypeColor', function (type, color) {
|
|
25
|
+
var comments = [];
|
|
26
|
+
switch (type.value) {
|
|
27
|
+
case 'text':
|
|
28
|
+
comments = ['Set the text color to {0}', '设置文本颜色为 {0}'];
|
|
29
|
+
break;
|
|
30
|
+
case 'background':
|
|
31
|
+
comments = ['Set the background light color to {0}', '设置背景颜色为 {0}'];
|
|
32
|
+
break;
|
|
33
|
+
case 'hoverBackground':
|
|
34
|
+
comments = ['Set the hover background color to {0}', '设置悬停时背景颜色为 {0}'];
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
if (comments.length === 0) return '';
|
|
38
|
+
var imgColor = '  + '/fff.png&text=+)';
|
|
39
|
+
return (
|
|
40
|
+
'/* AUTOGENERATE: ' +
|
|
41
|
+
comments
|
|
42
|
+
.map(c => c + imgColor)
|
|
43
|
+
.join('|SPLIT|')
|
|
44
|
+
.replace(/(\{0\})/g, '"' + color.value + '"') +
|
|
45
|
+
'*/'
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
};
|
|
@@ -1,57 +1 @@
|
|
|
1
|
-
|
|
2
|
-
@functions: ~`(function() {
|
|
3
|
-
function toColorList(list) {
|
|
4
|
-
list = list.slice(1, list.length - 1).split(',');
|
|
5
|
-
var ret = [];
|
|
6
|
-
for (var i = 0, c = list.length; i < c; i++) {
|
|
7
|
-
ret.push(list[i].trim().split(' '));
|
|
8
|
-
}
|
|
9
|
-
return ret;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
var catchColors;
|
|
13
|
-
function _initColor(list) {
|
|
14
|
-
if (!catchColors) catchColors = toColorList(list);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
this.getColor = function(list, name, position) {
|
|
18
|
-
_initColor(list);
|
|
19
|
-
var ret = '';
|
|
20
|
-
for (var i = 0, c = catchColors.length; i < c; i++) {
|
|
21
|
-
if (catchColors[i][0] === name) {
|
|
22
|
-
ret = catchColors[i][position - 1];
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return ret;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
this.genComment = function(value, ...comments) {
|
|
30
|
-
return '/* AUTOGENERATE: ' + comments.join('|SPLIT|').replace(/(\{0\})/g, '"' + value + '"') + '*/';
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
this.genCommentColor = function(color, ...comments) {
|
|
34
|
-
var imgColor = '  + '/fff.png&text=+)';
|
|
35
|
-
return '/* AUTOGENERATE: ' + comments.map(c => c + imgColor).join('|SPLIT|').replace(/(\{0\})/g, '"' + color + '"') + '*/';
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
this.genCommentTypeColor = function(type, color) {
|
|
39
|
-
var comments = [];
|
|
40
|
-
switch (type) {
|
|
41
|
-
case 'text':
|
|
42
|
-
comments = ['Set the text color to {0}', '设置文本颜色为 {0}'];
|
|
43
|
-
break;
|
|
44
|
-
case 'background':
|
|
45
|
-
comments = ['Set the background light color to {0}', '设置背景颜色为 {0}'];
|
|
46
|
-
break;
|
|
47
|
-
case 'hoverBackground':
|
|
48
|
-
comments = ['Set the hover background color to {0}', '设置悬停时背景颜色为 {0}'];
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
if (comments.length === 0) return '';
|
|
52
|
-
var imgColor = '  + '/fff.png&text=+)';
|
|
53
|
-
return '/* AUTOGENERATE: ' + comments.map(c => c + imgColor).join('|SPLIT|').replace(/(\{0\})/g, '"' + color + '"') + '*/';
|
|
54
|
-
}
|
|
55
|
-
})()`;
|
|
56
|
-
}
|
|
57
|
-
.freakMixin();
|
|
1
|
+
@plugin "./_freak";
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
@import 'ng-zorro-antd/src/style/mixins/index.less';
|
|
2
|
-
@import './mixins/index.less';
|
|
3
|
-
|
|
4
1
|
@root-entry-name: default;
|
|
5
2
|
|
|
6
|
-
@white: #fff;
|
|
7
|
-
@black: #000;
|
|
8
|
-
|
|
9
3
|
// grey
|
|
10
4
|
@grey-1: #ffffff;
|
|
11
5
|
@grey-2: #fafafa;
|
|
12
6
|
@grey-3: #f5f5f5;
|
|
13
|
-
@grey-4: #
|
|
7
|
+
@grey-4: #f0f0f0;
|
|
14
8
|
@grey-5: #d9d9d9;
|
|
15
9
|
@grey-6: #bfbfbf;
|
|
16
10
|
@grey-7: #8c8c8c;
|
|
17
11
|
@grey-8: #595959;
|
|
18
|
-
@grey-9: #
|
|
19
|
-
@grey-10: #
|
|
12
|
+
@grey-9: #434343;
|
|
13
|
+
@grey-10: #262626;
|
|
14
|
+
@grey-11: #1f1f1f;
|
|
15
|
+
@grey-12: #141414;
|
|
16
|
+
@grey-13: #000000;
|
|
20
17
|
|
|
21
18
|
@color-light-index: 5;
|
|
22
19
|
@color-basic-index: 6;
|
|
@@ -137,23 +134,18 @@
|
|
|
137
134
|
|
|
138
135
|
@muted-color: @grey-7;
|
|
139
136
|
|
|
140
|
-
// Colors
|
|
141
|
-
@white: #fff;
|
|
142
|
-
@black: #000;
|
|
143
|
-
|
|
144
137
|
// scrollbar
|
|
145
138
|
@scrollbar-enabled: true;
|
|
146
139
|
@scrollbar-width: 6px;
|
|
147
140
|
@scrollbar-height: 6px;
|
|
148
|
-
@scrollbar-track-color:
|
|
141
|
+
@scrollbar-track-color: fade(@black, 30%);
|
|
149
142
|
@scrollbar-thumb-color: transparent;
|
|
150
143
|
@scrollbar-table-enabled: false;
|
|
151
144
|
|
|
152
145
|
// type
|
|
153
146
|
// ==========
|
|
154
147
|
|
|
155
|
-
|
|
156
|
-
// https://ant.design/docs/spec/font-cn#字号
|
|
148
|
+
/** font-size https://ant.design/docs/spec/font-cn#字号 */
|
|
157
149
|
@font-size-large: @font-size-base + 8; // 20px
|
|
158
150
|
@font-size-small: @font-size-base; // 12px
|
|
159
151
|
|
|
@@ -167,8 +159,8 @@
|
|
|
167
159
|
@enable-all-colors: false;
|
|
168
160
|
|
|
169
161
|
// Code
|
|
170
|
-
@code-border-color:
|
|
171
|
-
@code-bg:
|
|
162
|
+
@code-border-color: @border-color-base;
|
|
163
|
+
@code-bg: @tag-default-bg;
|
|
172
164
|
|
|
173
165
|
@drawer-xl: 1200px;
|
|
174
166
|
@drawer-lg: 900px;
|
|
@@ -208,22 +200,22 @@
|
|
|
208
200
|
@nz-table-rep-max-width: @mobile-max;
|
|
209
201
|
@nz-table-rep-min-width: @nz-table-rep-max-width + 1;
|
|
210
202
|
@nz-table-rep-header-background: @border-color-split;
|
|
211
|
-
@nz-table-rep-even-background:
|
|
203
|
+
@nz-table-rep-even-background: @item-hover-bg;
|
|
212
204
|
@nz-table-rep-padding-vertical: (@table-padding-vertical / 2);
|
|
213
205
|
@nz-table-rep-padding-horizontal: (@table-padding-horizontal / 2);
|
|
214
206
|
@nz-table-rep-column-name-width: 100px;
|
|
215
207
|
@nz-table-rep-column-name-text-align: right;
|
|
216
208
|
@nz-table-rep-column-name-padding-right: 8px;
|
|
217
|
-
@nz-table-rep-column-name-color:
|
|
209
|
+
@nz-table-rep-column-name-color: fade(@black, 50%);
|
|
218
210
|
|
|
219
211
|
// Forced to turn off Modal animation
|
|
220
212
|
@forced-turn-off-nz-modal-animation-enabled: false;
|
|
221
213
|
|
|
222
214
|
@sf-title-text-align: left;
|
|
223
|
-
@sf-optional-color:
|
|
215
|
+
@sf-optional-color: fade(@black, 35%);
|
|
224
216
|
@sf-optional-margin: 2px;
|
|
225
217
|
@sf-inline-ant-select-min-width: 100px;
|
|
226
|
-
@sf-widget-array-type-card-remove-bg:
|
|
218
|
+
@sf-widget-array-type-card-remove-bg: fade(@black, 26%);
|
|
227
219
|
|
|
228
220
|
@yn-yes-color: @blue-6;
|
|
229
221
|
@yn-no-color: @grey-7;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@import './theme-default.less';
|
|
2
|
+
|
|
3
|
+
@root-entry-name: variable;
|
|
4
|
+
|
|
5
|
+
@{html-selector} {
|
|
6
|
+
--grey-1: #fff;
|
|
7
|
+
--grey-2: #fafafa;
|
|
8
|
+
--grey-3: #f5f5f5;
|
|
9
|
+
--grey-4: #f0f0f0;
|
|
10
|
+
--grey-5: #d9d9d9;
|
|
11
|
+
--grey-6: #bfbfbf;
|
|
12
|
+
--grey-7: #8c8c8c;
|
|
13
|
+
--grey-8: #595959;
|
|
14
|
+
--grey-9: #434343;
|
|
15
|
+
--grey-10: #262626;
|
|
16
|
+
--grey-11: #1f1f1f;
|
|
17
|
+
--grey-12: #141414;
|
|
18
|
+
--grey-13: #000;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// grey
|
|
22
|
+
@grey-1: var(--grey-1);
|
|
23
|
+
@grey-2: var(--grey-2);
|
|
24
|
+
@grey-3: var(--grey-3);
|
|
25
|
+
@grey-4: var(--grey-4);
|
|
26
|
+
@grey-5: var(--grey-5);
|
|
27
|
+
@grey-6: var(--grey-6);
|
|
28
|
+
@grey-7: var(--grey-7);
|
|
29
|
+
@grey-8: var(--grey-8);
|
|
30
|
+
@grey-9: var(--grey-9);
|
|
31
|
+
@grey-10: var(--grey-10);
|
|
32
|
+
@grey-11: var(--grey-11);
|
|
33
|
+
@grey-12: var(--grey-12);
|
|
34
|
+
@grey-13: var(--grey-13);
|
|
@@ -12,35 +12,42 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@border-width-list: 0, 1;
|
|
15
|
+
|
|
15
16
|
.for(@border-width-list, {
|
|
16
17
|
.border-css-mixin(@i) when(@i > 0) {
|
|
17
18
|
@css-value-comment: ~'1px';
|
|
18
19
|
@css-value: ~'@{i}px solid @{border-color}';
|
|
19
20
|
}
|
|
21
|
+
|
|
20
22
|
.border-css-mixin(@i) when(default()) {
|
|
21
23
|
@css-value-comment: ~'0px';
|
|
22
24
|
@css-value: 0;
|
|
23
25
|
}
|
|
26
|
+
|
|
24
27
|
.border-css-mixin(@adIndex);
|
|
25
28
|
|
|
26
29
|
.border-@{adIndex} {
|
|
27
|
-
|
|
30
|
+
genComment('@{css-value-comment}', 'Set the border size to {0}', '设置边框大小为 {0}');
|
|
28
31
|
border: @css-value !important;
|
|
29
32
|
}
|
|
33
|
+
|
|
30
34
|
.border-top-@{adIndex} {
|
|
31
|
-
|
|
35
|
+
genComment('@{css-value-comment}', 'Set the top border size to {0}', '设置上边框大小为 {0}');
|
|
32
36
|
border-top: @css-value !important;
|
|
33
37
|
}
|
|
38
|
+
|
|
34
39
|
.border-right-@{adIndex} {
|
|
35
|
-
|
|
40
|
+
genComment('@{css-value-comment}', 'Set the right border size to {0}', '设置右边框大小为 {0}');
|
|
36
41
|
border-right: @css-value !important;
|
|
37
42
|
}
|
|
43
|
+
|
|
38
44
|
.border-bottom-@{adIndex} {
|
|
39
|
-
|
|
45
|
+
genComment('@{css-value-comment}', 'Set the bottom border size to {0}', '设置下边框大小为 {0}');
|
|
40
46
|
border-bottom: @css-value !important;
|
|
41
47
|
}
|
|
48
|
+
|
|
42
49
|
.border-left-@{adIndex} {
|
|
43
|
-
|
|
50
|
+
genComment('@{css-value-comment}', 'Set the left border size to {0}', '设置左边框大小为 {0}');
|
|
44
51
|
border-left: @css-value !important;
|
|
45
52
|
}
|
|
46
53
|
});
|
|
@@ -49,14 +56,14 @@
|
|
|
49
56
|
.for-each(@colors, {
|
|
50
57
|
.border-@{adKey} {
|
|
51
58
|
@border-colors-color: extract(@adItem, @color-basic-position);
|
|
52
|
-
|
|
59
|
+
genCommentColor('@{border-colors-color}', 'Set the border color to {0}', '设置边框颜色为 {0}');
|
|
53
60
|
border-color: @border-colors-color !important;
|
|
54
61
|
}
|
|
55
62
|
});
|
|
56
63
|
|
|
57
64
|
.for-each(@aliasColors, {
|
|
58
65
|
.border-@{adKey} {
|
|
59
|
-
|
|
66
|
+
genComment('@{adValue}', 'Set the border color to {0}', '设置边框颜色为 {0}');
|
|
60
67
|
border-color: @adValue !important;
|
|
61
68
|
}
|
|
62
69
|
});
|
|
@@ -64,23 +71,27 @@
|
|
|
64
71
|
// Border-radius
|
|
65
72
|
.for-each(@border-grids, {
|
|
66
73
|
.rounded-@{adKey} {
|
|
67
|
-
|
|
74
|
+
genComment('@{adValue}', 'Set the border radius to {0}', '设置边框圆角为 {0}');
|
|
68
75
|
border-radius: @adValue;
|
|
69
76
|
}
|
|
77
|
+
|
|
70
78
|
.rounded-top-left-@{adKey} {
|
|
71
|
-
|
|
79
|
+
genComment('@{adValue}', 'Set the border top-left corner to {0}', '设置左上角边框圆角为 {0}');
|
|
72
80
|
border-top-left-radius: @adValue;
|
|
73
81
|
}
|
|
82
|
+
|
|
74
83
|
.rounded-top-right-@{adKey} {
|
|
75
|
-
|
|
84
|
+
genComment('@{adValue}', 'Set the border top-right corner to {0}', '设置右上角边框圆角为 {0}');
|
|
76
85
|
border-top-right-radius: @adValue;
|
|
77
86
|
}
|
|
87
|
+
|
|
78
88
|
.rounded-bottom-left-@{adKey} {
|
|
79
|
-
|
|
89
|
+
genComment('@{adValue}', 'Set the border bottom-left corner to {0}', '设置左下角边框圆角为 {0}');
|
|
80
90
|
border-bottom-left-radius: @adValue;
|
|
81
91
|
}
|
|
92
|
+
|
|
82
93
|
.rounded-bottom-right-@{adKey} {
|
|
83
|
-
|
|
94
|
+
genComment('@{adValue}', 'Set the border bottom-right corner to {0}', '设置右下角边框圆角为 {0}');
|
|
84
95
|
border-bottom-right-radius: @adValue;
|
|
85
96
|
}
|
|
86
97
|
});
|
|
@@ -117,11 +128,13 @@
|
|
|
117
128
|
*/
|
|
118
129
|
.rotate-loop(@i) when (@i > 0) {
|
|
119
130
|
@num: @i * 15;
|
|
131
|
+
|
|
120
132
|
.rotate-@{num} {
|
|
121
|
-
|
|
133
|
+
genComment('@{num}', 'Element transform to {0} degree', '元素旋转 {0} 度');
|
|
122
134
|
transform: rotate(~'@{num}deg');
|
|
123
135
|
}
|
|
136
|
+
|
|
124
137
|
.rotate-loop(@i - 1);
|
|
125
138
|
}
|
|
126
139
|
|
|
127
|
-
.rotate-loop(@rotate-count);
|
|
140
|
+
.rotate-loop(@rotate-count);
|