index.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
  2. /* stylelint-disable no-duplicate-selectors */
  3. .ant-layout {
  4. display: flex;
  5. flex: auto;
  6. flex-direction: column;
  7. /* fix firefox can't set height smaller than content on flex item */
  8. min-height: 0;
  9. background: #f0f2f5;
  10. }
  11. .ant-layout,
  12. .ant-layout * {
  13. box-sizing: border-box;
  14. }
  15. .ant-layout.ant-layout-has-sider {
  16. flex-direction: row;
  17. }
  18. .ant-layout.ant-layout-has-sider > .ant-layout,
  19. .ant-layout.ant-layout-has-sider > .ant-layout-content {
  20. width: 0;
  21. }
  22. .ant-layout-header,
  23. .ant-layout-footer {
  24. flex: 0 0 auto;
  25. }
  26. .ant-layout-header {
  27. height: 64px;
  28. padding: 0 50px;
  29. color: rgba(0, 0, 0, 0.85);
  30. line-height: 64px;
  31. background: #001529;
  32. }
  33. .ant-layout-footer {
  34. padding: 24px 50px;
  35. color: rgba(0, 0, 0, 0.85);
  36. font-size: 14px;
  37. background: #f0f2f5;
  38. }
  39. .ant-layout-content {
  40. flex: auto;
  41. /* fix firefox can't set height smaller than content on flex item */
  42. min-height: 0;
  43. }
  44. .ant-layout-sider {
  45. position: relative;
  46. /* fix firefox can't set width smaller than content on flex item */
  47. min-width: 0;
  48. background: #001529;
  49. transition: all 0.2s;
  50. }
  51. .ant-layout-sider-children {
  52. height: 100%;
  53. margin-top: -0.1px;
  54. padding-top: 0.1px;
  55. }
  56. .ant-layout-sider-children .ant-menu.ant-menu-inline-collapsed {
  57. width: auto;
  58. }
  59. .ant-layout-sider-has-trigger {
  60. padding-bottom: 48px;
  61. }
  62. .ant-layout-sider-right {
  63. order: 1;
  64. }
  65. .ant-layout-sider-trigger {
  66. position: fixed;
  67. bottom: 0;
  68. z-index: 1;
  69. height: 48px;
  70. color: #fff;
  71. line-height: 48px;
  72. text-align: center;
  73. background: #002140;
  74. cursor: pointer;
  75. transition: all 0.2s;
  76. }
  77. .ant-layout-sider-zero-width > * {
  78. overflow: hidden;
  79. }
  80. .ant-layout-sider-zero-width-trigger {
  81. position: absolute;
  82. top: 64px;
  83. right: -36px;
  84. z-index: 1;
  85. width: 36px;
  86. height: 42px;
  87. color: #fff;
  88. font-size: 18px;
  89. line-height: 42px;
  90. text-align: center;
  91. background: #001529;
  92. border-radius: 0 2px 2px 0;
  93. cursor: pointer;
  94. transition: background 0.3s ease;
  95. }
  96. .ant-layout-sider-zero-width-trigger::after {
  97. position: absolute;
  98. top: 0;
  99. right: 0;
  100. bottom: 0;
  101. left: 0;
  102. background: transparent;
  103. transition: all 0.3s;
  104. content: '';
  105. }
  106. .ant-layout-sider-zero-width-trigger:hover::after {
  107. background: rgba(255, 255, 255, 0.1);
  108. }
  109. .ant-layout-sider-zero-width-trigger-right {
  110. left: -36px;
  111. border-radius: 2px 0 0 2px;
  112. }
  113. .ant-layout-sider-light {
  114. background: #fff;
  115. }
  116. .ant-layout-sider-light .ant-layout-sider-trigger {
  117. color: rgba(0, 0, 0, 0.85);
  118. background: #fff;
  119. }
  120. .ant-layout-sider-light .ant-layout-sider-zero-width-trigger {
  121. color: rgba(0, 0, 0, 0.85);
  122. background: #fff;
  123. }
  124. .ant-layout-rtl {
  125. direction: rtl;
  126. }
  127. nz-content {
  128. display: block;
  129. }
  130. nz-footer {
  131. display: block;
  132. }
  133. nz-header {
  134. display: block;
  135. }