Skip to content

Commit 2fa1d34

Browse files
committed
replace inline-block with flexbox
1 parent a73abae commit 2fa1d34

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

modules/primer-avatars/lib/avatar-stack.scss

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
position: relative;
5151
min-width: 26px;
5252
height: 20px;
53-
font-size: 0;
5453

5554
&.AvatarStack--2 {
5655
min-width: 36px;
@@ -63,13 +62,14 @@
6362

6463
.AvatarStack-body {
6564
position: absolute;
65+
display: flex;
6666
padding-right: 2px;
6767
background: $bg-white;
6868

6969
.avatar {
7070
position: relative;
7171
z-index: 2;
72-
display: inline-block;
72+
display: flex;
7373
width: 20px;
7474
height: 20px;
7575
box-sizing: content-box;
@@ -102,7 +102,7 @@
102102
}
103103

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

@@ -143,18 +143,10 @@
143143
.AvatarStack--right {
144144
.AvatarStack-body {
145145
right: 0;
146-
display: flex;
147146
padding-right: 0;
148147
padding-left: 2px;
149148
flex-direction: row-reverse;
150149

151-
// stylelint-disable selector-max-specificity
152-
&:hover .avatar:nth-child(n+4) {
153-
display: inline-block;
154-
opacity: 1;
155-
}
156-
// stylelint-enable selector-max-specificity
157-
158150
&:hover .avatar {
159151
margin-right: 0;
160152
margin-left: 3px;

0 commit comments

Comments
 (0)