snippet-styles.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*
  2. * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. */
  4. .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-reset.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. #snippet-inline-editor .ck-editor__editable {
  53. margin-bottom: 1rem;
  54. padding: 2rem;
  55. }
  56. #snippet-inline-editor .ck-editor__editable:not(.ck-focused) {
  57. border: 1px solid rgba(0, 0, 0, 0.15);
  58. }
  59. #snippet-inline-editor h2, #snippet-inline-editor h3 {
  60. margin-top: 0;
  61. padding-top: 0;
  62. border-bottom: 0;
  63. }
  64. #snippet-inline-editor header {
  65. text-align: center;
  66. }
  67. #snippet-inline-editor header h2 {
  68. margin-bottom: 0;
  69. font-size: 2.1rem;
  70. }
  71. #snippet-inline-editor header h3 {
  72. color: rgba(5, 22, 42, 0.59);
  73. font-weight: 600;
  74. font-size: 1.6rem;
  75. }
  76. .demo-row {
  77. width: 100%;
  78. display: -ms-flexbox;
  79. display: flex;
  80. }
  81. .demo-row__half {
  82. width: 50%;
  83. }
  84. .demo-row__half:first-of-type {
  85. padding-right: .5rem;
  86. }
  87. .demo-row__half:last-of-type {
  88. padding-left: .5rem;
  89. }
  90. .demo-row__third {
  91. width: 33.3333%;
  92. }
  93. .demo-row__third > div {
  94. padding: 2.5rem;
  95. border: 1px solid rgba(0, 0, 0, 0.15);
  96. }
  97. .demo-row__third:nth-of-type(2) {
  98. padding-left: 1rem;
  99. padding-right: 1rem;
  100. }
  101. .demo-row h3 {
  102. margin: 0;
  103. }
  104. .demo-row p {
  105. margin-bottom: 0;
  106. }