document-editor.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <div class="document-editor">
  2. <div class="document-editor__toolbar"></div>
  3. <div class="document-editor__editable-container">
  4. <div class="document-editor__editable">
  5. <h2 style="text-align:center;">The Flavorful Tuscany Meetup</h2>
  6. <h3 style="text-align:center;">Welcome letter</h3>
  7. <p>Dear Guest,</p>
  8. <p>We are delighted to welcome you to the annual <em>Flavorful Tuscany Meetup</em> and hope you will enjoy the programme as well as your stay at the <a href="http://ckeditor.com">Bilancino Hotel</a>.</p>
  9. <p>Please find below the full schedule of the event.</p>
  10. <ul>
  11. <li>9:30 AM - 11:30 AM Americano vs. Brewed - “know your coffee” session with <strong>Stefano Garau</strong></li>
  12. <li>1:00 PM - 3:00 PM Pappardelle al pomodoro - live cooking session with <strong>Rita Fresco</strong></li>
  13. <li>5:00 PM - 8:00 PM Tuscan vineyards at a glance - wine-tasting session with <strong>Frederico Riscoli</strong></li>
  14. </ul>
  15. <blockquote>
  16. <p>The annual Flavorful Tuscany meetups are always a culinary discovery. You get the best of Tuscan flavors during an intense one-day stay at one of the top hotels of the region. All the sessions are lead by top chefs passionate about their profession. I would certainly recommend to save the date in your calendar for this one!</p>
  17. <p>Angelina Calvino, food journalist</p>
  18. </blockquote>
  19. <p>Please arrive at the <a href="http://ckeditor.com">Bilancino Hotel</a> reception desk at least <strong>half an hour earlier</strong> to make sure that the registration process goes as smoothly as possible.</p>
  20. <p>We look forward to welcoming you to the event.</p>
  21. <p><strong>Victoria Valc</strong></p>
  22. <p><strong>Event Manager</strong></p>
  23. <p><strong>Bilancino Hotel</strong></p>
  24. </div>
  25. </div>
  26. </div>
  27. <style>
  28. .document-editor {
  29. border: 1px solid var(--ck-color-base-border);
  30. border-radius: var(--ck-border-radius);
  31. /* Set vertical boundaries for the document editor. */
  32. max-height: 700px;
  33. /* This element is a flex container for easier rendering. */
  34. display: flex;
  35. flex-flow: column nowrap;
  36. overflow: hidden;
  37. }
  38. .document-editor__toolbar {
  39. /* Make sure the toolbar container is always above the editable. */
  40. z-index: 1;
  41. /* Create the illusion of the toolbar floating over the editable. */
  42. box-shadow: 0 0 5px hsla( 0,0%,0%,.2 );
  43. /* Use the CKEditor CSS variables to keep the UI consistent. */
  44. border-bottom: 1px solid var(--ck-color-toolbar-border);
  45. }
  46. /* Adjust the look of the toolbar inside of the container. */
  47. .document-editor__toolbar .ck-toolbar {
  48. border: 0;
  49. border-radius: 0;
  50. }
  51. /* Make the editable container look like the inside of a native word processor app. */
  52. .document-editor__editable-container {
  53. padding: calc( 2 * var(--ck-spacing-large) );
  54. background: var(--ck-color-base-foreground);
  55. /* Make it possible to scroll the "page" of the edited content. */
  56. overflow-y: scroll;
  57. }
  58. .document-editor__editable-container .ck-editor__editable {
  59. /* Set the dimensions of the "page". */
  60. width: 15.8cm;
  61. min-height: 21cm;
  62. /* Keep the "page" off the boundaries of the container. */
  63. padding: 1cm 2cm 2cm;
  64. border: 1px hsl( 0,0%,82.7% ) solid;
  65. border-radius: var(--ck-border-radius);
  66. background: white;
  67. /* The "page" should cast a slight shadow (3D illusion). */
  68. box-shadow: 0 0 5px hsla( 0,0%,0%,.1 );
  69. /* Center the "page". */
  70. margin: 0 auto;
  71. }
  72. /* Override the page's width in the "Examples" section which is wider. */
  73. .main__content-wide .document-editor__editable-container .ck-editor__editable {
  74. width: 18cm;
  75. }
  76. /* Set the default font for the "page" of the content. */
  77. .document-editor .ck-content,
  78. .document-editor .ck-heading-dropdown .ck-list {
  79. font: 16px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
  80. }
  81. /* Adjust the headings dropdown to host some larger heading styles. */
  82. .document-editor .ck-heading-dropdown .ck-dropdown__panel .ck-list > .ck-list__item {
  83. line-height: calc( 1.2 * var(--ck-line-height-base) * var(--ck-font-size-base) );
  84. min-width: 8em;
  85. }
  86. /* Set the styles for the "Heading 1". */
  87. .document-editor .ck-content h2,
  88. .document-editor .ck-heading-dropdown .ck-heading_heading1 {
  89. font-size: 2.18em;
  90. }
  91. .document-editor .ck-content h2 {
  92. line-height: 1.37em;
  93. padding-top: .342em;
  94. margin-bottom: .142em;
  95. }
  96. /* Set the styles for the "Heading 2". */
  97. .document-editor .ck-content h3,
  98. .document-editor .ck-heading-dropdown .ck-heading_heading2 {
  99. font-size: 1.75em;
  100. color: hsl( 203, 100%, 50% );
  101. }
  102. .document-editor .ck-heading-dropdown .ck-heading_heading2.ck-list__item_active {
  103. color: var(--ck-color-list-item-text-active);
  104. }
  105. /* Set the styles for the "Heading 2". */
  106. .document-editor .ck-content h3 {
  107. line-height: 1.86em;
  108. padding-top: .171em;
  109. margin-bottom: .357em;
  110. }
  111. /* Set the styles for the "Heading 3". */
  112. .document-editor .ck-content h4,
  113. .document-editor .ck-heading-dropdown .ck-heading_heading3 {
  114. font-size: 1.31em;
  115. }
  116. .document-editor .ck-content h4 {
  117. line-height: 1.24em;
  118. padding-top: .286em;
  119. margin-bottom: .952em;
  120. }
  121. /* Set the styles for the "Paragraph". */
  122. .document-editor .ck-content p,
  123. .document-editor .ck-heading-dropdown .ck-heading_paragraph {
  124. font-size: 1em;
  125. }
  126. .document-editor .ck-content p {
  127. line-height: 1.63em;
  128. padding-top: .5em;
  129. margin-bottom: 1.13em;
  130. }
  131. /* Make the block quoted text serif with some additional spacing. */
  132. .document-editor .ck-content blockquote {
  133. font-family: Georgia, serif;
  134. margin-left: calc( 2 * var(--ck-spacing-large) );
  135. margin-right: calc( 2 * var(--ck-spacing-large) );
  136. }
  137. </style>