项目作者: gotbahn

项目描述 :
Start from a scratch. Full CSS reset
高级语言: CSS
项目地址: git://github.com/gotbahn/no-sheet-reset.git
创建时间: 2016-02-01T22:52:38Z
项目社区:https://github.com/gotbahn/no-sheet-reset

开源协议:MIT License

下载


npm
Travis
David
npm
npm

No Sheet Reset

Start from a scratch. Full CSS reset.

Please be aware of what you’re doing and use it wisely.
No Sheet Reset clears almost all user agent styles. Your users would not be able to see tab highlights, validation errors, lists markers, etc. unless you provide it back.

Changes default box-sizing behaviour.

Install

npm

  1. npm i no-sheet-reset --save

raw file

index.css

  1. /**
  2. * https://github.com/godban/no-sheet-reset
  3. * v2.0.0 | 18.03.2018
  4. * License: MIT
  5. */
  6. *,
  7. *::after,
  8. *::before {
  9. box-sizing: inherit;
  10. }
  11. * {
  12. background: transparent;
  13. border: 0;
  14. box-shadow: none;
  15. color: inherit;
  16. font: inherit;
  17. margin: 0;
  18. outline: 0;
  19. padding: 0;
  20. vertical-align: baseline;
  21. }
  22. html {
  23. box-sizing: border-box;
  24. }
  25. li {
  26. list-style-type: none;
  27. }
  28. a {
  29. text-decoration: inherit;
  30. }
  31. table {
  32. border-collapse: collapse;
  33. border-spacing: 0;
  34. }