1
0

index.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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-style: normal;
  35. font-weight: normal;
  36. line-height: 1.428571429; // 20/14
  37. letter-spacing: normal;
  38. word-spacing: normal;
  39. text-align: left; // Fallback for where `start` is not supported
  40. text-align: start;
  41. text-decoration: none;
  42. text-size-adjust: 100%;
  43. text-shadow: none;
  44. text-transform: none;
  45. word-break: normal;
  46. word-wrap: normal;
  47. white-space: normal;
  48. line-break: auto;
  49. }
  50. h1,
  51. h2,
  52. h3,
  53. h4,
  54. h5,
  55. h6 {
  56. margin-top: 0;
  57. margin-bottom: 0.5em;
  58. font-weight: 500;
  59. color: @heading-color;
  60. }
  61. ul,
  62. ol {
  63. list-style: none;
  64. }
  65. li {
  66. list-style-type: none;
  67. }
  68. img {
  69. vertical-align: top;
  70. border: 0;
  71. }
  72. table {
  73. border-collapse: collapse;
  74. border-spacing: 0;
  75. }
  76. a:focus,
  77. a:active {
  78. outline: none;
  79. }
  80. i,
  81. em {
  82. font-style: normal;
  83. }
  84. button,
  85. div:focus {
  86. outline: none !important;
  87. }
  88. a {
  89. color: @link-color;
  90. text-decoration: none;
  91. cursor: pointer;
  92. background-color: transparent; // remove the gray background on active links in IE 10.
  93. outline: none;
  94. transition: color 0.3s;
  95. -webkit-text-decoration-skip: objects; // remove gaps in links underline in iOS 8+ and Safari 8+.
  96. &:hover {
  97. color: @link-hover-color;
  98. }
  99. &:active {
  100. color: @link-active-color;
  101. }
  102. &:active,
  103. &:hover {
  104. text-decoration: none;
  105. outline: 0;
  106. }
  107. &[disabled] {
  108. color: @disabled-color;
  109. pointer-events: none;
  110. cursor: not-allowed;
  111. }
  112. }
  113. img,
  114. svg,
  115. video,
  116. canvas,
  117. audio,
  118. iframe,
  119. embed,
  120. object {
  121. vertical-align: baseline !important;
  122. }
  123. #app,
  124. #app > div,
  125. .ant-layout {
  126. width: 100%;
  127. height: 100%;
  128. }
  129. .ant-layout {
  130. background: #f1f1f6;
  131. &-content {
  132. position: relative;
  133. overflow: hidden;
  134. }
  135. }