variables.scss 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // base color
  2. $blue: #324157;
  3. $light-blue: #3A71A8;
  4. $red: #C03639;
  5. $pink: #E65D6E;
  6. $green: #30B08F;
  7. $tiffany: #4AB7BD;
  8. $yellow: #FEC171;
  9. $panGreen: #30B08F;
  10. // sidebar
  11. $menuText: #8c8c8c;
  12. $menuActiveText: #0056DD;
  13. $subMenuActiveText: #36a3f7; // https://github.com/ElemeFE/element/issues/12951
  14. $menuBg: #ffffff;
  15. $menuHover: #ebf2fd;
  16. $subMenuBg: #ffffff;
  17. $subMenuHover: #f0f2f5;
  18. $sideBarWidth: 210px;
  19. $siderBarCollapseWidth: 64px;
  20. $headerHeight: 120px;
  21. $footerHeight: 32px; // must greater than 15px
  22. $tagHeight: 42px; // must greater than 40px
  23. $layoutHeight: $headerHeight + $footerHeight + $tagHeight;
  24. // the :export directive is the magic sauce for webpack
  25. // https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
  26. :export {
  27. menuText: $menuText;
  28. menuActiveText: $menuActiveText;
  29. subMenuActiveText: $subMenuActiveText;
  30. menuBg: $menuBg;
  31. menuHover: $menuHover;
  32. subMenuBg: $subMenuBg;
  33. subMenuHover: $subMenuHover;
  34. sideBarWidth: $sideBarWidth;
  35. siderBarCollapseWidth: $siderBarCollapseWidth;
  36. }