theme.less 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // You can directly set the default theme
  2. // - `default` Default theme
  3. // - `dark` Import the official dark less style file
  4. // - `compact` Import the official compact less style file
  5. @import '@delon/theme/theme-default.less';
  6. // ==========The following is the custom theme variable area==========
  7. // The theme paraments can be generated at https://ng-alain.github.io/ng-alain/
  8. // @primary-color: #f50;
  9. @alain-default-header-hg: 52px;
  10. @alain-default-header-bg: #fff;
  11. @alain-default-aside-bg: @primary-color
  12. .alain-default__nav-item, .alain-default__nav nz-badge {
  13. /*color: #212529;*/
  14. }
  15. .alain-default__nav-item_title{
  16. /*color: #212529;*/
  17. }
  18. .alain-default__nav-item:hover {
  19. color: black;
  20. background-color: @primary-color !important;
  21. }
  22. //@alain-default-aside-bg: #212529;
  23. .alain-default__aside-user-info{
  24. color: black;
  25. }
  26. @alain-default-aside-nav-text-color:black;
  27. @alain-default-aside-nav-text-hover-color: black;
  28. @alain-default-aside-nav-selected-text-color: white;
  29. .sidebar-nav .sidebar-nav__selected{
  30. color: black;
  31. background: @primary-color
  32. }
  33. .sidebar-nav__sub .sidebar-nav__item{
  34. color: #000000a6;
  35. }
  36. .sidebar-nav__open > .sidebar-nav__sub {
  37. /*background-color: black;*/
  38. color: black;
  39. background-color: #fff;
  40. }
  41. .sidebar-nav__sub .sidebar-nav__item:hover{
  42. background: rgb(214 26 26 / 4%);
  43. }
  44. .sidebar-nav__item-link:hover {
  45. color: yellow;
  46. background-color: @primary-color
  47. }
  48. .sidebar-nav__selected > .sidebar-nav__item-link{
  49. background-color: @primary-color
  50. }
  51. .alain-default__nav-item_collapsed{
  52. color: black;
  53. position: absolute;
  54. left: 8px;
  55. bottom: 0;
  56. /** background-color: aliceblue */
  57. }
  58. .grid-border{
  59. border: 1px solid #f0f0f0;
  60. }