mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 12:44:22 +00:00
288 lines
5.7 KiB
CSS
288 lines
5.7 KiB
CSS
|
|
.ant-sidebar > .ant-layout-sider {
|
||
|
|
position: sticky;
|
||
|
|
top: 0;
|
||
|
|
height: 100vh;
|
||
|
|
align-self: flex-start;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sider-brand,
|
||
|
|
.drawer-brand {
|
||
|
|
font-weight: 600;
|
||
|
|
font-size: 18px;
|
||
|
|
letter-spacing: 0.5px;
|
||
|
|
color: rgba(0, 0, 0, 0.88);
|
||
|
|
}
|
||
|
|
|
||
|
|
.sider-brand {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
gap: 8px;
|
||
|
|
padding: 14px 14px;
|
||
|
|
border-bottom: 1px solid rgba(128, 128, 128, 0.15);
|
||
|
|
user-select: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sider-brand-collapsed {
|
||
|
|
justify-content: center;
|
||
|
|
font-size: 16px;
|
||
|
|
padding: 14px 4px;
|
||
|
|
letter-spacing: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.brand-block {
|
||
|
|
display: inline-flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
min-width: 0;
|
||
|
|
line-height: 1.1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.brand-text {
|
||
|
|
display: block;
|
||
|
|
}
|
||
|
|
|
||
|
|
.brand-version {
|
||
|
|
display: block;
|
||
|
|
width: 100%;
|
||
|
|
text-align: center;
|
||
|
|
font-size: 10px;
|
||
|
|
font-weight: 500;
|
||
|
|
letter-spacing: 0;
|
||
|
|
opacity: 0.6;
|
||
|
|
margin-top: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sider-brand-collapsed .brand-block {
|
||
|
|
align-items: center;
|
||
|
|
flex: 0 0 auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.brand-actions {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 2px;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-donate {
|
||
|
|
background: transparent;
|
||
|
|
border: none;
|
||
|
|
width: 30px;
|
||
|
|
height: 30px;
|
||
|
|
border-radius: 50%;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
color: rgba(0, 0, 0, 0.75);
|
||
|
|
text-decoration: none;
|
||
|
|
flex-shrink: 0;
|
||
|
|
transition: background-color 0.2s, transform 0.15s, color 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-donate:hover,
|
||
|
|
.sidebar-donate:focus-visible {
|
||
|
|
background-color: rgba(236, 72, 153, 0.12);
|
||
|
|
color: #ec4899;
|
||
|
|
transform: scale(1.08);
|
||
|
|
outline: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-donate .anticon {
|
||
|
|
font-size: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-theme-cycle {
|
||
|
|
background: transparent;
|
||
|
|
border: none;
|
||
|
|
width: 30px;
|
||
|
|
height: 30px;
|
||
|
|
border-radius: 50%;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
cursor: pointer;
|
||
|
|
color: rgba(0, 0, 0, 0.75);
|
||
|
|
padding: 0;
|
||
|
|
flex-shrink: 0;
|
||
|
|
transition: background-color 0.2s, transform 0.15s, color 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-theme-cycle:hover,
|
||
|
|
.sidebar-theme-cycle:focus-visible {
|
||
|
|
background-color: rgba(64, 150, 255, 0.1);
|
||
|
|
color: #4096ff;
|
||
|
|
transform: scale(1.08);
|
||
|
|
outline: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-theme-cycle svg {
|
||
|
|
width: 16px;
|
||
|
|
height: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.drawer-header-actions {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.drawer-handle {
|
||
|
|
position: fixed;
|
||
|
|
top: 12px;
|
||
|
|
left: 12px;
|
||
|
|
z-index: 1100;
|
||
|
|
background: rgba(0, 0, 0, 0.55);
|
||
|
|
color: #fff;
|
||
|
|
border: none;
|
||
|
|
width: 40px;
|
||
|
|
height: 40px;
|
||
|
|
border-radius: 50%;
|
||
|
|
cursor: pointer;
|
||
|
|
display: none;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
font-size: 18px;
|
||
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
||
|
|
}
|
||
|
|
|
||
|
|
.drawer-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
padding: 14px 16px;
|
||
|
|
border-bottom: 1px solid rgba(128, 128, 128, 0.15);
|
||
|
|
}
|
||
|
|
|
||
|
|
.drawer-close {
|
||
|
|
background: transparent;
|
||
|
|
border: none;
|
||
|
|
width: 32px;
|
||
|
|
height: 32px;
|
||
|
|
border-radius: 50%;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
cursor: pointer;
|
||
|
|
font-size: 16px;
|
||
|
|
color: rgba(0, 0, 0, 0.65);
|
||
|
|
}
|
||
|
|
|
||
|
|
.drawer-close:hover,
|
||
|
|
.drawer-close:focus-visible {
|
||
|
|
background: rgba(128, 128, 128, 0.18);
|
||
|
|
}
|
||
|
|
|
||
|
|
.drawer-menu .ant-menu-item {
|
||
|
|
height: 48px;
|
||
|
|
line-height: 48px;
|
||
|
|
margin: 0;
|
||
|
|
border-radius: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.drawer-menu .ant-menu-item .anticon {
|
||
|
|
font-size: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.drawer-utility {
|
||
|
|
margin-top: auto;
|
||
|
|
border-top: 1px solid rgba(128, 128, 128, 0.15);
|
||
|
|
}
|
||
|
|
|
||
|
|
.ant-sidebar > .ant-layout-sider .ant-layout-sider-children {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sider-nav {
|
||
|
|
flex: 1 1 auto;
|
||
|
|
overflow-y: auto;
|
||
|
|
overflow-x: hidden;
|
||
|
|
min-height: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sider-utility {
|
||
|
|
flex: 0 0 auto;
|
||
|
|
border-top: 1px solid rgba(128, 128, 128, 0.15);
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.drawer-handle {
|
||
|
|
display: inline-flex;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ant-sidebar > .ant-layout-sider .ant-layout-sider-children,
|
||
|
|
.ant-sidebar > .ant-layout-sider .ant-layout-sider-trigger {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ant-sidebar > .ant-layout-sider {
|
||
|
|
flex: 0 0 0 !important;
|
||
|
|
max-width: 0 !important;
|
||
|
|
min-width: 0 !important;
|
||
|
|
width: 0 !important;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
body.dark .drawer-brand,
|
||
|
|
body.dark .sider-brand {
|
||
|
|
color: rgba(255, 255, 255, 0.92);
|
||
|
|
}
|
||
|
|
|
||
|
|
html[data-theme='ultra-dark'] .drawer-brand,
|
||
|
|
html[data-theme='ultra-dark'] .sider-brand {
|
||
|
|
color: #ffffff;
|
||
|
|
}
|
||
|
|
|
||
|
|
body.dark .drawer-close {
|
||
|
|
color: rgba(255, 255, 255, 0.75);
|
||
|
|
}
|
||
|
|
|
||
|
|
html[data-theme='ultra-dark'] .drawer-close {
|
||
|
|
color: rgba(255, 255, 255, 0.85);
|
||
|
|
}
|
||
|
|
|
||
|
|
body.dark .sidebar-theme-cycle {
|
||
|
|
color: rgba(255, 255, 255, 0.85);
|
||
|
|
}
|
||
|
|
|
||
|
|
html[data-theme='ultra-dark'] .sidebar-theme-cycle {
|
||
|
|
color: rgba(255, 255, 255, 0.92);
|
||
|
|
}
|
||
|
|
|
||
|
|
body.dark .sidebar-donate {
|
||
|
|
color: rgba(255, 255, 255, 0.85);
|
||
|
|
}
|
||
|
|
|
||
|
|
html[data-theme='ultra-dark'] .sidebar-donate {
|
||
|
|
color: rgba(255, 255, 255, 0.92);
|
||
|
|
}
|
||
|
|
|
||
|
|
body.dark .ant-drawer .ant-drawer-content,
|
||
|
|
body.dark .ant-drawer .ant-drawer-body {
|
||
|
|
background: #252526 !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
html[data-theme='ultra-dark'] .ant-drawer .ant-drawer-content,
|
||
|
|
html[data-theme='ultra-dark'] .ant-drawer .ant-drawer-body {
|
||
|
|
background: #0a0a0a !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sider-nav .ant-menu-item-selected,
|
||
|
|
.sider-utility .ant-menu-item-selected,
|
||
|
|
.drawer-menu .ant-menu-item-selected {
|
||
|
|
background-color: rgba(64, 150, 255, 0.2) !important;
|
||
|
|
color: #4096ff !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sider-nav .ant-menu-item-active:not(.ant-menu-item-selected),
|
||
|
|
.sider-utility .ant-menu-item-active:not(.ant-menu-item-selected),
|
||
|
|
.drawer-menu .ant-menu-item-active:not(.ant-menu-item-selected),
|
||
|
|
.sider-nav .ant-menu-item:not(.ant-menu-item-selected):not(.ant-menu-item-disabled):hover,
|
||
|
|
.sider-utility .ant-menu-item:not(.ant-menu-item-selected):not(.ant-menu-item-disabled):hover,
|
||
|
|
.drawer-menu .ant-menu-item:not(.ant-menu-item-selected):not(.ant-menu-item-disabled):hover {
|
||
|
|
background-color: rgba(64, 150, 255, 0.1) !important;
|
||
|
|
color: #4096ff !important;
|
||
|
|
}
|