index.less 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @import '~antd/es/style/themes/default.less';
  2. @pro-header-hover-bg: rgba(0, 0, 0, 0.025);
  3. .menu {
  4. :global(.anticon) {
  5. margin-right: 8px;
  6. }
  7. :global(.ant-dropdown-menu-item) {
  8. min-width: 160px;
  9. }
  10. }
  11. .right {
  12. display: flex;
  13. float: right;
  14. height: 48px;
  15. margin-left: auto;
  16. overflow: hidden;
  17. .action {
  18. display: flex;
  19. align-items: center;
  20. height: 48px;
  21. padding: 0 12px;
  22. cursor: pointer;
  23. transition: all 0.3s;
  24. > span {
  25. vertical-align: middle;
  26. }
  27. &:hover {
  28. background: @pro-header-hover-bg;
  29. }
  30. &:global(.opened) {
  31. background: @pro-header-hover-bg;
  32. }
  33. }
  34. .search {
  35. padding: 0 12px;
  36. &:hover {
  37. background: transparent;
  38. }
  39. }
  40. .account {
  41. .avatar {
  42. margin-right: 8px;
  43. color: @primary-color;
  44. vertical-align: top;
  45. background: rgba(255, 255, 255, 0.85);
  46. }
  47. }
  48. }
  49. .dark {
  50. .action {
  51. &:hover {
  52. background: #252a3d;
  53. }
  54. &:global(.opened) {
  55. background: #252a3d;
  56. }
  57. }
  58. }
  59. @media only screen and (max-width: @screen-md) {
  60. :global(.ant-divider-vertical) {
  61. vertical-align: unset;
  62. }
  63. .name {
  64. display: none;
  65. }
  66. .right {
  67. position: absolute;
  68. top: 0;
  69. right: 12px;
  70. .account {
  71. .avatar {
  72. margin-right: 3px;
  73. }
  74. }
  75. .search {
  76. display: none;
  77. }
  78. }
  79. }