table.css 990 B

12345678910111213141516171819202122232425262728293031323334353637
  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. .ck-content .table {
  6. /* Give the table widget some air and center it horizontally */
  7. margin: 1em auto;
  8. display: table;
  9. & table {
  10. /* The table cells should have slight borders */
  11. border-collapse: collapse;
  12. border-spacing: 0;
  13. /* Table width and height are set on the parent <figure>. Make sure the table inside stretches
  14. to the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */
  15. width: 100%;
  16. height: 100%;
  17. /* The outer border of the table should be slightly darker than the inner lines.
  18. Also see https://github.com/ckeditor/ckeditor5-table/issues/50. */
  19. border: 1px double hsl(0, 0%, 70%);
  20. & td,
  21. & th {
  22. min-width: 2em;
  23. padding: .4em;
  24. border-color: hsl(0, 0%, 75%);
  25. }
  26. & th {
  27. font-weight: bold;
  28. background: hsl(0, 0%, 98%);
  29. }
  30. }
  31. }