markdown.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. [data-component="markdown"] {
  2. min-width: 0;
  3. max-width: 100%;
  4. overflow: hidden;
  5. color: var(--text-base);
  6. text-wrap: pretty;
  7. /* text-12-regular */
  8. font-family: var(--font-family-sans);
  9. font-size: var(--font-size-small);
  10. font-style: normal;
  11. font-weight: var(--font-weight-regular);
  12. line-height: var(--line-height-large); /* 166.667% */
  13. letter-spacing: var(--letter-spacing-normal);
  14. h1,
  15. h2,
  16. h3 {
  17. margin-top: 16px;
  18. margin-bottom: 8px;
  19. font-weight: var(--font-weight-medium);
  20. }
  21. p {
  22. margin-bottom: 8px;
  23. }
  24. ul,
  25. ol {
  26. margin-top: 16px;
  27. margin-bottom: 16px;
  28. }
  29. hr {
  30. margin-top: 8px;
  31. margin-bottom: 16px;
  32. border-color: var(--border-weaker-base);
  33. }
  34. pre {
  35. margin-top: 2rem;
  36. margin-bottom: 2rem;
  37. overflow: auto;
  38. scrollbar-width: none;
  39. &::-webkit-scrollbar {
  40. display: none;
  41. }
  42. }
  43. :not(pre) > code {
  44. font-family: var(--font-family-mono);
  45. font-feature-settings: var(--font-family-mono--font-feature-settings);
  46. font-size: 0.9em;
  47. /* background-color: var(--surface-base-strong); */
  48. /* padding: 0.15em 0.35em; */
  49. /* border-radius: var(--radius-sm); */
  50. padding: 2px 2px;
  51. margin: 0 1.5px;
  52. border-radius: 2px;
  53. background: var(--surface-base);
  54. box-shadow: 0 0 0 0.5px var(--border-weak-base);
  55. /* &::before, */
  56. /* &::after { */
  57. /* content: "\`"; */
  58. /* } */
  59. }
  60. }