mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 07:42:47 +01:00
600 lines
12 KiB
CSS
600 lines
12 KiB
CSS
/* Spotlight Section Styles */
|
|
|
|
.spotlight-section {
|
|
position: relative;
|
|
width: calc(100% - (2 * max(env(safe-area-inset-left), 3.3%)));
|
|
margin: 2em 0;
|
|
}
|
|
|
|
.spotlight-banner-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 450px;
|
|
overflow: hidden;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.spotlight-items-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.spotlight-item {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-size: cover;
|
|
background-position: center;
|
|
transition: opacity 0.8s ease-in-out;
|
|
}
|
|
|
|
.spotlight-item[data-index="0"] {
|
|
opacity: 1;
|
|
}
|
|
|
|
.spotlight-item:not([data-index="0"]) {
|
|
opacity: 0;
|
|
}
|
|
|
|
.spotlight-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 45%;
|
|
background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
|
|
padding: 40px;
|
|
color: white;
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 2;
|
|
}
|
|
|
|
.spotlight-overlay.has-title {
|
|
padding: 70px 40px 20px 40px;
|
|
}
|
|
|
|
.spotlight-section-title {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 20px;
|
|
color: white;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
z-index: 10;
|
|
background: rgba(0,0,0,0.4);
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.spotlight-item-title {
|
|
margin: 0 0 16px 0;
|
|
font-size: 1.6em;
|
|
font-weight: bold;
|
|
height: 80px;
|
|
align-content: end;
|
|
}
|
|
|
|
.spotlight-item-logo {
|
|
max-width: 206.8px;
|
|
height: 80px;
|
|
object-fit: contain;
|
|
margin-bottom: 16px;
|
|
margin-top: 10px;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: left;
|
|
}
|
|
|
|
.spotlight-clearart {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
right: 0px;
|
|
max-height: 70%;
|
|
object-fit: contain;
|
|
z-index: 5;
|
|
opacity: 0.9;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.spotlight-rating-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.spotlight-rating-star {
|
|
color: #4A9EFF;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.spotlight-rating-value {
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.spotlight-rating-value.na {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.spotlight-metadata-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: 14px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.spotlight-metadata-row .spotlight-end-time {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.metadata-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
.spotlight-truncated-list {
|
|
font-size: 14px;
|
|
opacity: 0.9;
|
|
position: relative;
|
|
}
|
|
|
|
.spotlight-truncated-list .spotlight-ellipsis {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.spotlight-tagline {
|
|
margin: 0 0 24px 0;
|
|
font-size: 18px;
|
|
font-style: italic;
|
|
opacity: 0.9;
|
|
line-height: 1.4;
|
|
max-width: 90%;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
min-height: 75px;
|
|
max-height: 75px;
|
|
}
|
|
|
|
.spotlight-buttons-container {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.spotlight-play-button {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.9);
|
|
color: #000;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.spotlight-play-button:hover {
|
|
background: rgba(255,255,255,1);
|
|
}
|
|
|
|
.spotlight-play-button .material-icons {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.spotlight-watchlist-button {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.2);
|
|
color: white;
|
|
border: 2px solid rgba(255,255,255,0.5);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.spotlight-watchlist-button:hover {
|
|
background: rgba(255,255,255,0.3);
|
|
}
|
|
|
|
.spotlight-watchlist-button.watchlisted {
|
|
border-color: #4CAF50;
|
|
}
|
|
|
|
.spotlight-watchlist-button.watchlisted .material-icons {
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.spotlight-watchlist-button:not(.watchlisted):hover {
|
|
border-color: rgba(255,255,255,0.7);
|
|
}
|
|
|
|
.spotlight-watchlist-button .material-icons {
|
|
font-size: 28px;
|
|
color: white;
|
|
}
|
|
|
|
.spotlight-info-button {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.2);
|
|
color: white;
|
|
border: 2px solid rgba(255,255,255,0.5);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
transition: all 0.2s;
|
|
position: relative;
|
|
}
|
|
|
|
.spotlight-info-button:hover {
|
|
background: rgba(255,255,255,0.3);
|
|
border-color: rgba(255,255,255,0.7);
|
|
}
|
|
|
|
.spotlight-info-button .material-icons {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.spotlight-overview-tooltip {
|
|
position: absolute;
|
|
text-align: left;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
margin-bottom: 12px;
|
|
padding: 16px;
|
|
background: rgba(0,0,0,0.95);
|
|
color: white;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
max-width: 400px;
|
|
min-width: 300px;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s;
|
|
z-index: 1000;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.spotlight-info-button:hover .spotlight-overview-tooltip {
|
|
opacity: 1;
|
|
}
|
|
|
|
.spotlight-nav-container {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 20px;
|
|
display: flex;
|
|
gap: 8px;
|
|
z-index: 10;
|
|
background: rgba(0,0,0,0.4);
|
|
border-radius: 4px;
|
|
padding: 4px;
|
|
}
|
|
|
|
.spotlight-nav-button {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: transparent;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.spotlight-nav-button:hover {
|
|
background: rgba(255,255,255,0.2);
|
|
}
|
|
|
|
.spotlight-nav-button .material-icons {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.spotlight-pause-button {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: transparent;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 10;
|
|
padding: 0;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.spotlight-pause-button .material-icons {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.spotlight-dots {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
display: flex;
|
|
gap: 8px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.spotlight-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: rgba(255,255,255,0.5);
|
|
cursor: pointer;
|
|
padding: 0;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.spotlight-dot.active {
|
|
background: white;
|
|
}
|
|
|
|
.spotlight-genre-link,
|
|
.spotlight-person-link {
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.spotlight-empty-writer-container {
|
|
font-size: 14px;
|
|
opacity: 0.9;
|
|
height: 1em;
|
|
}
|
|
|
|
/* Mobile Styles */
|
|
@media (max-width: 768px) {
|
|
.metadata-container {
|
|
display: none !important;
|
|
}
|
|
|
|
.spotlight-nav-container {
|
|
display: none !important;
|
|
}
|
|
|
|
.spotlight-pause-button {
|
|
display: none !important;
|
|
}
|
|
|
|
.spotlight-clearart {
|
|
display: none !important;
|
|
}
|
|
|
|
.spotlight-overlay {
|
|
width: calc(100% - 2rem);
|
|
padding: 5rem 1rem 3rem !important;
|
|
align-items: center;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
.spotlight-tagline {
|
|
max-height: 175px !important;
|
|
-webkit-line-clamp: 4;
|
|
}
|
|
|
|
.spotlight-item-logo {
|
|
max-width: 100%;
|
|
height: 125px;
|
|
}
|
|
}
|
|
|
|
.skeleton-card {
|
|
margin-bottom: 45px !important;
|
|
}
|
|
|
|
[data-item-type="Movie"] .spotlight-item-logo {
|
|
height: 120px;
|
|
max-width: 310.2px;
|
|
}
|
|
|
|
[data-item-type="Movie"] .spotlight-tagline {
|
|
-webkit-line-clamp: 1;
|
|
min-height: 30px;
|
|
max-height: 30px;
|
|
}
|
|
|
|
// Remove this if we switch back to Jellyfin's default scroll buttons
|
|
.emby-scrollbuttons.padded-right {
|
|
-webkit-align-items: center;
|
|
align-items: center;
|
|
color: #fff;
|
|
display: -webkit-flex;
|
|
display: flex;
|
|
-webkit-justify-content: center;
|
|
justify-content: center;
|
|
min-height: 24px;
|
|
min-width: 104px;
|
|
padding-top: .85em;
|
|
position: absolute;
|
|
top: 0;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Progressive Section Reveal Animation */
|
|
.cardbuilder-section-reveal {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
|
|
transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* When section enters viewport, trigger animation */
|
|
.cardbuilder-section-reveal.in-viewport {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.show-all-button {
|
|
margin-left: 10px;
|
|
font-size: 12px;
|
|
padding: 4px 8px;
|
|
min-width: auto;
|
|
background: transparent;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
align-self: center;
|
|
border: 1px solid rgba(255, 255, 255, 0.3) !important;
|
|
color: var(--main-text, #fff) !important;
|
|
position: relative;
|
|
display: none; /* Hidden by default */
|
|
}
|
|
|
|
[data-section-id] .sectionTitleContainer {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Show button when section is expandable */
|
|
.emby-scroller-container[data-expandable="true"] .show-all-button {
|
|
display: initial !important;
|
|
}
|
|
|
|
/* Expanded grid view styles */
|
|
.itemsContainer[data-expanded="true"] {
|
|
display: flex !important;
|
|
flex-wrap: wrap !important;
|
|
white-space: normal !important;
|
|
transform: none !important;
|
|
transition: none !important;
|
|
}
|
|
|
|
/* Hide scroll buttons when expanded */
|
|
.emby-scroller-container:has(.itemsContainer[data-expanded="true"]) .emby-scrollbuttons {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Refresh Button Styles */
|
|
.section-refresh-button {
|
|
margin-left: 8px;
|
|
padding: 4px;
|
|
min-width: auto;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--main-text, rgba(255, 255, 255, 0.87));
|
|
border-radius: 50%;
|
|
font-size: 18px;
|
|
transition: transform 0.3s ease, color 0.3s ease, background 0.2s ease;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.section-refresh-button:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* Spinning animation when refreshing */
|
|
[data-refreshing="true"] .section-refresh-button {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
/* Checkmark state - green color to indicate success */
|
|
.section-refresh-button.check_circle {
|
|
animation: none;
|
|
}
|
|
|
|
/* Smooth transition when changing icons */
|
|
.section-refresh-button.refresh,
|
|
.section-refresh-button.check_circle {
|
|
transition: transform 0.3s ease, color 0.3s ease, background 0.2s ease;
|
|
}
|
|
|
|
/* Fade in/out transitions for icon changes */
|
|
.section-refresh-button::after {
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.section-refresh-button.icon-fade-out::after {
|
|
opacity: 0;
|
|
}
|
|
|
|
.section-refresh-button.icon-fade-in::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
/* Ensure button remains visible when expanded (data-expandable takes precedence, but this ensures it) */
|
|
.emby-scroller-container:has(.itemsContainer[data-expanded="true"]) .show-all-button {
|
|
display: initial !important;
|
|
}
|
|
|
|
.spotlight-section[data-full-screen="true"] {
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|
|
.spotlight-section[data-full-screen="true"] .spotlight-banner-container {
|
|
border-radius: 0;
|
|
height: 70vh;
|
|
}
|
|
|
|
.spotlight-section[data-full-screen="true"] .spotlight-items-container {
|
|
|
|
}
|
|
|
|
.spotlight-section[data-full-screen="true"] .spotlight-overlay.has-title {
|
|
padding: 70px 80px 20px 80px;
|
|
}
|
|
|
|
.spotlight-section[data-full-screen="true"] .spotlight-section-title {
|
|
left: 80px;
|
|
}
|
|
|
|
.spotlight-section[data-full-screen="true"] .spotlight-item-logo {
|
|
width: auto;
|
|
max-width: none;
|
|
height: 40%;
|
|
}
|
|
|
|
.spotlight-section[data-full-screen="true"] .spotlight-clearart {
|
|
right: 80px;
|
|
}
|
|
|
|
.spotlight-section[data-full-screen="true"] .spotlight-nav-container {
|
|
right: 80px;
|
|
}
|