sendou.ink/app/components/MobileNav.module.css
2026-01-19 18:02:17 +01:00

449 lines
7.5 KiB
CSS

.mobileNav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 10;
}
@media screen and (min-width: 600px) {
.mobileNav {
display: none;
}
}
.tabBar {
display: flex;
justify-content: space-around;
align-items: center;
height: var(--layout-nav-height);
background-color: var(--color-bg);
border-top: 1.5px solid var(--color-border);
padding: 0 var(--s-4);
padding-bottom: env(safe-area-inset-bottom);
}
.tab {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0;
height: 100%;
aspect-ratio: 1 / 1;
background: none;
border: none;
border-radius: var(--rounded-sm);
color: var(--color-text-high);
font-size: var(--fonts-xxxs);
font-weight: var(--semi-bold);
cursor: pointer;
text-decoration: none;
transition: color 0.15s;
&:focus-visible {
outline: var(--field-focus-ring);
outline-offset: -1px;
}
}
.tab:hover,
.tab[data-active="true"] {
color: var(--color-text-accent);
}
.tabIcon {
position: relative;
width: 24px;
height: 24px;
}
.tabIcon svg {
width: 24px;
height: 24px;
}
.notificationDot {
position: absolute;
top: -2px;
right: -2px;
width: 8px;
height: 8px;
background-color: var(--color-text-accent);
border-radius: 100%;
outline: 2px solid var(--color-bg);
pointer-events: none;
}
.notificationDotPulse {
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: var(--color-text-accent);
box-shadow: 0 0 0 var(--color-text-accent);
animation: pulse 2s infinite;
}
@keyframes pulse {
from {
box-shadow: 0 0 0 0 var(--color-text-accent);
}
70% {
box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
}
to {
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}
}
.panelOverlay {
position: fixed;
inset: 0;
z-index: 20;
background-color: rgba(0, 0, 0, 0.25);
backdrop-filter: blur(10px);
}
.panelOverlay[data-entering] {
animation: fade-in 200ms ease-out;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.panel {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 85vh;
background-color: var(--color-bg);
border-radius: var(--rounded) var(--rounded) 0 0;
overflow-y: auto;
display: flex;
flex-direction: column;
}
.panel[data-entering] {
animation: slide-up 200ms ease-out;
}
@keyframes slide-up {
from {
transform: translateY(100%);
}
to {
transform: translateY(0);
}
}
.panelHeader {
position: sticky;
top: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--s-3) var(--s-4);
background-color: var(--color-bg);
border-bottom: 1.5px solid var(--color-border);
z-index: 1;
flex-shrink: 0;
}
.panelTitle {
font-size: var(--fonts-md);
font-weight: var(--bold);
color: var(--color-text);
}
.panelContent {
flex: 1;
overflow-y: auto;
padding: var(--s-2);
}
.panelDialog {
outline: none;
display: flex;
flex-direction: column;
height: 100%;
}
.menuOverlay {
position: fixed;
inset: 0;
z-index: 20;
background-color: var(--color-bg);
overflow-y: auto;
padding-bottom: 80px;
display: flex;
flex-direction: column;
}
.menuOverlay[data-entering] {
animation: fade-in 200ms ease-out;
}
.menuHeader {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--s-3) var(--s-4);
border-bottom: 1.5px solid var(--color-border);
flex-shrink: 0;
}
.menuTitle {
font-size: var(--fonts-md);
font-weight: var(--bold);
color: var(--color-text);
}
.streamsSection {
padding: var(--s-1-5);
border-bottom: 1.5px solid var(--color-border);
}
.streamsList {
list-style: none;
margin: 0;
padding: 0;
}
.streamsSectionHeader {
display: flex;
align-items: center;
gap: var(--s-2);
padding: var(--s-2);
color: var(--color-text-high);
}
.streamsSectionHeader svg {
width: 18px;
height: 18px;
}
.streamsSectionHeader h3 {
font-size: var(--fonts-xs);
font-weight: var(--bold);
margin: 0;
}
.streamItem {
display: flex;
align-items: center;
gap: var(--s-2);
padding: var(--s-1) var(--s-2);
border-radius: var(--rounded-xs);
}
.streamItem:hover {
background-color: var(--color-bg-higher);
}
.streamItemImage {
width: 32px;
height: 32px;
border-radius: var(--rounded-xs);
object-fit: cover;
flex-shrink: 0;
}
.streamItemContent {
display: flex;
flex-direction: column;
gap: var(--s-0-5);
min-width: 0;
flex: 1;
}
.streamItemName {
font-size: var(--fonts-xs);
color: var(--color-text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.streamItemMeta {
display: flex;
align-items: center;
gap: var(--s-2);
}
.streamItemSubtitle {
font-size: var(--fonts-xxs);
color: var(--color-text-high);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.streamItemBadge {
font-size: var(--fonts-xxxs);
font-weight: var(--semi-bold);
color: var(--color-text-inverse);
background-color: var(--color-text-accent);
padding: 0 var(--s-1);
border-radius: var(--rounded-xs);
flex-shrink: 0;
}
.navGrid {
list-style: none;
margin: 0;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: var(--s-3);
padding: var(--s-4);
}
.navItem {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--s-1);
text-decoration: none;
color: var(--color-text);
font-size: var(--fonts-xs);
font-weight: var(--semi-bold);
text-align: center;
}
.navItem:hover {
color: var(--color-text-accent);
}
.navItemImage {
width: 48px;
height: 48px;
border-radius: var(--rounded-xs);
background-color: var(--color-bg-higher);
display: grid;
place-items: center;
}
.youPanelUserRow {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--s-1) var(--s-2);
}
.youPanelUser {
display: flex;
align-items: center;
gap: var(--s-3);
padding: var(--s-2);
text-decoration: none;
color: var(--color-text);
border-radius: var(--rounded-xs);
}
.youPanelUser:hover {
background-color: var(--color-bg-higher);
}
.youPanelUsername {
font-size: var(--fonts-md);
font-weight: var(--bold);
}
.youPanelSettingsButton {
display: flex;
align-items: center;
justify-content: center;
padding: var(--s-2);
text-decoration: none;
color: var(--color-text-high);
border-radius: var(--rounded-xs);
}
.youPanelSettingsButton:hover {
background-color: var(--color-bg-higher);
color: var(--color-text);
}
.youPanelSettingsButton svg {
width: 20px;
height: 20px;
}
.tournamentMatchIcon {
border-radius: 50%;
object-fit: cover;
}
.dayHeader {
padding: var(--s-2) var(--s-2) var(--s-1);
font-size: var(--fonts-xxs);
font-weight: var(--bold);
color: var(--color-text-high);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.weaponsDivider {
height: 1.5px;
background-color: var(--color-border);
margin: var(--s-2) var(--s-4);
}
.weaponsSection {
padding: var(--s-2) var(--s-4) var(--s-4);
}
.weaponsSectionTitle {
font-size: var(--fonts-sm);
font-weight: var(--bold);
color: var(--color-text);
margin: 0 0 var(--s-3);
}
.weaponsContent {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--s-6) var(--s-4);
}
.weaponCategory {
display: flex;
flex-direction: column;
gap: var(--s-1);
}
.weaponCategoryHeader {
font-size: var(--fonts-xxs);
font-weight: var(--bold);
color: var(--color-text);
text-transform: uppercase;
letter-spacing: 0.05em;
padding-bottom: var(--s-0-5);
border-bottom: 1px solid var(--color-border);
}
.weaponGrid {
display: flex;
flex-wrap: wrap;
gap: var(--s-0-5);
}
.weaponLink {
display: flex;
align-items: center;
justify-content: center;
padding: var(--s-0-5);
border-radius: var(--rounded-xs);
}
.weaponLink:active {
background-color: var(--color-bg-higher);
}