snippet-styles.css 3.2 KB

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