index.css 2.8 KB

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