Repository navigation
Expand file tree
/
Copy paththeme.css
More file actions
4385 lines (4038 loc) · 177 KB
/
Copy paththeme.css
File metadata and controls
4385 lines (4038 loc) · 177 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
================================================================================
| |
| JELLYFIN CUSTOM THEME |
| Main Stylesheet (theme.css) |
| |
================================================================================
*/
/* ~~~~~~~~~~~~~~~~~~~~ EXTERNAL IMPORTS ~~~~~~~~~~~~~~~~~~~~ */
@import url("https://cdn.jsdelivr.net/gh/n00bcodr/Jellyfish/fonts/quicksand.css"); /* Quicksand Font */
@import url("https://cdn.jsdelivr.net/gh/Druidblack/jellyfin-icon-metadata/public-icon.css"); /* Metadata icons by Druidblack */
@import url("https://cdn.jsdelivr.net/gh/n00bcodr/Jellyfish/fonts/materialSymbolsRounded.css");
@import url("loginpage.css"); /* relative: follows whichever branch/tag theme.css was loaded from */
@import url("https://cdn.jsdelivr.net/gh/n00bcodr/Jellyfish/colors/jellyblue.css");
/* ~~~~~~~~~~~~~~~~~~~~ GLOBAL CSS VARIABLES ~~~~~~~~~~~~~~~~~~~~ */
/* Defines core variables used throughout the theme for consistency. */
:root {
--theme-updated-on: "20 November 2026 - 08:54 P.M."; /* Date of last theme update */
--theme-name: 'Jellyfish';
--rounded-cards: 15px; /* Standard border-radius */
--blur: 15px; /* Default blur intensity */
--header-solid-background-color: color-mix(in srgb, var(--secondary-background-color) 85%, rgb(var(--primary-r), var(--primary-g), var(--primary-b)) 15%);
}
/* ~~~~~~~~~~~~~~~~~~~~ DERIVED COLOR TOKENS ~~~~~~~~~~~~~~~~~~~~ */
/* Everything below is computed from the palette file (colors/*.css), so every
palette - including custom ones - gets readable text without per-palette work.
- --text-color text ON the solid accent (buttons, active tabs): set per palette
- --accent-text-color the accent used AS text on dark surfaces (links, titles), lightened to >= 4.5:1
- --accent-surface(-strong) dark, accent-tinted panels (selected rows, dialogs) that keep white text readable
The old rule of using the raw 60%-alpha accent behind text failed contrast on
most palettes (e.g. white on banana/grass/mint/peach, black on jellyflix). */
:root {
--accent-text-color: color-mix(in srgb, var(--primary-accent-color) 70%, #fff);
--accent-surface: color-mix(in srgb, var(--primary-accent-color) 26%, var(--secondary-background-color));
--accent-surface-strong: color-mix(in srgb, var(--primary-accent-color) 40%, var(--secondary-background-color));
}
/* ~~~~~~~~~~~~~~~~~~~~ JELLYFIN 12 PALETTE BRIDGE ~~~~~~~~~~~~~~~~~~~~ */
/* Jellyfin 12 builds its MUI components AND its legacy stylesheets from
--jf-palette-* variables (with fallbacks to its own blue/grey). Pointing them
at this theme's palette recolors buttons, switches, chips, selected states,
focus rings, menus and dialogs in one place instead of overriding each
component class with !important. [data-theme] raises specificity just above
Jellyfin's own :root/[data-theme="dark"] declarations. */
:root,
:root[data-theme] {
--jf-palette-primary-main: var(--primary-accent-color);
--jf-palette-primary-mainChannel: var(--primary-r) var(--primary-g) var(--primary-b);
--jf-palette-primary-light: color-mix(in srgb, var(--primary-accent-color) 78%, #fff);
--jf-palette-primary-dark: color-mix(in srgb, var(--primary-accent-color) 78%, #000);
--jf-palette-primary-contrastText: var(--text-color);
--jf-palette-secondary-main: var(--primary-accent-color);
--jf-palette-secondary-mainChannel: var(--primary-r) var(--primary-g) var(--primary-b);
--jf-palette-secondary-contrastText: var(--text-color);
--jf-palette-background-default: var(--primary-background-color);
--jf-palette-background-paper: var(--secondary-background-color);
--jf-palette-AppBar-defaultBg: var(--header-solid-background-color);
/* Jellyfin 12 reads its card corner radius from this variable too (also used by Abyss) */
--jf-card-borderRadius: var(--rounded-cards);
}
/* Engines without color-mix() (Chrome < 111: older Samsung Tizen / LG webOS TVs,
Jellyfin Media Player): a var() that holds an unsupported color-mix() is
"invalid at computed-value time", which would drop text colors and make
dialogs/selected rows transparent. Plain approximations keep everything readable. */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
:root {
--header-solid-background-color: var(--secondary-background-color);
--accent-text-color: var(--primary-accent-color);
--accent-surface: var(--secondary-background-color);
--accent-surface-strong: rgba(var(--primary-r), var(--primary-g), var(--primary-b), .35);
}
:root,
:root[data-theme] {
--jf-palette-primary-light: var(--primary-accent-color);
--jf-palette-primary-dark: var(--primary-accent-color);
}
}
/* Respect the OS "reduce motion" setting: no entrance animations, spinning icons or
hover lifts. (Pattern also used by Abyss, MIT - https://github.com/AumGupta/abyss-jellyfin) */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* NOTE: theme.css is the single stylesheet for the whole theme - the former
10.11_fixes.css (dashboard-only, JS-injection workaround) and 12_fixes.css
(Jellyfin 12+ React/MUI top bar & nav drawer) are merged in directly below.
Regular pages pick this up via Jellyfin's Custom CSS/branding field as usual.
The admin dashboard blocks Custom CSS entirely, so its section (marked below)
only takes effect when this file is also loaded via JS injection - see
scripts/dashboard_theming.js. */
/* ~~~~~~~~~~~~~~~~~~~~ GLOBAL FONT ~~~~~~~~~~~~~~~~~~~~ */
/* Sets the font for the theme. */
body, h1, h2, h3, h4, h5, h6, p {
font-family: 'Quicksand', sans-serif !important;
}
/* hide scrollbars */
* {
scrollbar-color : transparent transparent !important;
scrollbar-width: none !important;
}
.emby-button.block, .dashboardDocument .material-icons.check:before, .displayPreferencesPage .material-icons.check:before {
color: var(--text-color) !important;
background-color: var(--primary-accent-color);
}
/* ~~~~~~~~~~~~~~~~~~~~ ACCENT COLOR APPLICATION ~~~~~~~~~~~~~~~~~~~~ */
/* Styles that apply the theme's accent colors to various UI elements. */
/* == Primary Accent Backgrounds == */
/* Applied to main interactive element backgrounds indicating a primary action or state. */
.emby-checkbox:checked+span+.checkboxOutline, /* Checked checkboxes outline */
.selectionCommandsPanel, /* Toolbar for selected items */
.countIndicator, /* Unwatched count on cards */
.MuiButton-root.MuiButton-containedSizeMedium, /* Material UI medium contained buttons */
.MuiChip-root.MuiChip-colorInfo:not(.MuiChip-root.MuiChip-colorError), /* Info Chips (excluding error state) */
progress[aria-valuenow]:before, /* Progress bar fill (pseudo-element for some browsers) */
.button-submit, /* General submit buttons */
.layout-desktop .dashboardDocument div[data-role="controlgroup"] a.ui-btn-active, /* Active tabs in dashboard control groups (Desktop) */
.layout-desktop #editItemMetadataPage .btnHeaderSave, /* Save button in metadata editor header (Desktop) */
.layout-desktop .mainDetailButtons .btnPlay, /* Play button on details page (Desktop) */
.layout-desktop .mainDetailButtons .button-flat.btnPlay, /* Play button on details page (Desktop JMP) */
.layout-mobile .mainDetailButtons .btnPlay, /* Play button on details page (Mobile) */
.layout-tv .mainDetailButtons .btnPlay, /* Play button on details page (TV) */
.mdl-radio__focus-circle, /* Halo behind a focused radio button (sort and view menus); Jellyfin hard-codes its blue here */
.iconOsdProgressInner /* Inner part of OSD circular progress indicators */
{
background: var(--primary-accent-color) !important;
}
/* == Header Nav Active Link Color == */
/* The desktop header's active top-level nav link (e.g. "Movies") uses MUI's default primary blue instead of the theme accent. */
header .MuiButton-textPrimary.MuiButton-colorPrimary {
color: var(--accent-text-color) !important;
}
/* == Secondary Accent Backgrounds == */
/* Applied to elements that need a less prominent accent background. */
.MuiAlert-root.MuiAlert-standardInfo, /* Info type Material UI alerts */
.MuiListItemButton-root.Mui-selected, /* Selected Material UI list item buttons */
.jstree-default .jstree-wholerow.jstree-wholerow-clicked /* Clicked rows in jsTree (metadata editor folder tree). Jellyfin's own
rule is `.jstree-default .jstree-wholerow-clicked { ... !important }` and loads with
the editor, after this file, so the extra class is what lets this one win. */ {
background: var(--accent-surface-strong) !important;
}
/* Solid, opaque background (see --header-solid-background-color) rather than
the 20%-opacity --secondary-background-transparent - a dropdown can open
over anything (a bright poster, a busy grid), and a translucent tint plus
blur isn't reliably readable against arbitrary content behind it. The
class is repeated to out-specificity MUI's own re-injected Paper
background (same trick already used on .MuiDrawer-paper below). */
.MuiMenu-paper.MuiMenu-paper {
background: var(--header-solid-background-color) !important;
}
.formDialogHeader,
.formDialogFooter {
background: var(--accent-surface) !important;
backdrop-filter: blur(25px) !important;
}
.formDialogHeader h3 {
font-weight: 800;
}
.formDialogContent {
background: var(--secondary-background-transparent) !important;
height: -webkit-fill-available !important;
}
.formDialog:has(.formDialogHeader-clear) .formDialogContent {
background: none !important;
}
.formDialog .formDialogFooter-clear {
margin-top: 1em !important;
margin-bottom: 0px !important;
padding: 1em;
}
.layout-mobile .dialog-fullscreen-lowres .formDialogHeader-clear {
border-radius: var(--rounded-cards) !important;
margin-left: 0em !important;
}
.layout-mobile .dialog-fullscreen-lowres .formDialogFooter-clear {
background: none !important;
}
.formDialogHeader.formDialogHeader-clear.justify-content-center {
width: 100%;
margin-bottom: 1em !important;
}
.formDialogHeader.formDialogHeader-clear .formDialogHeaderTitle {
margin-left: 0em !important;
}
.iconOsdProgressOuter /* Outer ring of OSD circular progress indicators */
{
background: #ffffffc0 !important;
}
.listItemIcon:not(.listItemIcon-transparent) /* Icons in list items (excluding transparent ones) */
{
color: #ffffff !important;
background-color: var(--accent-surface-strong) !important;
}
/* Jellyfin 12's dashboard draws the same activity icons as MUI Avatars filled with MUI's info blue
(bgcolor: info.main). Re-pointing that variable for the avatar only gives informational entries the
surface used above; warning and error entries read other variables and keep their own colours. */
.MuiListItemAvatar-root {
--jf-palette-info-main: var(--accent-surface-strong);
}
/* == Accent Color for Progress Bars == */
/* Styles progress bar elements with the primary accent color. */
progress::-webkit-progress-value, /* Progress bar fill for WebKit browsers */
.itemProgressBarForeground, /* Foreground of item progress bars (e.g., watched progress on cards) */
.mdl-slider-background-lower /* Lower part of Material Design Lite sliders (used in player progress) */
{
background: var(--primary-accent-color) !important;
}
/* Background for the track of item progress bars, using primary accent with transparency. */
.itemProgressBar {
background: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.2) !important;
}
/* == Accent Color for Borders == */
/* Applies primary accent color to borders of interactive or focused elements. */
.emby-checkbox:checked+span+.checkboxOutline, /* Outline of checked checkboxes */
.emby-checkbox:focus:not(:checked)+span+.checkboxOutline, /* Outline of focused (but not checked) checkboxes */
.emby-input:focus, /* Focused text input fields */
.emby-textarea:focus, /* Focused textarea fields */
.emby-select-withcolor:focus, /* Focused select dropdowns with color indication */
.mdl-spinner__layer-1, /* Layers of Material Design Lite spinners */
.mdl-spinner__layer-2,
.mdl-spinner__layer-3,
.mdl-spinner__layer-4,
.progressring-spiner /* Spinner for progress rings */
{
border-color: var(--primary-accent-color) !important;
}
/* == Progress ring (metadata refresh indicator) == */
/* Jellyfin draws the ring over a black disc with grey text; its arc is themed above. The disc and the
unfilled track follow the palette instead. */
.progressring-bg {
background: var(--header-solid-background-color);
border-color: var(--accent-surface-strong);
}
.progressring-text {
color: var(--accent-text-color);
font-weight: 700;
}
/* == Accent Color for Text & Icons == */
/* Applies primary accent color to text and icons for emphasis or active states. */
.button-link:not(.itemDetailPage .button-link), /* Link-styled buttons (excluding those on item detail pages) */
.selectLabelFocused, /* Labels for focused select dropdowns */
.textareaLabelFocused, /* Labels for focused textareas */
.inputLabelFocused, /* Labels for focused input fields */
.metadataSidebarIcon, /* Icons in the metadata editor sidebar */
.upNextDialog-countdownText, /* Countdown text in the "Up Next" dialog */
.MuiSvgIcon-root.MuiSvgIcon-fontSizeInherit, /* Material UI SVG icons inheriting font size */
.button-flat:hover /* Hovered flat buttons */
{
color: var(--accent-text-color) !important;
}
/* Keyboard or remote focus: Jellyfin fills a focused button with the accent (.emby-button.show-focus:focus),
and accent-coloured text on that fill cannot be read. Text on accent fills is --text-color. */
.emby-button.show-focus:focus.button-link:not(.itemDetailPage .button-link),
.emby-button.show-focus:focus .sectionTitle {
color: var(--text-color) !important;
text-shadow: none;
}
.MuiListItemButton-root.Mui-selected .MuiListItemIcon-root, /* Icons within selected Material UI list items */
.MuiListItemButton-root.Mui-selected /* Selected Material UI list items (text) */
{
color: #ffffff !important;
}
/* == Accent Color for Hover Effects (Fine Pointer Devices) == */
/* Applies accent color on hover and while pressed for icon buttons. */
.paper-icon-button-light:hover:not(:disabled),
.paper-icon-button-light:active:not(:disabled) { /* Hovered or pressed; disabled buttons are excluded */
color: var(--primary-accent-color) !important;
background-color: transparent !important;
}
/* == Hover Color for Movie Card Overlays == */
/* Sets a semi-transparent background on the card overlay. Jellyfin fades the overlay in on hover (an
opacity transition that runs on the compositor). The colour is also set while the overlay rests at
opacity 0, so hovering only changes opacity: no repaint when the pointer enters a card, and no switch
back to Jellyfin's black while it fades out. Keyboard/TV focus without hover keeps Jellyfin's colour. */
.card-hoverable:hover .cardOverlayContainer,
.card-hoverable:not(:focus-within) .cardOverlayContainer {
background: var(--secondary-background-transparent);
}
/* Keep overlay buttons (three dots etc.) above the selection panel (z-index 99998). */
.cardOverlayContainer {
z-index: 99999;
}
.cardOverlayContainer > .cardOverlayFab-primary {
background-color: transparent !important;
color: var(--primary-accent-color) !important;
}
/* Hide watched and favorite buttons on card hover */
.cardOverlayButtonIcon:is(.playstatebutton-icon-unplayed, .playstatebutton-icon-played, .favorite) {
display: none !important;
}
/* Also hide the whole control on legacy and Modern cards, including its hit area. */
.cardOverlayButton:has(
> .cardOverlayButtonIcon:is(.playstatebutton-icon-unplayed, .playstatebutton-icon-played, .favorite),
> .MuiSvgIcon-root:is([data-testid="CheckIcon"], [data-testid="FavoriteIcon"])
) {
display: none !important;
}
/* ~~~~~~~~~~~~~~~~~~~~ SPECIFIC ELEMENT BACKGROUNDS (NON-ACCENT) ~~~~~~~~~~~~~~~~~~~~ */
/* Defines specific background colors for particular buttons or elements, not tied to the theme accent. */
/* Red background for delete image button. */
#btnDeleteImage {
background: #942626c2 !important;
}
/* Violet background for refresh button and reset metadata button */
button.raised.btnRefresh.emby-button, .button-reset {
background: blueviolet !important;
}
/* Dark, semi-transparent background for the Intro Skipper button. */
#skipIntro .emby-button {
background: rgba(30, 30, 30, 0.7) !important;
}
/* Red background for cancel and reset password buttons. */
#btnCancel, #btnResetPassword, .button-cancel {
background: rgb(180 96 96) !important;
}
/* ~~~~~~~~~~~~~~~~~~~~ GENERAL BACKGROUND COLORS ~~~~~~~~~~~~~~~~~~~~ */
/* Sets base background colors for main layout areas and components. */
/* Primary background for the entire page and containers without backdrops. */
html
{
background-color: var(--primary-background-color) !important;
}
.backgroundContainer:not(.withBackdrop):not(.backgroundContainer-transparent), /* Main page background, excluding when a backdrop is shown */
.noBackdropTransparency .detailPageSecondaryContainer /* Secondary container on detail pages when backdrop transparency is off */
{
background-color: var(--secondary-background-transparent) !important;
}
/* Tabbed pages (home, libraries): the backdrop image itself is blurred and dimmed (see
.backdropImage), which is rasterized once. A full-viewport backdrop-filter here would be
re-blurred on every scrolled frame. */
.libraryDocument.withSectionTabs .backgroundContainer {
background-color: var(--secondary-background-transparent);
}
.libraryDocument.withSectionTabs .backdropImage {
display: block !important;
filter: blur(var(--blur)) brightness(.3);
}
/* Secondary, often slightly transparent, backgrounds for elements like drawers, dialogs, and content sections. */
.layout-desktop .mainDrawer, /* Main navigation drawer (Desktop) */
.layout-mobile .mainDrawer, /* Main navigation drawer (Mobile) */
.MuiPaper-root.MuiDrawer-paperAnchorDockedLeft, /* Material UI drawer paper */
.dialog, /* Dialog boxes */
.programCell-active, /* Active program cells in the TV guide */
.channelsContainer, /* Container for TV channels */
.trackSelections /* Audio/Subtitle track selection area */
{
background: var(--secondary-background-transparent) !important;
}
/* Popovers (sort/filter dropdowns, etc.) can open over anything - a bright
poster, a busy grid - so they need the same solid, opaque background as
menus (see .MuiMenu-paper above) rather than a translucent tint that reads
fine over a drawer's own solid backing but washes out white text over
arbitrary page content. The class is repeated to out-specificity MUI's
own re-injected Paper background. */
.MuiPaper-root.MuiPopover-paper.MuiPopover-paper {
background: var(--header-solid-background-color) !important;
}
/* Filter dropdown sections (Filters/Features/Video Type/Genres/etc.) render
as MUI Accordions nested inside the popover above - a separate component
with its own Paper background, so the popover fix doesn't reach it. Class
repeated rather than pinning the generated css-hash suffix (e.g. css-ecgo44)
- that hash drifts on every Jellyfin rebuild and silently stops matching,
the same failure mode already hit elsewhere in this file. */
.MuiAccordion-root.MuiAccordion-root {
background: var(--header-solid-background-color) !important;
}
/* ~~~~~~~~~~~~~~~~~~~~ DYNAMIC BACKGROUNDS (ACTIVE DEVICES) ~~~~~~~~~~~~~~~~~~~~ */
/* Provides a set of alternate background colors, often used for cards in the "Active Devices" section. */
.defaultCardBackground1 { background-color: var(--primary-alt1) !important; }
.defaultCardBackground2 { background-color: var(--primary-alt2) !important; }
.defaultCardBackground3 { background-color: var(--primary-alt3) !important; }
.defaultCardBackground4 { background-color: var(--primary-alt4) !important; }
.defaultCardBackground5 { background-color: var(--primary-alt5) !important; }
/* ~~~~~~~~~~~~~~~~~~~~ LAYOUT - GENERAL ~~~~~~~~~~~~~~~~~~~~ */
/* == Poster Card Size Reduction (Landscape) == */
/* Reduces the width of portrait-oriented cards on wider screens in landscape. */
@media (min-width: 50em) and (orientation: landscape) {
.overflowPortraitCard { /* used for "More like this" sections */
width: 15% !important;
}
}
/* == Rounded Progress Bars == */
/* Applies rounding to all progress elements and their WebKit-specific parts. */
progress,
progress::-webkit-progress-bar, /* Track of the progress bar (WebKit) */
progress::-webkit-progress-value /* Filled part of the progress bar (WebKit) */
{
border-radius: var(--rounded-cards) !important;
overflow: hidden; /* Ensures inner parts respect the rounding */
}
/* == Default Logo Styling == */
/* Styles for the Jellyfin logo when a custom one isn't set by the user. */
.pageTitleWithDefaultLogo {
background-image: var(--logo) !important; /* Uses the --logo variable, ensure it's defined in your color scheme files */
background-size: 100% !important; /* Make logo responsive within its container */
}
/* Desktop logo dimensions and positioning. */
.layout-tv .pageTitleWithLogo, .layout-desktop .pageTitleWithLogo {
margin-left: 25px !important;
height: 60px !important;
width: 140px !important;
}
/* Mobile logo dimensions and positioning. */
.layout-mobile .pageTitleWithLogo {
height: 30px !important;
width: 100px !important;
margin: 0 1em 0 .5em !important;
padding: 10px !important;
}
/* General page title margin (when logo is not present or text only). */
[dir="ltr"] .pageTitle {
margin: 0 1em 0 .5em !important;
}
/* Fix for empty page titles that might otherwise take up space due to margin. */
[dir="ltr"] .pageTitle:not(.pageTitleWithLogo):empty {
margin: 0 !important;
}
/* == Dialog Styling == */
/* Basic styling for dialog boxes. */
.dialog {
background-color: var(--secondary-background-color) !important; /* Re-affirm background, could be inherited */
border-radius: var(--rounded-cards) !important;
border: 1px solid var(--alt-accent-color);
}
/* The page behind a dialog is dimmed and softened so the dialog is the only thing in focus. */
.dialogBackdropOpened {
opacity: .6;
backdrop-filter: blur(6px);
}
/* Form dialogs (Media Info, Edit metadata, Add to playlist, Identify...) are three bands: header,
content, footer. A hairline separates them and the dialog floats on a deep shadow. */
.dialog.formDialog {
box-shadow: 0 24px 64px rgba(0, 0, 0, .55) !important;
overflow: hidden;
}
.formDialogHeader {
border-bottom: 1px solid var(--alt-accent-color);
}
.formDialogFooter {
border-top: 1px solid var(--alt-accent-color);
}
/* Where Jellyfin makes a dialog fill the screen (phones, narrow windows, TV) it is edge to edge:
rounded corners and a border would only show black wedges at the screen's corners. */
@media (max-width: 50em) {
.dialog.dialog-fixedSize,
.dialog.dialog-fullscreen-lowres {
border-radius: 0 !important;
border: 0 !important;
box-shadow: none !important;
}
}
.dialog.dialog-fullscreen,
.layout-tv .dialog.dialog-fixedSize {
border-radius: 0 !important;
border: 0 !important;
}
/* Media Info dialog: the file's details on top, then one card per stream (Video, Audio, Subtitle).
Labels are dimmed so the values stand out, and the headings take the accent colour. */
.mediaInfoContent .mediaInfoStreamType {
font-size: 1.2rem;
font-weight: 700;
color: var(--accent-text-color);
display: flex;
align-items: center;
gap: .25em;
margin: 0 0 .6em;
}
.mediaInfoContent .mediaInfoSource > div:first-child .mediaInfoStreamType {
font-size: 1.45rem;
color: inherit;
}
.mediaInfoContent .mediaInfoLabel {
font-weight: 600;
opacity: .6;
margin-right: .4em;
}
.mediaInfoContent .mediaInfoAttribute {
color: #fff;
overflow-wrap: anywhere;
}
/* The file's own details (Container, Path, Size) read as a two-column table: label left, value
right, a hairline between rows. The streams below wrap as cards. */
.mediaInfoContent .mediaInfoSource {
display: flex;
flex-wrap: wrap;
gap: 0 1rem;
line-height: 1.9;
}
.mediaInfoContent .mediaInfoSource > div:first-child {
flex: 0 0 100%;
}
.mediaInfoContent .mediaInfoSource > br,
.mediaInfoContent .mediaInfoSource > .hide {
display: none;
}
.mediaInfoContent .mediaInfoSource > .mediaInfoLabel {
flex: 0 0 7rem;
margin: 0;
padding: .35rem 0;
border-bottom: 1px solid var(--alt-accent-color);
}
.mediaInfoContent .mediaInfoSource > .mediaInfoAttribute {
flex: 1 1 0;
min-width: calc(100% - 8rem);
padding: .35rem 0;
border-bottom: 1px solid var(--alt-accent-color);
}
/* Each stream is a card holding the same two-column table: label left, value right. */
.mediaInfoContent .mediaInfoStream {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
flex: 1 1 19rem;
max-width: 24rem;
box-sizing: border-box;
margin: 1.25rem 0 0;
padding: 1rem 1.15rem;
border: 1px solid var(--alt-accent-color);
border-radius: var(--rounded-cards);
background: color-mix(in srgb, #fff 5%, transparent);
}
.mediaInfoContent .mediaInfoStream > .mediaInfoStreamType {
flex: 0 0 100%;
}
.mediaInfoContent .mediaInfoStream > br,
.mediaInfoContent .mediaInfoStream > .hide {
display: none;
}
.mediaInfoContent .mediaInfoStream > .mediaInfoLabel {
flex: 0 0 38%;
margin: 0;
padding: .3rem 0;
border-top: 1px solid var(--alt-accent-color);
}
.mediaInfoContent .mediaInfoStream > .mediaInfoAttribute {
flex: 1 1 0;
min-width: 55%;
padding: .3rem 0 .3rem .5rem;
border-top: 1px solid var(--alt-accent-color);
text-align: right;
}
@media (max-width: 50em) {
.mediaInfoContent .mediaInfoStream {
flex-basis: 100%;
max-width: none;
}
}
.mediaInfoContent .btnCopy {
opacity: .7;
}
.mediaInfoContent .btnCopy:hover {
opacity: 1;
}
/* Subtitle editor: the existing subtitles are cards, the search form gets the same section headings. */
.subtitleEditorDialog .dialogContentInner h2 {
font-size: 1.2rem;
font-weight: 700;
color: var(--accent-text-color);
margin: 1.25em 0 .6em;
}
.subtitleEditorDialog .dialogContentInner h2:first-child {
margin-top: .25em;
}
.subtitleEditorDialog .listItem {
margin-bottom: .6rem;
padding: .85rem 1rem;
border: 1px solid var(--alt-accent-color);
border-radius: var(--rounded-cards);
background: color-mix(in srgb, #fff 5%, transparent);
}
.subtitleEditorDialog .listItemBody > div:first-child {
font-weight: 700;
}
.subtitleEditorDialog .listItemBodyText.secondary {
opacity: .65;
font-size: .85em;
overflow-wrap: anywhere;
white-space: normal;
}
.subtitleEditorDialog .subtitleList .btnDelete:hover {
color: #ff9c9f;
background: color-mix(in srgb, #e5484d 18%, transparent);
}
.subtitleEditorDialog .originalFile .originalSubtitleFileLabel {
font-weight: 600;
opacity: .6;
margin-right: .5em;
}
/* Search results: the same cards. The metadata (format, downloads, frame rate) is spaced out and the
"Perfect match" / translated / forced pills take the accent colour instead of Jellyfin's blue. */
.subtitleEditorDialog .listItemBodyText.secondary > span:not(.subtitleFeaturePillow) {
margin-right: 1rem;
}
.subtitleEditorDialog .subtitleFeaturePillow {
margin: .3rem .5rem 0 0;
padding: .1rem .7rem;
border-radius: 999px;
background: var(--accent-surface-strong) !important;
border: 1px solid var(--primary-accent-color);
color: var(--accent-text-color) !important;
font-size: .8rem;
font-weight: 700;
}
.subtitleEditorDialog .btnDownload:hover {
background: var(--accent-surface);
border-radius: 50%;
}
/* The search controls sit on a card: the language picker, a filled round Search button (the primary
action) and an outlined round Upload button. */
.subtitleEditorDialog .originalFile {
margin: 0 0 .75rem;
}
.subtitleEditorDialog .subtitleSearchForm {
padding: 1rem 1.15rem;
border: 1px solid var(--alt-accent-color);
border-radius: var(--rounded-cards);
background: color-mix(in srgb, #fff 5%, transparent);
}
.subtitleEditorDialog .subtitleSearchForm > .flex {
gap: .75rem;
}
.subtitleEditorDialog .subtitleSearchForm .selectContainer {
margin-bottom: 0;
}
.subtitleEditorDialog .subtitleSearchForm .emby-select-iconbutton {
flex: none;
width: 2.8rem;
height: 2.8rem;
margin: 1.4rem 0 0; /* lines the buttons up with the picker, below its label */
padding: 0;
border-radius: 50%;
border: 1px solid var(--alt-accent-color);
transition: background-color .15s ease, transform .15s ease;
}
.subtitleEditorDialog .subtitleSearchForm .btnSearchSubtitles {
background: var(--primary-accent-color) !important;
border-color: transparent;
color: var(--text-color) !important;
}
.subtitleEditorDialog .subtitleSearchForm .btnSearchSubtitles:hover {
transform: scale(1.06);
}
.subtitleEditorDialog .subtitleSearchForm .btnOpenUploadMenu:hover {
background: var(--accent-surface);
}
/* Margin for titles within action sheets (a type of dialog). */
.actionSheetTitle {
margin: 10px 20px !important;
}
.actionSheetMenuItem.emby-button:hover, .listItem:hover {
background-color: var(--accent-surface) !important; /* Accent color on hover */
border-radius: var(--rounded-cards) !important;
}
.actionSheetContent {
background: var(--secondary-background-transparent) !important;
backdrop-filter: var(--blur) !important;
border-radius: var(--rounded-cards) !important;
}
/* == Mobile Cast & Crew Card Size == */
/* Adjusts the size of cast and crew portrait cards on mobile devices. */
/* Small mobile devices */
@media (min-width: 25em) {
.layout-mobile #castContent .card.overflowPortraitCard,
.layout-mobile #guestCastContent .card.overflowPortraitCard {
width: 30% !important;
font-size: 90% !important;
}
}
/* iPads in portrait */
@media (min-width: 50em) and (orientation: portrait) {
.layout-mobile #castContent .card.overflowPortraitCard,
.layout-mobile #guestCastContent .card.overflowPortraitCard {
width: 18% !important;
}
}
/* iPads/tablets in landscape */
@media (min-width: 50em) and (orientation: landscape) {
.layout-mobile #castContent .card.overflowPortraitCard,
.layout-mobile #guestCastContent .card.overflowPortraitCard {
width: 12% !important;
}
}
/* Desktop cast and crew card size. */
.layout-desktop #castContent .card.overflowPortraitCard,
.layout-desktop #guestCastContent .card.overflowPortraitCard {
width: 10em !important; /* Fixed width for desktop */
}
/* ~~~~~~~~~~~~~~~~~~~~ LAYOUT - HEADER ~~~~~~~~~~~~~~~~~~~~ */
/* == Header Base Styling == */
/* Basic transparency and padding for the main header. */
.skinHeader, .skinHeader-withBackground.osdHeader {
background: transparent !important;
}
.layout-desktop .skinHeader,
.layout-tv .skinHeader {
padding-top: 1.5em !important; /* Top padding for desktop and TV layouts */
}
.layout-tv .skinHeader {
padding-bottom: 10px !important; /* Specific bottom padding for TV layout */
}
/* == ZestyTheme-Inspired Header Tabs & Right Section == */
/* Styles for header tabs and the right-aligned header items, creating a pill-shaped, blurred effect. */
.headerTabs, /* Container for navigation tabs within the header */
.headerRight /* Container for icons/buttons on the right of the header */
{
background: var(--header-background-color) !important; /* Use a variable for background, ensure it's defined (e.g., semi-transparent white) */
border-radius: 100px !important; /* Creates the pill shape */
color: var(--secondary-background-color) !important; /* Text color, assuming a light header background means dark text */
backdrop-filter: blur(24px) !important; /* Strong blur effect */
box-shadow: 0px 0px 10px 10px rgba(0,0,0,0.25) !important;
}
/* == Header Button Hover & Focus (Right Section) == */
/* Accent color for icon buttons in the right header section on hover/focus. */
.headerRight .paper-icon-button-light:hover,
.headerRight .paper-icon-button-light:hover:not(:disabled),
.headerRight .paper-icon-button-light:focus,
.headerRight .paper-icon-button-light:focus:not(:disabled)
{
color: var(--primary-accent-color) !important;
}
/* == Header Text Color & Positioning == */
/* Styling for text elements within the header tabs/buttons. */
.homeLibraryText, /* Text for the "Home" or library buttons */
.emby-button-foreground /* General foreground (text/icon) for Emby buttons */
{
color: var(--secondary-background-color) !important; /* Dark text, assuming light header background */
transition: color 0.2s ease; /* Smooth color transition on hover/state change */
top: unset !important; /* Resets any default vertical positioning */
position: relative; /* Ensures proper behavior within flex containers */
}
/* == Header Tab Button Styling == */
/* Styling for individual tab buttons and the home/library button in the header. */
#indexPage .homeLibraryButton, /* Home button specifically on the index page */
.emby-tab-button /* General tab buttons */
{
background: transparent !important; /* Start with a transparent background */
min-width: 0 !important; /* Allow shrinking */
max-width: 50vw !important; /* Limit maximum width */
width: fit-content !important; /* Fit width to content */
transition: background-color 0.2s ease; /* Smooth background transition */
border-radius: 100px !important; /* Start with applied Border Radius */
}
/* Desktop-specific margin for tab/home buttons. */
.layout-desktop .homeLibraryButton,
.layout-desktop .emby-tab-button {
margin: .5em !important;
}
/* == Header Tab Button Hover/Focus Effects == */
/* Defines hover and focus appearance for header tabs, using primary accent. */
.raised:hover .homeLibraryText,
.emby-tab-button:hover .emby-button-foreground {
color: var(--text-color) !important; /* Text color on hover (e.g., white for contrast with accent background) */
transition: color 0.2s ease;
}
#indexPage .homeLibraryButton:hover,
.emby-tab-button:hover {
border-radius: 100px !important; /* Maintain pill shape on hover */
background-color: var(--primary-accent-color) !important; /* Use primary accent for background on hover */
}
/* Smooth scrolling for tab sliders */
.scrollSlider,
.emby-scroller {
scroll-behavior: smooth !important;
-webkit-overflow-scrolling: touch !important;
}
/* Remove default outline/shadow on focus for a cleaner look. */
.raised.homeLibraryButton.emby-button:hover,
.emby-tab-button:hover,
.homeLibraryButton:focus {
outline: none !important;
box-shadow: none !important;
}
/* Remove default underline/after-element effect on tab hover. */
.emby-tab-button:hover::after {
background: unset !important;
}
/* == Active Header Tab Styling == */
/* Styles for the currently active header tab. */
.emby-tab-button-active {
background-color: var(--primary-accent-color) !important;
border-radius: 100px !important; /* Pill shape */
color: var(--text-color) !important; /* Text color for active tab (e.g., white) */
}
.emby-tab-button-active > .emby-button-foreground {
color: var(--text-color) !important; /* Ensure foreground text also matches active state color */
}
/* == Header Tabs & Right Section Positioning (Desktop) == */
/* Fine-tunes positioning and sizing for desktop header elements. */
.layout-tv .headerTabs, .layout-desktop .headerTabs {
margin-bottom: 2vh !important;
margin-left: auto !important;
margin-right: auto !important;
margin-top: -58px !important; /* Negative margin to pull it up relative to other header elements */
font-size: 12px !important; /* Custom font size for tabs */
width: fit-content !important;
}
.layout-tv .headerRight, .layout-desktop .headerRight {
height: 45px !important;
padding: 2px 5px !important;
position: absolute !important; /* Absolute positioning for precise placement */
right: 12px !important;
}
.layout-tv .emby-tab-button {
height: 40px !important;
font-size: 15px;
}
/* Ensures tab buttons align content correctly and have appropriate padding. */
.emby-tab-button {
height: 30px !important; /* Match a consistent height */
display: inline-flex !important; /* For proper alignment of content */
align-items: center !important; /* Vertical centering */
justify-content: center !important;/* Horizontal centering */
padding: 0 15px !important; /* Horizontal padding within tabs */
}
/* --- End of Zesty Header Styles Integration --- */
/* == Header Left Section Styling (Desktop) == */
/* Styling for the left part of the header, typically containing back/menu buttons. */
.layout-desktop .headerLeft:not(.libraryDocument:has(.videoPlayerContainer) .headerLeft) { /* Exclude when video player is active */
padding: 2px !important;
top: -3px !important; /* Slight upward adjustment */
border-radius: 5px !important;
flex-grow: 0 !important; /* Prevent growing to fill space */
-webkit-flex-grow: 0 !important;
}
/* Fallback for browsers not supporting :has() selector (e.g., older Jellyfin Media Player versions). */
@supports not selector(:has(*)) {
.layout-desktop .headerLeft {
padding: 2px !important;
top: -3px !important;
background-color: transparent !important; /* Keep transparent for fallback to match modern browser behavior */
border-radius: 50px !important; /* Different rounding for fallback */
}
}
/* == Header Button Icon Alignment == */
/* Adjusts vertical alignment of icons within header buttons for Mobile. */
.layout-mobile .emby-button-foreground {
text-shadow: -2px 2px 12px #000000eb !important; /* Text shadow for mobile header icons for readability */
}
/* ~~~~~~~~~~~~~~~~~~~~ LAYOUT - MAIN DRAWER (SIDEBAR) ~~~~~~~~~~~~~~~~~~~~ */
/* == Sidebar Dynamic Styling (Desktop - Default Behavior) == */
/* Styles for the main navigation drawer (sidebar) to make it appear dynamically (slides in/out). */
.layout-desktop .mainDrawer:not(.dashboardDocument) {
left: -320px !important; /* Initially positioned off-screen to the left */
z-index: 1099 !important; /* High z-index to appear above other content */
border-top-right-radius : 30px !important;
border-bottom-right-radius : 30px !important;
backdrop-filter: blur(30px) !important;
width: 275px !important;
transition: transform .24s ease-out,left .26s ease-out,-webkit-transform .24s ease-out !important; /* Smooth transition for sliding */
}
/* Shows the hamburger menu button when the drawer is dynamic. */
.layout-desktop .mainDrawerButton:not(.dashboardDocument) {
display: inline-flex !important;
}
/* Resets content margin when the drawer is dynamic (no longer permanently shifted). */
.layout-desktop .libraryPage:not(#editItemMetadataPage),
.layout-desktop .appfooter {
margin-left: 0px !important;
}
/* Move .quickConnectSettingsContainer to the center of the screen */
.layout-desktop div#quickConnectPreferencesPage.libraryPage.userPreferencesPage[data-role="page"] {
display: flex;
justify-content: center;
}
/* == Sidebar Styling (Mobile) == */
/* Basic styling for the mobile sidebar. */
.layout-mobile .mainDrawer {
width: 250px !important;
backdrop-filter: blur(24px) !important;
border-top-right-radius : 30px !important;
border-bottom-right-radius : 30px !important;
}
.layout-mobile .mainDrawer-scrollContainer {
margin-top: 15px !important; /* Top margin for scrollable content */
}
/* == Sidebar Scroll Container & Button Positioning == */
/* Adjusts padding/margin for the scrollable area within the sidebar. */
.layout-desktop .mainDrawer-scrollContainer { /* Applies to the dynamic desktop drawer now */
margin-top: 15px !important;
margin-left: 10px !important;
}
/* Specific padding for the dashboard's static sidebar. */
.layout-desktop .dashboardDocument .mainDrawer-scrollContainer {
padding-top: 75px !important; /* Accounts for header height */
margin-left: 10px !important;
background: var(--secondary-background-color) !important;
}
/* Dashboard top bar (MUI AppBar) transparency is handled globally in the
"JELLYFIN 12+ (MUI) TOP BAR & NAV DRAWER" section below - it targets
.MuiAppBar-root unscoped, which covers the dashboard's AppBar too. */
/* == Sidebar Navigation Buttons == */
/* Styling for individual navigation options within the sidebar. */
.navMenuOption,
.navMenuOption:hover,
.navMenuOption-selected {
width: 85% !important; /* Relative width */
margin: auto !important; /* Centering */
text-align: center !important;
height: 45px !important; /* Fixed height */
margin-top: 3px !important;
margin-bottom: 3px !important;
border-radius: 10px !important; /* Rounded corners */
transition: .2s !important; /* Smooth transitions for hover effects */
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}
/* Hover effect for non-selected sidebar buttons. */
.navMenuOption:hover:not(.navMenuOption-selected) {
background: var(--primary-background-transparent) !important; /* Dark semi-transparent background */
color: var(--accent-text-color) !important; /* Text color changes to accent on hover */
transform: scale(1.05) !important; /* Slight scaling effect */
}
/* Styling for selected sidebar buttons. */
.navMenuOption-selected {
background: var(--accent-surface-strong) !important; /* Dark accent-tinted surface */
color: #ffffff !important; /* Always readable on that surface */
}
/* == Sidebar Button Icons & Text Alignment == */
/* Adjusts the position of icons and text within sidebar navigation buttons. */
.navMenuOptionIcon,
.navMenuOptionText {