snippet-styles.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /*
  2. * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. */
  4. .ck.ck-editor {
  5. margin: 1.5em 0;
  6. }
  7. .ck.ck-content {
  8. padding: 1em;
  9. }
  10. .ck.ck-content > :first-child {
  11. margin-top: 0;
  12. }
  13. .ck.ck-content > :last-child {
  14. margin-bottom: 0;
  15. }
  16. /* Override default Umberto's styles because they apply margins to media embed widgets with iframe
  17. previews breaking their structure. */
  18. .ck.ck-content iframe {
  19. margin: initial;
  20. }
  21. /* Reset h1's styling – https://github.com/ckeditor/ckeditor5-heading/issues/86 */
  22. .ck.ck-content h1 {
  23. display: block;
  24. margin-bottom: .5em;
  25. }
  26. /* By default Umberto uses a trick with non breaking spaces around <code> to fix space rendering.
  27. It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
  28. .ck.ck-content code:before,
  29. .ck.ck-content code:after {
  30. content: '' !important;
  31. letter-spacing: 0 !important;
  32. display: none !important; /* Firefox is very stubborn. */
  33. }
  34. .ck.ck-list {
  35. /* See https://github.com/ckeditor/ckeditor5/issues/494 */
  36. margin-left: 0;
  37. }
  38. /* examples/builds/inline-editor.html */
  39. .live-snippet .image-style-left, .live-snippet .image-style-right {
  40. float: left;
  41. height: auto;
  42. width: 50%;
  43. margin-top: .5rem;
  44. margin-right: 2.5rem;
  45. }
  46. .live-snippet .image-style-right {
  47. float: right;
  48. margin-right: 0;
  49. margin-left: 2.5rem;
  50. }
  51. .live-snippet .image img {
  52. margin: 0 auto;
  53. }
  54. .live-snippet blockquote p:first-of-type {
  55. margin-bottom: 1.5rem;
  56. }
  57. /* https://github.com/ckeditor/ckeditor5/issues/896 */
  58. .live-snippet .ck.ck-content h2,
  59. .live-snippet .ck.ck-content h3,
  60. .live-snippet .ck.ck-content h4 {
  61. position: static;
  62. }
  63. /* https://github.com/ckeditor/ckeditor5/issues/899 */
  64. .live-snippet .ck-dropdown .ck.ck-list {
  65. margin: 0;
  66. padding: 0;
  67. }
  68. /* https://github.com/ckeditor/ckeditor5/pull/1060 */
  69. .live-snippet .ck.ck-content .table table {
  70. margin: 0;
  71. display: table;
  72. }
  73. #snippet-inline-editor .ck-content {
  74. margin-bottom: 1rem;
  75. padding: 2rem;
  76. }
  77. #snippet-inline-editor .ck-content:not(.ck-focused) {
  78. border: 1px solid rgba(0, 0, 0, 0.15);
  79. }
  80. #snippet-inline-editor h2, #snippet-inline-editor h3 {
  81. margin-top: 0;
  82. padding-top: 0;
  83. border-bottom: 0;
  84. }
  85. #snippet-inline-editor header.ck-content {
  86. text-align: center;
  87. }
  88. #snippet-inline-editor header.ck-content h2 {
  89. margin-bottom: 0;
  90. font-size: 2.1rem;
  91. }
  92. #snippet-inline-editor header.ck-content h3 {
  93. color: rgba(5, 22, 42, 0.59);
  94. font-weight: 600;
  95. font-size: 1.6rem;
  96. }
  97. /* examples/builds/document-editor.html */
  98. .live-snippet .document-editor {
  99. margin: 1.5em 0;
  100. }
  101. .demo-row {
  102. width: 100%;
  103. display: -ms-flexbox;
  104. display: flex;
  105. }
  106. .demo-row__half {
  107. width: 50%;
  108. }
  109. .demo-row__half:first-of-type {
  110. padding-right: .5rem;
  111. }
  112. .demo-row__half:last-of-type {
  113. padding-left: .5rem;
  114. }
  115. .demo-row__third {
  116. width: 33.3333%;
  117. }
  118. .demo-row__third > div {
  119. padding: 2.5rem;
  120. border: 1px solid rgba(0, 0, 0, 0.15);
  121. }
  122. .demo-row__third:nth-of-type(2) {
  123. padding-left: 1rem;
  124. padding-right: 1rem;
  125. }
  126. .demo-row h3 {
  127. margin: 0;
  128. }
  129. .demo-row p {
  130. margin-bottom: 0;
  131. }