table.css 736 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  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. /* The outer border of the table should be slightly darker than the inner lines.
  14. Also see https://github.com/ckeditor/ckeditor5-table/issues/50. */
  15. border: 1px double hsl(0, 0%, 70%);
  16. & td,
  17. & th {
  18. min-width: 2em;
  19. padding: .4em;
  20. text-align: center;
  21. border-color: hsl(0, 0%, 85%);
  22. }
  23. & th {
  24. font-weight: bold;
  25. background: hsl(0, 0%, 98%);
  26. }
  27. }
  28. }