content.css 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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;
  11. }
  12. table {
  13. border-collapse: collapse;
  14. }
  15. /* Apply a default padding if legacy cellpadding attribute is missing */
  16. table:not([cellpadding]) th,
  17. table:not([cellpadding]) td {
  18. padding: 0.4rem;
  19. }
  20. /* Set default table styles if a table has a positive border attribute
  21. and no inline css */
  22. table[border]:not([border="0"]):not([style*="border-width"]) th,
  23. table[border]:not([border="0"]):not([style*="border-width"]) td {
  24. border-width: 1px;
  25. }
  26. /* Set default table styles if a table has a positive border attribute
  27. and no inline css */
  28. table[border]:not([border="0"]):not([style*="border-style"]) th,
  29. table[border]:not([border="0"]):not([style*="border-style"]) td {
  30. border-style: solid;
  31. }
  32. /* Set default table styles if a table has a positive border attribute
  33. and no inline css */
  34. table[border]:not([border="0"]):not([style*="border-color"]) th,
  35. table[border]:not([border="0"]):not([style*="border-color"]) td {
  36. border-color: #ccc;
  37. }
  38. figure {
  39. display: table;
  40. margin: 1rem auto;
  41. }
  42. figure figcaption {
  43. color: #999;
  44. display: block;
  45. margin-top: 0.25rem;
  46. text-align: center;
  47. }
  48. hr {
  49. border-color: #ccc;
  50. border-style: solid;
  51. border-width: 1px 0 0 0;
  52. }
  53. code {
  54. background-color: #e8e8e8;
  55. border-radius: 3px;
  56. padding: 0.1rem 0.2rem;
  57. }
  58. .mce-content-body:not([dir=rtl]) blockquote {
  59. border-left: 2px solid #ccc;
  60. margin-left: 1.5rem;
  61. padding-left: 1rem;
  62. }
  63. .mce-content-body[dir=rtl] blockquote {
  64. border-right: 2px solid #ccc;
  65. margin-right: 1.5rem;
  66. padding-right: 1rem;
  67. }