codeblock.css 693 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. .ck-editor__editable pre {
  6. position: relative;
  7. &[data-language]::after {
  8. content: attr(data-language);
  9. position: absolute;
  10. top: -1px;
  11. right: 10px;
  12. background: hsl(0, 0%, 46%);
  13. font-size: 10px;
  14. font-family: var(--ck-font-face);
  15. padding: var(--ck-spacing-tiny) var(--ck-spacing-medium);
  16. color: hsl(0, 0%, 100%);
  17. }
  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. }