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

poole.css 6.3KB

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