117 lines
1.7 KiB
CSS
117 lines
1.7 KiB
CSS
![]() |
/* 全局样式 */
|
||
|
* {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
font-family: 'Microsoft YaHei', sans-serif;
|
||
|
background-color: #f0f2f5;
|
||
|
color: #333;
|
||
|
}
|
||
|
|
||
|
/* 应用容器 */
|
||
|
.app-container {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
height: 100vh;
|
||
|
}
|
||
|
|
||
|
/* 头部样式 */
|
||
|
.app-header {
|
||
|
background-color: #1890ff;
|
||
|
color: white;
|
||
|
padding: 0 20px;
|
||
|
height: 60px;
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
align-items: center;
|
||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||
|
}
|
||
|
|
||
|
.header-left h1 {
|
||
|
font-size: 20px;
|
||
|
font-weight: 500;
|
||
|
}
|
||
|
|
||
|
.header-right {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
gap: 20px;
|
||
|
}
|
||
|
|
||
|
#userInfo {
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
|
||
|
.logout-btn {
|
||
|
background-color: transparent;
|
||
|
border: 1px solid white;
|
||
|
color: white;
|
||
|
padding: 6px 12px;
|
||
|
border-radius: 4px;
|
||
|
cursor: pointer;
|
||
|
transition: all 0.3s;
|
||
|
}
|
||
|
|
||
|
.logout-btn:hover {
|
||
|
background-color: white;
|
||
|
color: #1890ff;
|
||
|
}
|
||
|
|
||
|
/* 主内容区域 */
|
||
|
.app-main {
|
||
|
display: flex;
|
||
|
flex: 1;
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
|
||
|
/* 侧边栏样式 */
|
||
|
.sidebar {
|
||
|
width: 200px;
|
||
|
background-color: white;
|
||
|
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
|
||
|
padding: 20px 0;
|
||
|
}
|
||
|
|
||
|
.menu-list {
|
||
|
list-style: none;
|
||
|
}
|
||
|
|
||
|
.menu-item {
|
||
|
padding: 12px 20px;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
gap: 10px;
|
||
|
cursor: pointer;
|
||
|
transition: all 0.3s;
|
||
|
}
|
||
|
|
||
|
.menu-item:hover {
|
||
|
background-color: #e6f7ff;
|
||
|
}
|
||
|
|
||
|
.menu-item.active {
|
||
|
background-color: #e6f7ff;
|
||
|
color: #1890ff;
|
||
|
border-right: 3px solid #1890ff;
|
||
|
}
|
||
|
|
||
|
.menu-item .icon {
|
||
|
font-size: 18px;
|
||
|
}
|
||
|
|
||
|
/* 内容区域 */
|
||
|
.content-area {
|
||
|
flex: 1;
|
||
|
padding: 20px;
|
||
|
overflow-y: auto;
|
||
|
}
|
||
|
|
||
|
.page-content {
|
||
|
background-color: white;
|
||
|
border-radius: 8px;
|
||
|
padding: 20px;
|
||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||
|
}
|