Skip to content

Commit

Permalink
fix(Tab): style compile fail
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna authored and 潕量 committed Mar 25, 2022
1 parent 301121d commit d266f85
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/tab/scss/mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,13 @@
&.active {
&:before {
@if $position == 'top' or $position == 'bottom' {
width: calc(100% - 2 * #{$border-radius} - 2 * #{$line-padding-l});
left: calc(0px + #{$border-radius} + #{$line-padding-l});
@if get-compiling-value($border-radius) == 0 {
width: calc(100% - 2 * #{$line-padding-l});
left: calc(0px + #{$line-padding-l});
} @else {
width: calc(100% - 2 * #{$border-radius} - 2 * #{$line-padding-l});
left: calc(0px + #{$border-radius} + #{$line-padding-l});
}
} @else {
@if get-compiling-value($border-radius) == 0 {
height: 100%;
Expand Down

0 comments on commit d266f85

Please sign in to comment.