Skip to content

Commit f9a6a87

Browse files
Update _base.scss
1 parent fc1296f commit f9a6a87

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

_sass/_base.scss

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,25 +207,32 @@ ul.task-list input[type="checkbox"] {
207207
}
208208
}
209209

210-
/* About profile image hover swap */
210+
/* About profile image hover swap - enforce stacking order */
211211
.profile-hover-swap {
212212
position: relative;
213213
display: inline-block;
214214
}
215215

216+
.profile-hover-swap > figure {
217+
position: relative;
218+
z-index: 1;
219+
margin: 0;
220+
}
221+
216222
.profile-hover-swap .hover-img {
217223
position: absolute;
218224
inset: 0;
225+
z-index: 2;
219226
opacity: 0;
220227
transition: opacity 200ms ease-in-out;
221228
}
222229

223-
.profile-hover-swap:hover .hover-img {
224-
opacity: 1;
230+
.profile-hover-swap .hover-img > figure {
231+
margin: 0;
225232
}
226233

227-
.profile-hover-swap figure {
228-
margin: 0;
234+
.profile-hover-swap:hover .hover-img {
235+
opacity: 1;
229236
}
230237
/* figure.liquid가 figure 마진을 주는 경우 대비 (있으면 점프/어긋남 방지) */
231238

0 commit comments

Comments
 (0)