reset.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. &.color-weak {
  10. filter: invert(80%);
  11. }
  12. &.gray-mode {
  13. filter: grayscale(100%);
  14. filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
  15. }
  16. }
  17. input::-ms-clear,
  18. input::-ms-reveal {
  19. display: none;
  20. }
  21. body {
  22. .reset-text();
  23. }
  24. h1,
  25. h2,
  26. h3,
  27. h4,
  28. h5,
  29. h6 {
  30. margin-top: 0;
  31. margin-bottom: 0.5em;
  32. font-weight: 500;
  33. color: @heading-color;
  34. }
  35. ul,
  36. ol {
  37. list-style: none;
  38. }
  39. li {
  40. list-style-type: none;
  41. }
  42. img {
  43. vertical-align: top;
  44. border: 0;
  45. }
  46. table {
  47. border-collapse: collapse;
  48. border-spacing: 0;
  49. }
  50. a:focus,
  51. a:active {
  52. outline: none;
  53. }
  54. i,
  55. em {
  56. font-style: normal;
  57. }
  58. div:focus {
  59. outline: none;
  60. }
  61. a {
  62. color: @link-color;
  63. text-decoration: @link-decoration;
  64. cursor: pointer;
  65. background-color: transparent; // remove the gray background on active links in IE 10.
  66. outline: none;
  67. transition: color 0.3s;
  68. -webkit-text-decoration-skip: objects; // remove gaps in links underline in iOS 8+ and Safari 8+.
  69. &:hover {
  70. color: @link-hover-color;
  71. }
  72. &:active {
  73. color: @link-active-color;
  74. }
  75. &:active,
  76. &:hover {
  77. text-decoration: @link-hover-decoration;
  78. outline: 0;
  79. }
  80. &[disabled] {
  81. color: @disabled-color;
  82. pointer-events: none;
  83. cursor: not-allowed;
  84. }
  85. }
  86. }