1
0

index.less 2.5 KB

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