index.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. @import '~antd/lib/style/themes/default.less';
  2. .header {
  3. height: 64px;
  4. padding: 0 12px 0 0;
  5. background: #fff;
  6. box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  7. position: relative;
  8. }
  9. .logo {
  10. height: 64px;
  11. line-height: 58px;
  12. vertical-align: top;
  13. display: inline-block;
  14. padding: 0 0 0 24px;
  15. cursor: pointer;
  16. font-size: 20px;
  17. img {
  18. display: inline-block;
  19. vertical-align: middle;
  20. }
  21. }
  22. .menu {
  23. :global(.anticon) {
  24. margin-right: 8px;
  25. }
  26. :global(.ant-dropdown-menu-item) {
  27. width: 160px;
  28. }
  29. }
  30. i.trigger {
  31. font-size: 20px;
  32. line-height: 64px;
  33. cursor: pointer;
  34. transition: all 0.3s, padding 0s;
  35. padding: 24px;
  36. &:hover {
  37. background: @primary-1;
  38. }
  39. }
  40. .right {
  41. float: right;
  42. height: 100%;
  43. .action {
  44. cursor: pointer;
  45. padding: 0 12px;
  46. display: inline-block;
  47. transition: all 0.3s;
  48. height: 100%;
  49. > i {
  50. font-size: 16px;
  51. vertical-align: middle;
  52. color: @text-color;
  53. }
  54. &:hover {
  55. background: @primary-1;
  56. }
  57. :global(&.ant-popover-open) {
  58. background: @primary-1;
  59. }
  60. }
  61. .search {
  62. padding: 0 12px;
  63. &:hover {
  64. background: transparent;
  65. }
  66. }
  67. .account {
  68. .avatar {
  69. margin: 20px 8px 20px 0;
  70. color: @primary-color;
  71. background: rgba(255, 255, 255, 0.85);
  72. vertical-align: middle;
  73. }
  74. }
  75. }
  76. .dark {
  77. height: 64px;
  78. .action {
  79. color: rgba(255, 255, 255, 0.85);
  80. > i {
  81. color: rgba(255, 255, 255, 0.85);
  82. }
  83. &:hover,
  84. &:global(.ant-popover-open) {
  85. background: @primary-color;
  86. }
  87. :global(.ant-badge) {
  88. color: rgba(255, 255, 255, 0.85);
  89. }
  90. }
  91. }
  92. @media only screen and (max-width: @screen-md) {
  93. .header {
  94. :global(.ant-divider-vertical) {
  95. vertical-align: unset;
  96. }
  97. .name {
  98. display: none;
  99. }
  100. i.trigger {
  101. padding: 24px 12px;
  102. }
  103. .logo {
  104. padding-right: 12px;
  105. position: relative;
  106. }
  107. .right {
  108. position: absolute;
  109. right: 12px;
  110. top: 0;
  111. background: #fff;
  112. .account {
  113. .avatar {
  114. margin-right: 0;
  115. }
  116. }
  117. }
  118. }
  119. }