mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-06 21:34:28 -05:00
359 lines
6.4 KiB
CSS
359 lines
6.4 KiB
CSS
.sideNav {
|
|
background-color: var(--color-bg);
|
|
min-width: var(--layout-sidenav-width);
|
|
max-width: var(--layout-sidenav-width);
|
|
border-right: 1.5px solid var(--color-border);
|
|
overflow: hidden;
|
|
position: sticky;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100dvh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sideNavTop {
|
|
height: var(--layout-nav-height);
|
|
background-color: var(--color-bg);
|
|
border-bottom: 1.5px solid var(--color-border);
|
|
display: flex;
|
|
align-items: center;
|
|
padding-inline: var(--s-2);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sideNavTopCentered {
|
|
justify-content: center;
|
|
}
|
|
|
|
.sideNavInner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--s-2);
|
|
padding: var(--s-1-5);
|
|
padding-block-end: var(--s-2);
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.sideNavFooter {
|
|
height: var(--layout-nav-height);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--s-1);
|
|
padding: var(--s-1-5) var(--s-2-5);
|
|
background-color: var(--color-bg-high);
|
|
border-top: 1.5px solid var(--color-border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sideNavFooterUser {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--s-2);
|
|
color: var(--color-text);
|
|
text-decoration: none;
|
|
font-size: var(--fonts-xs);
|
|
font-weight: var(--semi-bold);
|
|
border-radius: var(--rounded-xs);
|
|
padding: var(--s-1);
|
|
margin-left: calc(-1 * var(--s-1));
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.sideNavFooterUser:hover {
|
|
background-color: var(--color-bg-higher);
|
|
}
|
|
|
|
.sideNavFooterUsername {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sideNavFooterActions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--s-0-5);
|
|
margin-left: auto;
|
|
}
|
|
|
|
.sideNavFooterButton {
|
|
display: grid;
|
|
place-items: center;
|
|
background-color: transparent;
|
|
width: var(--input-height-small);
|
|
height: var(--input-height-small);
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: var(--rounded-xs);
|
|
color: var(--color-text-high);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.sideNavFooterButton:hover {
|
|
background-color: var(--color-bg-higher);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.sideNavFooterButton:focus-visible {
|
|
outline: 2px solid var(--color-text-accent);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.sideNavFooterButton svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.sideNavFooterNotification {
|
|
position: relative;
|
|
}
|
|
|
|
.sideNavFooterUnseenDot {
|
|
background-color: var(--color-text-accent);
|
|
border-radius: 100%;
|
|
width: 8px;
|
|
height: 8px;
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
outline: 2px solid var(--color-bg-high);
|
|
}
|
|
|
|
.sideNavFooterUnseenDotPulse {
|
|
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);
|
|
}
|
|
}
|
|
|
|
.sideNavGameStatus {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--s-2);
|
|
padding: var(--s-1-5) var(--s-2-5);
|
|
text-decoration: none;
|
|
color: var(--color-text);
|
|
border-top: 1.5px solid var(--color-border);
|
|
font-size: var(--fonts-xs);
|
|
font-weight: var(--semi-bold);
|
|
flex-shrink: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.sideNavGameStatus:hover {
|
|
background-color: var(--color-bg-higher);
|
|
}
|
|
|
|
.sideNavGameStatusIcon {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background-color: var(--color-bg-higher);
|
|
display: grid;
|
|
place-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sideNavGameStatusIcon img {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.sideNavGameStatusIconImg img {
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
|
|
.sideNavGameStatusImage {
|
|
border-radius: 100%;
|
|
}
|
|
|
|
.sideNavHeader {
|
|
color: var(--color-text-high);
|
|
padding: var(--s-1-5) var(--s-2);
|
|
margin-inline: calc(-1 * var(--s-1-5));
|
|
background-color: var(--color-bg-high);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--s-2);
|
|
border-color: var(--color-border);
|
|
border-top: 1.5px solid var(--color-border);
|
|
border-bottom: 1.5px solid var(--color-border);
|
|
}
|
|
|
|
.sideNavHeader:first-child {
|
|
margin-block-start: calc(-1 * var(--s-1-5));
|
|
border-top: none;
|
|
}
|
|
|
|
.sideNavHeader h2 {
|
|
font-size: var(--fonts-xs);
|
|
font-weight: var(--bold);
|
|
}
|
|
|
|
.sideNavHeaderClose {
|
|
margin-inline-start: auto;
|
|
margin-inline-end: var(--s-1);
|
|
}
|
|
|
|
.sideNavHeader svg {
|
|
width: 18px;
|
|
}
|
|
|
|
.iconContainer {
|
|
background-color: var(--color-bg-high);
|
|
border-radius: var(--rounded-sm);
|
|
padding: var(--s-1-5);
|
|
}
|
|
|
|
.sideNavLink {
|
|
font-size: var(--fonts-xs);
|
|
color: var(--color-text);
|
|
text-decoration: none;
|
|
padding: var(--s-1) var(--s-2);
|
|
border-radius: var(--rounded-xs);
|
|
transition:
|
|
background-color 0.15s,
|
|
color 0.15s;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--s-2);
|
|
|
|
&:hover {
|
|
&:not(:has(.sideNavLinkSubtitle)) {
|
|
color: var(--color-text);
|
|
}
|
|
background-color: var(--color-bg-higher);
|
|
}
|
|
|
|
&[aria-current="page"] {
|
|
color: var(--color-text);
|
|
background-color: var(--color-bg-higher);
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
.sideNavLinkImage {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--rounded-xs);
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sideNavLinkContent {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
gap: var(--s-0-5);
|
|
width: 100%;
|
|
}
|
|
|
|
.sideNavLinkTitle {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
|
|
&:has(+ .sideNavLinkSubtitle) {
|
|
color: var(--color-text);
|
|
}
|
|
}
|
|
|
|
.sideNavLinkSubtitleRow {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
color: var(--color-text-high);
|
|
}
|
|
|
|
.sideNavLinkSubtitle {
|
|
font-size: var(--fonts-xxs);
|
|
color: var(--color-text-high);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sideNavLinkBadge {
|
|
margin-left: auto;
|
|
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;
|
|
}
|
|
|
|
.sideNavPanelOverlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 10;
|
|
background-color: rgba(0, 0, 0, 0.25);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.sideNavPanelOverlay[data-entering] {
|
|
animation: fade-in 200ms ease-out;
|
|
}
|
|
|
|
@keyframes fade-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.sideNavPanel {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 0;
|
|
transform: translateY(-50%);
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
border-radius: var(--rounded);
|
|
}
|
|
|
|
.sideNavPanel[data-entering] {
|
|
animation: slide-in-left 200ms ease-out;
|
|
}
|
|
|
|
@keyframes slide-in-left {
|
|
from {
|
|
transform: translateX(-100%) translateY(-50%);
|
|
}
|
|
to {
|
|
transform: translateX(0) translateY(-50%);
|
|
}
|
|
}
|
|
|
|
.sideNavPanelDialog {
|
|
outline: none;
|
|
}
|
|
|
|
@media screen and (max-width: 599px) {
|
|
.sideNav {
|
|
display: none;
|
|
}
|
|
}
|