Files
wms-app/src/assets/scss/_custom.scss
T
2026-02-19 14:48:40 +07:00

143 lines
2.3 KiB
SCSS
Executable File

.overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,.45);
backdrop-filter: blur(1px);
display: none;
z-index: 1030;
}
.overlay.show {
display: block;
}
.sidebar {
width: 240px;
background: $white;
transition: width .3s, left .3s;
border-right: 1px solid $gray-200;
height: 100vh;
position: fixed;
top: 0;
left: 0;
padding-top: 60px;
z-index: 1030;
.nav-text-space {
padding: 12px 16px;
}
.nav-link {
color: $gray-800;
padding: 8px 10px;
display: flex;
align-items: center;
font-size: 14px;
font-weight: 400;
gap: 12px;
white-space: nowrap;
margin: 1px 12px;
border-radius: 8px;
&:hover {
color: $primary;
background-color: rgba($primary, 0.095);
}
&.active {
color: $primary;
background-color: rgba($primary, 0.095);
}
.ti {
font-size: 18px;
}
}
.nav-text {
transition: opacity .2s;
}
.logo-area {
position: absolute;
top: 0;
left: 0;
height: 60px;
width: 100%;
background: $white;
display: flex;
align-items: center;
gap: 10px;
padding-left: 16px;
color: $gray-800;
border-bottom: 1px solid $gray-200;
}
}
/* width */
::-webkit-scrollbar {
width: 4px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
.sidebar.collapsed {
.nav-text-space {
padding: 0px;
}
width: 60px;
.nav-link{
margin: 0 0px;
background-color: transparent;
padding: 8px 18px;
}
.nav-text {
display: none;
}
.logo-text {
display: none;
}
}
.topbar {
height: 60px;
margin-left: 240px;
// transition: margin-left .3s;
}
.topbar.full {
margin-left: 60px;
}
.content {
margin-left: 240px;
// transition: margin-left .3s;
// padding: 20px;
}
.content.full {
margin-left: 60px;
}
@media (max-width: 992px) {
.sidebar {
left: -240px;
}
.sidebar.mobile-show {
left: 0;
}
.topbar {
margin-left: 0 !important;
width: 100% !important;
}
.content {
margin-left: 0 !important;
}
}
@import "./avatar";
@import "./button";
@import "./icon-shape";
@import "./utilities";
@import "./dropzone";
@import "./table";