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

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