BasicLayout.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. @import "~antd/lib/style/themes/default.less";
  2. .header {
  3. padding: 0 12px 0 0;
  4. background: #fff;
  5. box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  6. position: relative;
  7. }
  8. .logo {
  9. height: 64px;
  10. position: relative;
  11. line-height: 64px;
  12. padding-left: 24px;
  13. transition: all .3s;
  14. background: #002140;
  15. overflow: hidden;
  16. img {
  17. display: inline-block;
  18. vertical-align: middle;
  19. height: 32px;
  20. }
  21. h1 {
  22. color: #fff;
  23. display: inline-block;
  24. vertical-align: middle;
  25. font-size: 20px;
  26. margin: 0 0 0 12px;
  27. font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  28. font-weight: 600;
  29. }
  30. }
  31. :global(.ant-layout-sider-collapsed) .logo {
  32. padding-left: 24px;
  33. > a {
  34. width: 32px;
  35. }
  36. }
  37. .trigger {
  38. font-size: 20px;
  39. line-height: 64px;
  40. cursor: pointer;
  41. transition: all .3s;
  42. padding: 0 24px;
  43. &:hover {
  44. background: @primary-1;
  45. }
  46. }
  47. @media screen and (max-width: @screen-xs) {
  48. .trigger {
  49. display: none;
  50. }
  51. }
  52. .right {
  53. float: right;
  54. height: 100%;
  55. .action {
  56. cursor: pointer;
  57. padding: 0 12px;
  58. display: inline-block;
  59. transition: all .3s;
  60. height: 100%;
  61. > i {
  62. font-size: 16px;
  63. vertical-align: middle;
  64. }
  65. &:global(.ant-popover-open),
  66. &:hover {
  67. background: @primary-1;
  68. }
  69. }
  70. .search {
  71. padding: 0;
  72. margin: 0 12px;
  73. &:hover {
  74. background: transparent;
  75. }
  76. }
  77. .account {
  78. .avatar {
  79. margin: 20px 8px 20px 0;
  80. color: @primary-color;
  81. background: rgba(255, 255, 255, .85);
  82. vertical-align: middle;
  83. }
  84. }
  85. }
  86. .menu {
  87. :global(.anticon) {
  88. margin-right: 8px;
  89. }
  90. :global(.ant-dropdown-menu-item) {
  91. width: 160px;
  92. }
  93. }
  94. :global {
  95. .ant-layout {
  96. overflow-x: hidden;
  97. }
  98. }
  99. .sider {
  100. min-height: 100vh;
  101. box-shadow: 2px 0 6px rgba(0, 21, 41, .35);
  102. position: relative;
  103. z-index: 10;
  104. }