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.

250 lines
4.2 KiB

  1. /*
  2. * __ __
  3. * /\ \ /\ \
  4. * \ \ \___ __ __ \_\ \ __
  5. * \ \ _ `\/\ \/\ \ /'_` \ /'__`\
  6. * \ \ \ \ \ \ \_\ \/\ \_\ \/\ __/
  7. * \ \_\ \_\/`____ \ \___,_\ \____\
  8. * \/_/\/_/`/___/> \/__,_ /\/____/
  9. * /\___/
  10. * \/__/
  11. *
  12. * Designed, built, and released under MIT license by @mdo. Learn more at
  13. * https://github.com/poole/hyde.
  14. */
  15. /*
  16. * Contents
  17. *
  18. * Global resets
  19. * Sidebar
  20. * Container
  21. * Reverse layout
  22. * Themes
  23. */
  24. /*
  25. * Global resets
  26. *
  27. * Update the foundational and global aspects of the page.
  28. */
  29. html {
  30. font-family: "PT Sans", Helvetica, Arial, sans-serif;
  31. }
  32. @media (min-width: 48em) {
  33. html {
  34. font-size: 16px;
  35. }
  36. }
  37. @media (min-width: 58em) {
  38. html {
  39. font-size: 20px;
  40. }
  41. }
  42. /*
  43. * Sidebar
  44. *
  45. * Flexible banner for housing site name, intro, and "footer" content. Starts
  46. * out above content in mobile and later moves to the side with wider viewports.
  47. */
  48. .sidebar {
  49. text-align: center;
  50. padding: 2rem 1rem;
  51. color: rgba(255,255,255,.5);
  52. background-color: #202020;
  53. }
  54. @media (min-width: 48em) {
  55. .sidebar {
  56. position: fixed;
  57. top: 0;
  58. left: 0;
  59. bottom: 0;
  60. width: 18rem;
  61. text-align: left;
  62. }
  63. }
  64. /* Sidebar links */
  65. .sidebar a {
  66. color: #fff;
  67. }
  68. /* About section */
  69. .sidebar-about h1 {
  70. color: #fff;
  71. margin-top: 0;
  72. font-family: "Abril Fatface", serif;
  73. font-size: 3.25rem;
  74. }
  75. /* Sidebar nav */
  76. .sidebar-nav {
  77. padding-left: 0;
  78. list-style: none;
  79. }
  80. .sidebar-nav-item {
  81. display: block;
  82. }
  83. a.sidebar-nav-item:hover,
  84. a.sidebar-nav-item:focus {
  85. text-decoration: underline;
  86. }
  87. .sidebar-nav-item.active {
  88. font-weight: bold;
  89. }
  90. /* Sticky sidebar
  91. *
  92. * Add the `sidebar-sticky` class to the sidebar's container to affix it the
  93. * contents to the bottom of the sidebar in tablets and up.
  94. */
  95. @media (min-width: 48em) {
  96. .sidebar-sticky {
  97. position: absolute;
  98. right: 1rem;
  99. bottom: 1rem;
  100. left: 1rem;
  101. }
  102. }
  103. /* Container
  104. *
  105. * Align the contents of the site above the proper threshold with some margin-fu
  106. * with a 25%-wide `.sidebar`.
  107. */
  108. .content {
  109. padding-top: 4rem;
  110. padding-bottom: 4rem;
  111. }
  112. @media (min-width: 48em) {
  113. .content {
  114. max-width: 38rem;
  115. margin-left: 20rem;
  116. margin-right: 2rem;
  117. }
  118. }
  119. @media (min-width: 64em) {
  120. .content {
  121. margin-left: 22rem;
  122. margin-right: 4rem;
  123. }
  124. }
  125. /*
  126. * Reverse layout
  127. *
  128. * Flip the orientation of the page by placing the `.sidebar` on the right.
  129. */
  130. @media (min-width: 48em) {
  131. .layout-reverse .sidebar {
  132. left: auto;
  133. right: 0;
  134. }
  135. .layout-reverse .content {
  136. margin-left: 2rem;
  137. margin-right: 20rem;
  138. }
  139. }
  140. @media (min-width: 64em) {
  141. .layout-reverse .content {
  142. margin-left: 4rem;
  143. margin-right: 22rem;
  144. }
  145. }
  146. /*
  147. * Themes
  148. *
  149. * As of v1.1, Hyde includes optional themes to color the sidebar and links
  150. * within blog posts. To use, add the class of your choosing to the `body`.
  151. */
  152. /* Base16 (http://chriskempson.github.io/base16/#default) */
  153. /* Red */
  154. .theme-base-08 .sidebar {
  155. background-color: #ac4142;
  156. }
  157. .theme-base-08 .content a,
  158. .theme-base-08 .related-posts li a:hover {
  159. color: #ac4142;
  160. }
  161. /* Orange */
  162. .theme-base-09 .sidebar {
  163. background-color: #d28445;
  164. }
  165. .theme-base-09 .content a,
  166. .theme-base-09 .related-posts li a:hover {
  167. color: #d28445;
  168. }
  169. /* Yellow */
  170. .theme-base-0a .sidebar {
  171. background-color: #f4bf75;
  172. }
  173. .theme-base-0a .content a,
  174. .theme-base-0a .related-posts li a:hover {
  175. color: #f4bf75;
  176. }
  177. /* Green */
  178. .theme-base-0b .sidebar {
  179. background-color: #90a959;
  180. }
  181. .theme-base-0b .content a,
  182. .theme-base-0b .related-posts li a:hover {
  183. color: #90a959;
  184. }
  185. /* Cyan */
  186. .theme-base-0c .sidebar {
  187. background-color: #75b5aa;
  188. }
  189. .theme-base-0c .content a,
  190. .theme-base-0c .related-posts li a:hover {
  191. color: #75b5aa;
  192. }
  193. /* Blue */
  194. .theme-base-0d .sidebar {
  195. background-color: #6a9fb5;
  196. }
  197. .theme-base-0d .content a,
  198. .theme-base-0d .related-posts li a:hover {
  199. color: #6a9fb5;
  200. }
  201. /* Magenta */
  202. .theme-base-0e .sidebar {
  203. background-color: #aa759f;
  204. }
  205. .theme-base-0e .content a,
  206. .theme-base-0e .related-posts li a:hover {
  207. color: #aa759f;
  208. }
  209. /* Brown */
  210. .theme-base-0f .sidebar {
  211. background-color: #8f5536;
  212. }
  213. .theme-base-0f .content a,
  214. .theme-base-0f .related-posts li a:hover {
  215. color: #8f5536;
  216. }