Advertisement
jaggohi

css reset 9/2022

Sep 20th, 2022
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1.  
  2. /* Box sizing rules */
  3. *,
  4. *::before,
  5. *::after {
  6. box-sizing: border-box;
  7. }
  8.  
  9. /* Remove default margin */
  10. * {
  11. margin: 0;
  12. padding: 0;
  13. font: inherit;
  14. }
  15.  
  16. /* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
  17. ul[role='list'],
  18. ol[role='list'] {
  19. list-style: none;
  20. }
  21.  
  22. /* Set core root defaults */
  23. html:focus-within {
  24. scroll-behavior: smooth;
  25. }
  26.  
  27. html,
  28. body {
  29. height: 100%;
  30. }
  31.  
  32. /* Set core body defaults */
  33. body {
  34. text-rendering: optimizeSpeed;
  35. line-height: 1.5;
  36. }
  37.  
  38. /* A elements that don't have a class get default styles */
  39. a:not([class]) {
  40. text-decoration-skip-ink: auto;
  41. }
  42.  
  43. /* Make images easier to work with */
  44. img,
  45. picture,
  46. svg {
  47. max-width: 100%;
  48. display: block;
  49. }
  50.  
  51.  
  52.  
  53. /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
  54. @media (prefers-reduced-motion: reduce) {
  55. html:focus-within {
  56. scroll-behavior: auto;
  57. }
  58.  
  59. *,
  60. *::before,
  61. *::after {
  62. animation-duration: 0.01ms !important;
  63. animation-iteration-count: 1 !important;
  64. transition-duration: 0.01ms !important;
  65. scroll-behavior: auto !important;
  66. }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement