mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-30 03:07:01 -05:00
362 lines
6.0 KiB
CSS
362 lines
6.0 KiB
CSS
.mobileNav {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 19;
|
|
}
|
|
|
|
@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(--radius-field);
|
|
color: var(--color-text-high);
|
|
font-size: var(--font-2xs);
|
|
font-weight: var(--weight-semi);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: color 0.15s;
|
|
|
|
&:focus-visible {
|
|
outline: var(--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;
|
|
}
|
|
|
|
.sideNavEmpty {
|
|
font-size: var(--font-2xs);
|
|
color: var(--color-text-high);
|
|
padding: var(--s-1) var(--s-2);
|
|
text-align: center;
|
|
font-style: italic;
|
|
}
|
|
|
|
.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;
|
|
bottom: var(--layout-nav-height);
|
|
z-index: 18;
|
|
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(--radius-box) var(--radius-box) 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(--font-md);
|
|
font-weight: var(--weight-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(--font-md);
|
|
font-weight: var(--weight-bold);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.streamsSection {
|
|
padding: var(--s-1-5);
|
|
border-top: 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(--font-xs);
|
|
font-weight: var(--weight-bold);
|
|
margin: 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(--font-xs);
|
|
font-weight: var(--weight-semi);
|
|
text-align: center;
|
|
}
|
|
|
|
.navItem:hover {
|
|
color: var(--color-text-accent);
|
|
}
|
|
|
|
.navItemImage {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: var(--radius-field);
|
|
background-color: var(--color-bg-higher);
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.youPanelUserRow {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
align-items: center;
|
|
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(--radius-field);
|
|
}
|
|
|
|
.youPanelUser:hover {
|
|
background-color: var(--color-bg-high);
|
|
}
|
|
|
|
.youPanelUsername {
|
|
font-size: var(--font-md);
|
|
font-weight: var(--weight-bold);
|
|
}
|
|
|
|
.youPanelSettingsButton {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
color: var(--color-text-high);
|
|
border-radius: var(--radius-field);
|
|
height: var(--field-size);
|
|
aspect-ratio: 1 / 1;
|
|
}
|
|
|
|
.youPanelSettingsButton:hover {
|
|
background-color: var(--color-bg-high);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.youPanelSettingsButton svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.panelSectionLink {
|
|
display: block;
|
|
font-size: var(--font-2xs);
|
|
color: var(--color-text-high);
|
|
text-decoration: none;
|
|
padding: var(--s-3) var(--s-2);
|
|
text-align: center;
|
|
}
|
|
|
|
.panelSectionLink:hover {
|
|
color: var(--color-text);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.dayHeader {
|
|
padding: var(--s-2) var(--s-2) var(--s-1);
|
|
font-size: var(--font-2xs);
|
|
font-weight: var(--weight-bold);
|
|
color: var(--color-text-high);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.streamXpSubtitle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.streamXpIcon {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|