Repository navigation
Expand file tree
/
Copy path12_fixes.css
More file actions
159 lines (137 loc) · 5.55 KB
/
Copy path12_fixes.css
File metadata and controls
159 lines (137 loc) · 5.55 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
/*
================================================================================
| JELLYFIN 12 FIXES |
| Re-themes the new React/MUI experimental layout's top bar and nav drawer. |
| Import this ALONGSIDE theme.css, after it, if you are on Jellyfin 12+. |
================================================================================
*/
/* ~~~~~~~~~~~~~~~~~~~~ TOP BAR ~~~~~~~~~~~~~~~~~~~~ */
/* Transparent app bar background */
.MuiAppBar-root {
background: transparent !important;
background-color: transparent !important;
box-shadow: none !important;
}
/* Keep the toolbar in a single row on all screen sizes */
.MuiToolbar-root {
flex-wrap: nowrap !important;
}
/* Icon tray: don't stretch the gap; wrap onto a second row instead of overflowing the bar */
.MuiToolbar-root > .MuiBox-root:has(+ .MuiBox-root [aria-controls="app-user-menu"]) {
flex-grow: 0 !important;
flex-shrink: 1 !important;
flex-wrap: wrap !important;
min-width: 0 !important;
row-gap: 4px !important;
margin-left: auto !important;
}
/* Pill/blur background for the icon tray + avatar */
.MuiToolbar-root > .MuiBox-root:has(+ .MuiBox-root [aria-controls="app-user-menu"]),
.MuiToolbar-root > .MuiBox-root:has([aria-controls="app-user-menu"]) {
background: var(--header-background-color) !important;
border-radius: 100px !important;
padding: 2px 8px !important;
}
/* Drawer/back button: sits outside the pill, against a transparent/dark bar, so it needs
a light color rather than the pill's dark-on-light icon color below */
.MuiToolbar-root .MuiIconButton-root {
color: var(--text-color) !important;
width: 48px !important;
height: 48px !important;
box-sizing: border-box !important;
}
/* Icon tray + avatar buttons (sit on the light pill background) */
.MuiToolbar-root > .MuiBox-root:has(+ .MuiBox-root [aria-controls="app-user-menu"]) .MuiIconButton-root,
.MuiToolbar-root > .MuiBox-root:has([aria-controls="app-user-menu"]) .MuiIconButton-root {
color: var(--secondary-background-color) !important;
}
.MuiToolbar-root .MuiIconButton-root svg,
.MuiToolbar-root .MuiIconButton-root .material-icons {
font-size: 24px !important;
}
.MuiToolbar-root .MuiIconButton-root:hover,
.MuiToolbar-root .MuiIconButton-root:focus-visible {
color: var(--primary-accent-color) !important;
background-color: var(--primary-background-transparent) !important;
}
/* Avatar / user menu button */
.MuiToolbar-root [aria-controls="app-user-menu"] {
border-radius: 50% !important;
}
.MuiToolbar-root > .MuiBox-root:has([aria-controls="app-user-menu"]) {
flex-shrink: 0 !important;
}
/* Legacy icon buttons still injected into the new toolbar by some plugins */
.MuiToolbar-root .headerButton.paper-icon-button-light {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
box-sizing: border-box !important;
width: 48px !important;
height: 48px !important;
padding: 0 !important;
margin: 0 !important;
font-size: 16px !important;
color: var(--secondary-background-color) !important;
}
.MuiToolbar-root .headerButton.paper-icon-button-light > .material-icons {
font-size: 24px !important;
}
.MuiToolbar-root .headerButton.paper-icon-button-light:hover {
color: var(--primary-accent-color) !important;
}
/* Server logo: hide the server name text, replace the bundled icon image with --logo */
.MuiToolbar-root .MuiButtonBase-root:has(.MuiButton-startIcon img) {
font-size: 0 !important;
min-width: 0 !important;
}
.MuiToolbar-root .MuiButtonBase-root:has(.MuiButton-startIcon img) .MuiButton-startIcon {
position: relative !important;
width: 5em !important;
height: 3em !important;
margin: 0 !important;
font-size: 16px !important;
}
.MuiToolbar-root .MuiButtonBase-root:has(.MuiButton-startIcon img) .MuiButton-startIcon img {
visibility: hidden !important;
}
.MuiToolbar-root .MuiButtonBase-root:has(.MuiButton-startIcon img) .MuiButton-startIcon::before {
content: "" !important;
position: absolute !important;
inset: 0 !important;
background: var(--logo) no-repeat center center !important;
background-size: contain !important;
}
/* Smaller logo on mobile */
.layout-mobile .MuiToolbar-root .MuiButtonBase-root:has(.MuiButton-startIcon img) .MuiButton-startIcon {
width: 3em !important;
height: 2em !important;
}
/* ~~~~~~~~~~~~~~~~~~~~ NAV DRAWER ~~~~~~~~~~~~~~~~~~~~ */
/* Drawer panel background/shape (extra .MuiDrawer-paper repeats boost specificity
above MUI's own dynamically-injected styles) */
.MuiDrawer-paper.MuiDrawer-paper.MuiDrawer-paper {
background: var(--secondary-background-transparent) !important;
backdrop-filter: blur(30px) !important;
border-top-right-radius: 30px !important;
border-bottom-right-radius: 30px !important;
}
/* Nav links inside the drawer list */
.MuiDrawer-paper .MuiListItemButton-root {
width: 85% !important;
margin: 3px auto !important;
border-radius: 10px !important;
transition: .2s !important;
}
.MuiDrawer-paper .MuiListItemButton-root:hover:not(.Mui-selected) {
background: var(--primary-background-transparent) !important;
color: var(--primary-accent-color) !important;
}
.MuiDrawer-paper .MuiListItemButton-root.Mui-selected {
background: var(--secondary-accent-color) !important;
color: var(--primary-accent-color) !important;
}
.MuiDrawer-paper .MuiListItemIcon-root,
.MuiDrawer-paper .MuiListItemButton-root.Mui-selected .MuiListItemIcon-root {
color: inherit !important;
}