_markdown.scss 769 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. Markdown
  3. */
  4. .markdown {
  5. line-height: $line-height-xl;
  6. > :first-child {
  7. margin-top: 0;
  8. }
  9. > :last-child,
  10. > :last-child .highlight {
  11. margin-bottom: 0;
  12. }
  13. > hr {
  14. @include media-breakpoint-up(md) {
  15. margin-top: 3em;
  16. margin-bottom: 3em;
  17. }
  18. }
  19. > {
  20. h1, h2, h3, h4, h5, h6 {
  21. font-weight: var(--#{$prefix}font-weight-bold);
  22. }
  23. h2, h3, h4, h5, h6 {
  24. margin-top: 2.5rem;
  25. }
  26. }
  27. > table {
  28. @extend .table, .table-bordered;
  29. }
  30. > blockquote {
  31. font-size: $h3-font-size;
  32. margin: 1.5rem 0;
  33. padding: .5rem 1.5rem;
  34. }
  35. > img,
  36. > p > img {
  37. border-radius: var(--#{$prefix}border-radius);
  38. border: 1px solid var(--#{$prefix}border-color);
  39. }
  40. > pre {
  41. max-height: 20rem;
  42. }
  43. }