_core.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. *,
  2. *::before,
  3. *::after {
  4. margin: 0;
  5. border: 0;
  6. padding: 0;
  7. outline: 0;
  8. box-sizing: border-box;
  9. }
  10. html {
  11. scroll-behavior: smooth;
  12. -webkit-overflow-scrolling: touch;
  13. -webkit-tap-highlight-color: transparent;
  14. height: 100%;
  15. scroll-padding-top: 5rem;
  16. overflow-y: scroll;
  17. @include css-variables;
  18. }
  19. body {
  20. text-rendering: optimizeSpeed;
  21. color: $color-text;
  22. font-family: $font-family-base;
  23. font-size: $font-size-base;
  24. line-height: $line-height-base;
  25. background: $color-white;
  26. font-feature-settings: 'cv03', 'cv04', 'cv11';
  27. -webkit-font-smoothing: antialiased;
  28. -moz-osx-font-smoothing: grayscale;
  29. --grid-gap: #{$grid-padding * .5};
  30. @include media-breakpoint-up(md) {
  31. --grid-gap: #{$grid-padding}
  32. }
  33. }
  34. @media (prefers-reduced-motion: reduce) {
  35. * {
  36. animation-duration: 0.01ms;
  37. animation-iteration-count: 1;
  38. transition-duration: 0.01ms;
  39. scroll-behavior: auto;
  40. }
  41. }
  42. .body-gradient {
  43. background: linear-gradient(180deg, $color-gray 12%, rgba($color-white, .08) 99%) repeat-x top center/100% 80vh
  44. }
  45. .scrollbar {
  46. @include scrollbar;
  47. }