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

hyde.css 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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: 48rem) {
  33. html {
  34. font-size: 16px;
  35. }
  36. }
  37. @media (min-width: 58rem) {
  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: 48rem) {
  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: 48rem) {
  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: 48rem) {
  113. .content {
  114. max-width: 38rem;
  115. margin-left: 20rem;
  116. margin-right: 2rem;
  117. }
  118. }
  119. @media (min-width: 64rem) {
  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: 48rem) {
  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: 64rem) {
  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. }