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

poole.css 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  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. a code {
  162. color: #268bd2;
  163. }
  164. .highlight {
  165. margin-bottom: 1rem;
  166. border-radius: 4px;
  167. }
  168. .highlight pre {
  169. margin-bottom: 0;
  170. }
  171. /* Quotes */
  172. blockquote {
  173. padding: .5rem 1rem;
  174. margin: .8rem 0;
  175. color: #7a7a7a;
  176. border-left: .25rem solid #e5e5e5;
  177. }
  178. blockquote p:last-child {
  179. margin-bottom: 0;
  180. }
  181. @media (min-width: 30em) {
  182. blockquote {
  183. padding-right: 5rem;
  184. padding-left: 1.25rem;
  185. }
  186. }
  187. img {
  188. display: block;
  189. margin: 0 0 1rem;
  190. border-radius: 5px;
  191. max-width: 100%;
  192. }
  193. /* Tables */
  194. table {
  195. margin-bottom: 1rem;
  196. width: 100%;
  197. border: 1px solid #e5e5e5;
  198. border-collapse: collapse;
  199. }
  200. td,
  201. th {
  202. padding: .25rem .5rem;
  203. border: 1px solid #e5e5e5;
  204. }
  205. tbody tr:nth-child(odd) td,
  206. tbody tr:nth-child(odd) th {
  207. background-color: #f9f9f9;
  208. }
  209. /*
  210. * Custom type
  211. *
  212. * Extend paragraphs with `.lead` for larger introductory text.
  213. */
  214. .lead {
  215. font-size: 1.25rem;
  216. font-weight: 300;
  217. }
  218. /*
  219. * Messages
  220. *
  221. * Show alert messages to users. You may add it to single elements like a `<p>`,
  222. * or to a parent if there are multiple elements to show.
  223. */
  224. .message {
  225. margin-bottom: 1rem;
  226. padding: 1rem;
  227. color: #717171;
  228. background-color: #f9f9f9;
  229. }
  230. /*
  231. * Container
  232. *
  233. * Center the page content.
  234. */
  235. .container {
  236. max-width: 38rem;
  237. padding-left: 1rem;
  238. padding-right: 1rem;
  239. margin-left: auto;
  240. margin-right: auto;
  241. }
  242. /*
  243. * Masthead
  244. *
  245. * Super small header above the content for site name and short description.
  246. */
  247. .masthead {
  248. padding-top: 1rem;
  249. padding-bottom: 1rem;
  250. margin-bottom: 3rem;
  251. }
  252. .masthead-title {
  253. margin-top: 0;
  254. margin-bottom: 0;
  255. color: #505050;
  256. }
  257. .masthead-title a {
  258. color: #505050;
  259. }
  260. .masthead-title small {
  261. font-size: 75%;
  262. font-weight: 400;
  263. color: #c0c0c0;
  264. letter-spacing: 0;
  265. }
  266. /*
  267. * Posts and pages
  268. *
  269. * Each post is wrapped in `.post` and is used on default and post layouts. Each
  270. * page is wrapped in `.page` and is only used on the page layout.
  271. */
  272. .page,
  273. .post {
  274. margin-bottom: 4em;
  275. }
  276. /* Blog post or page title */
  277. .page-title,
  278. .post-title,
  279. .post-title a {
  280. color: #303030;
  281. }
  282. .page-title,
  283. .post-title {
  284. margin-top: 0;
  285. }
  286. /* Meta data line below post title */
  287. .post-date {
  288. display: block;
  289. margin-top: -.5rem;
  290. margin-bottom: 1rem;
  291. color: #757575;
  292. }
  293. /* Related posts */
  294. .related {
  295. padding-top: 2rem;
  296. padding-bottom: 2rem;
  297. border-top: 1px solid #eee;
  298. }
  299. .related-posts {
  300. padding-left: 0;
  301. list-style: none;
  302. }
  303. .related-posts h3 {
  304. margin-top: 0;
  305. }
  306. .related-posts li small {
  307. font-size: 75%;
  308. color: #999;
  309. }
  310. .related-posts li a:hover {
  311. color: #227bb9;
  312. text-decoration: none;
  313. }
  314. .related-posts li a:hover small {
  315. color: inherit;
  316. }
  317. /*
  318. * Pagination
  319. *
  320. * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
  321. * there are no more previous or next posts to show.
  322. */
  323. .pagination {
  324. overflow: hidden; /* clearfix */
  325. margin-left: -1rem;
  326. margin-right: -1rem;
  327. font-family: "PT Sans", Helvetica, Arial, sans-serif;
  328. color: #ccc;
  329. text-align: center;
  330. }
  331. /* Pagination items can be `span`s or `a`s */
  332. .pagination-item {
  333. display: block;
  334. padding: 1rem;
  335. border: 1px solid #eee;
  336. }
  337. .pagination-item:first-child {
  338. margin-bottom: -1px;
  339. }
  340. /* Only provide a hover state for linked pagination items */
  341. a.pagination-item:hover {
  342. background-color: #f5f5f5;
  343. }
  344. @media (min-width: 30em) {
  345. .pagination {
  346. margin: 3rem 0;
  347. }
  348. .pagination-item {
  349. float: left;
  350. width: 50%;
  351. }
  352. .pagination-item:first-child {
  353. margin-bottom: 0;
  354. border-top-left-radius: 4px;
  355. border-bottom-left-radius: 4px;
  356. }
  357. .pagination-item:last-child {
  358. margin-left: -1px;
  359. border-top-right-radius: 4px;
  360. border-bottom-right-radius: 4px;
  361. }
  362. }