_markdown.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @import 'variables';
  2. $block-border-radius: 4px;
  3. .markdown {
  4. line-height: 1.7;
  5. > :first-child {
  6. margin-top: 0;
  7. line-height: 1em;
  8. }
  9. h2 {
  10. margin-top: 48px;
  11. }
  12. h3 {
  13. margin-top: 36px;
  14. color: $gray-700;
  15. }
  16. h1, h2, h3, h4, h5 {
  17. font-weight: 600;
  18. line-height: 1.25;
  19. &[id]:target:before {
  20. display: block;
  21. content: " ";
  22. margin-top: -75px; // Set the Appropriate Height
  23. height: 75px; // Set the Appropriate Height
  24. visibility: hidden;
  25. }
  26. &[id]:target {
  27. text-decoration: underline;
  28. }
  29. }
  30. b, optgroup, strong {
  31. font-weight: 700;
  32. }
  33. a {
  34. text-decoration: none;
  35. &:hover {
  36. text-decoration: underline;
  37. }
  38. }
  39. code {
  40. font-family: 'Oxygen Mono', monospace;
  41. padding: 0 $padding-4;
  42. background: $gray-100;
  43. color: darken($brand-color, 30%);
  44. border-radius: $block-border-radius;
  45. }
  46. pre {
  47. padding: $padding-16;
  48. background: $gray-100;
  49. border-radius: $block-border-radius;
  50. font-size: $font-size-14;
  51. overflow-x: auto;
  52. code {
  53. color: $gray-200;
  54. background: none;
  55. padding: none;
  56. }
  57. }
  58. blockquote {
  59. border-left: $padding-1*2 solid $gray-300;
  60. margin: 0;
  61. padding: $padding-1 $padding-16;
  62. :first-child { margin-top: 0; }
  63. :last-child { margin-bottom: 0; }
  64. }
  65. table tr td {
  66. padding: $padding-8;
  67. }
  68. }