Skip to content

Commit

Permalink
feat: 增加Result
Browse files Browse the repository at this point in the history
  • Loading branch information
shijia.sj committed Nov 8, 2024
1 parent 400c312 commit 40e32b8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Rate/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
}

&-icon {
color: #eee;
color: @rate-icon-color;
}

&-icon-active {
color: @COLOR_YELLOW;
color: @rate-active-icon;
}

&-icon-half-active {
Expand Down
4 changes: 4 additions & 0 deletions src/Rate/variable.less
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
@import (reference) '../style/variables.less';
@import (reference) '../style/themes/index.less';

@rate-active-icon: var(--color-yellow, @COLOR_YELLOW);
@rate-icon-color: var(--color-border, @COLOR_BORDER);
12 changes: 6 additions & 6 deletions src/Result/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}

&-main {
padding: 70 * @rpx 24 * @rpx;
padding: 70 * @rpx 24 * @rpx;
margin-bottom: @size-5;
line-height: 1.4;
background-color: @result-main-background;
Expand All @@ -33,23 +33,23 @@
line-height: @result-img-size;

&-success {
color: @COLOR_BRAND1;
color: @result-success-color;
}

&-error {
color: @COLOR_TEXT_WARNING;
color: @result-error-color;
}

&-info {
color: @COLOR_BRAND1;
color: @result-success-color;
}

&-warning {
color: @COLOR_ORANGE_1;
color: @result-warning-color;
}

&-wait {
color: @COLOR_POMONAGREEN_1;
color: @result-wait-color;
}
}

Expand Down
15 changes: 12 additions & 3 deletions src/Result/variable.less
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
@import (reference) '../style/variables.less';
@import (reference) '../style/themes/index.less';

// 图片尺寸
@result-img-size: 128 * @rpx;
// 主区域背景
@result-main-background: @COLOR_CARD;
@result-main-background: var(--color-card, @COLOR_CARD);
// 左右边距
@result-spacing-LR: @h-spacing-large;
// 主标题颜色
@result-title-color: #000000;
@result-title-color: var(--color-black, @COLOR_BLACK);
// 主标题大小
@result-title-size: 40 * @rpx;
// 描述颜色
@result-desc-color: #333333;
@result-desc-color: var(--color-text-primary, @COLOR_TEXT_PRIMARY);
// 描述大小
@result-desc-size: 32 * @rpx;

@result-success-color: var(--color-brand1, @COLOR_BRAND1);

@result-error-color: var(--color-text-warning, @COLOR_TEXT_WARNING);

@result-warning-color: var(--color-orange-1, @COLOR_ORANGE_1);

@result-wait-color: var(--color-pomonagreen-1, @COLOR_POMONAGREEN_1);

0 comments on commit 40e32b8

Please sign in to comment.