_markdown.scss 826 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. font-size: var(--#{$prefix}body-font-size);
  29. @extend .table, .table-bordered, .table-sm;
  30. }
  31. > blockquote {
  32. font-size: $h3-font-size;
  33. margin: 1.5rem 0;
  34. padding: .5rem 1.5rem;
  35. }
  36. > img,
  37. > p > img {
  38. border-radius: var(--#{$prefix}border-radius);
  39. border: 1px solid var(--#{$prefix}border-color);
  40. }
  41. pre {
  42. max-height: 20rem;
  43. }
  44. }