8
0

snippet-styles.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. /* https://github.com/ckeditor/ckeditor5/issues/1282 */
  74. .live-snippet .ck.ck-content .table p:first-child {
  75. padding-top: 0;
  76. }
  77. /* https://github.com/ckeditor/ckeditor5/issues/1282 */
  78. .live-snippet .ck.ck-content .table p:last-child,
  79. .live-snippet .ck.ck-content .table ul:last-child,
  80. .live-snippet .ck.ck-content .table ol:last-child {
  81. margin-bottom: 0;
  82. }
  83. #snippet-inline-editor .ck-content {
  84. margin-bottom: 1rem;
  85. padding: 2rem;
  86. }
  87. #snippet-inline-editor .ck-content:not(.ck-focused) {
  88. border: 1px solid rgba(0, 0, 0, 0.15);
  89. }
  90. #snippet-inline-editor h2, #snippet-inline-editor h3 {
  91. margin-top: 0;
  92. padding-top: 0;
  93. border-bottom: 0;
  94. }
  95. #snippet-inline-editor header.ck-content {
  96. text-align: center;
  97. }
  98. #snippet-inline-editor header.ck-content h2 {
  99. margin-bottom: 0;
  100. font-size: 2.1rem;
  101. }
  102. #snippet-inline-editor header.ck-content h3 {
  103. color: rgba(5, 22, 42, 0.59);
  104. font-weight: 600;
  105. font-size: 1.6rem;
  106. }
  107. /* examples/builds/document-editor.html */
  108. .live-snippet .document-editor {
  109. margin: 1.5em 0;
  110. }
  111. .demo-row {
  112. width: 100%;
  113. display: -ms-flexbox;
  114. display: flex;
  115. }
  116. .demo-row__half {
  117. width: 50%;
  118. }
  119. .demo-row__half:first-of-type {
  120. padding-right: .5rem;
  121. }
  122. .demo-row__half:last-of-type {
  123. padding-left: .5rem;
  124. }
  125. .demo-row__third {
  126. width: 33.3333%;
  127. }
  128. .demo-row__third > div {
  129. padding: 2.5rem;
  130. border: 1px solid rgba(0, 0, 0, 0.15);
  131. }
  132. .demo-row__third:nth-of-type(2) {
  133. padding-left: 1rem;
  134. padding-right: 1rem;
  135. }
  136. .demo-row h3 {
  137. margin: 0;
  138. }
  139. .demo-row p {
  140. margin-bottom: 0;
  141. }