2026-02-24 22:16:51 -06:00

192 lines
3.2 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
:root {
font-family: "Poppins", Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;
/* Tailwind zinc dark palette */
--zinc-950: #09090b;
--zinc-900: #18181b;
--zinc-800: #27272a;
--zinc-700: #3f3f46;
--zinc-600: #52525b;
--zinc-300: #d4d4d8;
--zinc-200: #e4e4e7;
--zinc-100: #f4f4f5;
color: var(--zinc-100);
background-color: var(--zinc-950);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
html,
body {
min-height: 100%;
}
body {
background: linear-gradient(180deg, var(--zinc-950) 0%, #111113 100%);
color: var(--zinc-100);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
.sidebar {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 85px;
display: flex;
overflow-x: hidden;
flex-direction: column;
background: var(--zinc-900);
border-right: 1px solid var(--zinc-800);
padding: 25px 20px;
transition: all 0.4s ease;
}
.sidebar:hover {
width: 260px;
}
.sidebar .sidebar-header {
display: flex;
align-items: center;
}
.sidebar .sidebar-header img {
width: 42px;
height: 42px;
display: block;
object-fit: cover;
border-radius: 50%;
flex-shrink: 0;
}
.sidebar .sidebar-header h2 {
color: var(--zinc-100);
font-size: 1.25rem;
font-weight: 600;
white-space: nowrap;
margin-left: 23px;
}
.sidebar-links h4 {
color: var(--zinc-300);
font-weight: 500;
white-space: nowrap;
margin: 10px 0;
position: relative;
}
.sidebar-links h4 span {
opacity: 0;
}
.sidebar:hover .sidebar-links h4 span {
opacity: 1;
}
.sidebar-links .menu-separator {
position: absolute;
left: 0;
top: 50%;
width: 100%;
height: 1px;
transform: scaleX(1);
transform: translateY(-50%);
background: var(--zinc-700);
transform-origin: right;
transition-delay: 0.2s;
}
.sidebar:hover .sidebar-links .menu-separator {
transition-delay: 0s;
transform: scaleX(0);
}
.sidebar-links {
list-style: none;
margin-top: 20px;
height: 80%;
overflow-y: auto;
scrollbar-width: none;
}
.sidebar-links::-webkit-scrollbar {
display: none;
}
.sidebar-links li a {
display: flex;
align-items: center;
gap: 0 20px;
color: var(--zinc-200);
font-weight: 500;
white-space: nowrap;
padding: 15px 10px;
text-decoration: none;
border-radius: 8px;
transition: 0.2s ease;
}
.sidebar-links li a:hover {
color: var(--zinc-100);
background: var(--zinc-800);
}
.user-account {
margin-top: auto;
padding: 12px 10px;
margin-left: -10px;
}
.user-profile {
display: flex;
align-items: center;
color: var(--zinc-200);
}
.user-profile img {
width: 42px;
height: 42px;
display: block;
object-fit: cover;
border-radius: 50%;
border: 2px solid var(--zinc-700);
flex-shrink: 0;
}
.user-profile h3 {
font-size: 1rem;
font-weight: 600;
}
.user-profile span {
font-size: 0.775rem;
font-weight: 600;
}
.user-detail {
margin-left: 23px;
white-space: nowrap;
}
.sidebar:hover .user-account {
background: var(--zinc-800);
border-radius: 8px;
}