You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
153 lines
3.1 KiB
153 lines
3.1 KiB
.explorePage .explorePage__feed .explorePage__feedPanel .explorePage__feedGrid {
|
|
.explorePage__tplCard {
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
aspect-ratio: 258 / 455;
|
|
border-radius: 26px;
|
|
overflow: hidden;
|
|
background: #e8e8e8;
|
|
cursor: grab;
|
|
|
|
&:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
&:focus-within {
|
|
outline: 2px solid #6f47f5;
|
|
outline-offset: 3px;
|
|
}
|
|
}
|
|
|
|
.explorePage__tplCardMedia {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
|
|
&::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: 24px;
|
|
background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.06) 42%, rgba(0, 0, 0, 0.8) 100%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
object-fit: cover;
|
|
border-radius: 24px;
|
|
}
|
|
}
|
|
|
|
.explorePage__tplCardUse {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 2;
|
|
box-sizing: border-box;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 3px;
|
|
width: 91px;
|
|
height: 31px;
|
|
margin: 0;
|
|
padding: 0 10px;
|
|
border: 0;
|
|
border-radius: 24px;
|
|
backdrop-filter: blur(15px);
|
|
background: #6f47f5;
|
|
font-family: "Source Han Sans CN", sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
color: #ffffff;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transform: translateY(-4px);
|
|
transition:
|
|
opacity 180ms ease,
|
|
transform 180ms ease;
|
|
|
|
&:focus-visible {
|
|
outline: 2px solid #ffffff;
|
|
outline-offset: 2px;
|
|
}
|
|
}
|
|
|
|
.explorePage__tplCardUseIcon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 15px;
|
|
height: 15px;
|
|
flex-shrink: 0;
|
|
font-size: 24px;
|
|
font-weight: 300;
|
|
line-height: 15px;
|
|
}
|
|
|
|
.explorePage__tplCardInfo {
|
|
position: absolute;
|
|
left: 10px;
|
|
right: 10px;
|
|
bottom: 10px;
|
|
z-index: 2;
|
|
box-sizing: border-box;
|
|
height: 57px;
|
|
padding: 10px 10px 10px 5px;
|
|
border-radius: 29px;
|
|
backdrop-filter: blur(15px);
|
|
background: rgba(255, 255, 255, 0.7);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.explorePage__tplCardAvatar {
|
|
width: 37px;
|
|
height: 37px;
|
|
flex-shrink: 0;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
background: rgba(255, 255, 255, 0.8);
|
|
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
object-fit: contain;
|
|
transform: scale(1.18);
|
|
}
|
|
}
|
|
|
|
.explorePage__tplCardTitle {
|
|
min-width: 0;
|
|
margin: 0;
|
|
font-family: "Source Han Sans CN", "PingFang SC", sans-serif;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
line-height: 17px;
|
|
color: #2c2c2c;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.explorePage__tplCard:hover,
|
|
.explorePage__tplCard:focus-within {
|
|
.explorePage__tplCardUse {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
}
|
|
}
|