- 重新调整了全局样式,增加了重置样式和容器样式优化 - 设计并实现了新的悬浮迷你菜单 - 更新了主内容区的样式,使其扩展到全视窗 - 在首页添加了背景切换功能和新的标题样式 - 优化了操作指南的布局和样式
57 lines
1.1 KiB
CSS
57 lines
1.1 KiB
CSS
.miniSidebar {
|
|
position: fixed;
|
|
left: 16px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 4rem;
|
|
height: max-content;
|
|
max-height: 80vh;
|
|
background-color: rgba(249, 250, 251, 0.95);
|
|
border-radius: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 1rem 0;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
backdrop-filter: blur(8px);
|
|
z-index: 50;
|
|
}
|
|
|
|
.miniSidebarItem {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 0.75rem;
|
|
margin: 0.5rem 0;
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.miniSidebarItem:hover {
|
|
background-color: rgba(209, 213, 219, 0.5);
|
|
}
|
|
|
|
.tooltip {
|
|
position: absolute;
|
|
left: 4rem;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background-color: #1f2937;
|
|
color: #f9fafb;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 0.5rem;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.2s ease;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.miniSidebarItem:hover .tooltip {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
} |