8
0

codeblock.css 820 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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-content pre {
  6. padding: 1em;
  7. color: #353535;
  8. background: hsla(0, 0%, 78%, 0.3);
  9. border: 1px solid hsl(0, 0%, 77%);
  10. border-radius: 2px;
  11. /* Code block are language direction–agnostic. */
  12. text-align: left;
  13. direction: ltr;
  14. tab-size: 4;
  15. white-space: pre-wrap;
  16. /* Don't inherit the style, e.g. when in a block quote. */
  17. font-style: normal;
  18. /* Don't let the code be squashed e.g. when in a table cell. */
  19. min-width: 200px;
  20. & code {
  21. background: unset;
  22. padding: 0;
  23. border-radius: 0;
  24. }
  25. }
  26. .ck.ck-editor__editable pre {
  27. position: relative;
  28. &[data-language]::after {
  29. content: attr(data-language);
  30. position: absolute;
  31. }
  32. }