8
0

codeblock.css 765 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. :root {
  6. --ck-color-code-block-label-background: hsl(0, 0%, 46%);
  7. }
  8. .ck.ck-editor__editable pre[data-language]::after {
  9. top: -1px;
  10. right: 10px;
  11. background: var(--ck-color-code-block-label-background);
  12. font-size: 10px;
  13. font-family: var(--ck-font-face);
  14. line-height: 16px;
  15. padding: var(--ck-spacing-tiny) var(--ck-spacing-medium);
  16. color: hsl(0, 0%, 100%);
  17. white-space: nowrap;
  18. }
  19. .ck.ck-code-block-dropdown .ck-dropdown__panel {
  20. /* There could be dozens of languages available. Use scroll to prevent a 10e6px dropdown. */
  21. max-height: 250px;
  22. overflow-y: auto;
  23. overflow-x: hidden;
  24. }