Files
teach_sys_Demo/src/components/Sidebar/index.css

207 lines
4.0 KiB
CSS
Raw Normal View History

2025-08-18 14:18:11 +08:00
.sidebar-expand-wrapper {
width: 280px;
box-sizing: border-box;
position: relative;
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: column;
transition: width 0.3s ease;
overflow-x: hidden;
overflow-y: auto;
background-color: #fff;
.sidebar-title {
width: 100%;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
> img {
width: 48px;
height: 48px;
margin-right: 10px;
transition: margin 0.3s ease;
}
> p {
color: #262626;
font-size: 20px;
font-weight: 400;
opacity: 1;
transform: translateX(0);
transition: opacity 0.3s ease, transform 0.3s ease;
white-space: nowrap;
}
}
.user-info {
width: 100%;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
.user-avatar {
width: 64px;
height: 64px;
border-radius: 12px;
}
}
.visitor-count {
width: 100%;
height: 41px;
text-align: center;
2025-08-20 10:18:41 +08:00
.arco-statistic-value {
font-size: 12px;
font-weight: 700;
line-height: 41px;
}
2025-08-18 14:18:11 +08:00
}
.sidebar-menu {
width: 100%;
overflow-x: hidden;
overflow-y: auto;
box-sizing: border-box;
2025-08-20 10:05:11 +08:00
padding: 0 20px 60px;
2025-08-18 14:18:11 +08:00
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: column;
2025-08-18 16:21:53 +08:00
.sidebar-menu-item-wrapper {
2025-08-18 14:18:11 +08:00
width: 100%;
2025-08-18 16:21:53 +08:00
.sidebar-menu-title {
width: 100%;
height: 36px;
text-align: left;
line-height: 36px;
color: #bfbfbf;
font-size: 14px;
font-weight: 400;
2025-08-18 14:18:11 +08:00
}
2025-08-18 16:21:53 +08:00
.sidebar-menu-item-active {
background-color: #e8f3ff;
2025-08-18 14:18:11 +08:00
2025-08-18 16:21:53 +08:00
.sidebar-menu-icon {
color: #0275f2 !important;
}
.sidebar-menu-text {
color: #0275f2 !important;
}
2025-08-18 14:18:11 +08:00
}
2025-08-18 16:21:53 +08:00
.sidebar-menu-item {
width: 100%;
height: 40px;
display: flex;
justify-content: flex-start;
align-items: center;
border-radius: 8px;
cursor: pointer;
.sidebar-menu-icon {
margin: 0 10px;
font-size: 20px;
}
.sidebar-menu-text {
margin-left: 10px;
font-size: 16px;
font-weight: 400;
color: #616065;
}
2025-08-18 14:18:11 +08:00
}
}
}
.sidebar-btn {
2025-08-20 10:05:11 +08:00
width: 100%;
height: 60px;
line-height: 60px;
2025-08-18 14:18:11 +08:00
position: absolute;
2025-08-20 10:05:11 +08:00
bottom: 0px;
2025-08-18 14:18:11 +08:00
left: 50%;
transform: translateX(-50%);
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
2025-08-20 10:05:11 +08:00
background-color: #fff;
2025-08-18 14:18:11 +08:00
> img {
width: 22px;
height: 22px;
}
.sidebar-btn-text {
margin-left: 10px;
color: #616065;
font-size: 16px;
font-weight: 400;
opacity: 1;
transform: translateX(0);
transition: opacity 0.3s ease, transform 0.3s ease;
white-space: nowrap;
}
}
}
.sidebar-retract-wrapper {
width: 95px;
.sidebar-title {
> img {
margin: 0;
transition: margin 0.3s ease;
}
> p {
opacity: 0;
transform: translateX(-10px);
pointer-events: none;
transition: opacity 0.3s ease, transform 0.3s ease;
width: 0;
}
}
.user-info {
margin-bottom: 41px;
}
.visitor-count {
display: none;
}
.sidebar-menu {
.sidebar-menu-title {
text-align: center;
opacity: 0;
transition: opacity 0.3s ease;
}
2025-08-18 16:21:53 +08:00
.sidebar-menu-item-wrapper {
.sidebar-menu-item {
justify-content: center;
2025-08-18 14:18:11 +08:00
2025-08-18 16:21:53 +08:00
.sidebar-menu-icon {
margin: 0;
}
.sidebar-menu-text {
opacity: 0;
transform: translateX(-10px);
pointer-events: none;
transition: opacity 0.3s ease, transform 0.3s ease;
width: 0;
display: none;
}
2025-08-18 14:18:11 +08:00
}
}
}
.sidebar-btn {
width: 80px;
.sidebar-btn-text {
opacity: 0;
transform: translateX(-10px);
pointer-events: none;
transition: opacity 0.3s ease, transform 0.3s ease;
width: 0;
}
}
}