8
0

snippet-styles.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. */
  4. .ck-editor .ck-editor__editable {
  5. padding: 1em;
  6. }
  7. .ck-editor .ck-editor__editable > :first-child {
  8. margin-top: 0;
  9. }
  10. .ck-editor .ck-editor__editable > :last-child {
  11. margin-bottom: 0;
  12. }
  13. .ck-reset.ck-list {
  14. /* See https://github.com/ckeditor/ckeditor5/issues/494 */
  15. margin-left: 0;
  16. }
  17. /* examples/builds/inline-editor.html */
  18. .live-snippet .image-style-left, .live-snippet .image-style-right {
  19. float: left;
  20. height: auto;
  21. width: 50%;
  22. margin-top: .5rem;
  23. margin-right: 2.5rem;
  24. }
  25. .live-snippet .image-style-right {
  26. float: right;
  27. margin-right: 0;
  28. margin-left: 2.5rem;
  29. }
  30. .live-snippet .image img {
  31. margin: 0 auto;
  32. }
  33. .live-snippet blockquote p:first-of-type {
  34. margin-bottom: 1.5rem;
  35. }
  36. #snippet-inline-editor .ck-editor__editable {
  37. margin-bottom: 1rem;
  38. padding: 2rem;
  39. }
  40. #snippet-inline-editor .ck-editor__editable:not(.ck-focused) {
  41. border: 1px solid rgba(0, 0, 0, 0.15);
  42. }
  43. #snippet-inline-editor h2, #snippet-inline-editor h3 {
  44. margin-top: 0;
  45. padding-top: 0;
  46. border-bottom: 0;
  47. }
  48. #snippet-inline-editor header {
  49. text-align: center;
  50. }
  51. #snippet-inline-editor header h2 {
  52. margin-bottom: 0;
  53. font-size: 2.1rem;
  54. }
  55. #snippet-inline-editor header h3 {
  56. color: rgba(5, 22, 42, 0.59);
  57. font-weight: 600;
  58. font-size: 1.6rem;
  59. }
  60. .demo-row {
  61. width: 100%;
  62. display: -ms-flexbox;
  63. display: flex;
  64. }
  65. .demo-row__half {
  66. width: 50%;
  67. }
  68. .demo-row__half:first-of-type {
  69. padding-right: .5rem;
  70. }
  71. .demo-row__half:last-of-type {
  72. padding-left: .5rem;
  73. }
  74. .demo-row__third {
  75. width: 33.3333%;
  76. }
  77. .demo-row__third > div {
  78. padding: 2.5rem;
  79. border: 1px solid rgba(0, 0, 0, 0.15);
  80. }
  81. .demo-row__third:nth-of-type(2) {
  82. padding-left: 1rem;
  83. padding-right: 1rem;
  84. }
  85. .demo-row h3 {
  86. margin: 0;
  87. }
  88. .demo-row p {
  89. margin-bottom: 0;
  90. }