poole.css 6.2 KB

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