index.scss 1.33 KB
// 主样式文件
@import './variables.scss';
@import './element-ui.scss';

// 全局样式
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Source Han Sans CN", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: $background-color;
  color: $text-primary;
}

// 侧边栏相关样式
.sidebar-expanded {
  width: $sidebar-width;
  transition: width 0.3s ease;
}

.sidebar-collapsed {
  width: $sidebar-collapsed-width;
  transition: width 0.3s ease;
}

// 卡片样式
.dashboard-card {
  position: relative;
  height: 116px;
  
  .card-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 88px;
    height: 88px;
  }
}

// 表格样式
.el-table {
  .cell {
    line-height: 24px;
  }
}

// 分页样式
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 0 10px;
}

// 页面标题
.page-header {
  h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: $text-primary;
  }
}

// 卡片标题
.card-header {
  h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: $text-primary;
  }
}

// 响应式设计
@media (max-width: 768px) {
  .hidden-lg-only {
    display: none !important;
  }
}