snippet-styles.css 2.6 KB

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