You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
2.0 KiB

  1. /*
  2. consider one of these?
  3. https://meyerweb.com/eric/tools/css/reset/
  4. https://ageek.dev/normalize-css
  5. https://github.com/h5bp/html5-boilerplate
  6. */
  7. :root {
  8. --content-width: 650px;
  9. --footer-height: 22px;
  10. /* Base colors */
  11. --color-black: black;
  12. --color-white: white;
  13. --color-navy: #1F2E4C;
  14. /* Primary colors */
  15. --color-gray: #707372;
  16. --color-red: #EB5757;
  17. --color-purple: #90489C;
  18. /* Accent colors */
  19. --color-yellow: #F2C94C;
  20. --color-light-orange: #F7E6CA;
  21. --color-light-green: #98E0B0;
  22. }
  23. * {
  24. box-sizing: border-box;
  25. }
  26. body {
  27. font-family: 'Quicksand', sans-serif;
  28. font-weight: 500;
  29. font-size: 16px;
  30. background: var(--color-navy);
  31. color: var(--color-white);
  32. margin: 0;
  33. }
  34. h2 {
  35. padding-top: 24px;
  36. }
  37. #page-container {
  38. position: relative;
  39. min-height: 100vh;
  40. }
  41. #content-wrap {
  42. padding-bottom: var(--footer-height);
  43. }
  44. a {
  45. color: var(--color-light-orange);
  46. font-weight: 700;
  47. }
  48. a.undecorated {
  49. color: inherit;
  50. text-decoration: none;
  51. font-weight: inherit;
  52. }
  53. img {
  54. max-width: 100%;
  55. margin-right: 8px;
  56. vertical-align: middle;
  57. }
  58. code {
  59. font-family: 'Fira Mono', monospace;
  60. color: var(--color-light-green);
  61. font-size: 13px;
  62. }
  63. pre {
  64. overflow: auto;
  65. font-family: 'Fira Mono', monospace;
  66. padding: .8em;
  67. font-size: 13px;
  68. }
  69. strong {
  70. color: var(--color-yellow);
  71. }
  72. blockquote {
  73. background: #272822;
  74. border-radius: 8px;
  75. padding-left: 16px;
  76. padding-right: 16px;
  77. padding-top: 1px;
  78. padding-bottom: 1px;
  79. margin-left: 8px;
  80. margin-right: 8px;
  81. }
  82. div.codehilite {
  83. border-radius: 8px;
  84. }
  85. #header {
  86. background: var(--color-red);
  87. font-size: 24px;
  88. font-weight: 700;
  89. }
  90. #header img {
  91. vertical-align: baseline;
  92. width: 20px;
  93. height: 20px;
  94. margin-left: 4px;
  95. }
  96. #footer {
  97. background: var(--color-purple);
  98. position: absolute;
  99. bottom: 0;
  100. width: 100%;
  101. height: var(--footer-height);
  102. }
  103. div.content {
  104. max-width: var(--content-width);
  105. margin: auto;
  106. padding-left: 2px;
  107. padding-right: 2px;
  108. }
  109. @media (min-width: var(--content-width)) {
  110. div.content {
  111. width: var(--content-width);
  112. }
  113. }