Compare commits
10 Commits
699dfdc39f
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| eee19b47e0 | |||
| a4afdf96e2 | |||
| df38f118d3 | |||
| 15d3e3ba52 | |||
| 295d42f322 | |||
| 96f9485a1e | |||
| 5e8de743ae | |||
| ea6562946a | |||
| 00b72fe044 | |||
| 780317e469 |
+73
-35
@@ -1,3 +1,4 @@
|
|||||||
|
/* Set size of logo, depending on orientation */
|
||||||
@media (orientation: landscape) {
|
@media (orientation: landscape) {
|
||||||
:root {
|
:root {
|
||||||
--logo-width: clamp(34.08em, 40vw, 56.89em);
|
--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
|
/* Global
|
||||||
/* ============================== */
|
/* ============================== */
|
||||||
@@ -24,27 +39,12 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Add Milky Way graphic to header */
|
/* 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 {
|
.skinHeader {
|
||||||
/* Position graphic behind header */
|
/* Position graphic behind header */
|
||||||
margin-top: calc(-1 * (0.2202 * var(--background-width)));
|
margin-top: calc(-1 * (0.2202 * var(--background-width)));
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding-top: calc(0.2202 * var(--background-width));
|
padding-top: calc(0.2202 * var(--background-width));
|
||||||
|
/* Add graphic */
|
||||||
backdrop-filter: none !important;
|
backdrop-filter: none !important;
|
||||||
background-color: rgba(0, 0, 0, 0) !important;
|
background-color: rgba(0, 0, 0, 0) !important;
|
||||||
background-image: url("https://static.zomerkoningin.nl/andromeda/images/milkyway_header.webp");
|
background-image: url("https://static.zomerkoningin.nl/andromeda/images/milkyway_header.webp");
|
||||||
@@ -52,6 +52,7 @@ body {
|
|||||||
background-size: var(--background-width) auto;
|
background-size: var(--background-width) auto;
|
||||||
background-position-x: center;
|
background-position-x: center;
|
||||||
background-position-y: top;
|
background-position-y: top;
|
||||||
|
/* Pass-through clicks */
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
/* Keep header visible when scrolling on phone */
|
/* Keep header visible when scrolling on phone */
|
||||||
transform: unset !important;
|
transform: unset !important;
|
||||||
@@ -60,13 +61,21 @@ body {
|
|||||||
flex-grow: 0 !important;
|
flex-grow: 0 !important;
|
||||||
}
|
}
|
||||||
.skinHeader > * {
|
.skinHeader > * {
|
||||||
|
/* Limit pass-through to graphic only */
|
||||||
pointer-events: auto;
|
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 */
|
/* Add starry background */
|
||||||
.backdropContainer {
|
.backdropContainer {
|
||||||
background-image: url("https://static.zomerkoningin.nl/andromeda/images/nightsky.webp");
|
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 {
|
.backgroundContainer {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -81,6 +90,7 @@ div:has(> div > .emby-scroller-container) {
|
|||||||
/* ============================== */
|
/* ============================== */
|
||||||
/* Homepage
|
/* Homepage
|
||||||
/* ============================== */
|
/* ============================== */
|
||||||
|
/* Center sections on desktop */
|
||||||
.layout-desktop .sections > div {
|
.layout-desktop .sections > div {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
@@ -89,13 +99,25 @@ div:has(> div > .emby-scroller-container) {
|
|||||||
padding-right: unset !important;
|
padding-right: unset !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Match padding to other pages on mobile */
|
||||||
|
.layout-mobile .verticalSection > * {
|
||||||
|
padding-left: 5% !important;
|
||||||
|
padding-right: 5% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Remove margin in favour of flex gap */
|
||||||
|
.itemsContainer > * {
|
||||||
|
margin: unset !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* ============================== */
|
/* ============================== */
|
||||||
/* Media detail page
|
/* Media detail page
|
||||||
/* ============================== */
|
/* ============================== */
|
||||||
/* Background */
|
/* Remove backdrop used as padding on desktop */
|
||||||
.layout-desktop .itemBackdrop {
|
.layout-desktop .itemBackdrop {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
/* Position backdrop on mobile */
|
||||||
.layout-mobile .itemBackdrop {
|
.layout-mobile .itemBackdrop {
|
||||||
margin-top: unset;
|
margin-top: unset;
|
||||||
|
|
||||||
@@ -106,34 +128,36 @@ div:has(> div > .emby-scroller-container) {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.layout-mobile .backgroundContainer {
|
|
||||||
background-color: rgba(0, 0, 0, 0.86);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/* Remove shadow in favour of starry background */
|
||||||
.detailPagePrimaryContainer {
|
.detailPagePrimaryContainer {
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Show stars in background */
|
/* Show stars in background */
|
||||||
.backdropContainer > .backdropImage {
|
.layout-desktop .backdropContainer > .backdropImage {
|
||||||
|
opacity: 0.14 !important;
|
||||||
|
}
|
||||||
|
.layout-mobile .itemBackdrop {
|
||||||
opacity: 0.14 !important;
|
opacity: 0.14 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Logo */
|
/* Instead of an element as padding, use a pseudo-element */
|
||||||
.layout-desktop .libraryPage.itemDetailPage::before {
|
.layout-desktop .libraryPage.itemDetailPage::before {
|
||||||
|
/* Increase padding along screen width */
|
||||||
height: calc(30vw - var(--logo-height));
|
height: calc(30vw - var(--logo-height));
|
||||||
max-height: 13.35em;
|
max-height: 13.35em;
|
||||||
}
|
}
|
||||||
.layout-mobile .libraryPage.itemDetailPage::before {
|
.layout-mobile .libraryPage.itemDetailPage::before {
|
||||||
|
/* Use static padding on mobile */
|
||||||
height: 10.3em;
|
height: 10.3em;
|
||||||
}
|
}
|
||||||
.libraryPage.itemDetailPage::before {
|
.libraryPage.itemDetailPage::before {
|
||||||
display: block;
|
display: block;
|
||||||
height: calc(30vw - var(--logo-height));
|
|
||||||
max-height: 13.35em;
|
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Position logo after padding */
|
||||||
.layout-mobile .detailLogo {
|
.layout-mobile .detailLogo {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
@@ -152,7 +176,7 @@ div:has(> div > .emby-scroller-container) {
|
|||||||
background-position: bottom;
|
background-position: bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Poster */
|
/* Hide poster */
|
||||||
.detailImageContainer {
|
.detailImageContainer {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -174,6 +198,12 @@ div:has(> div > .emby-scroller-container) {
|
|||||||
background: rgba(0,0,0,0) !important;
|
background: rgba(0,0,0,0) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Add padding to titles on mobile */
|
||||||
|
.layout-mobile .nameContainer > * {
|
||||||
|
padding-left: 5% !important;
|
||||||
|
padding-right: 5% !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Media title */
|
/* Media title */
|
||||||
.nameContainer h1 {
|
.nameContainer h1 {
|
||||||
/* Position on top of logo to keep link */
|
/* Position on top of logo to keep link */
|
||||||
@@ -200,17 +230,20 @@ div:has(> div > .emby-scroller-container) {
|
|||||||
font-size: var(--logo-height);
|
font-size: var(--logo-height);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Season */
|
/* Episode title */
|
||||||
.nameContainer h3.itemName.infoText.subtitle bdi {
|
.nameContainer h3.itemName.infoText.subtitle bdi {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
|
font-size: larger;
|
||||||
|
|
||||||
|
/* Hide characters left by moving around season title */
|
||||||
text-indent: -1ch;
|
text-indent: -1ch;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-size: larger;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Season title */
|
||||||
.nameContainer h3.itemName.infoText.subtitle bdi [data-type="Season"] {
|
.nameContainer h3.itemName.infoText.subtitle bdi [data-type="Season"] {
|
||||||
text-indent: 0;
|
text-indent: 0;
|
||||||
font-size: .72em;
|
font-size: .72em;
|
||||||
@@ -243,12 +276,17 @@ div:has(> div > .emby-scroller-container) {
|
|||||||
background: rgba(0,0,0,0);
|
background: rgba(0,0,0,0);
|
||||||
}
|
}
|
||||||
.layout-desktop .detailPageContent {
|
.layout-desktop .detailPageContent {
|
||||||
padding: unset !important;
|
|
||||||
|
|
||||||
width: 75%;
|
width: 75%;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
.layout-mobile .detailPageContent > div > * {
|
||||||
|
padding-left: 5% !important;
|
||||||
|
padding-right: 5% !important;
|
||||||
|
}
|
||||||
|
.detailPageContent {
|
||||||
|
padding: unset !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Disable right padding */
|
/* Disable right padding */
|
||||||
.layout-desktop .detailPageContent .padded-right {
|
.layout-desktop .detailPageContent .padded-right {
|
||||||
@@ -311,17 +349,17 @@ div:has(> div > .emby-scroller-container) {
|
|||||||
|
|
||||||
/* List of seasons */
|
/* List of seasons */
|
||||||
/* Replace margin with gap */
|
/* Replace margin with gap */
|
||||||
.layout-desktop .itemsContainer {
|
.itemsContainer {
|
||||||
|
display: flex;
|
||||||
gap: 1.2em;
|
gap: 1.2em;
|
||||||
}
|
}
|
||||||
.layout-desktop .itemsContainer > .card > .cardBox {
|
.itemsContainer > .card > .cardBox {
|
||||||
margin-right: unset !important;
|
margin-right: unset !important;
|
||||||
}
|
}
|
||||||
|
.itemsContainer.padded-right:not(.padded-left) {
|
||||||
.layout-desktop .itemsContainer.padded-right:not(.padded-left) {
|
|
||||||
padding: unset !important; /* Remove right padding if left padding is not present */
|
padding: unset !important; /* Remove right padding if left padding is not present */
|
||||||
}
|
}
|
||||||
.layout-desktop .itemsContainer.vertical-wrap {
|
.itemsContainer.vertical-wrap {
|
||||||
justify-content: center; /* Only center if wrapping is enabled */
|
justify-content: center; /* Only center if wrapping is enabled */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user