_base.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. // Base
  2. //-------------------------------
  3. *,
  4. *::before,
  5. *::after {
  6. box-sizing: border-box;
  7. }
  8. ::selection {
  9. color: var(--bg-color);
  10. background-color: var(--text-color);
  11. }
  12. body {
  13. font-size: $base-font-size;
  14. line-height: $base-line-height;
  15. color: var(--text-color);
  16. background-color: var(--bg-color);
  17. }
  18. .page {
  19. margin-bottom: 8em;
  20. }
  21. .wrapper {
  22. max-width: 48rem;
  23. margin: 4rem auto 4rem auto;
  24. }
  25. @media (max-width: 48rem) {
  26. body {
  27. font-size: $mobile-font-size;
  28. }
  29. .wrapper {
  30. width: 90%;
  31. margin: 3rem auto 2rem auto;
  32. }
  33. }
  34. // Links and paragraphs
  35. //-------------------------------
  36. a, .a {
  37. color: var(--link-color);
  38. text-decoration: none;
  39. position: relative;
  40. border-bottom: 0.18rem solid transparent;
  41. transition: border 0.15s;
  42. &:hover, &:focus {
  43. text-decoration: none;
  44. border-bottom: 0.15em solid;
  45. }
  46. strong {
  47. color: inherit;
  48. }
  49. }
  50. // Headings
  51. //-------------------------------
  52. h1, h2, h3, h4, h5, h6 {
  53. margin-bottom: .5rem;
  54. font-weight: $base-font-weight-bold;
  55. line-height: 1.1;
  56. color: var(--text-color);
  57. text-rendering: optimizeLegibility;
  58. }
  59. h1 {
  60. font-size: 2rem;
  61. }
  62. h2 {
  63. margin-top: 2.5rem;
  64. font-size: 1.5rem;
  65. }
  66. h3 {
  67. margin-top: 1.5rem;
  68. font-size: 1.25rem;
  69. }
  70. h4, h5, h6 {
  71. margin-top: 1rem;
  72. font-size: 1rem;
  73. }
  74. b,
  75. strong {
  76. color: var(--text-color);
  77. }
  78. dt {
  79. font-weight: $base-font-weight-bold;
  80. }
  81. dd {
  82. margin-bottom: .5rem;
  83. }
  84. abbr {
  85. font-size: 85%;
  86. font-weight: $base-font-weight-bold;
  87. color: var(--text-color);
  88. text-transform: uppercase;
  89. &[title] {
  90. cursor: help;
  91. border-bottom: 1px dotted var(--text-color-light);
  92. }
  93. }
  94. strong {
  95. color: var(--text-color);
  96. }
  97. // Lists, blockquotes
  98. //-------------------------------
  99. ul, ol, dl {
  100. margin-top: 0;
  101. margin-bottom: 1.5rem;
  102. }
  103. // HR, IMG
  104. //-------------------------------
  105. hr {
  106. margin-bottom: 4em;
  107. max-width: 30%;
  108. border: 0.1em solid var(--shadow-color);
  109. }
  110. img {
  111. margin: 2.5rem auto;
  112. display: block;
  113. max-width: 100%;
  114. }