pacho_the_python

Untitled

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