dataease-dm/frontend/src/styles/variables.scss

61 lines
1.5 KiB
SCSS
Raw Normal View History

2021-03-07 21:29:41 +08:00
/**
* I think element-ui's default theme color is too light for long-term use.
* So I modified the default color and you can modify it to your liking.
**/
/* theme color */
$--color-primary: #f1a826;
2021-03-07 21:29:41 +08:00
$--color-success: #13ce66;
$--color-warning: #ffba00;
$--color-danger: #ff4949;
// $--color-info: #1E1E1E;
$--button-font-weight: 400;
// $--color-text-regular: #1f2d3d;
$--border-color-light: #dfe4ed;
$--border-color-lighter: #e6ebf5;
$--table-border: 1px solid #dfe6ec;
/* icon font path, required */
$--font-path: "~element-ui/lib/theme-chalk/fonts";
@import "~element-ui/packages/theme-chalk/src/index";
@import "~fit2cloud-ui/src/styles/common/variables";
2021-03-03 15:06:52 +08:00
// sidebar
2021-03-08 12:29:11 +08:00
$menuText:rgba(255,255,255,0.87);
$menuActiveText:#f18126;
2021-03-08 11:09:46 +08:00
$topMenuActiveText:#f4f4f5;
2021-03-03 15:06:52 +08:00
$subMenuActiveText:#f4f4f5; //https://github.com/ElemeFE/element/issues/12951
2021-03-07 21:29:41 +08:00
// $menuBg:#304156;
$menuBg:#ffffff;
// $menuHover:#263445;
$menuHover: rgba(158, 158, 158, 0.2);
2021-03-03 15:06:52 +08:00
$subMenuBg:#1f2d3d;
2021-03-08 11:09:46 +08:00
// $subMenuHover:#001528;
$subMenuHover:#f18126;
2021-03-03 15:06:52 +08:00
$sideBarWidth: 210px;
$topBarHeight: 56px;
$contentHeight: calc(100vh - 56px);
2021-03-03 15:06:52 +08:00
// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
:export {
2021-03-07 21:29:41 +08:00
theme: $--color-primary;
2021-03-03 15:06:52 +08:00
menuText: $menuText;
menuActiveText: $menuActiveText;
2021-03-08 11:09:46 +08:00
topMenuActiveText: $topMenuActiveText;
2021-03-03 15:06:52 +08:00
subMenuActiveText: $subMenuActiveText;
menuBg: $menuBg;
menuHover: $menuHover;
subMenuBg: $subMenuBg;
subMenuHover: $subMenuHover;
sideBarWidth: $sideBarWidth;
}