_base.sass 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. *
  2. box-sizing: border-box
  3. -webkit-appearance: none
  4. margin: 0
  5. padding: 0
  6. body, html
  7. scroll-behavior: smooth
  8. -webkit-text-size-adjust: 100%
  9. font-kerning: normal
  10. -webkit-font-feature-settings: "kern" 1
  11. text-rendering: optimizeLegibility
  12. text-rendering: geometricPrecision
  13. -webkit-text-size-adjust: 100%
  14. font-size: 100%
  15. &::-webkit-scrollbar-corner
  16. background-color: transparent
  17. body
  18. font-family: var(--font)
  19. background: var(--choice-bg)
  20. color: var(--text)
  21. font-size: 1.25rem
  22. line-height: 1.5
  23. // max-width: 1100px
  24. margin: 0 auto
  25. position: relative
  26. display: flex
  27. flex-direction: column
  28. justify-content: space-between
  29. min-height: 100vh
  30. font-kerning: normal
  31. -webkit-font-smoothing: antialiased
  32. -moz-osx-font-smoothing: grayscale
  33. a
  34. text-decoration: none
  35. color: inherit
  36. -ms-word-break: break-all
  37. word-break: break-all
  38. word-break: break-word
  39. -webkit-hyphens: auto
  40. -moz-hyphens: auto
  41. hyphens: auto
  42. &:focus, &:focus-within
  43. outline: none !important
  44. h1,h2,h3,h4,h5
  45. font-family: inherit
  46. font-weight: 300
  47. padding: 5px 0
  48. margin: 15px 0
  49. color: var(--header-text)
  50. line-height: 1.35
  51. &:hover .link
  52. opacity: 1
  53. h1
  54. font-size: 200%
  55. font-weight: 400
  56. h2
  57. font-size: 175%
  58. h3
  59. font-size: 150%
  60. h4
  61. font-size: 125%
  62. h5
  63. font-size: 120%
  64. h6
  65. font-size: 100%
  66. img, svg
  67. max-width: 100%
  68. vertical-align: middle
  69. img
  70. height: auto
  71. margin: 1rem auto
  72. padding: 0
  73. &:focus, &:focus-within
  74. outline: none !important
  75. border: none !important
  76. main
  77. flex: 1
  78. ul
  79. list-style: none
  80. -webkit-padding-start: 0
  81. -moz-padding-start: 0
  82. b, strong, em
  83. font-weight: 500
  84. hr
  85. border: none
  86. padding: 1px
  87. background: darken($haze, 7.5%)
  88. opacity: 0.5
  89. margin: 1rem 0
  90. @media (prefers-color-scheme: dark)
  91. background: var(--theme)
  92. aside
  93. h3
  94. position: relative
  95. margin: 0 !important
  96. ul
  97. list-style: initial
  98. padding-left: 1rem
  99. li
  100. padding: 0.25rem 0
  101. table
  102. border-radius: 0.5rem
  103. width: 100%
  104. border-collapse: collapse
  105. margin-bottom: 1.5rem
  106. &:not(.ln-table) t
  107. background: var(--table-bg)
  108. background: none;
  109. width: fit-content;
  110. margin-left: auto;
  111. margin-right: auto;
  112. table-layout: fixed;
  113. display: block;
  114. overflow-x: auto;
  115. td, th
  116. padding: 0.5rem 1rem
  117. border: 1px solid var(--table-border)
  118. td,
  119. th
  120. padding: 0.5rem 1rem
  121. font-weight: 400
  122. &:not(:first-child)
  123. padding-left: 1.5rem
  124. th
  125. font-weight: 700
  126. background-color: var(--table-haze);
  127. tbody
  128. padding: 0
  129. tr
  130. &:nth-child(even)
  131. background-color: var(--table-haze)
  132. &:nth-child(odd)
  133. background-color: var(--table-bg)
  134. p
  135. padding: 0.5rem 0