121 lines
1.9 KiB
CSS
121 lines
1.9 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
background-color: #f3f3f3;
|
|
color: #333;
|
|
}
|
|
|
|
.title-bar {
|
|
height: 48px;
|
|
background-color: #0078d7;
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 16px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
z-index: 10;
|
|
}
|
|
|
|
.title-bar h1 {
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.menu-toggle {
|
|
display: none;
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
font-size: 20px;
|
|
margin-right: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.main-container {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 220px;
|
|
background-color: white;
|
|
border-right: 1px solid #e1e1e1;
|
|
transition: transform 0.3s ease;
|
|
overflow-y: auto;
|
|
z-index: 5;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 16px;
|
|
border-bottom: 1px solid #e1e1e1;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sidebar-menu {
|
|
list-style: none;
|
|
}
|
|
|
|
.sidebar-menu li {
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.sidebar-menu li:hover {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.sidebar-menu li.active {
|
|
background-color: #e5f1fb;
|
|
color: #0078d7;
|
|
border-left: 3px solid #0078d7;
|
|
}
|
|
|
|
.content {
|
|
flex: 1;
|
|
padding: 24px;
|
|
overflow-y: auto;
|
|
background-color: white;
|
|
}
|
|
|
|
.content h2 {
|
|
margin-bottom: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.card {
|
|
background-color: #f9f9f9;
|
|
border-radius: 4px;
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.menu-toggle {
|
|
display: block;
|
|
}
|
|
|
|
.sidebar {
|
|
position: absolute;
|
|
height: calc(100vh - 48px);
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
.sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.content {
|
|
padding: 16px;
|
|
}
|
|
} |