index.less 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. @import '~antd/lib/style/themes/default.less';
  2. .head {
  3. width: 100%;
  4. transition: background 0.3s, width 0.2s;
  5. height: @layout-header-height;
  6. box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  7. position: relative;
  8. :global {
  9. .ant-menu-submenu.ant-menu-submenu-horizontal {
  10. line-height: @layout-header-height;
  11. height: 100%;
  12. .ant-menu-submenu-title {
  13. height: 100%;
  14. }
  15. }
  16. }
  17. &.light {
  18. background-color: #fff;
  19. }
  20. .main {
  21. display: flex;
  22. height: @layout-header-height;
  23. padding-left: 24px;
  24. &.wide {
  25. max-width: 1200px;
  26. margin: auto;
  27. padding-left: 0;
  28. }
  29. .left {
  30. flex: 1;
  31. display: flex;
  32. }
  33. .right {
  34. width: 324px;
  35. }
  36. }
  37. }
  38. .logo {
  39. width: 165px;
  40. height: @layout-header-height;
  41. position: relative;
  42. line-height: @layout-header-height;
  43. transition: all 0.3s;
  44. overflow: hidden;
  45. img {
  46. display: inline-block;
  47. vertical-align: middle;
  48. height: 32px;
  49. }
  50. h1 {
  51. color: #fff;
  52. display: inline-block;
  53. vertical-align: top;
  54. font-size: 16px;
  55. margin: 0 0 0 12px;
  56. font-weight: 400;
  57. }
  58. }
  59. .light {
  60. h1 {
  61. color: #002140;
  62. }
  63. }
  64. .menu {
  65. border: none;
  66. height: @layout-header-height;
  67. line-height: @layout-header-height;
  68. }