Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5e8de743ae | |||
| ea6562946a | |||
| 00b72fe044 | |||
| 780317e469 |
+38
-26
@@ -1,3 +1,4 @@
|
||||
/* Set size of logo, depending on orientation */
|
||||
@media (orientation: landscape) {
|
||||
:root {
|
||||
--logo-width: clamp(34.08em, 40vw, 56.89em);
|
||||
@@ -12,6 +13,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Set size of background, depending on screen width */
|
||||
@media (max-width: 100em) {
|
||||
/* Set static graphic width on smaller screens */
|
||||
:root {
|
||||
--background-width: 100rem;
|
||||
}
|
||||
}
|
||||
@media (min-width: 100em) {
|
||||
/* Set graphic to width of screen */
|
||||
:root {
|
||||
--background-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================== */
|
||||
/* Global
|
||||
/* ============================== */
|
||||
@@ -24,27 +39,12 @@ body {
|
||||
}
|
||||
|
||||
/* Add Milky Way graphic to header */
|
||||
@media (max-width: 100em) {
|
||||
/* Set static graphic width on smaller screens */
|
||||
.skinHeader {
|
||||
--background-width: 100rem;
|
||||
}
|
||||
}
|
||||
@media (min-width: 100em) {
|
||||
/* Set graphic to width of screen */
|
||||
.skinHeader {
|
||||
--background-width: 100%;
|
||||
}
|
||||
/* Push content down from under graphic */
|
||||
div.skinBody > div.page {
|
||||
padding-top: 15rem !important;
|
||||
}
|
||||
}
|
||||
.skinHeader {
|
||||
/* Position graphic behind header */
|
||||
margin-top: calc(-1 * (0.2202 * var(--background-width)));
|
||||
height: 100%;
|
||||
padding-top: calc(0.2202 * var(--background-width));
|
||||
/* Add graphic */
|
||||
backdrop-filter: none !important;
|
||||
background-color: rgba(0, 0, 0, 0) !important;
|
||||
background-image: url("https://static.zomerkoningin.nl/andromeda/images/milkyway_header.webp");
|
||||
@@ -52,6 +52,7 @@ body {
|
||||
background-size: var(--background-width) auto;
|
||||
background-position-x: center;
|
||||
background-position-y: top;
|
||||
/* Pass-through clicks */
|
||||
pointer-events: none;
|
||||
/* Keep header visible when scrolling on phone */
|
||||
transform: unset !important;
|
||||
@@ -60,13 +61,21 @@ body {
|
||||
flex-grow: 0 !important;
|
||||
}
|
||||
.skinHeader > * {
|
||||
/* Limit pass-through to graphic only */
|
||||
pointer-events: auto;
|
||||
}
|
||||
@media (min-width: 100em) {
|
||||
/* Push content down from under graphic on wider screens */
|
||||
div.skinBody > div.page {
|
||||
padding-top: 15rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Add starry background */
|
||||
.backdropContainer {
|
||||
background-image: url("https://static.zomerkoningin.nl/andromeda/images/nightsky.webp");
|
||||
background-size: 100%;
|
||||
background-size: var(--background-width) auto;
|
||||
background-position: center center;
|
||||
}
|
||||
.backgroundContainer {
|
||||
display: none;
|
||||
@@ -92,10 +101,11 @@ div:has(> div > .emby-scroller-container) {
|
||||
/* ============================== */
|
||||
/* Media detail page
|
||||
/* ============================== */
|
||||
/* Background */
|
||||
/* Remove backdrop used as padding on desktop */
|
||||
.layout-desktop .itemBackdrop {
|
||||
display: none;
|
||||
}
|
||||
/* Position backdrop on mobile */
|
||||
.layout-mobile .itemBackdrop {
|
||||
margin-top: unset;
|
||||
|
||||
@@ -106,34 +116,36 @@ div:has(> div > .emby-scroller-container) {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.layout-mobile .backgroundContainer {
|
||||
background-color: rgba(0, 0, 0, 0.86);
|
||||
}
|
||||
|
||||
/* Remove shadow in favour of starry background */
|
||||
.detailPagePrimaryContainer {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
/* Show stars in background */
|
||||
.backdropContainer > .backdropImage {
|
||||
.layout-desktop .backdropContainer > .backdropImage {
|
||||
opacity: 0.14 !important;
|
||||
}
|
||||
.layout-mobile .itemBackdrop {
|
||||
opacity: 0.14 !important;
|
||||
}
|
||||
|
||||
/* Logo */
|
||||
/* Instead of an element as padding, use a pseudo-element */
|
||||
.layout-desktop .libraryPage.itemDetailPage::before {
|
||||
/* Increase padding along screen width */
|
||||
height: calc(30vw - var(--logo-height));
|
||||
max-height: 13.35em;
|
||||
}
|
||||
.layout-mobile .libraryPage.itemDetailPage::before {
|
||||
/* Use static padding on mobile */
|
||||
height: 10.3em;
|
||||
}
|
||||
.libraryPage.itemDetailPage::before {
|
||||
display: block;
|
||||
height: calc(30vw - var(--logo-height));
|
||||
max-height: 13.35em;
|
||||
content: "";
|
||||
}
|
||||
|
||||
/* Position logo after padding */
|
||||
.layout-mobile .detailLogo {
|
||||
display: block;
|
||||
}
|
||||
@@ -152,7 +164,7 @@ div:has(> div > .emby-scroller-container) {
|
||||
background-position: bottom;
|
||||
}
|
||||
|
||||
/* Poster */
|
||||
/* Hide poster */
|
||||
.detailImageContainer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user