mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +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;
|
display: inline-flex;
|
||||||
float: left;
|
float: left;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
width: @expand-icon-size;
|
||||||
width: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 + @border-width-base * 3;
|
height: @expand-icon-size;
|
||||||
height: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 + @border-width-base * 3;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
line-height: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 + @border-width-base *
|
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: @border-width-base @border-style-base @table-border-color;
|
||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
transform: scale((unit(@checkbox-size) / unit(@expand-icon-size)));
|
||||||
|
transform-origin: bottom;
|
||||||
transition: all 0.3s;
|
transition: all 0.3s;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
@expand-icon-size: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 +
|
||||||
|
@border-width-base * 3;
|
||||||
|
|
||||||
&:focus,
|
&:focus,
|
||||||
&:hover,
|
&:hover,
|
||||||
|
Loading…
Reference in New Issue
Block a user