diff --git a/src/app.css b/src/app.css index cad4e52..7f12a61 100644 --- a/src/app.css +++ b/src/app.css @@ -3,27 +3,47 @@ @tailwind utilities; a { - @apply hover:text-amber-200; + @apply hover:text-amber-200; } .placeholder { - @apply bg-zinc-700 bg-opacity-40 animate-pulse; + @apply bg-zinc-700 bg-opacity-40 animate-pulse; } .placeholder-image { - @apply bg-zinc-700 bg-opacity-75; + @apply bg-zinc-700 bg-opacity-75; } .placeholder-text { - @apply bg-zinc-700 bg-opacity-40 animate-pulse text-transparent rounded-lg select-none; + @apply bg-zinc-700 bg-opacity-40 animate-pulse text-transparent rounded-lg select-none; } +/*html:not([data-useragent*="Tizen"]) .selectable, html:not([data-useragent*="Tizen"]) .selectable-offset {*/ +/* @apply focus-visible:outline-2;*/ +/*}*/ + +/*html[data-useragent*="Tizen"] .selectable, html[data-useragent*="Tizen"] .selectable-offset {*/ +/* @apply focus-within:outline-2;*/ +/*}*/ + +/*.selectable, .selectable-offset {*/ +/* @apply outline outline-0 outline-highlight-foreground*/ +/*}*/ + +/*.selectable {*/ +/* @apply outline-offset-[-2px] border-2 border-transparent*/ +/*}*/ + +/*.selectable-offset {*/ +/* @apply outline-offset-[2px]*/ +/*}*/ + html:not([data-useragent*="Tizen"]) .selectable { - @apply outline-none outline-0 border-2 border-[#00000000] focus-visible:border-[#f0cd6dc2]; + @apply outline-none outline-0 border-2 border-[#00000000] focus-visible:border-highlight-foreground; } html[data-useragent*="Tizen"] .selectable { - @apply outline-none outline-0 border-2 border-[#00000000] focus-within:border-[#f0cd6dc2]; + @apply outline-none outline-0 border-2 border-[#00000000] focus-within:border-highlight-foreground; } .selectable:focus, .selectable:focus-within { @@ -31,15 +51,15 @@ html[data-useragent*="Tizen"] .selectable { } .peer-selectable { - @apply peer-focus-visible:outline outline-2 outline-[#f0cd6dc2] outline-offset-2; + @apply peer-focus-visible:outline outline-2 outline-[#f0cd6dc2] outline-offset-2; } .selectable-explicit { - @apply focus-within:outline outline-2 outline-[#f0cd6dc2] outline-offset-2; + @apply focus-within:outline outline-2 outline-[#f0cd6dc2] outline-offset-2; } @media tv { - html { - font-size: 24px; - } + html { + font-size: 24px; + } } diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte index d032ef8..3dd1ace 100644 --- a/src/lib/components/Button.svelte +++ b/src/lib/components/Button.svelte @@ -14,8 +14,8 @@ class={classNames( 'px-6 py-2 rounded-lg font-medium tracking-wide flex items-center', { - 'bg-stone-200 text-stone-900': $hasFoucus, - 'hover:bg-stone-200 hover:text-stone-900': true, + 'bg-highlight-foreground text-stone-900': $hasFoucus, + 'hover:bg-highlight-foreground hover:text-stone-900': true, 'bg-stone-800/50': !$hasFoucus, 'cursor-pointer': !inactive, 'cursor-not-allowed pointer-events-none opacity-40': inactive diff --git a/src/lib/components/Carousel/Carousel.svelte b/src/lib/components/Carousel/Carousel.svelte index 089d6ee..c0302d9 100644 --- a/src/lib/components/Carousel/Carousel.svelte +++ b/src/lib/components/Carousel/Carousel.svelte @@ -45,7 +45,7 @@
- true }}> + true }} let:focusIndex>
(scrollX = carousel?.scrollLeft || scrollX)} > - +
{#if scrollX > 50} diff --git a/src/lib/components/Carousel/UICarousel.svelte b/src/lib/components/Carousel/UICarousel.svelte index e0f6cab..9ec7f00 100644 --- a/src/lib/components/Carousel/UICarousel.svelte +++ b/src/lib/components/Carousel/UICarousel.svelte @@ -26,13 +26,17 @@ true }} + let:focusIndex > - + diff --git a/src/lib/components/SeriesPage/EpisodeCard.svelte b/src/lib/components/SeriesPage/EpisodeCard.svelte index f664611..b1458fe 100644 --- a/src/lib/components/SeriesPage/EpisodeCard.svelte +++ b/src/lib/components/SeriesPage/EpisodeCard.svelte @@ -18,7 +18,7 @@ - - {#each $tmdbSeasons as season} - focusFirstEpisodeOf(season)} - on:enter={(event) => { - console.log(event); - scrollIntoView({ horizontal: 64 })(event); - if (event.detail.options.setFocusedElement) focusFirstEpisodeOf(season); - }} - bind:this={containers[`season-${season.season_number}`]} - > -
+ + {#each $tmdbSeasons as season, i} + focusFirstEpisodeOf(season)} + on:enter={(event) => { + console.log(event); + scrollIntoView({ horizontal: 64 })(event); + if (event.detail.options.setFocusedElement) focusFirstEpisodeOf(season); + }} + bind:this={containers[`season-${season.season_number}`]} > - Season {season.season_number} -
-
- {/each} -
+
+ Season {season.season_number} +
+
+ {/each} + +
{#each $tmdbSeasons as season} {#each season?.episodes || [] as episode} diff --git a/tailwind.config.js b/tailwind.config.js index 5a7e148..d2b189e 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -9,7 +9,9 @@ export default { }, colors: { darken: '#07050166', - lighten: '#fde68a20' + lighten: '#fde68a20', + // 'highlight-foreground': '#E7E5E4' + 'highlight-foreground': '#ffe6abcc' }, keyframes: { timer: {