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

hyde.css 4.3KB

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