fontcolor.css 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. :root {
  6. --ck-table-color-tile-size: 20px;
  7. --ck-table-color-max-columns: 5;
  8. --ck-table-color-padding: 10px;
  9. --ck-color-table-color-tile-border: hsl(0, 0%, 90%);
  10. --ck-color-table-color-tile-border-active: hsl(184, 80%, 50%);
  11. }
  12. .ck .ck-color-table__grid-container {
  13. display: grid;
  14. grid-template-columns: repeat( var(--ck-table-color-max-columns), 1fr);
  15. grid-gap: calc( var(--ck-table-color-padding) / 2 );
  16. padding: var(--ck-table-color-padding);
  17. }
  18. .ck .ck-color-table__color-tile {
  19. width: var(--ck-table-color-tile-size);
  20. height: var(--ck-table-color-tile-size);
  21. min-width: var(--ck-table-color-tile-size);
  22. min-height: var(--ck-table-color-tile-size);
  23. border-radius: var(--ck-border-radius);
  24. transition: 200ms ease box-shadow;
  25. }
  26. .ck .ck-disabled.ck-color-table__color-tile {
  27. cursor: unset;
  28. transition: unset;
  29. }
  30. .ck .ck-color-table__color-tile_bordered {
  31. box-shadow: 0 0 0 1px var(--ck-color-table-color-tile-border);
  32. }
  33. .ck .ck-color-table__color-tile:hover:not( .ck-disabled ) {
  34. box-shadow: 0 0 0 2px var(--ck-color-table-color-tile-border-active);
  35. }
  36. /* If we change it to list element this CSS will be obsolete. */
  37. .ck .ck-button.ck-color-table__remove-color {
  38. display: flex;
  39. align-items: center;
  40. width: 100%;
  41. border-bottom: 1px solid var(--ck-color-base-border);
  42. padding: calc(var(--ck-table-color-padding) / 2 ) var(--ck-table-color-padding);
  43. }
  44. .ck .ck-button.ck-button_with-text.ck-color-table__remove-color svg {
  45. width: var(--ck-table-color-tile-size);
  46. margin-right: var(--ck-spacing-large);
  47. }