global.less 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // Reset default browser styles
  2. * {
  3. box-sizing: border-box;
  4. }
  5. body,
  6. #root {
  7. min-height: 100vh;
  8. }
  9. html,
  10. body,
  11. ul,
  12. ol,
  13. li,
  14. dl,
  15. dt,
  16. dd,
  17. h1,
  18. h2,
  19. h3,
  20. h4,
  21. h5,
  22. h6,
  23. pre,
  24. code,
  25. form,
  26. fieldset,
  27. legend,
  28. input,
  29. textarea,
  30. p,
  31. blockquote,
  32. th,
  33. td,
  34. hr,
  35. button {
  36. margin: 0;
  37. padding: 0;
  38. font-size: 100%;
  39. font-family: inherit;
  40. vertical-align: baseline;
  41. border: 0 none;
  42. color: inherit;
  43. background: transparent;
  44. box-sizing: border-box;
  45. -webkit-font-smoothing: antialiased;
  46. -moz-osx-font-smoothing: grayscale;
  47. }
  48. // Remove list styles on ul, ol
  49. ul,
  50. ol {
  51. list-style: none;
  52. }
  53. // Remove link styles
  54. a {
  55. text-decoration: none;
  56. color: inherit;
  57. }
  58. // Remove table border
  59. table {
  60. border-collapse: collapse;
  61. border-spacing: 0;
  62. }
  63. // Remove input styling for IE
  64. input[type='text'],
  65. input[type='password'],
  66. input[type='number'],
  67. textarea {
  68. appearance: none;
  69. -webkit-appearance: none;
  70. -moz-appearance: none;
  71. // border-radius: 0;
  72. }
  73. // Remove button styling for IE
  74. button,
  75. input[type='submit'],
  76. input[type='reset'] {
  77. appearance: none;
  78. -webkit-appearance: none;
  79. -moz-appearance: none;
  80. border: 0 none;
  81. background: none;
  82. padding: 0;
  83. cursor: pointer;
  84. }
  85. // Remove outline on focus
  86. *:focus {
  87. outline: none;
  88. }