index.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. @import "~ant-design-vue/es/style/themes/default";
  2. @global-header-prefix-cls: ~'@{ant-prefix}-pro-global-header';
  3. @pro-header-bg : @component-background;
  4. @pro-header-hover-bg : @component-background;
  5. @pro-header-box-shadow : 0 1px 4px rgba(0, 21, 41, 0.08);
  6. @pro-header-hover-trigger-action-bg: rgba(0, 0, 0, .025);
  7. .@{global-header-prefix-cls} {
  8. position : relative;
  9. height : @layout-header-height;
  10. padding : 0;
  11. background: @pro-header-bg;
  12. box-shadow: @pro-header-box-shadow;
  13. &-index-right {
  14. float : right;
  15. height : 100%;
  16. margin-left: auto;
  17. overflow : hidden;
  18. .@{global-header-prefix-cls}-index-action {
  19. min-width : 115px;
  20. max-width : 150px;
  21. display : block;
  22. height : 100%;
  23. padding : 0 10px;
  24. cursor : pointer;
  25. transition: all .3s;
  26. &:hover {
  27. background: @pro-header-hover-trigger-action-bg;
  28. }
  29. }
  30. }
  31. &-logo {
  32. display : inline-block;
  33. height : @layout-header-height;
  34. padding : 0 0 0 24px;
  35. font-size : 20px;
  36. line-height : @layout-header-height;
  37. vertical-align: top;
  38. cursor : pointer;
  39. img,
  40. svg {
  41. display : inline-block;
  42. width : 32px;
  43. height : 32px;
  44. vertical-align: middle;
  45. }
  46. }
  47. &-menu {
  48. .anticon {
  49. margin-right: 8px;
  50. }
  51. .ant-dropdown-menu-item {
  52. min-width: 160px;
  53. }
  54. }
  55. &-tools {
  56. padding-left: 15px;
  57. }
  58. &-trigger {
  59. display : block;
  60. float : left;
  61. height : 100%;
  62. padding : 0 12px;
  63. height : @layout-header-height;
  64. // padding :~'calc((@{layout-header-height} - 26px) / 2)'12px;
  65. font-size : 16px;
  66. cursor : pointer;
  67. transition : all 0.3s, padding 0s;
  68. }
  69. &-breadcrumb {
  70. float : left;
  71. margin-left: 45px;
  72. color : rgba(0, 0, 0, 0.45);
  73. .active {
  74. color: rgba(0, 0, 0, 0.65);
  75. }
  76. }
  77. .dark {
  78. height: @layout-header-height;
  79. .action {
  80. color: rgba(255, 255, 255, 0.85);
  81. >i {
  82. color: rgba(255, 255, 255, 0.85);
  83. }
  84. &:hover,
  85. &.opened {
  86. background: @primary-color;
  87. }
  88. .ant-badge {
  89. color: rgba(255, 255, 255, 0.85);
  90. }
  91. }
  92. }
  93. .ant-pro-global-header-index-action {
  94. i {
  95. color : rgba(0, 0, 0, .65);
  96. vertical-align: middle;
  97. }
  98. }
  99. }