Skip to content

Commit

Permalink
fix(avatar): icon size (#1758)
Browse files Browse the repository at this point in the history
Co-authored-by: maxin <maxin@growingio.com>
  • Loading branch information
nnmax and maxin committed Jan 4, 2022
1 parent 51d17fb commit eef1e35
Showing 1 changed file with 4 additions and 28 deletions.
32 changes: 4 additions & 28 deletions src/avatar/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
background-color: rgba(36, 46, 89, 0.5);
border: 1px solid @gray-0;
border-radius: 100%;
span {
> span {
transform: scale(1);
}
}
Expand Down Expand Up @@ -55,7 +55,7 @@
text-align: center;
background-color: transparent;
cursor: pointer;
span {
> span {
vertical-align: middle;
transform: scale(0);
transition: all 0.3s;
Expand All @@ -68,7 +68,7 @@
transform-origin: 0 center;
}

img {
> img {
position: relative;
display: block;
width: 100%;
Expand Down Expand Up @@ -102,12 +102,6 @@
color: @blue-2;
}
}
.@{avatar-prefix-cls}-icon {
& svg {
width: 12px;
height: 12px;
}
}
}
}

Expand Down Expand Up @@ -137,12 +131,6 @@
color: @blue-2;
}
}
.@{avatar-prefix-cls}-icon {
& svg {
width: 16px;
height: 16px;
}
}
}
}

Expand Down Expand Up @@ -173,12 +161,6 @@
color: @blue-2;
}
}
.@{avatar-prefix-cls}-icon {
& svg {
width: 28px;
height: 28px;
}
}
}
}

Expand Down Expand Up @@ -208,20 +190,14 @@
color: @blue-2;
}
}
.@{avatar-prefix-cls}-icon {
& svg {
width: 40px;
height: 40px;
}
}
}
}

&-group {
display: flex;
.@{avatar-prefix-cls} {
border: 1.4px solid @gray-0;
span {
> span {
top: -1.5px;
}
&:hover {
Expand Down

1 comment on commit eef1e35

@vercel
Copy link

@vercel vercel bot commented on eef1e35 Jan 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.