hexo-theme-reimu
Version:
A Hakurei Reimu style Hexo theme
94 lines (81 loc) • 1.47 kB
text/stylus
.friend-wrap {
display: flex;
flex-wrap: wrap;
gap: 20px;
padding: 16px 0;
@media mg-normal {
gap: 16px;
}
}
.friend-item-wrap {
width: calc(50% - 10px);
padding: 8px;
background: var(--color-wrap);
box-shadow: var(--shadow-card);
border-radius: post-radius;
position: relative;
display: flex;
transition: 0.3s;
box-sizing: border-box;
&:hover {
transform: scale(1.015);
box-shadow: var(--shadow-card-hover);
}
@media mg-normal {
width: 100%;
}
a {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
}
.friend-icon-wrap {
height: 70px;
width: 70px;
padding-right: 20px;
pointer-events: none;
flex-shrink: 0;
img {
width: 100%;
height: 100%;
border-radius: tag-radius;
object-fit: cover;
opacity: 0;
transition: opacity 0.2s;
box-shadow: var(--shadow-card);
}
img.lazyloaded {
opacity: 1;
animation: blur 0.8s forwards;
}
}
.friend-info-wrap {
display: flex;
justify-content: center;
flex-direction: column;
overflow: hidden;
gap: 4px;
div {
overflow: hidden;
text-overflow: ellipsis;
}
}
.friend-name {
color: var(--red-2);
font-size: 18px;
font-weight: bold;
white-space: nowrap;
padding: 4px 0;
}
.friend-desc {
color: var(--grey-9);
font-size: 14px;
-webkit-line-clamp: 2;
line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
margin: 4px 0;
}