mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/sidebar: optimize tab bar for mobile
This commit is contained in:
parent
3fc7b99d05
commit
7679b84b2e
3 changed files with 14 additions and 1 deletions
|
@ -84,6 +84,7 @@
|
||||||
height: var(--sidebar-height-mobile);
|
height: var(--sidebar-height-mobile);
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
padding: 4px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar::before {
|
#sidebar::before {
|
||||||
|
@ -103,5 +104,13 @@
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#sidebar :global(.sidebar-inner-container:first-child) {
|
||||||
|
padding-left: var(--padding);
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar :global(.sidebar-inner-container:last-child) {
|
||||||
|
padding-right: var(--padding);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
color: var(--sidebar-highlight);
|
color: var(--sidebar-highlight);
|
||||||
font-size: var(--sidebar-font-size);
|
font-size: var(--sidebar-font-size);
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
|
height: fit-content;
|
||||||
|
-webkit-touch-callout: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-tab.active {
|
.sidebar-tab.active {
|
||||||
|
@ -55,8 +57,10 @@
|
||||||
padding: 5px var(--padding);
|
padding: 5px var(--padding);
|
||||||
min-width: calc(var(--sidebar-width) / 2);
|
min-width: calc(var(--sidebar-width) / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-tab.active {
|
.sidebar-tab.active {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
--border-radius: 11px;
|
--border-radius: 11px;
|
||||||
|
|
||||||
--sidebar-width: 80px;
|
--sidebar-width: 80px;
|
||||||
--sidebar-height-mobile: 50px;
|
--sidebar-height-mobile: calc(52px + env(safe-area-inset-bottom));
|
||||||
--sidebar-font-size: 11px;
|
--sidebar-font-size: 11px;
|
||||||
|
|
||||||
--sidebar-mobile-gradient: linear-gradient(
|
--sidebar-mobile-gradient: linear-gradient(
|
||||||
|
|
Loading…
Reference in a new issue