TKK_E32211537/public/assets/style.css

123 lines
2.1 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
.sidebar {
position: fixed;
top: 0;
height: 100%;
width: 260px;
background: #11101d;
padding: 15px;
transition: all 0.5s ease;
}
.logo {
font-size: 25px;
padding: 0 15px;
}
.sidebar a {
color: #fff;
text-decoration: none;
}
.menu-content {
position: relative;
height: 100%;
width: 100%;
margin-top: 40px;
}
.menu-title {
color: #fff;
font-size: 14px;
padding: 15px 20px;
}
.item a,
.submenu-item {
padding: 16px;
display: inline-block;
width: 100%;
border-radius: 12px;
}
.item a:hover,
.submenu-item:hover {
background: rgba(255, 255, 255, 0.1);
}
.submenu-item {
display: flex;
justify-content: space-between;
align-items: center;
color: #fff;
cursor: pointer;
}
.submenu {
position: absolute;
height: 100%;
width: 100%;
top: 0;
right: calc(-100% - 26px);
background: #11101d;
}
.navbar,
.main {
left: 260px;
width: calc(100% - 260px);
transition: all 0.5s ease;
}
.sidebar {
position: fixed;
top: 0;
height: 100%;
width: 260px;
background: #11101d;
padding: 15px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Optional: Improved box shadow */
transition: all 0.5s ease;
}
.sidebar.close {
width: 0;
padding: 0;
overflow: hidden; /* Hide overflow when closed */
box-shadow: none; /* Optional: Remove shadow when closed */
}
.navbar {
position: relative;
top: 0;
color: #fff;
padding: 15px 20px;
font-size: 25px;
background: #4070f4;
cursor: pointer;
}
.main {
position: relative;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
height: 100vh;
z-index: 100;
background: #e7f2fd;
transition: margin-left 0.5s ease; /* Add transition for margin */
}
.main.sidebar-close {
margin-left: 0;
}