snippet-styles.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. /* Restore default browser styles for <sub> and <sup>. */
  35. .ck.ck-content sub {
  36. vertical-align: sub;
  37. font-size: smaller;
  38. }
  39. .ck.ck-content sup {
  40. vertical-align: super;
  41. font-size: smaller;
  42. }
  43. .ck.ck-list {
  44. /* See https://github.com/ckeditor/ckeditor5/issues/494 */
  45. margin-left: 0;
  46. }
  47. /* examples/builds/inline-editor.html */
  48. .live-snippet .image-style-left, .live-snippet .image-style-right {
  49. float: left;
  50. height: auto;
  51. width: 50%;
  52. margin-top: .5rem;
  53. margin-right: 2.5rem;
  54. }
  55. .live-snippet .image-style-right {
  56. float: right;
  57. margin-right: 0;
  58. margin-left: 2.5rem;
  59. }
  60. .live-snippet .image img {
  61. margin: 0 auto;
  62. }
  63. .live-snippet blockquote p:first-of-type {
  64. margin-bottom: 1.5rem;
  65. }
  66. /* https://github.com/ckeditor/ckeditor5/issues/896 */
  67. .live-snippet .ck.ck-content h2,
  68. .live-snippet .ck.ck-content h3,
  69. .live-snippet .ck.ck-content h4 {
  70. position: static;
  71. }
  72. /* https://github.com/ckeditor/ckeditor5/issues/899 */
  73. .live-snippet .ck-dropdown .ck.ck-list {
  74. margin: 0;
  75. padding: 0;
  76. }
  77. /* https://github.com/ckeditor/ckeditor5/pull/1060 */
  78. .live-snippet .ck.ck-content .table table {
  79. margin: 0;
  80. display: table;
  81. }
  82. /* https://github.com/ckeditor/ckeditor5/issues/1282 */
  83. .live-snippet .ck.ck-content .table p:first-child {
  84. padding-top: 0;
  85. }
  86. /* https://github.com/ckeditor/ckeditor5/issues/1282 */
  87. .live-snippet .ck.ck-content .table p:last-child,
  88. .live-snippet .ck.ck-content .table ul:last-child,
  89. .live-snippet .ck.ck-content .table ol:last-child {
  90. margin-bottom: 0;
  91. }
  92. #snippet-inline-editor .ck-content {
  93. margin-bottom: 1rem;
  94. padding: 2rem;
  95. }
  96. #snippet-inline-editor .ck-content:not(.ck-focused) {
  97. border: 1px solid rgba(0, 0, 0, 0.15);
  98. }
  99. #snippet-inline-editor h2, #snippet-inline-editor h3 {
  100. margin-top: 0;
  101. padding-top: 0;
  102. border-bottom: 0;
  103. }
  104. #snippet-inline-editor header.ck-content {
  105. text-align: center;
  106. }
  107. #snippet-inline-editor header.ck-content h2 {
  108. margin-bottom: 0;
  109. font-size: 2.1rem;
  110. }
  111. #snippet-inline-editor header.ck-content h3 {
  112. color: rgba(5, 22, 42, 0.59);
  113. font-weight: 600;
  114. font-size: 1.6rem;
  115. }
  116. /* examples/builds/document-editor.html */
  117. .live-snippet .document-editor {
  118. margin: 1.5em 0;
  119. }
  120. .demo-row {
  121. width: 100%;
  122. display: -ms-flexbox;
  123. display: flex;
  124. }
  125. .demo-row__half {
  126. width: 50%;
  127. }
  128. .demo-row__half:first-of-type {
  129. padding-right: .5rem;
  130. }
  131. .demo-row__half:last-of-type {
  132. padding-left: .5rem;
  133. }
  134. .demo-row__third {
  135. width: 33.3333%;
  136. }
  137. .demo-row__third > div {
  138. padding: 2.5rem;
  139. border: 1px solid rgba(0, 0, 0, 0.15);
  140. }
  141. .demo-row__third:nth-of-type(2) {
  142. padding-left: 1rem;
  143. padding-right: 1rem;
  144. }
  145. .demo-row h3 {
  146. margin: 0;
  147. }
  148. .demo-row p {
  149. margin-bottom: 0;
  150. }