mirror of
https://github.com/lscambo13/ElegantFin.git
synced 2025-09-18 12:40:16 +00:00
dev: Reworked the app bar code to make it more manageable
This commit is contained in:
@@ -121,9 +121,9 @@
|
|||||||
use none (without quotes) to disable it */
|
use none (without quotes) to disable it */
|
||||||
--cardHoverEffect: "";
|
--cardHoverEffect: "";
|
||||||
|
|
||||||
/* use 6em to enable the fading app bar (seamless);
|
/* use 5em to enable the fading app bar (seamless);
|
||||||
use 5em to get the solid app bar (cleaner with border) */
|
use 4.6em to get the solid app bar (cleaner with border) */
|
||||||
--appBarHeight: 5em;
|
--appBarHeight: 4.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@@ -3472,39 +3472,26 @@ ul.MuiList-root.MuiMenu-list.MuiList-dense>div:first-child {
|
|||||||
transition: transform .5s;
|
transition: transform .5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this is the default header, visible in home and libraries */
|
/* this is the default solid header, visible in home and libraries */
|
||||||
.skinHeader-blurred:not(.osdHeader) {
|
.skinHeader-blurred:not(.osdHeader):not(.semiTransparent) {
|
||||||
backdrop-filter: none;
|
backdrop-filter: var(--blurLarge);
|
||||||
background-color: transparent;
|
background: var(--headerColor);
|
||||||
border: none;
|
border: var(--defaultBorder);
|
||||||
background: var(--headerBackground);
|
border-width: 0 0 var(--borderWidth) 0;
|
||||||
padding-top: .75em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.layout-mobile .skinHeader-blurred:not(.osdHeader) {
|
|
||||||
padding-top: .25em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.layout-mobile .skinHeader-blurred:not(.osdHeader),
|
||||||
.layout-mobile .withSectionTabs .headerTop {
|
.layout-mobile .withSectionTabs .headerTop {
|
||||||
padding-bottom: 1.45em;
|
padding: 0;
|
||||||
}
|
|
||||||
|
|
||||||
.skinHeader-blurred:not(.osdHeader):not(.semiTransparent)::after {
|
|
||||||
content: var(--headerBlurLayerVisibility);
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
backdrop-filter: var(--blurLargest);
|
|
||||||
-webkit-mask: var(--headerBlurMask);
|
|
||||||
mask: var(--headerBlurMask);
|
|
||||||
z-index: -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerTabs.sectionTabs {
|
.headerTabs.sectionTabs {
|
||||||
margin: 0;
|
display: grid;
|
||||||
height: 6em;
|
height: var(--appBarHeight);
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-mobile .headerTabs.sectionTabs {
|
||||||
|
align-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this is the transparent header, visible in main media page */
|
/* this is the transparent header, visible in main media page */
|
||||||
@@ -3530,19 +3517,20 @@ ul.MuiList-root.MuiMenu-list.MuiList-dense>div:first-child {
|
|||||||
|
|
||||||
/* this keeps the header elements aligned when its height is modified */
|
/* this keeps the header elements aligned when its height is modified */
|
||||||
.headerTop {
|
.headerTop {
|
||||||
-webkit-align-items: flex-end;
|
-webkit-align-items: center;
|
||||||
align-items: flex-end;
|
align-items: center;
|
||||||
padding: .6em 0;
|
padding: 0;
|
||||||
|
height: var(--appBarHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-desktop .headerTop {
|
.layout-desktop .headerTop {
|
||||||
padding: .6em;
|
padding: 0 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this prevents the section tabs from hiding all the way up */
|
/* this prevents the section tabs from hiding all the way up */
|
||||||
.headroom--unpinned {
|
.headroom--unpinned {
|
||||||
-webkit-transform: translateY(-3.7em);
|
-webkit-transform: translateY(calc(-1 * var(--appBarHeight) - var(--borderWidth)));
|
||||||
transform: translateY(-3.7em);
|
transform: translateY(calc(-1 * var(--appBarHeight) - var(--borderWidth)));
|
||||||
}
|
}
|
||||||
|
|
||||||
.noHomeButtonHeader .emby-tab-button[data-index="1"]:before {
|
.noHomeButtonHeader .emby-tab-button[data-index="1"]:before {
|
||||||
@@ -3605,26 +3593,31 @@ ul.MuiList-root.MuiMenu-list.MuiList-dense>div:first-child {
|
|||||||
align-self: center;
|
align-self: center;
|
||||||
-webkit-justify-content: center;
|
-webkit-justify-content: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-top: -3.25em;
|
margin-top: calc(-1 * var(--appBarHeight));
|
||||||
position: relative;
|
position: relative;
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* this reduces top page padding when section tabs are minimised */
|
||||||
.libraryPage:not(.noSecondaryNavPage):not(.layout-tv .libraryPage) {
|
.libraryPage:not(.noSecondaryNavPage):not(.layout-tv .libraryPage) {
|
||||||
padding-top: 6.8em !important;
|
padding-top: 6.8em !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 100em) {
|
@media (max-width: 100em) {
|
||||||
|
|
||||||
|
/* this makes the font size consistent */
|
||||||
.sectionTabs {
|
.sectionTabs {
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* this increased top page padding when section tabs are maximised */
|
||||||
.libraryPage:not(.noSecondaryNavPage) {
|
.libraryPage:not(.noSecondaryNavPage) {
|
||||||
padding-top: 9.5em !important;
|
padding-top: 9.5em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* this limits top page padding when section tabs always on TVs */
|
||||||
.layout-tv .libraryPage:not(.noSecondaryNavPage) {
|
.layout-tv .libraryPage:not(.noSecondaryNavPage) {
|
||||||
padding-top: 6em !important;
|
padding-top: 6em !important;
|
||||||
}
|
}
|
||||||
@@ -3634,10 +3627,6 @@ ul.MuiList-root.MuiMenu-list.MuiList-dense>div:first-child {
|
|||||||
margin: 0em .6em;
|
margin: 0em .6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remoteControlContent {
|
|
||||||
padding: 0 var(--sidePadding) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* this allows switching between the header styles easily */
|
/* this allows switching between the header styles easily */
|
||||||
#reactRoot>div:nth-of-type(3) {
|
#reactRoot>div:nth-of-type(3) {
|
||||||
container-name: skinHeader;
|
container-name: skinHeader;
|
||||||
@@ -3645,61 +3634,49 @@ ul.MuiList-root.MuiMenu-list.MuiList-dense>div:first-child {
|
|||||||
height: var(--appBarHeight);
|
height: var(--appBarHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
@container skinHeader (max-height: 5em) {
|
@container skinHeader (min-height: 4.9em) {
|
||||||
|
|
||||||
|
/* this is the alternative faded app bar */
|
||||||
.skinHeader-blurred:not(.osdHeader):not(.semiTransparent) {
|
.skinHeader-blurred:not(.osdHeader):not(.semiTransparent) {
|
||||||
backdrop-filter: var(--blurLarge);
|
backdrop-filter: none;
|
||||||
background: var(--headerColor);
|
background-color: transparent;
|
||||||
border: var(--defaultBorder);
|
border: none;
|
||||||
border-width: 0 0 var(--borderWidth) 0;
|
background: var(--headerBackground);
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.skinHeader-blurred:not(.osdHeader):not(.semiTransparent)::after {
|
.skinHeader-blurred:not(.osdHeader):not(.semiTransparent)::after {
|
||||||
content: none;
|
content: var(--headerBlurLayerVisibility);
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
backdrop-filter: var(--blurLargest);
|
||||||
|
-webkit-mask: var(--headerBlurMask);
|
||||||
|
mask: var(--headerBlurMask);
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-mobile .headerTop {
|
||||||
|
height: calc(var(--appBarHeight) - 1em);
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerTabs.sectionTabs {
|
.headerTabs.sectionTabs {
|
||||||
height: 3.9em;
|
padding-bottom: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-mobile .headerTabs.sectionTabs {
|
||||||
|
align-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.headroom--unpinned {
|
.headroom--unpinned {
|
||||||
-webkit-transform: translateY(-3.9em);
|
-webkit-transform: translateY(calc(-.75 * var(--appBarHeight) - var(--borderWidth)));
|
||||||
transform: translateY(-3.9em);
|
transform: translateY(calc(-.75 * var(--appBarHeight) - var(--borderWidth)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.remoteControlContent {
|
||||||
/* Uncomment this to bring back the original ElegantFin header design - start */
|
padding: 0 var(--sidePadding) !important;
|
||||||
|
}
|
||||||
/* .skinHeader-blurred:not(.osdHeader):not(.semiTransparent) {
|
|
||||||
backdrop-filter: var(--blurLarge);
|
|
||||||
background: var(--headerColor);
|
|
||||||
border: var(--defaultBorder);
|
|
||||||
border-width: 0 0 var(--borderWidth) 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.skinHeader-blurred:not(.osdHeader):not(.semiTransparent)::after {
|
|
||||||
content: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.headerTabs.sectionTabs {
|
|
||||||
height: 4em;
|
|
||||||
} */
|
|
||||||
|
|
||||||
/* Uncomment this to bring back the original ElegantFin header design - end */
|
|
||||||
|
|
||||||
/* .headroom:not(.osdHeader):not(.semiTransparent) {
|
|
||||||
backdrop-filter: var(--blurLarge);
|
|
||||||
background: var(--headerColor);
|
|
||||||
border: var(--defaultBorder);
|
|
||||||
border-width: 0 0 var(--borderWidth) 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.headroom:not(.osdHeader):not(.semiTransparent)::after {
|
|
||||||
content: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.headroom .headerTabs.sectionTabs {
|
|
||||||
height: 3.9em;
|
|
||||||
} */
|
|
Reference in New Issue
Block a user