114 lines
1.8 KiB
CSS
114 lines
1.8 KiB
CSS
/* 基础样式 */
|
|
.admin-container {
|
|
display: grid;
|
|
grid-template-columns: 240px 1fr;
|
|
min-height: 100vh;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.sidebar {
|
|
background: #2c3e50;
|
|
padding: 20px;
|
|
position: fixed;
|
|
width: 240px;
|
|
height: 100%;
|
|
}
|
|
|
|
.brand {
|
|
color: white;
|
|
font-size: 1.5rem;
|
|
padding: 20px;
|
|
border-bottom: 1px solid #34495e;
|
|
}
|
|
|
|
.sidebar nav a {
|
|
display: block;
|
|
color: #bdc3c7;
|
|
padding: 12px;
|
|
border-radius: 6px;
|
|
margin: 8px 0;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.sidebar nav a:hover {
|
|
background: #34495e;
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.sidebar nav a.active {
|
|
background: #3498db;
|
|
color: white;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 30px;
|
|
}
|
|
|
|
.content-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.user-info {
|
|
background: white;
|
|
padding: 8px 15px;
|
|
border-radius: 20px;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 30px;
|
|
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 20px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: #2c3e50;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border: 2px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
.form-control:focus {
|
|
border-color: #3498db;
|
|
outline: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #3498db;
|
|
color: white;
|
|
padding: 12px 25px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #2980b9;
|
|
}
|
|
|
|
.hint {
|
|
color: #7f8c8d;
|
|
font-size: 0.9em;
|
|
margin-top: 8px;
|
|
} |