null.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /* Reset and base styles */
  2. * {
  3. padding: 0;
  4. margin: 0;
  5. border: none;
  6. }
  7. *,
  8. *::before,
  9. *::after {
  10. box-sizing: border-box;
  11. }
  12. :focus,
  13. :active {
  14. /*outline: none;*/
  15. }
  16. a:focus,
  17. a:active {
  18. /* outline: none;*/
  19. }
  20. /* Links */
  21. a,
  22. a:link,
  23. a:visited {
  24. /* color: inherit; */
  25. text-decoration: none;
  26. /* display: inline-block; */
  27. }
  28. a:hover {
  29. /* color: inherit; */
  30. text-decoration: none;
  31. }
  32. /* Common */
  33. aside,
  34. nav,
  35. footer,
  36. header,
  37. section,
  38. main {
  39. display: block;
  40. }
  41. h1,
  42. h2,
  43. h3,
  44. h4,
  45. h5,
  46. h6,
  47. p {
  48. font-size: inherit;
  49. font-weight: inherit;
  50. }
  51. ul,
  52. ul li {
  53. list-style: none;
  54. }
  55. img {
  56. vertical-align: top;
  57. }
  58. img,
  59. svg {
  60. max-width: 100%;
  61. height: auto;
  62. }
  63. address {
  64. font-style: normal;
  65. }
  66. /* Form */
  67. input,
  68. textarea,
  69. button,
  70. select {
  71. font-family: inherit;
  72. font-size: inherit;
  73. color: inherit;
  74. background-color: transparent;
  75. }
  76. input::-ms-clear {
  77. display: none;
  78. }
  79. button,
  80. input[type="submit"] {
  81. display: inline-block;
  82. box-shadow: none;
  83. background-color: transparent;
  84. cursor: pointer;
  85. }
  86. input:focus,
  87. input:active,
  88. button:focus,
  89. button:active {
  90. outline: none;
  91. }
  92. input[type="number"]::-webkit-outer-spin-button,
  93. input[type="number"]::-webkit-inner-spin-button {
  94. -webkit-appearance: none;
  95. }
  96. input[type='number'],
  97. input[type="number"]:hover,
  98. input[type="number"]:focus {
  99. appearance: none;
  100. -moz-appearance: textfield;
  101. }
  102. input[type='color'] {
  103. -webkit-appearance: none;
  104. border: none;
  105. outline: none;
  106. }
  107. input[type="color"]::-webkit-color-swatch-wrapper {
  108. padding: 0;
  109. }
  110. input[type="color"]::-webkit-color-swatch {
  111. border: none;
  112. }
  113. button::-moz-focus-inner {
  114. padding: 0;
  115. border: 0;
  116. }
  117. label {
  118. cursor: pointer;
  119. }
  120. legend {
  121. display: block;
  122. }
  123. html,
  124. body {
  125. line-height: 1;
  126. min-height: 100vh;
  127. width: 100vw;
  128. margin: 0;
  129. }