_articles.scss 890 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Articles / posts
  2. //-------------------------------
  3. article {
  4. &.blog {
  5. margin-bottom: 2em;
  6. &:last-of-type {
  7. margin-bottom: 6em;
  8. }
  9. p {
  10. margin-bottom: .5rem;
  11. }
  12. }
  13. &.post {
  14. margin-bottom: 4em;
  15. }
  16. p {
  17. margin-top: 0;
  18. margin-bottom: 1.5rem;
  19. word-wrap: break-word;
  20. &.lead {
  21. font-size: $lead-font-size;
  22. margin-bottom: 3rem;
  23. }
  24. a {
  25. border-bottom: .09em solid var(--link-color);
  26. }
  27. }
  28. // resets for lists inside articles
  29. li ul { // reset which allows <ul>/<ol> nesting
  30. margin-bottom: 0;
  31. }
  32. li+li { // aligns them nicely
  33. margin-top: 0rem;
  34. }
  35. }
  36. // Bleed image class
  37. .oversize {
  38. margin: 2.5rem 0 2.5rem -15%;
  39. max-width: 130%;
  40. }
  41. @media (max-width: 48rem) {
  42. .oversize {
  43. margin: inherit;
  44. max-width: 100%;
  45. }
  46. }