@@ -23,7 +23,6 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
|
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
|
||||||
background-color: #f5f7fa;
|
|
||||||
}
|
}
|
||||||
.app-container {
|
.app-container {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
@@ -31,14 +30,13 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.header {
|
.header {
|
||||||
background: linear-gradient(135deg, #1890ff 0%, #006af5 100%);
|
background-color: #006af5;
|
||||||
color: white;
|
color: white;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
||||||
}
|
}
|
||||||
.header-left {
|
.header-left {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -48,8 +46,6 @@
|
|||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
border-radius: 8px;
|
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
}
|
||||||
.main-container {
|
.main-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -57,67 +53,36 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.sidebar {
|
.sidebar {
|
||||||
width: 200px;
|
width: 180px;
|
||||||
background-color: #fff;
|
background-color: #545c64;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
|
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 24px;
|
padding: 20px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
background-color: #f5f7fa;
|
background-color: #f0f2f5;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.el-menu {
|
.el-menu {
|
||||||
border-right: none;
|
border-right: none;
|
||||||
}
|
}
|
||||||
.el-menu-item {
|
|
||||||
height: 50px;
|
|
||||||
line-height: 50px;
|
|
||||||
margin: 4px 0;
|
|
||||||
border-radius: 4px;
|
|
||||||
margin: 4px 8px;
|
|
||||||
}
|
|
||||||
.el-menu-item:hover {
|
|
||||||
background-color: #f5f7fa !important;
|
|
||||||
}
|
|
||||||
.el-menu-item.is-active {
|
|
||||||
background-color: #e6f7ff !important;
|
|
||||||
color: #1890ff !important;
|
|
||||||
}
|
|
||||||
.chart-container {
|
.chart-container {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 24px;
|
padding: 20px;
|
||||||
border-radius: 8px;
|
border-radius: 4px;
|
||||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||||
margin-bottom: 24px;
|
margin-bottom: 20px;
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
.chart-container:hover {
|
|
||||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
|
||||||
transform: translateY(-2px);
|
|
||||||
}
|
}
|
||||||
.stats-card {
|
.stats-card {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 20px;
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
.stats-card:hover {
|
|
||||||
transform: translateY(-2px);
|
|
||||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
}
|
||||||
.logout-btn {
|
.logout-btn {
|
||||||
color: white;
|
color: white;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
padding: 8px 16px;
|
|
||||||
border-radius: 4px;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
.logout-btn:hover {
|
|
||||||
background-color: rgba(255, 255, 255, 0.1);
|
|
||||||
}
|
}
|
||||||
.header-right {
|
.header-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -125,23 +90,6 @@
|
|||||||
}
|
}
|
||||||
.user-info {
|
.user-info {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
/* 自定义滚动条样式 */
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
width: 6px;
|
|
||||||
height: 6px;
|
|
||||||
}
|
|
||||||
::-webkit-scrollbar-track {
|
|
||||||
background: #f1f1f1;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background: #c1c1c1;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
::-webkit-scrollbar-thumb:hover {
|
|
||||||
background: #a8a8a8;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -694,67 +694,26 @@
|
|||||||
.stats-card {
|
.stats-card {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
height: 120px;
|
height: 120px;
|
||||||
border-radius: 8px;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stats-card .el-card__header {
|
|
||||||
padding: 15px 20px;
|
|
||||||
border-bottom: 1px solid #ebeef5;
|
|
||||||
font-weight: 500;
|
|
||||||
color: #606266;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stats-card .el-card__body {
|
|
||||||
padding: 20px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stats-card .el-card__body > div {
|
|
||||||
font-size: 28px;
|
|
||||||
font-weight: 600;
|
|
||||||
color: #303133;
|
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chart-container {
|
.chart-container {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 20px;
|
||||||
padding: 24px;
|
padding: 10px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 8px;
|
border-radius: 4px;
|
||||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chart-container:hover {
|
|
||||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
|
||||||
transform: translateY(-2px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chart-container h3 {
|
.chart-container h3 {
|
||||||
margin: 0 0 20px 0;
|
margin-top: 0;
|
||||||
font-size: 18px;
|
margin-bottom: 10px;
|
||||||
font-weight: 500;
|
font-size: 16px;
|
||||||
color: #303133;
|
color: #606266;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chart-container h3::before {
|
|
||||||
content: '';
|
|
||||||
display: inline-block;
|
|
||||||
width: 4px;
|
|
||||||
height: 16px;
|
|
||||||
background: #1890ff;
|
|
||||||
margin-right: 8px;
|
|
||||||
border-radius: 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 用户信息卡片样式 */
|
/* 用户信息卡片样式 */
|
||||||
.user-info-container {
|
.user-info-container {
|
||||||
padding: 20px;
|
padding: 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-avatar-column {
|
.user-avatar-column {
|
||||||
@@ -765,46 +724,39 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-avatar-container {
|
.user-avatar-container {
|
||||||
width: 82px !important;
|
width: 30px !important;
|
||||||
height: 82px !important;
|
height: 30px !important;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border: 3px solid #fff;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-avatar-container:hover {
|
|
||||||
transform: scale(1.05);
|
|
||||||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-avatar-container img {
|
.user-avatar-container img {
|
||||||
width: 100% !important;
|
width: 15px !important;
|
||||||
height: 100% !important;
|
height: 15px !important;
|
||||||
object-fit: cover;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-info-column {
|
.user-info-column {
|
||||||
padding-left: 20px;
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-info-item {
|
.user-info-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 14px;
|
font-size: 12px;
|
||||||
line-height: 1.6;
|
line-height: 1.4;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-info-label {
|
.user-info-label {
|
||||||
color: #909399;
|
color: #606266;
|
||||||
width: 60px;
|
width: 45px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
font-weight: 500;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-info-value {
|
.user-info-value {
|
||||||
@@ -813,68 +765,14 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
font-weight: 500;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-info-empty {
|
.user-info-empty {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #909399;
|
color: #909399;
|
||||||
padding: 30px 0;
|
padding: 10px 0;
|
||||||
font-size: 14px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-info-empty i {
|
|
||||||
font-size: 24px;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
color: #dcdfe6;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 表格样式优化 */
|
|
||||||
.el-table {
|
|
||||||
border-radius: 8px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-table th {
|
|
||||||
background-color: #f5f7fa !important;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-table td, .el-table th {
|
|
||||||
padding: 12px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 时间范围选择器样式 */
|
|
||||||
.el-form--inline .el-form-item {
|
|
||||||
margin-right: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-select {
|
|
||||||
width: 160px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 图表容器样式 */
|
|
||||||
.chart-container canvas {
|
|
||||||
max-height: 300px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 响应式布局调整 */
|
|
||||||
@media screen and (max-width: 1400px) {
|
|
||||||
.el-col-6 {
|
|
||||||
width: 33.33%;
|
|
||||||
}
|
|
||||||
.el-col-3 {
|
|
||||||
width: 25%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 1200px) {
|
|
||||||
.el-col-6 {
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
.el-col-3 {
|
|
||||||
width: 33.33%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user