content.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * Copyright (c) Tiny Technologies, Inc. All rights reserved.
  3. * Licensed under the LGPL or a commercial license.
  4. * For LGPL see License.txt in the project root for license information.
  5. * For commercial licenses see https://www.tiny.cloud/
  6. */
  7. body {
  8. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  9. line-height: 1.4;
  10. margin: 1rem auto;
  11. max-width: 900px;
  12. }
  13. table {
  14. border-collapse: collapse;
  15. }
  16. /* Apply a default padding if legacy cellpadding attribute is missing */
  17. table:not([cellpadding]) th,
  18. table:not([cellpadding]) td {
  19. padding: 0.4rem;
  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-width"]) th,
  24. table[border]:not([border="0"]):not([style*="border-width"]) td {
  25. border-width: 1px;
  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-style"]) th,
  30. table[border]:not([border="0"]):not([style*="border-style"]) td {
  31. border-style: solid;
  32. }
  33. /* Set default table styles if a table has a positive border attribute
  34. and no inline css */
  35. table[border]:not([border="0"]):not([style*="border-color"]) th,
  36. table[border]:not([border="0"]):not([style*="border-color"]) td {
  37. border-color: #ccc;
  38. }
  39. figure {
  40. display: table;
  41. margin: 1rem auto;
  42. }
  43. figure figcaption {
  44. color: #999;
  45. display: block;
  46. margin-top: 0.25rem;
  47. text-align: center;
  48. }
  49. hr {
  50. border-color: #ccc;
  51. border-style: solid;
  52. border-width: 1px 0 0 0;
  53. }
  54. code {
  55. background-color: #e8e8e8;
  56. border-radius: 3px;
  57. padding: 0.1rem 0.2rem;
  58. }
  59. .mce-content-body:not([dir=rtl]) blockquote {
  60. border-left: 2px solid #ccc;
  61. margin-left: 1.5rem;
  62. padding-left: 1rem;
  63. }
  64. .mce-content-body[dir=rtl] blockquote {
  65. border-right: 2px solid #ccc;
  66. margin-right: 1.5rem;
  67. padding-right: 1rem;
  68. }