index.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. @import './transition/index.less';
  2. @import 'var/index.less';
  3. @import 'public.less';
  4. @import 'mixins.less';
  5. @import 'ant/index.less';
  6. @import './global.less';
  7. *,
  8. *::before,
  9. *::after {
  10. padding: 0;
  11. margin: 0;
  12. box-sizing: border-box;
  13. }
  14. // Background color setting in full screen state in each browser
  15. ::backdrop,
  16. html,
  17. *:fullscreen,
  18. *:-webkit-full-screen,
  19. *:-moz-full-screen {
  20. z-index: 1;
  21. background-color: #fff !important;
  22. }
  23. html,
  24. body {
  25. width: 100%;
  26. height: 100%;
  27. overflow: hidden;
  28. &.color-weak {
  29. filter: invert(80%);
  30. }
  31. &.gray-mode {
  32. filter: grayscale(100%);
  33. filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
  34. }
  35. }
  36. // remove the clear button of a text input control in IE10+
  37. input::-ms-clear,
  38. input::-ms-reveal {
  39. display: none;
  40. }
  41. body {
  42. // font-family: 'Microsoft YaHei,微软雅黑,Arial,sans-serif,Helvetica Neue,Helvetica,Pingfang SC,Hiragino Sans GB';
  43. font-family: '-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol,noto color emoji';
  44. font-style: normal;
  45. font-weight: normal;
  46. line-height: 1.428571429; // 20/14
  47. letter-spacing: normal;
  48. word-spacing: normal;
  49. text-align: left; // Fallback for where `start` is not supported
  50. text-align: start;
  51. text-decoration: none;
  52. text-size-adjust: 100%;
  53. text-shadow: none;
  54. text-transform: none;
  55. word-break: normal;
  56. word-wrap: normal;
  57. white-space: normal;
  58. line-break: auto;
  59. }
  60. h1,
  61. h2,
  62. h3,
  63. h4,
  64. h5,
  65. h6 {
  66. margin-top: 0;
  67. margin-bottom: 0.5em;
  68. font-weight: 500;
  69. color: @heading-color;
  70. }
  71. ul,
  72. ol {
  73. list-style: none;
  74. }
  75. li {
  76. list-style-type: none;
  77. }
  78. img {
  79. vertical-align: top;
  80. border: 0;
  81. }
  82. table {
  83. border-collapse: collapse;
  84. border-spacing: 0;
  85. }
  86. a:focus,
  87. a:active {
  88. outline: none;
  89. }
  90. i,
  91. em {
  92. font-style: normal;
  93. }
  94. button,
  95. div:focus {
  96. outline: none !important;
  97. }
  98. a {
  99. color: @link-color;
  100. text-decoration: none;
  101. cursor: pointer;
  102. background-color: transparent; // remove the gray background on active links in IE 10.
  103. outline: none;
  104. transition: color 0.3s;
  105. -webkit-text-decoration-skip: objects; // remove gaps in links underline in iOS 8+ and Safari 8+.
  106. &:hover {
  107. color: @link-hover-color;
  108. }
  109. &:active {
  110. color: @link-active-color;
  111. }
  112. &:active,
  113. &:hover {
  114. text-decoration: none;
  115. outline: 0;
  116. }
  117. &[disabled] {
  118. color: @disabled-color;
  119. pointer-events: none;
  120. cursor: not-allowed;
  121. }
  122. }
  123. img,
  124. svg,
  125. video,
  126. canvas,
  127. audio,
  128. iframe,
  129. embed,
  130. object {
  131. vertical-align: baseline !important;
  132. }
  133. #app,
  134. #app > div,
  135. .ant-layout {
  136. width: 100%;
  137. height: 100%;
  138. }
  139. .ant-layout {
  140. background: #f0f2f5;
  141. &-content {
  142. position: relative;
  143. overflow: hidden;
  144. }
  145. }