poole.css 6.2 KB

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