1
1
mirror of https://github.com/primer/css.git synced 2024-12-02 07:53:06 +03:00

replace inline-block with flexbox

This commit is contained in:
Joel Califa 2017-11-02 18:52:29 -04:00
parent a73abaeb9a
commit 2fa1d34897

View File

@ -50,7 +50,6 @@
position: relative;
min-width: 26px;
height: 20px;
font-size: 0;
&.AvatarStack--2 {
min-width: 36px;
@ -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;
@ -102,7 +102,7 @@
}
.avatar:nth-child(n+4) {
display: inline-block;
display: flex;
opacity: 1;
}
@ -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;