index.less 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. .dark {
  12. .action {
  13. &:hover {
  14. background: #252a3d;
  15. }
  16. &:global(.opened) {
  17. background: #252a3d;
  18. }
  19. }
  20. }
  21. .right {
  22. display: flex;
  23. float: right;
  24. height: 48px;
  25. margin-left: auto;
  26. overflow: hidden;
  27. .action {
  28. display: flex;
  29. align-items: center;
  30. height: 48px;
  31. padding: 0 12px;
  32. cursor: pointer;
  33. transition: all 0.3s;
  34. > span {
  35. vertical-align: middle;
  36. }
  37. &:hover {
  38. background: @pro-header-hover-bg;
  39. }
  40. &:global(.opened) {
  41. background: @pro-header-hover-bg;
  42. }
  43. }
  44. .search {
  45. padding: 0 12px;
  46. &:hover {
  47. background: transparent;
  48. }
  49. }
  50. .account {
  51. .avatar {
  52. margin-right: 8px;
  53. color: @primary-color;
  54. vertical-align: top;
  55. background: rgba(255, 255, 255, 0.85);
  56. }
  57. }
  58. .notice {
  59. :global(.ant-tabs-content) {
  60. width: 300px;
  61. }
  62. :global(.ant-badge) {
  63. font-size: 18px;
  64. svg {
  65. width: 0.9em;
  66. }
  67. }
  68. :global(.ant-badge-multiple-words) {
  69. padding: 0 4px;
  70. }
  71. }
  72. }