Skip to content

Commit

Permalink
style(CountDown): using css token
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Nov 21, 2022
1 parent e64309b commit 03f1f4c
Show file tree
Hide file tree
Showing 23 changed files with 651 additions and 305 deletions.
2 changes: 1 addition & 1 deletion example/components/demo-block/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.demo-block {
margin: @spacer-3 0 0;
line-height: @text-line-height;
font-size: @font-size-m;
font-size: @font-size-l;

&__heander {
color: @text-level-1-color;
Expand Down
2 changes: 1 addition & 1 deletion src/action-sheet/action-sheet.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
color: @action-sheet-list-item-color--disabled;
}
&-text {
font-size: @font-size-m;
font-size: @font-size-l;
.ellipsis();
}
&-icon {
Expand Down
6 changes: 3 additions & 3 deletions src/common/style/_variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@
@font-size-xs: @font-size; // 字号-一级字号
@font-size-s: @font-size * 1.2; // 字号-二级字号
@font-size-base: @font-size * 1.4; // 字号-三级字号
@font-size-m: @font-size * 1.6; // 字号-二级字号
@font-size-l: @font-size * 2; // 字号-四级字号
@font-size-xl: @font-size * 3.6; // 字号-五级字号
@font-size-l: @font-size * 1.6; // 字号-二级字号
@font-size-xl: @font-size * 2; // 字号-四级字号
@font-size-xxl: @font-size * 3.6; // 字号-五级字号

@text-line-height: 1.5; //

Expand Down
4 changes: 2 additions & 2 deletions src/count-down/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ content | String / Slot | 'default' | \- | N
custom-style `v0.25.0` | String | - | \- | N
format | String | HH:mm:ss | \- | N
millisecond | Boolean | false | \- | N
size | String `v0.5.1` | 'small' | options:small/medium/large | N
size | String `v0.5.1` | 'medium' | options:small/medium/large | N
split-with-unit `v0.5.1` | Boolean | false | \- | N
theme | String `v0.5.1` | 'default' | options:default/round/square | N
theme | String `v0.5.1` | 'default' | options:default/round/square/none | N
time | Number | - | required | Y

### CountDown Events
Expand Down
4 changes: 2 additions & 2 deletions src/count-down/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ content | String / Slot | 'default' | 最终倒计时的展示内容,值为'de
custom-style `v0.25.0` | String | - | 自定义组件样式 | N
format | String | HH:mm:ss | 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒 | N
millisecond | Boolean | false | 是否开启毫秒级渲染 | N
size | String `v0.5.1` | 'small' | 倒计时尺寸。可选项:small/medium/large | N
size | String `v0.5.1` | 'medium' | 倒计时尺寸。可选项:small/medium/large | N
split-with-unit `v0.5.1` | Boolean | false | 使用时间单位分割 | N
theme | String `v0.5.1` | 'default' | 倒计时风格。可选项:default/round/square | N
theme | String `v0.5.1` | 'default' | 倒计时风格。可选项:default/round/square/none | N
time | Number | - | 必需。倒计时时长,单位毫秒 | Y

### CountDown Events
Expand Down
Loading

0 comments on commit 03f1f4c

Please sign in to comment.