global.less 1.2 KB

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