mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 01:13:58 +08:00
style: make Table expand icon same size as checkbox (#29214)
close #29207
This commit is contained in:
parent
f434440bd1
commit
f6683ebfc3
@ -416,9 +416,8 @@
|
||||
display: inline-flex;
|
||||
float: left;
|
||||
box-sizing: border-box;
|
||||
|
||||
width: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 + @border-width-base * 3;
|
||||
height: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 + @border-width-base * 3;
|
||||
width: @expand-icon-size;
|
||||
height: @expand-icon-size;
|
||||
padding: 0;
|
||||
color: inherit;
|
||||
line-height: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 + @border-width-base *
|
||||
@ -427,8 +426,12 @@
|
||||
border: @border-width-base @border-style-base @table-border-color;
|
||||
border-radius: @border-radius-base;
|
||||
outline: none;
|
||||
transform: scale((unit(@checkbox-size) / unit(@expand-icon-size)));
|
||||
transform-origin: bottom;
|
||||
transition: all 0.3s;
|
||||
user-select: none;
|
||||
@expand-icon-size: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 +
|
||||
@border-width-base * 3;
|
||||
|
||||
&:focus,
|
||||
&:hover,
|
||||
|
Loading…
Reference in New Issue
Block a user