Mobile: discover carousels — center wrap, 2-up recommended + discover cards
- .discover-carousel / #genre-tabs: add justify-content:center to the wrap. - .recommended-card--carousel: 45% (2-up) on mobile, overriding the flex-basis. - .discover-card: 160px -> 45% (2-up) on mobile.
This commit is contained in:
parent
273c4e5fa3
commit
2a509e74c3
1 changed files with 12 additions and 1 deletions
|
|
@ -128,6 +128,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.enh-compact-item.artist-card {
|
.enh-compact-item.artist-card {
|
||||||
|
|
@ -1181,7 +1182,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.discover-card {
|
.discover-card {
|
||||||
width: 160px;
|
width: 45%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Horizontal scroll tabs */
|
/* Horizontal scroll tabs */
|
||||||
|
|
@ -3463,3 +3464,13 @@
|
||||||
.np-modal-overlay:not(.hidden) ~ #media-player {
|
.np-modal-overlay:not(.hidden) ~ #media-player {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
/* Recommended-artist carousel cards → 2-up wrap on mobile. The base rule
|
||||||
|
pins them with flex:0 0 160px, which overrides plain width — so override
|
||||||
|
the flex-basis too for the 45% to take. */
|
||||||
|
.recommended-card--carousel {
|
||||||
|
flex: 0 0 45%;
|
||||||
|
width: 45%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue