// 主题和样式重置

// 主题色: 源至 variables.styl (下划线避免值冲突)
$_color-theme: #3f3f43;
$_color-menu: #98a0ae;
$_color-table: #fafafa;
$_color-active: #333333;
$_color-before: #c7161d;

/* 改变主题色变量 */
$--color-primary: $_color-theme;

/* 改变 icon 字体路径变量，必需 */
$--font-path: "~element-ui/lib/theme-chalk/fonts";

@import "~element-ui/packages/theme-chalk/src/index";

// reset

// 级联菜单: 暂无数据默认高度
.el-cascader-panel {
  min-height: 48px;
}

// 侧边栏
.el-aside,
.el-header,
.el-menu-item,
.el-submenu__title {
  background-color: $_color-theme;
}
.el-menu-item,
.el-submenu__title {
  color: $_color-menu;
}
.el-submenu .el-menu-item {
  min-width: 0;
}
.el-menu-item.is-active {
  color: #fff;
}
.el-menu-item:hover,
.el-submenu__title:hover,
.el-menu-item.is-active {
  background-color: $_color-active;
}
.el-menu {
  border-right: none;
}
// 侧边栏激活状态
.el-submenu {
  position: relative;
}
.el-submenu.is-active::before {
  content: " ";
  position: absolute;
  left: 0;
  top: 6px;
  z-index: 1;
  height: 40px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  overflow: hidden;
  background-color: $_color-before;
}

// 分页组件
.el-pager li.active:last-child {
  margin-right: 0;
}
.el-pager li {
  margin-right: 10px;
  border-radius: 4px;
  font-weight: 400;
}
.el-pager li.active {
  background-color: $_color-theme;
  color: #fff;
}

// 去掉tab底部分割线
.el-tabs__nav-wrap::after {
  background-color: transparent;
}
