// base color
$blue: #42B983;
$light-blue: #30CD86;
$red: #F56C6C;
$pink: #E65D6E;
$green: #67C23A;
$tiffany: #4AB7BD;
$yellow: #E6A23C;
$panGreen: #30B08F;
$disabled: #c0c4cc;

/**
* @desc 第N行显示省略号
* @param $line 第几行显示省略号
* @param  $maxHeight 最大高度隐藏
**/
@mixin maxCut($line:2, $maxHeight: 60) {
  max-height: unit($maxHeight);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $line;
  -webkit-box-orient: vertical;
}

/**
* @desc 一行显示省略号
* @param  $height 高度隐藏
**/
@mixin oneLine($height:40) {
  height: unit($height);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/**蓝色样式**/
//$blue: #324157;
//$light-blue: #3A71A8;
//$red: #C03639;
//$pink: #E65D6E;
//$green: #30B08F;
//$tiffany: #4AB7BD;
//$yellow: #FEC171;
//$panGreen: #30B08F;

// sidebar
$menuText:#bfcbd9;
//$menuActiveText:#409EFF; //蓝色样式
$menuActiveText: $blue; //蓝色样式
$subMenuActiveText:#f4f4f5; // https://github.com/ElemeFE/element/issues/12951

$menuBg:#304156;
$menuHover:#263445;

$subMenuBg:#1f2d3d;
$subMenuHover:#001528;

$sideBarWidth: 250px;

// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
:export {
  menuText: $menuText;
  menuActiveText: $menuActiveText;
  subMenuActiveText: $subMenuActiveText;
  menuBg: $menuBg;
  menuHover: $menuHover;
  subMenuBg: $subMenuBg;
  subMenuHover: $subMenuHover;
  sideBarWidth: $sideBarWidth;
  xdBlue: $blue;
  xdRed: $red;
  xdLightBlue: $light-blue;
  xdPink: $pink;
  xdGreen: $green;
  xdTiffany: $tiffany;
  xdYellow: $yellow;
  xdPanGreen: $panGreen;
  disabled: $disabled;
}
