Added mobile navigation dock
All checks were successful
Cargo Build & Test / Push to container registry (push) Successful in 2m27s
All checks were successful
Cargo Build & Test / Push to container registry (push) Successful in 2m27s
This commit is contained in:
@@ -375,6 +375,74 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.dock {
|
||||
position: fixed;
|
||||
right: calc(0.25rem * 0);
|
||||
bottom: calc(0.25rem * 0);
|
||||
left: calc(0.25rem * 0);
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
background-color: var(--color-base-100);
|
||||
padding: calc(0.25rem * 2);
|
||||
color: currentColor;
|
||||
border-top: 0.5px solid var(--color-base-content);
|
||||
@supports (color: color-mix(in lab, red, red)) {
|
||||
border-top: 0.5px solid color-mix(in oklab, var(--color-base-content) 5%, #0000);
|
||||
}
|
||||
height: 4rem;
|
||||
height: calc(4rem + env(safe-area-inset-bottom));
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
> * {
|
||||
position: relative;
|
||||
margin-bottom: calc(0.25rem * 2);
|
||||
display: flex;
|
||||
height: 100%;
|
||||
max-width: calc(0.25rem * 32);
|
||||
flex-shrink: 1;
|
||||
flex-basis: 100%;
|
||||
cursor: pointer;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 1px;
|
||||
border-radius: var(--radius-box);
|
||||
background-color: transparent;
|
||||
transition: opacity 0.2s ease-out;
|
||||
@media (hover: hover) {
|
||||
&:hover {
|
||||
opacity: 80%;
|
||||
}
|
||||
}
|
||||
&[aria-disabled="true"], &[disabled] {
|
||||
&, &:hover {
|
||||
pointer-events: none;
|
||||
color: var(--color-base-content);
|
||||
@supports (color: color-mix(in lab, red, red)) {
|
||||
color: color-mix(in oklab, var(--color-base-content) 10%, transparent);
|
||||
}
|
||||
opacity: 100%;
|
||||
}
|
||||
}
|
||||
.dock-label {
|
||||
font-size: 0.6875rem;
|
||||
}
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
height: calc(0.25rem * 1);
|
||||
width: calc(0.25rem * 6);
|
||||
border-radius: calc(infinity * 1px);
|
||||
background-color: transparent;
|
||||
bottom: 0.2rem;
|
||||
border-top: 3px solid transparent;
|
||||
transition: background-color 0.1s ease-out, text-color 0.1s ease-out, width 0.1s ease-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
:where(&) {
|
||||
width: unset;
|
||||
@@ -966,6 +1034,9 @@
|
||||
.mt-5 {
|
||||
margin-top: calc(var(--spacing) * 5);
|
||||
}
|
||||
.mt-auto {
|
||||
margin-top: auto;
|
||||
}
|
||||
.mr-1 {
|
||||
margin-right: calc(var(--spacing) * 1);
|
||||
}
|
||||
@@ -1025,6 +1096,14 @@
|
||||
width: var(--size);
|
||||
height: var(--size);
|
||||
}
|
||||
.size-5 {
|
||||
width: calc(var(--spacing) * 5);
|
||||
height: calc(var(--spacing) * 5);
|
||||
}
|
||||
.size-\[1\.5em\] {
|
||||
width: 1.5em;
|
||||
height: 1.5em;
|
||||
}
|
||||
.size-\[1\.6em\] {
|
||||
width: 1.6em;
|
||||
height: 1.6em;
|
||||
@@ -1218,6 +1297,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.max-md\:hidden {
|
||||
@media (width < 48rem) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.sm\:modal-middle {
|
||||
@media (width >= 40rem) {
|
||||
place-items: center;
|
||||
@@ -1235,6 +1319,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.md\:hidden {
|
||||
@media (width >= 48rem) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
h2 {
|
||||
font-size: var(--text-xl);
|
||||
|
Reference in New Issue
Block a user