heading.css 816 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. .ck-heading_heading1 {
  6. font-size: calc(var(--ck-font-size-normal) * 1.5);
  7. }
  8. .ck-heading_heading2 {
  9. font-size: calc(var(--ck-font-size-normal) * 1.3);
  10. }
  11. .ck-heading_heading3 {
  12. font-size: calc(var(--ck-font-size-normal) * 1.1);
  13. }
  14. /* Using absolute units to make sure each element has the same height and padding.
  15. https://github.com/ckeditor/ckeditor5-heading/issues/63 */
  16. [class*="ck-heading_"] {
  17. line-height: calc(1.8 * var(--ck-font-size-base));
  18. padding: calc(0.8 * var(--ck-font-size-base));
  19. }
  20. [class*="ck-heading_heading"] {
  21. font-weight: bold;
  22. }
  23. /* Resize dropdown's button label. */
  24. .ck-dropdown.ck-heading-dropdown {
  25. & .ck-dropdown__button .ck-button__label {
  26. width: 8em;
  27. }
  28. }