Skip to content

Commit

Permalink
style: add indentation property (#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored May 31, 2022
1 parent d8efc02 commit e9f1c46
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 54 deletions.
3 changes: 2 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
]
}
],
"no-invalid-double-slash-comments": null
"no-invalid-double-slash-comments": null,
"indentation": [ 2 ]
}
}
3 changes: 1 addition & 2 deletions packages/theme/system/theme-dark.less
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
@import './theme-default.less';

// Grey patch
@greyColorer: lighter lighten(@black, 6%),
darker lighten(@black, 4%);
@greyColorer: lighter lighten(@black, 6%), darker lighten(@black, 4%);

@nz-table-rep-even-background: darken(@table-row-hover-bg, 10%);
@nz-table-rep-column-name-color: darken(@text-color, 30%);
Expand Down
101 changes: 50 additions & 51 deletions packages/theme/system/theme-default.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,33 @@
@color-no-list: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10;

@colors:
red @red-5 @red-6 @red-7,
volcano @volcano-5 @volcano-6 @volcano-7,
orange @orange-5 @orange-6 @orange-7,
gold @gold-5 @gold-6 @gold-7,
yellow @yellow-5 @yellow-6 @yellow-7,
lime @lime-5 @lime-6 @lime-7,
green @green-5 @green-6 @green-7,
cyan @cyan-5 @cyan-6 @cyan-7,
blue @blue-5 @blue-6 @blue-7,
geekblue @geekblue-5 @geekblue-6 @geekblue-7,
purple @purple-5 @purple-6 @purple-7,
magenta @magenta-5 @magenta-6 @magenta-7,
grey @grey-5 @grey-6 @grey-7;
red @red-5 @red-6 @red-7,
volcano @volcano-5 @volcano-6 @volcano-7,
orange @orange-5 @orange-6 @orange-7,
gold @gold-5 @gold-6 @gold-7,
yellow @yellow-5 @yellow-6 @yellow-7,
lime @lime-5 @lime-6 @lime-7,
green @green-5 @green-6 @green-7,
cyan @cyan-5 @cyan-6 @cyan-7,
blue @blue-5 @blue-6 @blue-7,
geekblue @geekblue-5 @geekblue-6 @geekblue-7,
purple @purple-5 @purple-6 @purple-7,
magenta @magenta-5 @magenta-6 @magenta-7,
grey @grey-5 @grey-6 @grey-7;

// Alias
@aliasColors:
primary @primary-color,
success @success-color,
error @error-color,
warning @warning-color,
info @info-color,
processing @processing-color,
highlight @highlight-color,
normal @normal-color;
primary @primary-color,
success @success-color,
error @error-color,
warning @warning-color,
info @info-color,
processing @processing-color,
highlight @highlight-color,
normal @normal-color;

// Grey patch
@greyColorer: lighter @grey-3,
darker @grey-9;
@greyColorer: lighter @grey-3, darker @grey-9;

// Layout Gutter
@layout-gutter: 8px;
Expand All @@ -68,24 +67,24 @@
@xxl: (@layout-gutter * 6); // 48px

@grid-breakpoints:
xs @screen-xs,
sm @screen-sm,
md @screen-md,
lg @screen-lg,
xl @screen-xl;
xs @screen-xs,
sm @screen-sm,
md @screen-md,
lg @screen-lg,
xl @screen-xl;

@mobile-min: @screen-md-min;
@mobile-max: @screen-md-min - 1px;

// spaceing
@spacings:
0 0,
xs @xs,
sm @sm,
md @md,
lg @lg,
xl @xl,
xxl @xxl;
0 0,
xs @xs,
sm @sm,
md @md,
lg @lg,
xl @xl,
xxl @xxl;

// 是否启用RTL支持
@rtl-enabled: true;
Expand Down Expand Up @@ -115,22 +114,22 @@

// 宽度
@widths:
xs @layout-gutter * 10, // 80px
sm @layout-gutter * 20, // 160px
md @layout-gutter * 30, // 240px
lg @layout-gutter * 40, // 320px
xl @layout-gutter * 50, // 400px
xxl @layout-gutter * 60, // 480px
10 10%,
20 20%,
30 30%,
40 40%,
50 50%,
60 60%,
70 70%,
80 80%,
90 90%,
100 100%;
xs @layout-gutter * 10, // 80px
sm @layout-gutter * 20, // 160px
md @layout-gutter * 30, // 240px
lg @layout-gutter * 40, // 320px
xl @layout-gutter * 50, // 400px
xxl @layout-gutter * 60, // 480px
10 10%,
20 20%,
30 30%,
40 40%,
50 50%,
60 60%,
70 70%,
80 80%,
90 90%,
100 100%;

// 圆角
@border-radius-md: @border-radius-base; // 4px
Expand Down

0 comments on commit e9f1c46

Please sign in to comment.