snippet-styles.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. border: 1px solid rgba(0, 0, 0, 0.15);
  40. }
  41. #snippet-inline-editor h2, #snippet-inline-editor h3 {
  42. margin-top: 0;
  43. padding-top: 0;
  44. border-bottom: 0;
  45. }
  46. #snippet-inline-editor header {
  47. text-align: center;
  48. }
  49. #snippet-inline-editor header h2 {
  50. margin-bottom: 0;
  51. font-size: 2.1rem;
  52. }
  53. #snippet-inline-editor header h3 {
  54. color: rgba(5, 22, 42, 0.59);
  55. font-weight: 600;
  56. font-size: 1.6rem;
  57. }
  58. .demo-row {
  59. width: 100%;
  60. display: -ms-flexbox;
  61. display: flex;
  62. }
  63. .demo-row__half {
  64. width: 50%;
  65. }
  66. .demo-row__half:first-of-type {
  67. padding-right: .5rem;
  68. }
  69. .demo-row__half:last-of-type {
  70. padding-left: .5rem;
  71. }
  72. .demo-row__third {
  73. width: 33.3333%;
  74. }
  75. .demo-row__third > div {
  76. padding: 2.5rem;
  77. border: 1px solid rgba(0, 0, 0, 0.15);
  78. }
  79. .demo-row__third:nth-of-type(2) {
  80. padding-left: 1rem;
  81. padding-right: 1rem;
  82. }
  83. .demo-row h3 {
  84. margin: 0;
  85. }
  86. .demo-row p {
  87. margin-bottom: 0;
  88. }