New: Updated styling for the Media Bar support add-on

Changes:
- redesigned the side indicator dots
- tweaked the layout specifically for phones and TVs
- improved responsiveness on TV layout
- made parental rating font consistent with its siblings
- positioned it correctly for the experimental layout
- positioned the pause button in the top-right corner
- updated colors of dot separators
- tweaked its distance from the header on small screens
This commit is contained in:
lscambo13
2025-12-30 23:05:06 +05:30
parent 8112d4401b
commit a3e52a43de

View File

@@ -32,16 +32,20 @@
.age-rating { .age-rating {
font-size: 0.8em; font-size: 0.8em;
font-family: "Archivo Narrow", sans-serif;
color: unset;
} }
#slides-container { #slides-container {
width: calc(100vw - (2 * var(--sidePadding))); width: calc(100vw - (2 * var(--sidePadding)));
height: 62%; height: 62%;
top: var(--appBarHeight); top: calc(var(--appBarHeight) * 2 + 1.25em);
border: var(--defaultBorder); border: var(--defaultBorder);
border-radius: var(--largerRadius); border-radius: var(--largerRadius);
transition: all 0.125s, border 0s; transition: all 0.125s, border 0s;
user-select: none; user-select: none;
position: absolute;
left: var(--sidePadding);
} }
.logo-container { .logo-container {
@@ -59,28 +63,74 @@
background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), 40%, transparent); background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), 40%, transparent);
} }
@media only screen and (max-width: 767px) and (orientation: portrait) { .pause-button {
.button-container { top: 1em !important;
top: calc(50% + 20vh);
transform: translateX(-50%) scale(0.8);
} }
.tomato-rating { .separator-icon {
font-size: 5px;
color: var(--dimTextColor);
}
.dot {
border-radius: 0.25em;
width: 0.375em;
height: 0.375em;
transition: width 0.5s;
opacity: 0.5;
background-color: var(--textColor) !important;
}
.dot.active {
width: 2em;
transform: none;
}
@media only screen and (max-width: 767px) and (orientation: portrait) {
.button-container {
bottom: 3em;
}
.tomato-rating,
.genre {
display: none; display: none;
} }
.dots-container { .dots-container {
top: calc(50% + 19vh); bottom: 6em;
}
.info-container {
bottom: 5em;
}
.logo-container {
top: calc(100% - 15em);
} }
.backdrop { .backdrop {
transform-origin: center; transform-origin: center;
} }
.left-arrow,
.right-arrow {
display: none !important;
}
} }
@media (min-width: 75em) { @media (min-width: 75em) {
#slides-container { #slides-container {
top: calc(0.5 * var(--appBarHeight)); top: calc(var(--appBarHeight) + 1.25em);
}
.layout-tv #slides-container {
top: calc(var(--appBarHeight) * 2 + 1.25em);
}
}
@media (min-width: 100em) {
.layout-tv #slides-container {
top: calc(var(--appBarHeight) + 1.25em);
} }
} }
@@ -94,10 +144,4 @@
} }
} }
@media only screen and (max-width: 767px) and (orientation: portrait) {
.logo-container {
top: 50%;
}
}
/* this styles the media bar plugin - end */ /* this styles the media bar plugin - end */