content.css 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. hr {
  38. border-color: #ccc;
  39. border-style: solid;
  40. border-width: 1px 0 0 0;
  41. }
  42. code {
  43. background-color: #e8e8e8;
  44. border-radius: 3px;
  45. padding: 0.1rem 0.2rem;
  46. }