index.less 2.8 KB

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