Files
ghatreh_user/src/layouts/desktop/desktop-layout.less
T
2026-07-08 16:03:22 +03:30

152 lines
2.7 KiB
Plaintext

.desktop-app-layout {
display: flex;
flex-direction: row;
height: 100vh;
max-height: 100vh;
width: 100%;
max-width: 100vw;
background: @prefixCls-background-color;
overflow: hidden;
}
.desktop-app-layout__main {
flex: 1;
min-width: 0;
min-height: 0;
height: 100%;
max-height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
margin-right: var(--app-desktop-sidebar-width, 260px);
}
.desktop-app-layout__main--full {
width: 100%;
margin-right: 0;
}
.desktop-app-layout__content {
flex: 1 1 0;
min-height: 0;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
background: @prefixCls-background-color;
}
.desktop-sidebar {
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: var(--app-desktop-sidebar-width, 260px);
height: 100vh;
display: flex;
flex-direction: column;
background: #fff;
z-index: 100;
padding: 20px 12px 16px;
box-sizing: border-box;
border-left: 1px solid rgba(0, 0, 0, 0.06);
overflow: hidden;
overscroll-behavior: contain;
}
.desktop-sidebar__brand {
display: flex;
align-items: center;
justify-content: center;
padding: 8px 12px 20px;
margin-bottom: 4px;
}
.desktop-sidebar__logo {
max-width: 140px;
max-height: 56px;
width: auto;
height: auto;
object-fit: contain;
}
.desktop-sidebar__section {
display: flex;
flex-direction: column;
gap: 4px;
}
.desktop-sidebar__section--secondary {
margin-top: auto;
flex: 1;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
}
.desktop-sidebar__divider {
height: 1px;
background: rgba(0, 0, 0, 0.08);
margin: 12px 8px;
}
.desktop-nav-item {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 10px 12px;
border: none;
border-radius: 10px;
background: transparent;
cursor: pointer;
text-align: right;
font-family: inherit;
font-size: 14px;
font-weight: 600;
color: #6b7280;
transition: background 0.15s ease, color 0.15s ease;
&:hover {
background: rgba(167, 43, 119, 0.06);
color: var(--app-primary-color, #a72b77);
}
&--active {
background: rgba(167, 43, 119, 0.1);
color: var(--app-primary-color, #a72b77);
.desktop-nav-item__icon {
color: var(--app-primary-color, #a72b77);
}
}
}
.desktop-nav-item__icon {
flex-shrink: 0;
color: #9ca3af;
}
.desktop-nav-item__icon-wrap {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
background: transparent;
flex-shrink: 0;
}
.desktop-nav-item__label {
flex: 1;
line-height: 1.3;
}
.desktop-sidebar__section--secondary .desktop-nav-item {
font-size: 13px;
font-weight: 500;
padding: 8px 12px;
}