@ckeditor/ckeditor5-table
Version:
Table feature for CKEditor 5.
76 lines (68 loc) • 1.51 kB
CSS
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
.ck-content .table{
margin:0.9em auto;
display:table;
}
.ck-content .table table{
border-collapse:collapse;
border-spacing:0;
width:100%;
height:100%;
border:1px double hsl(0, 0%, 70%);
}
.ck-content .table table td,
.ck-content .table table th{
min-width:2em;
padding:.4em;
border:1px solid hsl(0, 0%, 75%);
}
.ck-content .table table th{
font-weight:bold;
background:hsla(0, 0%, 0%, 5%);
}
@media print{
.ck-content .table table{
height:initial;
}
}
.ck-content[dir="rtl"] .table th{
text-align:right;
}
.ck-content[dir="ltr"] .table th{
text-align:left;
}
:root{
--ck-color-selector-caption-background:hsl(0, 0%, 97%);
--ck-color-selector-caption-text:hsl(0, 0%, 20%);
}
.ck-content .table > figcaption{
display:table-caption;
caption-side:top;
word-break:break-word;
text-align:center;
color:var(--ck-color-selector-caption-text);
background-color:var(--ck-color-selector-caption-background);
padding:.6em;
font-size:.75em;
outline-offset:-1px;
}
@media (forced-colors: active){
.ck-content .table > figcaption{
background-color:unset;
color:unset;
}
}
.ck-content .table .ck-table-resized{
table-layout:fixed;
}
.ck-content .table table{
overflow:hidden;
}
.ck-content .table td,
.ck-content .table th{
overflow-wrap:break-word;
position:relative;
}