poole.css 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  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: Roboto, Helvetica, Arial, sans-serif;
  45. font-size: 1rem;
  46. line-height: 1.7;
  47. }
  48. @media (min-width: 800px) {
  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: #515151;
  62. text-decoration: none;
  63. font-size: 1rem;
  64. font-family: Roboto, arial;
  65. }
  66. /* The following define footnotes links. In order to work with the back link from the footnotes, we need to add footnoteReturnLinkContents = "[text here]" to config.toml*/
  67. /* We need this so links in footnotes are not red... */
  68. .footnote-ref a {
  69. color: #515151;
  70. }
  71. /* ...Only links at the end that takes us back should be red. This is the return text (that takes us back to the post) */
  72. a.page-link {
  73. color: #8B0000;
  74. text-decoration: none;
  75. font-size: 1rem;
  76. font-family: Roboto, arial;
  77. }
  78. a.footnotes {
  79. color: #8B0000;
  80. text-decoration: none;
  81. font-size: 1rem;
  82. font-family: Roboto, arial;
  83. }
  84. /* This adds space between the list items in the footnotes, to make them more clear */
  85. .footnotes {
  86. font-family: Roboto, arial;
  87. }
  88. .footnote[role] {
  89. color: #ac4142;
  90. }
  91. .footnotes li {
  92. margin: 0 0 1rem 0;
  93. }
  94. /* This is the anchor link. I have to use important because otherwise the general link takes over. */
  95. a.footnote-ref {
  96. color: #ac4142 !important;
  97. text-decoration: none !important;
  98. font-size: .6rem !important;
  99. line-height: 0rem !important;
  100. }
  101. a.footnote-backref {
  102. color: #ac4142 !important;
  103. text-decoration: none !important;
  104. font-weight: bold !important;
  105. font-size: 1rem !important;
  106. }
  107. /* `:focus` is linked to `:hover` for basic accessibility */
  108. /* JRSS: I moved it because I think it looks better without.
  109. a:hover,
  110. a:focus {
  111. text-decoration: underline;
  112. }
  113. */
  114. /* Headings */
  115. /* If each element is different enough for it's own tag expention (below), then what's the point of having a generic "do this for all" block? Copy the one or two things that are different to each block, and have a better idea of where the CSS coming from later - JR
  116. h1, h2, h3, h4, h5, h6 {
  117. margin-bottom: .5rem;
  118. font-weight: bold;
  119. line-height: 1.25;
  120. color: #313131;
  121. text-rendering: optimizeLegibility;
  122. font-family: "Oswald", arial;
  123. */
  124. }
  125. h1 {
  126. font-size: 2.2rem;
  127. border-bottom-style: dotted;
  128. border-width: 2px;
  129. border-color: #eee8d5;
  130. margin-bottom: -.1rem;
  131. }
  132. h2 {
  133. margin-top: 1rem;
  134. font-size: 1.4rem;
  135. }
  136. h3 {
  137. margin-top: 1.5rem;
  138. font-size: 1.25rem;
  139. }
  140. h4, h5, h6 {
  141. margin-top: 1rem;
  142. font-size: 1rem;
  143. }
  144. div.liberapay {
  145. width: 10rem;
  146. }
  147. /* Body text */
  148. p {
  149. margin-top: 0rem;
  150. margin-bottom: 1rem;
  151. font-family: Roboto, arial;
  152. }
  153. strong {
  154. color: #303030;
  155. }
  156. /* Lists */
  157. ul, ol, dl, {
  158. margin-top: 0;
  159. margin-bottom: 1rem;
  160. font-family: Roboto, arial;
  161. }
  162. dt {
  163. font-weight: bold;
  164. }
  165. dd {
  166. margin-bottom: .5rem;
  167. }
  168. .posts li {
  169. text-transform: capitalize;
  170. }
  171. figcaption {
  172. margin-top: -1.5em;
  173. margin-left: .5em;
  174. font-size: .8em;
  175. }
  176. @media (max-width: 800px) {
  177. ul {
  178. padding-left: 0em;
  179. }
  180. }
  181. /* Misc */
  182. hr {
  183. position: relative;
  184. margin: 1.5rem 0;
  185. border: 0;
  186. border-top: 1px solid #eee;
  187. border-bottom: 1px solid #fff;
  188. }
  189. abbr {
  190. font-size: 85%;
  191. font-weight: bold;
  192. color: #555;
  193. text-transform: uppercase;
  194. }
  195. abbr[title] {
  196. cursor: help;
  197. border-bottom: 1px dotted #e5e5e5;
  198. }
  199. /* Code */
  200. code,
  201. pre {
  202. font-family: Menlo, Monaco, "Courier New", monospace;
  203. }
  204. code {
  205. padding: .25em .5em;
  206. font-size: .8rem;
  207. color: #8B0000;
  208. background-color: #eee;
  209. border-radius: 3px;
  210. }
  211. pre {
  212. display: block;
  213. margin-top: 0;
  214. margin-bottom: 1rem;
  215. padding: .5rem;
  216. font-size: .8rem;
  217. line-height: 1.4;
  218. white-space: pre;
  219. white-space: pre-wrap;
  220. word-break: break-all;
  221. word-wrap: break-word;
  222. color: #eee8d5;
  223. background-color: #515151;
  224. }
  225. pre code {
  226. padding: 0;
  227. font-size: 100%;
  228. color: inherit;
  229. background-color: transparent;
  230. }
  231. .highlight {
  232. margin-bottom: 1rem;
  233. border-radius: 4px;
  234. }
  235. .highlight pre {
  236. margin-bottom: 0;
  237. }
  238. /* Quotes */
  239. blockquote {
  240. padding: .5rem 1rem;
  241. margin: .8rem 0;
  242. color: #7a7a7a;
  243. border-left: .25rem solid #e5e5e5;
  244. }
  245. blockquote p:last-child {
  246. margin-bottom: 0;
  247. }
  248. @media (min-width: 800px) {
  249. blockquote {
  250. padding-right: 5rem;
  251. padding-left: 1.25rem;
  252. }
  253. }
  254. img {
  255. display: block;
  256. margin: 0 0 1rem;
  257. border-radius: 5px;
  258. max-width: 100%;
  259. height: auto;
  260. }
  261. /* Tables */
  262. table {
  263. margin-bottom: 1rem;
  264. width: 100%;
  265. border: 1px solid #e5e5e5;
  266. border-collapse: collapse;
  267. }
  268. td,
  269. th {
  270. padding: .25rem .5rem;
  271. border: 1px solid #e5e5e5;
  272. }
  273. tbody tr:nth-child(odd) td,
  274. tbody tr:nth-child(odd) th {
  275. background-color: #f9f9f9;
  276. }
  277. /*
  278. * Custom type
  279. *
  280. * Extend paragraphs with `.lead` for larger introductory text.
  281. */
  282. .lead {
  283. font-size: 1rem;
  284. font-family: Roboto, arial;
  285. text-align: left;
  286. font-weight: bold;
  287. }
  288. /*
  289. * Messages
  290. *
  291. * Show alert messages to users. You may add it to single elements like a `<p>`,
  292. * or to a parent if there are multiple elements to show.
  293. */
  294. .message {
  295. font-family: "Ruda", arial;
  296. font-size: .8rem;
  297. margin-bottom: 1rem;
  298. padding: 1rem;
  299. color: #717171;
  300. background-color: #f9f9f9;
  301. }
  302. /*
  303. * Container
  304. *
  305. * Center the page content.
  306. */
  307. .container {
  308. max-width: 70rem;
  309. padding-left: 1rem;
  310. padding-right: 1rem;
  311. margin-left: auto;
  312. margin-right: auto;
  313. }
  314. /*
  315. * Masthead
  316. *
  317. * Super small header above the content for site name and short description.
  318. */
  319. .masthead {
  320. padding-top: 1rem;
  321. padding-bottom: 1rem;
  322. margin-bottom: 3rem;
  323. }
  324. .masthead-title {
  325. margin-top: 0;
  326. margin-bottom: 0;
  327. color: #505050;
  328. }
  329. .masthead-title a {
  330. color: #505050;
  331. }
  332. .masthead-title small {
  333. font-size: 75%;
  334. font-weight: 400;
  335. color: #c0c0c0;
  336. letter-spacing: 0;
  337. }
  338. /*
  339. * Posts and pages
  340. *
  341. * Each post is wrapped in `.post` and is used on default and post layouts. Each
  342. * page is wrapped in `.page` and is only used on the page layout.
  343. */
  344. .page,
  345. .post {
  346. margin-bottom: 4em;
  347. }
  348. .post p{
  349. font-size: 1rem;
  350. }
  351. .post p a{
  352. text-decoration: underline;
  353. text-decoration-style: solid;
  354. font-size: 1rem;
  355. family: "Merriweather", arial;
  356. color: #515151;
  357. }
  358. /* Here is the part for the lists in the posts */
  359. .post li{
  360. display: list-item;
  361. color: #515151;
  362. }
  363. .post li a{
  364. text-decoration: underline;
  365. }
  366. .post .read-more-link a {
  367. font-family: "Ruda";
  368. font-size: 1rem;
  369. text-decoration: none;
  370. color: #8B0000;
  371. }
  372. .post h1{
  373. font-family: "Ruda";
  374. text-decoration: none;
  375. border-bottom-style: dotted;
  376. border-bottom-color: #eee8d5;
  377. word-spacing: .3rem;
  378. font-size: 2em;
  379. line-height: .85em;
  380. margin-bottom: .1em;
  381. text-transform: capitalize;
  382. }
  383. /* Blog post or page title */
  384. .page-title,
  385. .post-title,
  386. .post-title a {
  387. font-family: "Ruda";
  388. text-decoration: none;
  389. word-spacing: .3rem;
  390. font-size: 1.7rem;
  391. line-height: 1.5rem;
  392. }
  393. .page-title,
  394. .post-title {
  395. margin-top: 0px;
  396. margin-bottom: 0px;
  397. border-bottom-style: dotted;
  398. border-width: 2px;
  399. border-color: #eee8d5;
  400. }
  401. /* Meta data line below post title */
  402. .post-date {
  403. display: block;
  404. font-family: "Ruda";
  405. margin-top: -.1rem;
  406. margin-bottom: .8rem;
  407. color: #9a9a9a;
  408. }
  409. .post .post-date a{
  410. font-family: "Ruda";
  411. font-size: 1rem;
  412. text-decoration: underline;
  413. color: #8B0000;
  414. }
  415. /* Related posts */
  416. .related {
  417. padding-top: 2rem;
  418. padding-bottom: 2rem;
  419. border-top: 1px solid #eee;
  420. }
  421. .related-posts {
  422. padding-left: 0;
  423. list-style: Robotone;
  424. }
  425. .related-posts h3 {
  426. margin-top: 0;
  427. }
  428. .related-posts li small {
  429. font-size: 75%;
  430. color: #999;
  431. }
  432. .related-posts li a:hover {
  433. color: #268bd2;
  434. text-decoration: Robotone;
  435. }
  436. .related-posts li a:hover small {
  437. color: inherit;
  438. }
  439. .dsq-brlink a {
  440. color: #515151;
  441. }
  442. /*
  443. * Pagination
  444. *
  445. * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
  446. * there are Roboto more previous or next posts to show.
  447. */
  448. .pagination {
  449. overflow: hidden; /* clearfix */
  450. margin-left: -1rem;
  451. margin-right: -1rem;
  452. font-family: "Ruda", Helvetica, Arial, sans-serif;
  453. color: #ccc;
  454. text-align: center;
  455. }
  456. /* Pagination items can be `span`s or `a`s */
  457. .pagination-item {
  458. display: block;
  459. padding: 1rem;
  460. border: 1px solid #eee;
  461. }
  462. .pagination-item:first-child {
  463. margin-bottom: -1px;
  464. }
  465. /* Only provide a hover state for linked pagination items */
  466. a.pagination-item:hover {
  467. background-color: #f5f5f5;
  468. }
  469. @media (min-width: 800px) {
  470. .pagination {
  471. margin: 3rem 0;
  472. }
  473. .pagination-item {
  474. float: left;
  475. width: 50%;
  476. }
  477. .pagination-item:first-child {
  478. margin-bottom: 0;
  479. border-top-left-radius: 4px;
  480. border-bottom-left-radius: 4px;
  481. }
  482. .pagination-item:last-child {
  483. margin-left: -1px;
  484. border-top-right-radius: 4px;
  485. border-bottom-right-radius: 4px;
  486. }
  487. }