tableselection.css 821 B

123456789101112131415161718192021222324252627282930313233343536373839
  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-table-selected-cell-background: hsla(208, 90%, 80%, .3);
  7. }
  8. .ck.ck-editor__editable .table table {
  9. & td.ck-editor__editable_selected,
  10. & th.ck-editor__editable_selected {
  11. position: relative;
  12. caret-color: transparent;
  13. outline: unset;
  14. box-shadow: unset;
  15. /* https://github.com/ckeditor/ckeditor5/issues/6446 */
  16. &:after {
  17. content: '';
  18. pointer-events: none;
  19. background-color: var(--ck-table-selected-cell-background);
  20. position: absolute;
  21. top: 0;
  22. left: 0;
  23. right: 0;
  24. bottom: 0;
  25. }
  26. & ::selection,
  27. &:focus {
  28. background-color: transparent;
  29. }
  30. & .ck-widget_selected {
  31. outline: unset;
  32. }
  33. }
  34. }