Skip to content

Commit

Permalink
💄 optimize card hoverable style (ant-design#20561)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Dec 31, 2019
1 parent 3c481f5 commit cc2a29c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/card/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

@card-prefix-cls: ~'@{ant-prefix}-card';
@card-head-height: 48px;
@card-hover-border: transparent;
@card-action-icon-size: 16px;

@gradient-min: fade(@card-skeleton-bg, 20%);
Expand All @@ -19,6 +20,7 @@
&-hoverable {
cursor: pointer;
&:hover {
border-color: @card-hover-border;
box-shadow: @card-shadow;
}
}
Expand Down Expand Up @@ -120,6 +122,8 @@
width: 100%;
}
img {
width: calc(100% + 2px);
margin-left: -1px;
border-radius: @card-radius @card-radius 0 0;
}
}
Expand Down

0 comments on commit cc2a29c

Please sign in to comment.