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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  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/poole.
  14. */
  15. /*
  16. * Contents
  17. *
  18. * Body resets
  19. * Custom type
  20. * Messages
  21. * Container
  22. * Masthead
  23. * Posts and pages
  24. * Pagination
  25. * Reverse layout
  26. * Themes
  27. */
  28. /*
  29. * Body resets
  30. *
  31. * Update the foundational and global aspects of the page.
  32. */
  33. * {
  34. -webkit-box-sizing: border-box;
  35. -moz-box-sizing: border-box;
  36. box-sizing: border-box;
  37. }
  38. html,
  39. body {
  40. margin: 0;
  41. padding: 0;
  42. }
  43. html {
  44. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  45. font-size: 16px;
  46. line-height: 1.5;
  47. }
  48. @media (min-width: 38em) {
  49. html {
  50. font-size: 20px;
  51. }
  52. }
  53. body {
  54. color: #515151;
  55. background-color: #fff;
  56. -webkit-text-size-adjust: 100%;
  57. -ms-text-size-adjust: 100%;
  58. text-size-adjust: 100%;
  59. }
  60. /* No `:visited` state is required by default (browsers will use `a`) */
  61. a {
  62. color: #227bb9;
  63. text-decoration: none;
  64. }
  65. /* `:focus` is linked to `:hover` for basic accessibility */
  66. a:hover,
  67. a:focus {
  68. text-decoration: underline;
  69. }
  70. /* Headings */
  71. h1, h2, h3, h4, h5, h6 {
  72. margin-bottom: .5rem;
  73. font-weight: bold;
  74. line-height: 1.25;
  75. color: #313131;
  76. text-rendering: optimizeLegibility;
  77. }
  78. h1 {
  79. font-size: 2rem;
  80. }
  81. h2 {
  82. margin-top: 1rem;
  83. font-size: 1.5rem;
  84. }
  85. h3 {
  86. margin-top: 1.5rem;
  87. font-size: 1.25rem;
  88. }
  89. h4, h5, h6 {
  90. margin-top: 1rem;
  91. font-size: 1rem;
  92. }
  93. /* Body text */
  94. p {
  95. margin-top: 0;
  96. margin-bottom: 1rem;
  97. }
  98. strong {
  99. color: #303030;
  100. }
  101. /* Lists */
  102. ul, ol, dl {
  103. margin-top: 0;
  104. margin-bottom: 1rem;
  105. }
  106. dt {
  107. font-weight: bold;
  108. }
  109. dd {
  110. margin-bottom: .5rem;
  111. }
  112. /* Misc */
  113. hr {
  114. position: relative;
  115. margin: 1.5rem 0;
  116. border: 0;
  117. border-top: 1px solid #eee;
  118. border-bottom: 1px solid #fff;
  119. }
  120. abbr {
  121. font-size: 85%;
  122. font-weight: bold;
  123. color: #555;
  124. text-transform: uppercase;
  125. }
  126. abbr[title] {
  127. cursor: help;
  128. border-bottom: 1px dotted #e5e5e5;
  129. }
  130. /* Code */
  131. code,
  132. pre {
  133. font-family: Menlo, Monaco, "Courier New", monospace;
  134. }
  135. code {
  136. padding: .25em .5em;
  137. font-size: 85%;
  138. color: #b3555e;
  139. background-color: #f9f9f9;
  140. border-radius: 3px;
  141. }
  142. pre {
  143. display: block;
  144. margin-top: 0;
  145. margin-bottom: 1rem;
  146. padding: 1rem;
  147. font-size: .8rem;
  148. line-height: 1.4;
  149. white-space: pre;
  150. white-space: pre-wrap;
  151. word-break: break-all;
  152. word-wrap: break-word;
  153. background-color: #f9f9f9;
  154. }
  155. pre code {
  156. padding: 0;
  157. font-size: 100%;
  158. color: inherit;
  159. background-color: transparent;
  160. }
  161. .highlight {
  162. margin-bottom: 1rem;
  163. border-radius: 4px;
  164. }
  165. .highlight pre {
  166. margin-bottom: 0;
  167. }
  168. /* Quotes */
  169. blockquote {
  170. padding: .5rem 1rem;
  171. margin: .8rem 0;
  172. color: #7a7a7a;
  173. border-left: .25rem solid #e5e5e5;
  174. }
  175. blockquote p:last-child {
  176. margin-bottom: 0;
  177. }
  178. @media (min-width: 30em) {
  179. blockquote {
  180. padding-right: 5rem;
  181. padding-left: 1.25rem;
  182. }
  183. }
  184. img {
  185. display: block;
  186. margin: 0 0 1rem;
  187. border-radius: 5px;
  188. max-width: 100%;
  189. }
  190. /* Tables */
  191. table {
  192. margin-bottom: 1rem;
  193. width: 100%;
  194. border: 1px solid #e5e5e5;
  195. border-collapse: collapse;
  196. }
  197. td,
  198. th {
  199. padding: .25rem .5rem;
  200. border: 1px solid #e5e5e5;
  201. }
  202. tbody tr:nth-child(odd) td,
  203. tbody tr:nth-child(odd) th {
  204. background-color: #f9f9f9;
  205. }
  206. /*
  207. * Custom type
  208. *
  209. * Extend paragraphs with `.lead` for larger introductory text.
  210. */
  211. .lead {
  212. font-size: 1.25rem;
  213. font-weight: 300;
  214. }
  215. /*
  216. * Messages
  217. *
  218. * Show alert messages to users. You may add it to single elements like a `<p>`,
  219. * or to a parent if there are multiple elements to show.
  220. */
  221. .message {
  222. margin-bottom: 1rem;
  223. padding: 1rem;
  224. color: #717171;
  225. background-color: #f9f9f9;
  226. }
  227. /*
  228. * Container
  229. *
  230. * Center the page content.
  231. */
  232. .container {
  233. max-width: 38rem;
  234. padding-left: 1rem;
  235. padding-right: 1rem;
  236. margin-left: auto;
  237. margin-right: auto;
  238. }
  239. /*
  240. * Masthead
  241. *
  242. * Super small header above the content for site name and short description.
  243. */
  244. .masthead {
  245. padding-top: 1rem;
  246. padding-bottom: 1rem;
  247. margin-bottom: 3rem;
  248. }
  249. .masthead-title {
  250. margin-top: 0;
  251. margin-bottom: 0;
  252. color: #505050;
  253. }
  254. .masthead-title a {
  255. color: #505050;
  256. }
  257. .masthead-title small {
  258. font-size: 75%;
  259. font-weight: 400;
  260. color: #c0c0c0;
  261. letter-spacing: 0;
  262. }
  263. /*
  264. * Posts and pages
  265. *
  266. * Each post is wrapped in `.post` and is used on default and post layouts. Each
  267. * page is wrapped in `.page` and is only used on the page layout.
  268. */
  269. .page,
  270. .post {
  271. margin-bottom: 4em;
  272. }
  273. /* Blog post or page title */
  274. .page-title,
  275. .post-title,
  276. .post-title a {
  277. color: #303030;
  278. }
  279. .page-title,
  280. .post-title {
  281. margin-top: 0;
  282. }
  283. /* Meta data line below post title */
  284. .post-date {
  285. display: block;
  286. margin-top: -.5rem;
  287. margin-bottom: 1rem;
  288. color: #757575;
  289. }
  290. /* Related posts */
  291. .related {
  292. padding-top: 2rem;
  293. padding-bottom: 2rem;
  294. border-top: 1px solid #eee;
  295. }
  296. .related-posts {
  297. padding-left: 0;
  298. list-style: none;
  299. }
  300. .related-posts h3 {
  301. margin-top: 0;
  302. }
  303. .related-posts li small {
  304. font-size: 75%;
  305. color: #999;
  306. }
  307. .related-posts li a:hover {
  308. color: #227bb9;
  309. text-decoration: none;
  310. }
  311. .related-posts li a:hover small {
  312. color: inherit;
  313. }
  314. /*
  315. * Pagination
  316. *
  317. * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
  318. * there are no more previous or next posts to show.
  319. */
  320. .pagination {
  321. overflow: hidden; /* clearfix */
  322. margin-left: -1rem;
  323. margin-right: -1rem;
  324. font-family: "PT Sans", Helvetica, Arial, sans-serif;
  325. color: #ccc;
  326. text-align: center;
  327. }
  328. /* Pagination items can be `span`s or `a`s */
  329. .pagination-item {
  330. display: block;
  331. padding: 1rem;
  332. border: 1px solid #eee;
  333. }
  334. .pagination-item:first-child {
  335. margin-bottom: -1px;
  336. }
  337. /* Only provide a hover state for linked pagination items */
  338. a.pagination-item:hover {
  339. background-color: #f5f5f5;
  340. }
  341. @media (min-width: 30em) {
  342. .pagination {
  343. margin: 3rem 0;
  344. }
  345. .pagination-item {
  346. float: left;
  347. width: 50%;
  348. }
  349. .pagination-item:first-child {
  350. margin-bottom: 0;
  351. border-top-left-radius: 4px;
  352. border-bottom-left-radius: 4px;
  353. }
  354. .pagination-item:last-child {
  355. margin-left: -1px;
  356. border-top-right-radius: 4px;
  357. border-bottom-right-radius: 4px;
  358. }
  359. }