fix(home): flush top and side edges of the cinema frame
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
The home frame now reaches the top, left and right window edges, with the bottom inset kept. The macOS header clears the traffic lights, the left arrow no longer overlaps the copy, and the hero rail reserves space from the bar's real visibility instead of its lingering DOM node.
This commit is contained in:
1 parent
0f80d4db4e
commit
5aaa3435da
4 files changed
+39
-46
No files matched your search
@@ -3,7 +3,7 @@
|
||||
/* Cinematic home hero: full-bleed artwork, integrated type, bottom rail. */
|
||||
.cinema-hero {
|
||||
position: relative;
|
||||
height: calc(100vh - 32px);
|
||||
height: calc(100vh - 16px);
|
||||
min-height: 620px;
|
||||
overflow: hidden;
|
||||
isolation: isolate;
|
||||
@@ -241,10 +241,6 @@
|
||||
background-color 0.2s ease,
|
||||
color 0.2s ease;
|
||||
|
||||
&.left {
|
||||
left: 1.25rem;
|
||||
}
|
||||
|
||||
&.right {
|
||||
right: 1.25rem;
|
||||
}
|
||||
@@ -408,23 +404,23 @@
|
||||
}
|
||||
|
||||
/* Reserve room for the floating player bar so the rail is never covered. */
|
||||
body:has(.audio-player) .cinema-trending {
|
||||
body.has-player-bar .cinema-trending {
|
||||
padding-bottom: 116px;
|
||||
}
|
||||
|
||||
/* With the player bar visible the hero has less vertical room, so keep the
|
||||
copy compact instead of pushing it under the header. */
|
||||
body:has(.audio-player) .cinema-hero .hero-carousel-text {
|
||||
body.has-player-bar .cinema-hero .hero-carousel-text {
|
||||
font-size: clamp(2.1rem, 3.6vw, 4rem) !important;
|
||||
}
|
||||
|
||||
body:has(.audio-player) .cinema-hero .hero-carousel-overview {
|
||||
body.has-player-bar .cinema-hero .hero-carousel-overview {
|
||||
-webkit-line-clamp: 3;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.cinema-hero {
|
||||
height: calc(100vh - 32px);
|
||||
height: calc(100vh - 16px);
|
||||
min-height: 560px;
|
||||
|
||||
.hero-carousel-detail {
|
||||
@@ -447,10 +443,6 @@ body:has(.audio-player) .cinema-hero .hero-carousel-overview {
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
}
|
||||
|
||||
.cinema-arrow.left {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -458,7 +450,7 @@ body:has(.audio-player) .cinema-hero .hero-carousel-overview {
|
||||
secondary copy instead of pushing the headline under the header. */
|
||||
@media (max-height: 760px) {
|
||||
.cinema-hero {
|
||||
height: calc(100vh - 32px);
|
||||
height: calc(100vh - 16px);
|
||||
min-height: 540px;
|
||||
|
||||
.hero-carousel-detail {
|
||||
|
||||
Reference in new issue
Block a user