global.scss 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*
  2. Default style
  3. */
  4. * {
  5. box-sizing: border-box;
  6. }
  7. html {
  8. height: 100%;
  9. font-size: 14px;
  10. }
  11. body {
  12. font-family: var(--font-family);
  13. color: var(--text-color);
  14. background-color: var(--surface-ground);
  15. margin: 0;
  16. padding: 0;
  17. min-height: 100%;
  18. -webkit-font-smoothing: antialiased;
  19. -moz-osx-font-smoothing: grayscale;
  20. }
  21. /*
  22. Typography
  23. */
  24. a {
  25. text-decoration: none;
  26. color: var(--primary-color);
  27. }
  28. h1,
  29. h2,
  30. h3,
  31. h4,
  32. h5,
  33. h6 {
  34. margin: 1.5rem 0 1rem 0;
  35. font-family: inherit;
  36. font-weight: 500;
  37. line-height: 1.2;
  38. color: inherit;
  39. &:first-child {
  40. margin-top: 0;
  41. }
  42. }
  43. h1 {
  44. font-size: 2.5rem;
  45. }
  46. h2 {
  47. font-size: 2rem;
  48. }
  49. h3 {
  50. font-size: 1.75rem;
  51. }
  52. h4 {
  53. font-size: 1.5rem;
  54. }
  55. h5 {
  56. font-size: 1.25rem;
  57. }
  58. h6 {
  59. font-size: 1rem;
  60. }
  61. mark {
  62. background: #fff8e1;
  63. padding: 0.25rem 0.4rem;
  64. border-radius: 12px;
  65. font-family: monospace;
  66. }
  67. blockquote {
  68. margin: 1rem 0;
  69. padding: 0 2rem;
  70. border-left: 4px solid #90a4ae;
  71. }
  72. hr {
  73. border-top: solid var(--surface-border);
  74. border-width: 1px 0 0 0;
  75. margin: 1rem 0;
  76. }
  77. p {
  78. margin: 0 0 1rem 0;
  79. line-height: 1.5;
  80. &:last-child {
  81. margin-bottom: 0;
  82. }
  83. }