index.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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, .08);
  7. position: relative;
  8. }
  9. :global {
  10. .ant-layout {
  11. min-height: 100vh;
  12. overflow-x: hidden;
  13. }
  14. }
  15. .logo {
  16. height: 64px;
  17. line-height: 58px;
  18. vertical-align: top;
  19. display: inline-block;
  20. padding: 0 0 0 24px;
  21. cursor: pointer;
  22. font-size: 20px;
  23. img {
  24. display: inline-block;
  25. vertical-align: middle;
  26. }
  27. }
  28. .menu {
  29. :global(.anticon) {
  30. margin-right: 8px;
  31. }
  32. :global(.ant-dropdown-menu-item) {
  33. width: 160px;
  34. }
  35. }
  36. i.trigger {
  37. font-size: 20px;
  38. line-height: 64px;
  39. cursor: pointer;
  40. transition: all .3s, padding 0s;
  41. padding: 0 24px;
  42. &:hover {
  43. background: @primary-1;
  44. }
  45. }
  46. .right {
  47. float: right;
  48. height: 100%;
  49. .action {
  50. cursor: pointer;
  51. padding: 0 12px;
  52. display: inline-block;
  53. transition: all .3s;
  54. height: 100%;
  55. > i {
  56. font-size: 16px;
  57. vertical-align: middle;
  58. color: @text-color;
  59. }
  60. &:hover,
  61. &:global(.ant-popover-open) {
  62. background: @primary-1;
  63. }
  64. }
  65. .search {
  66. padding: 0;
  67. margin: 0 12px;
  68. &:hover {
  69. background: transparent;
  70. }
  71. }
  72. .account {
  73. .avatar {
  74. margin: 20px 8px 20px 0;
  75. color: @primary-color;
  76. background: rgba(255, 255, 255, .85);
  77. vertical-align: middle;
  78. }
  79. }
  80. }
  81. @media only screen and (max-width: @screen-md) {
  82. .header {
  83. :global(.ant-divider-vertical) {
  84. vertical-align: unset;
  85. }
  86. .name {
  87. display: none;
  88. }
  89. i.trigger {
  90. padding: 0 12px;
  91. }
  92. .logo {
  93. padding-right: 12px;
  94. position: relative;
  95. }
  96. .right {
  97. position: absolute;
  98. right: 12px;
  99. top: 0;
  100. background: #fff;
  101. .account {
  102. .avatar {
  103. margin-right: 0;
  104. }
  105. }
  106. }
  107. }
  108. }