content.css 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. body {
  2. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  3. line-height: 1.4;
  4. margin: 1rem auto;
  5. max-width: 900px;
  6. }
  7. table {
  8. border-collapse: collapse;
  9. }
  10. /* Apply a default padding if legacy cellpadding attribute is missing */
  11. table:not([cellpadding]) th,
  12. table:not([cellpadding]) td {
  13. padding: 0.4rem;
  14. }
  15. /* Set default table styles if a table has a positive border attribute
  16. and no inline css */
  17. table[border]:not([border="0"]):not([style*="border-width"]) th,
  18. table[border]:not([border="0"]):not([style*="border-width"]) td {
  19. border-width: 1px;
  20. }
  21. /* Set default table styles if a table has a positive border attribute
  22. and no inline css */
  23. table[border]:not([border="0"]):not([style*="border-style"]) th,
  24. table[border]:not([border="0"]):not([style*="border-style"]) td {
  25. border-style: solid;
  26. }
  27. /* Set default table styles if a table has a positive border attribute
  28. and no inline css */
  29. table[border]:not([border="0"]):not([style*="border-color"]) th,
  30. table[border]:not([border="0"]):not([style*="border-color"]) td {
  31. border-color: #ccc;
  32. }
  33. figure {
  34. display: table;
  35. margin: 1rem auto;
  36. }
  37. figure figcaption {
  38. color: #999;
  39. display: block;
  40. margin-top: 0.25rem;
  41. text-align: center;
  42. }
  43. hr {
  44. border-color: #ccc;
  45. border-style: solid;
  46. border-width: 1px 0 0 0;
  47. }
  48. code {
  49. background-color: #e8e8e8;
  50. border-radius: 3px;
  51. padding: 0.1rem 0.2rem;
  52. }
  53. .mce-content-body:not([dir=rtl]) blockquote {
  54. border-left: 2px solid #ccc;
  55. margin-left: 1.5rem;
  56. padding-left: 1rem;
  57. }
  58. .mce-content-body[dir=rtl] blockquote {
  59. border-right: 2px solid #ccc;
  60. margin-right: 1.5rem;
  61. padding-right: 1rem;
  62. }