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