Skip to content

Commit

Permalink
replace inline-block with flexbox
Browse files Browse the repository at this point in the history
  • Loading branch information
califa committed Nov 2, 2017
1 parent a73abae commit 2fa1d34
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions modules/primer-avatars/lib/avatar-stack.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
position: relative;
min-width: 26px;
height: 20px;
font-size: 0;

&.AvatarStack--2 {
min-width: 36px;
Expand All @@ -63,13 +62,14 @@

.AvatarStack-body {
position: absolute;
display: flex;
padding-right: 2px;
background: $bg-white;

.avatar {
position: relative;
z-index: 2;
display: inline-block;
display: flex;
width: 20px;
height: 20px;
box-sizing: content-box;
Expand Down Expand Up @@ -102,7 +102,7 @@
}

.avatar:nth-child(n+4) {
display: inline-block;
display: flex;
opacity: 1;
}

Expand Down Expand Up @@ -143,18 +143,10 @@
.AvatarStack--right {
.AvatarStack-body {
right: 0;
display: flex;
padding-right: 0;
padding-left: 2px;
flex-direction: row-reverse;

// stylelint-disable selector-max-specificity
&:hover .avatar:nth-child(n+4) {
display: inline-block;
opacity: 1;
}
// stylelint-enable selector-max-specificity

&:hover .avatar {
margin-right: 0;
margin-left: 3px;
Expand Down

1 comment on commit 2fa1d34

@broccolini
Copy link
Member

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.