267 lines
5.1 KiB
CSS
267 lines
5.1 KiB
CSS
/* 我的收藏 H5:以 Figma 375px 画板为基准。 */
|
|
@media (max-width: 768px) {
|
|
.favorites-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
width: 100%;
|
|
max-width: none;
|
|
min-width: 0;
|
|
margin: 0;
|
|
padding: 12px var(--profile-gutter, 16px) 20px;
|
|
}
|
|
|
|
.favorites-main.is-empty {
|
|
width: 100%;
|
|
gap: 0;
|
|
padding: 12px 0 20px;
|
|
}
|
|
|
|
.favorites-main.is-empty .favorites-toolbar {
|
|
width: 100%;
|
|
padding-inline: var(--profile-gutter, 16px);
|
|
}
|
|
|
|
.favorites-main.is-empty .favorites-recommendations {
|
|
width: auto;
|
|
margin-top: 8px;
|
|
padding: 0 var(--profile-gutter, 16px) 24px;
|
|
}
|
|
|
|
.favorites-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
width: 100%;
|
|
min-width: 0;
|
|
min-height: 30px;
|
|
}
|
|
|
|
.favorites-filters {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
gap: clamp(6px, 2.666667vw, 10px);
|
|
min-width: 0;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.favorites-filters::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.favorites-filter {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 30px;
|
|
padding: 0 clamp(11px, 4.266667vw, 16px);
|
|
border: 1px solid rgba(255, 255, 255, .12);
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
color: #a1a1aa;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 20px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.favorites-filter.is-active {
|
|
border-color: rgba(236, 35, 127, .3);
|
|
background: rgba(236, 35, 127, .1);
|
|
color: #ff4a7b;
|
|
}
|
|
|
|
.favorites-manage {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 30px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
color: #a1a1aa;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
line-height: 18px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.favorites-manage svg,
|
|
.favorites-manage img {
|
|
display: none;
|
|
}
|
|
|
|
.favorites-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 16px var(--profile-card-gap, 8px);
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.favorites-card {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.favorites-card .profile-card__cover {
|
|
width: 100%;
|
|
aspect-ratio: 109 / 145;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.favorites-card .profile-card__title {
|
|
overflow: hidden;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
line-height: 20px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.favorites-card .profile-card__meta {
|
|
overflow: hidden;
|
|
font-size: 11px;
|
|
line-height: 16px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.favorites-card__desktop-meta {
|
|
display: none;
|
|
}
|
|
|
|
.favorites-card__mobile-meta {
|
|
display: inline;
|
|
}
|
|
|
|
.favorites-card__remove {
|
|
display: none;
|
|
}
|
|
|
|
.favorites-page.is-managing .favorites-card__remove {
|
|
position: absolute;
|
|
top: 6px;
|
|
left: 6px;
|
|
z-index: 3;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
border: 1px solid rgba(255, 255, 255, .5);
|
|
border-radius: 50%;
|
|
background: rgba(11, 11, 13, .8);
|
|
color: #f2f2f4;
|
|
}
|
|
|
|
.favorites-card .profile-card__episodes {
|
|
bottom: 10px;
|
|
left: 10px;
|
|
font-size: 11px;
|
|
line-height: 14px;
|
|
}
|
|
|
|
.favorites-card .profile-card__badge {
|
|
top: 4px;
|
|
right: 4px;
|
|
min-width: 30px;
|
|
height: 20px;
|
|
padding: 0 5px;
|
|
}
|
|
|
|
.favorites-load-more {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 40px;
|
|
padding: 0 16px;
|
|
border: 1px solid rgba(255, 255, 255, .24);
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
color: #f2f2f4;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.favorites-pagination {
|
|
display: none;
|
|
}
|
|
|
|
.favorites-empty {
|
|
gap: 16px;
|
|
padding: 48px 16px;
|
|
}
|
|
|
|
.favorites-empty__description-desktop,
|
|
.favorites-recommendations__more-desktop {
|
|
display: none;
|
|
}
|
|
|
|
.favorites-empty__description-mobile,
|
|
.favorites-recommendations__more-mobile {
|
|
display: inline;
|
|
}
|
|
|
|
.favorites-recommendations {
|
|
width: 100%;
|
|
padding: 0 var(--profile-gutter, 16px) 20px;
|
|
}
|
|
|
|
.favorites-recommendations__head {
|
|
height: 26px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.favorites-recommendations__head h2 {
|
|
font-size: 18px;
|
|
line-height: 26px;
|
|
}
|
|
|
|
.favorites-recommendations__head a {
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.favorites-recommendations__head a img {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.favorites-recommendations__grid {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 16px var(--profile-card-gap, 8px);
|
|
}
|
|
|
|
.favorites-card[hidden],
|
|
.favorites-empty[hidden],
|
|
.favorites-load-more[hidden] {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 359px) {
|
|
.favorites-filters {
|
|
flex-wrap: nowrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.favorites-filter {
|
|
padding-inline: 8px;
|
|
font-size: 12px;
|
|
}
|
|
}
|