8
0

snippet-styles.css 1.8 KB

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