Files
cozsweet-frontend-nextjs/src/app/sidebar/components/sidebar-screen.module.css
T

238 lines
3.9 KiB
CSS

.shell {
position: relative;
display: flex;
flex-direction: column;
gap: 14px;
overflow: hidden;
min-height: 100dvh;
box-sizing: border-box;
padding: 0 var(--page-padding-x, 28px) 28px;
background:
radial-gradient(circle at 18% 6%, rgba(255, 206, 160, 0.22), transparent 28%),
radial-gradient(circle at 92% 0%, rgba(246, 87, 160, 0.22), transparent 30%),
linear-gradient(180deg, #fcf3f4 0%, #fffafa 44%, #ffffff 100%);
color: #191316;
}
.bgOrbOne,
.bgOrbTwo {
position: absolute;
z-index: 0;
pointer-events: none;
border-radius: 999px;
filter: blur(4px);
}
.bgOrbOne {
top: 86px;
right: -72px;
width: 168px;
height: 168px;
background: rgba(246, 87, 160, 0.11);
}
.bgOrbTwo {
bottom: 56px;
left: -88px;
width: 180px;
height: 180px;
background: rgba(248, 184, 62, 0.1);
}
.topBar,
.hero,
.userSlot,
.cardSlot,
.settingsSlot {
position: relative;
z-index: 1;
}
.topBar {
margin: 18px 0 -2px;
}
.hero {
padding: 18px;
border: 1px solid rgba(246, 87, 160, 0.12);
border-radius: 26px;
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 239, 246, 0.84) 100%),
#ffffff;
box-shadow: 0 14px 34px rgba(55, 36, 44, 0.07);
backdrop-filter: blur(16px);
}
.kicker {
margin: 0;
color: #f657a0;
font-size: 12px;
font-weight: 850;
letter-spacing: 0.14em;
line-height: 1;
text-transform: uppercase;
}
.title {
margin: 8px 0 0;
color: #171114;
font-size: 34px;
font-weight: 920;
letter-spacing: -1px;
line-height: 1;
}
.subtitle {
max-width: 320px;
margin: 10px 0 0;
color: #75636a;
font-size: 14px;
font-weight: 650;
line-height: 1.5;
}
.userSlot {
padding: 18px;
border: 1px solid rgba(25, 19, 22, 0.06);
border-radius: 26px;
background: rgba(255, 255, 255, 0.84);
box-shadow: 0 16px 40px rgba(55, 36, 44, 0.08);
backdrop-filter: blur(18px);
}
.cardSlot {
padding: 0;
}
.settingsSlot {
margin-top: 2px;
padding: 2px 0 0;
}
.settingsLabel {
margin: 0 0 9px;
padding: 0 4px;
color: #817076;
font-size: 13px;
font-weight: 800;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.logoutCard {
display: flex;
width: 100%;
align-items: center;
gap: 12px;
box-sizing: border-box;
padding: 16px;
border: 1px solid rgba(25, 19, 22, 0.06);
border-radius: 22px;
background: rgba(255, 255, 255, 0.86);
color: #171114;
cursor: pointer;
font: inherit;
text-align: left;
box-shadow: 0 12px 30px rgba(55, 36, 44, 0.06);
transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease;
}
.logoutCard:hover {
background: #ffffff;
box-shadow: 0 16px 34px rgba(55, 36, 44, 0.1);
transform: translateY(-1px);
}
.logoutCard:active {
transform: translateY(1px);
}
.logoutCard:focus-visible {
outline: 2px solid #f657a0;
outline-offset: 3px;
}
.logoutIcon {
display: inline-flex;
width: 40px;
height: 40px;
flex: 0 0 auto;
align-items: center;
justify-content: center;
border-radius: 15px;
background: rgba(255, 107, 107, 0.1);
color: #ef4d64;
}
.logoutText {
display: flex;
min-width: 0;
flex-direction: column;
gap: 3px;
}
.logoutTitle {
color: #ef4d64;
font-size: 16px;
font-weight: 760;
line-height: 1.15;
}
.logoutSubtitle {
color: #817076;
font-size: 13px;
font-weight: 620;
line-height: 1.25;
}
.revealOne,
.revealTwo,
.revealThree {
animation: revealUp 0.42s ease both;
}
.revealOne {
animation-delay: 40ms;
}
.revealTwo {
animation-delay: 95ms;
}
.revealThree {
animation-delay: 150ms;
}
@keyframes revealUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 360px) {
.shell {
gap: 12px;
padding-right: 20px;
padding-left: 20px;
}
.title {
font-size: 30px;
}
.subtitle {
font-size: 13px;
}
.userSlot {
padding: 16px;
border-radius: 22px;
}
}