Skip to content

Commit

Permalink
fix: 设计稿更改间距跟随修改
Browse files Browse the repository at this point in the history
  • Loading branch information
irisSong committed Nov 26, 2024
1 parent 2bd65c7 commit 77be6a5
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/packages/rate/rate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}

&-small {
margin-left: calc($rate-item-margin / 2);
margin-left: calc($rate-item-margin - 2px);
.nut-icon {
height: calc($rate-icon-size - 4px);
width: calc($rate-icon-size - 4px);
Expand Down Expand Up @@ -99,12 +99,12 @@
&-score {
display: inline-flex;
align-items: center;
padding-left: $rate-item-margin;
color: $rate-font-color;
font-family: 'JDZhengHei-Regular';
line-height: 1;

&-normal {
padding-left: $rate-item-margin;
font-size: $rate-font-size;
}

Expand All @@ -114,6 +114,7 @@
}

&-small {
padding-left: calc($rate-item-margin - 2px);
font-size: calc($rate-font-size - 2px);
}

Expand All @@ -140,7 +141,7 @@
}

&-small {
margin-right: calc($rate-item-margin / 2);
margin-right: calc($rate-item-margin - 2px);
}

&:last-child {
Expand All @@ -166,10 +167,18 @@
}

&-score {
padding-right: $rate-item-margin;
padding-left: 0;

&-large {
padding-right: calc($rate-item-margin * 2);
}

&-normal {
padding-right: $rate-item-margin;
}

&-small {
padding-right: calc($rate-item-margin - 2px);
}
}
}

0 comments on commit 77be6a5

Please sign in to comment.