/* * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ :root, :host { --ck-insert-table-dropdown-padding: var(--ck-spacing-padding); --ck-insert-table-dropdown-box-height: 16px; --ck-insert-table-dropdown-box-width: 16px; --ck-insert-table-dropdown-box-margin: 1px; --ck-insert-table-dropdown-box-border-radius: var(--ck-radius-xs); --ck-insert-table-dropdown-label-font-size: var(--ck-font-size-small, var(--ck-font-size-sm)); --ck-insert-table-dropdown-label-padding: var(--ck-spacing-padding-compact) 0; /* Color */ --ck-insert-table-dropdown-box-border-color: var(--ck-color-border-control); /* Selected cells, and the selected cell under the pointer. Declared `initial` and read with the current values as fallbacks (the focus colors for selected cells, the button "on" hover background for the hovered one). */ --ck-insert-table-dropdown-box-on-background: initial; --ck-insert-table-dropdown-box-on-border-color: initial; --ck-insert-table-dropdown-box-hover-background: initial; --ck-insert-table-dropdown-box-hover-border-color: initial; /* Shadow of the selected cell under the pointer, for example an inner ring. */ --ck-insert-table-dropdown-box-hover-shadow: none; } .ck .ck-insert-table-dropdown__grid { /* The width of a container should match 10 items in a row so there will be a 10x10 grid. */ width: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2); padding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0; display: flex; flex-direction: row; flex-wrap: wrap; } .ck .ck-insert-table-dropdown__label, .ck[dir=rtl] .ck-insert-table-dropdown__label { text-align: center; font-size: var(--ck-insert-table-dropdown-label-font-size); padding: var(--ck-insert-table-dropdown-label-padding); } .ck .ck-insert-table-dropdown-grid-box { min-width: var(--ck-insert-table-dropdown-box-width); min-height: var(--ck-insert-table-dropdown-box-height); margin: var(--ck-insert-table-dropdown-box-margin); border: var(--ck-border-width-thin) solid var(--ck-insert-table-dropdown-box-border-color); border-radius: var(--ck-insert-table-dropdown-box-border-radius); outline: none; transition: none; @media (prefers-reduced-motion: reduce) { transition: none; } &:focus { box-shadow: none; } &.ck-on { border-color: var(--ck-insert-table-dropdown-box-on-border-color, var(--ck-color-focus-border, var(--ck-color-interactive-focus-border))); background: var(--ck-insert-table-dropdown-box-on-background, var(--ck-color-focus-outer-shadow, var(--ck-color-interactive-focus-shadow))); /* The cell under the pointer. Without this rule it takes the generic button hover background, which differs from the other selected cells; the fallbacks keep that default, so a theme can align the two. */ &:hover:not(.ck-disabled) { border-color: var(--ck-insert-table-dropdown-box-hover-border-color, var(--ck-insert-table-dropdown-box-on-border-color, var(--ck-color-focus-border, var(--ck-color-interactive-focus-border)))); background: var(--ck-insert-table-dropdown-box-hover-background, var(--ck-button-hover-background)); box-shadow: var(--ck-insert-table-dropdown-box-hover-shadow); } } }