Fork of @spf13's port of Mdo's excellent theme to Hugo https://brendan.abolivier.bzh/

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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 images */
  65. .sidebar img.inline {
  66. display: inline;
  67. margin: 0px;
  68. }
  69. /* Sidebar links */
  70. .sidebar a {
  71. color: #fff;
  72. }
  73. /* About section */
  74. .sidebar-about h1 {
  75. color: #fff;
  76. margin-top: 0;
  77. font-family: "Abril Fatface", serif;
  78. font-size: 3.25rem;
  79. }
  80. /* Sidebar nav */
  81. .sidebar-nav {
  82. padding-left: 0;
  83. list-style: none;
  84. }
  85. .sidebar-nav-item {
  86. display: block;
  87. }
  88. a.sidebar-nav-item:hover,
  89. a.sidebar-nav-item:focus {
  90. text-decoration: underline;
  91. }
  92. .sidebar-nav-item.active {
  93. font-weight: bold;
  94. }
  95. /* Sticky sidebar
  96. *
  97. * Add the `sidebar-sticky` class to the sidebar's container to affix it the
  98. * contents to the bottom of the sidebar in tablets and up.
  99. */
  100. @media (min-width: 48em) {
  101. .sidebar-sticky {
  102. position: absolute;
  103. right: 1rem;
  104. bottom: 1rem;
  105. left: 1rem;
  106. }
  107. }
  108. /* Container
  109. *
  110. * Align the contents of the site above the proper threshold with some margin-fu
  111. * with a 25%-wide `.sidebar`.
  112. */
  113. .content {
  114. padding-top: 4rem;
  115. padding-bottom: 4rem;
  116. }
  117. @media (min-width: 48em) {
  118. .content {
  119. max-width: 38rem;
  120. margin-left: 20rem;
  121. margin-right: 2rem;
  122. }
  123. }
  124. @media (min-width: 64em) {
  125. .content {
  126. margin-left: 22rem;
  127. margin-right: 4rem;
  128. }
  129. }
  130. /*
  131. * Reverse layout
  132. *
  133. * Flip the orientation of the page by placing the `.sidebar` on the right.
  134. */
  135. @media (min-width: 48em) {
  136. .layout-reverse .sidebar {
  137. left: auto;
  138. right: 0;
  139. }
  140. .layout-reverse .content {
  141. margin-left: 2rem;
  142. margin-right: 20rem;
  143. }
  144. }
  145. @media (min-width: 64em) {
  146. .layout-reverse .content {
  147. margin-left: 4rem;
  148. margin-right: 22rem;
  149. }
  150. }
  151. /*
  152. * Themes
  153. *
  154. * As of v1.1, Hyde includes optional themes to color the sidebar and links
  155. * within blog posts. To use, add the class of your choosing to the `body`.
  156. */
  157. /* Base16 (http://chriskempson.github.io/base16/#default) */
  158. /* Red */
  159. .theme-base-08 .sidebar {
  160. background-color: #ac4142;
  161. }
  162. .theme-base-08 .content a,
  163. .theme-base-08 .related-posts li a:hover {
  164. color: #ac4142;
  165. }
  166. /* Orange */
  167. .theme-base-09 .sidebar {
  168. background-color: #d28445;
  169. }
  170. .theme-base-09 .content a,
  171. .theme-base-09 .related-posts li a:hover {
  172. color: #d28445;
  173. }
  174. /* Yellow */
  175. .theme-base-0a .sidebar {
  176. background-color: #f4bf75;
  177. }
  178. .theme-base-0a .content a,
  179. .theme-base-0a .related-posts li a:hover {
  180. color: #f4bf75;
  181. }
  182. /* Green */
  183. .theme-base-0b .sidebar {
  184. background-color: #90a959;
  185. }
  186. .theme-base-0b .content a,
  187. .theme-base-0b .related-posts li a:hover {
  188. color: #90a959;
  189. }
  190. /* Cyan */
  191. .theme-base-0c .sidebar {
  192. background-color: #75b5aa;
  193. }
  194. .theme-base-0c .content a,
  195. .theme-base-0c .related-posts li a:hover {
  196. color: #75b5aa;
  197. }
  198. /* Blue */
  199. .theme-base-0d .sidebar {
  200. background-color: #6a9fb5;
  201. }
  202. .theme-base-0d .content a,
  203. .theme-base-0d .related-posts li a:hover {
  204. color: #6a9fb5;
  205. }
  206. /* Magenta */
  207. .theme-base-0e .sidebar {
  208. background-color: #aa759f;
  209. }
  210. .theme-base-0e .content a,
  211. .theme-base-0e .related-posts li a:hover {
  212. color: #aa759f;
  213. }
  214. /* Brown */
  215. .theme-base-0f .sidebar {
  216. background-color: #8f5536;
  217. }
  218. .theme-base-0f .content a,
  219. .theme-base-0f .related-posts li a:hover {
  220. color: #8f5536;
  221. }