Нет описания

reset.scss 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /**
  2. * Reset specific elements to make them easier to style in other contexts.
  3. */
  4. html,
  5. body,
  6. p,
  7. ol,
  8. ul,
  9. li,
  10. dl,
  11. dt,
  12. dd,
  13. blockquote,
  14. figure,
  15. fieldset,
  16. form,
  17. legend,
  18. textarea,
  19. pre,
  20. iframe,
  21. hr,
  22. h1,
  23. h2,
  24. h3,
  25. h4,
  26. h5,
  27. h6 {
  28. padding: 0;
  29. margin: 0;
  30. -moz-osx-font-smoothing: grayscale;
  31. -webkit-font-smoothing: antialiased;
  32. }
  33. /**
  34. * Apply generic border-box to all elements.
  35. * See:
  36. * https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
  37. */
  38. html {
  39. /* Apply border-box across the entire page. */
  40. box-sizing: border-box;
  41. // HTML resets
  42. font-family: var(--global--font-secondary);
  43. line-height: var(--global--line-height-body);
  44. }
  45. /**
  46. * Relax the definition a bit, to allow components to override it manually.
  47. */
  48. * {
  49. &,
  50. &::before,
  51. &::after {
  52. box-sizing: inherit;
  53. }
  54. }
  55. // body resets
  56. body {
  57. font-size: var(--global--font-size-base);
  58. font-weight: normal;
  59. color: var(--global--color-primary);
  60. text-align: left;
  61. background-color: var(--global--color-background);
  62. }
  63. button {
  64. cursor: pointer;
  65. }