document-editor.html 5.3 KB

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