_blog.scss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. @import "variables";
  2. .blog {
  3. display: flex;
  4. @media screen and (max-width: $md-breakpoint) {
  5. display: block;
  6. }
  7. .book-toc {
  8. flex: 1;
  9. }
  10. }
  11. .posts-list {
  12. min-height: 50vh;
  13. padding: $padding-16 * 1.6;
  14. min-width: $body-min-width;
  15. max-width: $md-breakpoint;
  16. margin: auto;
  17. h2 {
  18. font-size: 2em;
  19. font-weight: 400;
  20. }
  21. h5 {
  22. margin-top: -24px;
  23. }
  24. .featured-image {
  25. max-width: 100%;
  26. }
  27. p {
  28. line-height: 1.4em;
  29. }
  30. }
  31. .left-gutter {
  32. flex: 1;
  33. }
  34. .blog-post {
  35. header {
  36. overflow: hidden;
  37. padding-bottom: $padding-16;
  38. border-bottom: 1px dashed $gray-300;
  39. h1 {
  40. font-size: 3em;
  41. font-weight: 400;
  42. color: $brand-color;
  43. margin-bottom: 12px;
  44. }
  45. @media screen and (max-width: $sm-breakpoint) {
  46. h1 {
  47. font-size: 2em;
  48. }
  49. }
  50. }
  51. .markdown > p:first-child {
  52. font-size: 22px;
  53. color: $gray-700;
  54. @media screen and (max-width: $sm-breakpoint) {
  55. font-size: 16px;
  56. }
  57. }
  58. figure {
  59. img {
  60. max-width: 100%;
  61. }
  62. }
  63. }