reset.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. @import 'var/link';
  2. @import './mixins/reset-text.less';
  3. @import 'color/index';
  4. .reset() {
  5. html,
  6. body {
  7. width: 100%;
  8. height: 100%;
  9. // overflow: hidden;
  10. &.color-weak {
  11. filter: invert(80%);
  12. }
  13. &.gray-mode {
  14. filter: grayscale(100%);
  15. filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
  16. }
  17. }
  18. // remove the clear button of a text input control in IE10+
  19. input::-ms-clear,
  20. input::-ms-reveal {
  21. display: none;
  22. }
  23. body {
  24. // 重置文本样式
  25. .reset-text();
  26. // font-size: @--base-font-size;
  27. // color: @--norm-text-color;
  28. // background-color: @--norm-background-dark-color !important;
  29. }
  30. h1,
  31. h2,
  32. h3,
  33. h4,
  34. h5,
  35. h6 {
  36. margin-top: 0;
  37. margin-bottom: 0.5em;
  38. font-weight: 500;
  39. color: @heading-color;
  40. }
  41. ul,
  42. ol {
  43. list-style: none;
  44. }
  45. li {
  46. list-style-type: none;
  47. }
  48. img {
  49. vertical-align: top;
  50. border: 0;
  51. }
  52. table {
  53. border-collapse: collapse;
  54. border-spacing: 0;
  55. }
  56. a:focus,
  57. a:active {
  58. outline: none;
  59. }
  60. i,
  61. em {
  62. font-style: normal;
  63. }
  64. div:focus {
  65. outline: none;
  66. }
  67. a {
  68. color: @link-color;
  69. text-decoration: @link-decoration;
  70. cursor: pointer;
  71. background-color: transparent; // remove the gray background on active links in IE 10.
  72. outline: none;
  73. transition: color 0.3s;
  74. -webkit-text-decoration-skip: objects; // remove gaps in links underline in iOS 8+ and Safari 8+.
  75. &:hover {
  76. color: @link-hover-color;
  77. }
  78. &:active {
  79. color: @link-active-color;
  80. }
  81. &:active,
  82. &:hover {
  83. text-decoration: @link-hover-decoration;
  84. outline: 0;
  85. }
  86. &[disabled] {
  87. color: @disabled-color;
  88. pointer-events: none;
  89. cursor: not-allowed;
  90. }
  91. }
  92. }
  93. .reset-layout() {
  94. .ant-layout {
  95. background: #f1f1f6 !important;
  96. &-content {
  97. position: relative;
  98. overflow: hidden;
  99. }
  100. }
  101. }