@ckeditor/ckeditor5-table 49.0.1 → 49.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-content.css +12 -5
- package/dist/index-content.css.map +1 -1
- package/dist/index-editor.css +15 -5
- package/dist/index-editor.css.map +1 -1
- package/dist/index.css +27 -10
- package/dist/index.css.map +1 -1
- package/package.json +10 -10
package/dist/index-content.css
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--ck-content-table-style-spacing: 1.5em;
|
|
7
|
+
--ck-content-table-border-color: #b3b3b3;
|
|
8
|
+
--ck-content-table-border-width: 1px;
|
|
9
|
+
--ck-content-table-border-style: double;
|
|
10
|
+
--ck-content-table-header-background: #0000000d;
|
|
11
|
+
--ck-content-table-cell-border-color: #bfbfbf;
|
|
12
|
+
--ck-content-table-cell-border-width: 1px;
|
|
13
|
+
--ck-content-table-cell-border-style: solid;
|
|
7
14
|
--ck-content-color-table-caption-background: #f7f7f7;
|
|
8
15
|
--ck-content-color-table-caption-text: #333;
|
|
9
16
|
}
|
|
@@ -37,12 +44,12 @@
|
|
|
37
44
|
& table.table:not(.layout-table), & figure.table:not(.layout-table) > table {
|
|
38
45
|
border-collapse: collapse;
|
|
39
46
|
border-spacing: 0;
|
|
40
|
-
border:
|
|
47
|
+
border: var(--ck-content-table-border-width) var(--ck-content-table-border-style) var(--ck-content-table-border-color);
|
|
41
48
|
|
|
42
49
|
& > thead, & > tfoot, & > tbody {
|
|
43
50
|
& > tr {
|
|
44
51
|
& > th {
|
|
45
|
-
background:
|
|
52
|
+
background: var(--ck-content-table-header-background);
|
|
46
53
|
font-weight: bold;
|
|
47
54
|
}
|
|
48
55
|
|
|
@@ -55,7 +62,7 @@
|
|
|
55
62
|
margin-bottom: 0;
|
|
56
63
|
}
|
|
57
64
|
|
|
58
|
-
border:
|
|
65
|
+
border: var(--ck-content-table-cell-border-width) var(--ck-content-table-cell-border-style) var(--ck-content-table-cell-border-color);
|
|
59
66
|
min-width: 2em;
|
|
60
67
|
padding: .4em;
|
|
61
68
|
}
|
|
@@ -122,8 +129,8 @@
|
|
|
122
129
|
word-break: normal;
|
|
123
130
|
overflow-wrap: anywhere;
|
|
124
131
|
text-align: center;
|
|
125
|
-
color: var(--ck-content-color-table-caption-text);
|
|
126
|
-
background-color: var(--ck-content-color-table-caption-background);
|
|
132
|
+
color: var(--ck-content-table-caption-text-color, var(--ck-content-color-table-caption-text));
|
|
133
|
+
background-color: var(--ck-content-table-caption-background-color, var(--ck-content-color-table-caption-background));
|
|
127
134
|
outline-offset: -1px;
|
|
128
135
|
padding: .6em;
|
|
129
136
|
font-size: .75em;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../theme/index-content.css","index-content.css"],"names":[],"mappings":";;;;AAKA,CAAA,IAAA,CAAA,CAAA,CAAA,IAAA,CAAA;ACJA,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG;AACzC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM;AACtD,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG;AAC7C;;ADWA,CAAA,EAAA,CAAA,OAAA,CAAA;ACRA,CAAC,CDUA,CAAA,CAAA,CAAA,KAAA,CAAA,EAAA,CAAA;ACTD,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK;AACrB,CAAC,CAAC;;AAEF,CAAC,CDYA,CAAA,CAAA,GAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,KAAA,CAA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AA,OAAA,CAAA,CAAA,KAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA,EAAA,CAAA;ACzEA,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI;AAC3B;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index-content.css.map","sourcesContent":["/*\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n:root,\n:host {\n\t/* The variable is used by both editor and content styles. Keep it in sync with the identical declaration in `tableproperties.css`. */\n\t--ck-content-table-style-spacing: 1.5em;\n\n\t/* The variable is used by both editor and content styles. Keep it in sync with the identical declaration in `tablecaption.css`. */\n\t--ck-content-color-table-caption-background: hsl(0, 0%, 97%);\n\t--ck-content-color-table-caption-text: hsl(0, 0%, 20%);\n}\n\n.ck-content {\n\t/* Ensure that table header text is aligned to the start by default. See https://github.com/ckeditor/ckeditor5/issues/19454. */\n\t& .table th {\n\t\ttext-align: start;\n\t}\n\n\t/* Text alignment of the table header should match the editor settings and override the native browser styling,\n\twhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638. */\n\t&[dir=\"rtl\"] .table th {\n\t\ttext-align: right;\n\t}\n\n\t&[dir=\"ltr\"] .table th {\n\t\ttext-align: left;\n\t}\n\n\t& figure.table:not(.layout-table) {\n\t\tdisplay: table;\n\n\t\t& > table {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t}\n\n\t& .table:not(.layout-table) {\n\t\t/* Give the table widget some air and center it horizontally */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\t}\n\n\t& table.table:not(.layout-table),\n\t& figure.table:not(.layout-table) > table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& > thead,\n\t\t& > tfoot,\n\t\t& > tbody {\n\t\t\t/* The linter is disabled here because linter is confused when resolving the `table.table:not(.layout-table)`\n\t\t\tand `figure.table:not(.layout-table) > table` selectors combined with below selectors.\n\t\t\tThere is no need to split it into two large structures with same code just to make linter happy. */\n\t\t\t& > tr {\n\t\t\t\t& > th {\n\t\t\t\t\tfont-weight: bold;\n\t\t\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t\t\t}\n\n\t\t\t\t& > td,\n\t\t\t\t& > th {\n\t\t\t\t\t/* Opinionated table content styling: prevents content from shifting\n\t\t\t\t\t * when Enter is pressed in the first cell.\n\t\t\t\t\t * See: https://github.com/ckeditor/ckeditor5/pull/18801\n\t\t\t\t\t */\n\t\t\t\t\t& > p:first-of-type {\n\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Mirrors the rule above for the last paragraph to keep the\n\t\t\t\t\t * experience consistent with the first paragraph.\n\t\t\t\t\t *\n\t\t\t\t\t * Together, these rules prevent margins from appearing when a\n\t\t\t\t\t * bogus paragraph becomes a real paragraph after it receives line\n\t\t\t\t\t * height, text alignment, or other block style.\n\t\t\t\t\t *\n\t\t\t\t\t * See: https://github.com/ckeditor/ckeditor5/pull/18801\n\t\t\t\t\t */\n\t\t\t\t\t& > p:last-of-type {\n\t\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tmin-width: 2em;\n\t\t\t\t\tpadding: 0.4em;\n\n\t\t\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it's not necessary here.\n\t\t\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n@media print {\n\t.ck-content figure.table {\n\t\t/**\n\t\t * Sometimes Chrome incorrectly calculates the height of the last table row and some\n\t\t * of the content overlaps the paragraph that is placed directly after the table. It affects\n\t\t * the column split mode pagination calculation which causes mismatch between the print mode and\n\t\t * the preview mode.\n\t\t *\n\t\t * This issue happens only if:\n\t\t *\n\t\t * \t* The table is inside a figure element.\n\t\t * \t* The table has `display: table` style set.\n\t\t * \t* The block element is placed directly after the table.\n\t\t */\n\t\t&:not(.layout-table) {\n\t\t\twidth: fit-content;\n\t\t\theight: fit-content;\n\t\t}\n\n\t\t/**\n\t\t * Expanding the table to the full height of the parent container is necessary because tables\n\t\t * are rendered inside <figure> elements, which is kinda buggy in table height calculation.\n\t\t * While setting `height: 100%` fixes the issue in the editing mode described here:\n\t\t * https://github.com/ckeditor/ckeditor5/issues/6186\n\t\t *\n\t\t * it's causing another issue with the table height in the print preview mode here:\n\t\t * https://github.com/ckeditor/ckeditor5/issues/16856\n\t\t *\n\t\t * For now, resetting the height to `initial` in the print mode works as a workaround.\n\t\t */\n\t\t&:not(.layout-table) > table {\n\t\t\theight: initial;\n\t\t}\n\t}\n}\n\n.ck-content {\n\t& table.table.layout-table,\n\t& figure.table.layout-table {\n\t\t/* Do not reserve space above and below the layout table. */\n\t\tmargin-top: 0;\n\t\tmargin-bottom: 0;\n\t}\n\n\t& table.table.layout-table {\n\t\tborder-spacing: 0;\n\t}\n\n\t& figure.table.layout-table > table {\n\t\tborder-spacing: 0;\n\t}\n}\n\n.ck-content {\n\t& .table {\n\t\t&.table-style-align-left {\n\t\t\tfloat: left;\n\t\t\tmargin-right: var(--ck-content-table-style-spacing);\n\t\t}\n\n\t\t&.table-style-align-right {\n\t\t\tfloat: right;\n\t\t\tmargin-left: var(--ck-content-table-style-spacing);\n\t\t}\n\n\t\t&.table-style-align-center {\n\t\t\tmargin-left: auto;\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t&.table-style-block-align-left {\n\t\t\tmargin-left: 0;\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t&.table-style-block-align-right {\n\t\t\tmargin-left: auto;\n\t\t\tmargin-right: 0;\n\t\t}\n\t}\n}\n\n.ck-content .table > figcaption,\n.ck-content figure.table > table > caption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: normal;\n\toverflow-wrap: anywhere;\n\ttext-align: center;\n\tcolor: var(--ck-content-color-table-caption-text);\n\tbackground-color: var(--ck-content-color-table-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n\n\t/* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */\n\t@media (forced-colors: active) {\n\t\tbackground-color: unset;\n\t\tcolor: unset;\n\t}\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n}\n",":root, :host {\n --ck-content-table-style-spacing: 1.5em;\n --ck-content-color-table-caption-background: #f7f7f7;\n --ck-content-color-table-caption-text: #333;\n}\n\n.ck-content {\n & .table th {\n text-align: start;\n }\n\n &[dir=\"rtl\"] .table th {\n text-align: right;\n }\n\n &[dir=\"ltr\"] .table th {\n text-align: left;\n }\n\n & figure.table:not(.layout-table) {\n display: table;\n\n & > table {\n width: 100%;\n height: 100%;\n }\n }\n\n & .table:not(.layout-table) {\n margin: .9em auto;\n }\n\n & table.table:not(.layout-table), & figure.table:not(.layout-table) > table {\n border-collapse: collapse;\n border-spacing: 0;\n border: 1px double #b3b3b3;\n\n & > thead, & > tfoot, & > tbody {\n & > tr {\n & > th {\n background: #0000000d;\n font-weight: bold;\n }\n\n & > td, & > th {\n & > p:first-of-type {\n margin-top: 0;\n }\n\n & > p:last-of-type {\n margin-bottom: 0;\n }\n\n border: 1px solid #bfbfbf;\n min-width: 2em;\n padding: .4em;\n }\n }\n }\n }\n}\n\n@media print {\n .ck-content figure.table {\n &:not(.layout-table) {\n width: fit-content;\n height: fit-content;\n }\n\n &:not(.layout-table) > table {\n height: initial;\n }\n }\n}\n\n.ck-content {\n & table.table.layout-table, & figure.table.layout-table {\n margin-top: 0;\n margin-bottom: 0;\n }\n\n & table.table.layout-table, & figure.table.layout-table > table {\n border-spacing: 0;\n }\n}\n\n.ck-content {\n & .table {\n &.table-style-align-left {\n float: left;\n margin-right: var(--ck-content-table-style-spacing);\n }\n\n &.table-style-align-right {\n float: right;\n margin-left: var(--ck-content-table-style-spacing);\n }\n\n &.table-style-align-center {\n margin-left: auto;\n margin-right: auto;\n }\n\n &.table-style-block-align-left {\n margin-left: 0;\n margin-right: auto;\n }\n\n &.table-style-block-align-right {\n margin-left: auto;\n margin-right: 0;\n }\n }\n}\n\n.ck-content .table > figcaption, .ck-content figure.table > table > caption {\n caption-side: top;\n word-break: normal;\n overflow-wrap: anywhere;\n text-align: center;\n color: var(--ck-content-color-table-caption-text);\n background-color: var(--ck-content-color-table-caption-background);\n outline-offset: -1px;\n padding: .6em;\n font-size: .75em;\n display: table-caption;\n\n @media (forced-colors: active) {\n background-color: unset;\n color: unset;\n }\n}\n\n.ck-content .table .ck-table-resized {\n table-layout: fixed;\n}\n\n.ck-content .table td, .ck-content .table th {\n overflow-wrap: break-word;\n}\n\n/*# sourceMappingURL=index-content.css.map */"]}
|
|
1
|
+
{"version":3,"sources":["../theme/index-content.css","index-content.css"],"names":[],"mappings":";;;;AAKA,CAAA,IAAA,CAAA,CAAA,CAAA,IAAA,CAAA;ACJA,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK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 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n:root,\n:host {\n\t/* The variable is used by both editor and content styles. Keep it in sync with the identical declaration in `tableproperties.css`. */\n\t--ck-content-table-style-spacing: 1.5em;\n\n\t/* Table borders and header background (content), themable from :root. */\n\t--ck-content-table-border-color: hsl(0, 0%, 70%);\n\t--ck-content-table-border-width: 1px;\n\t--ck-content-table-border-style: double;\n\t--ck-content-table-header-background: hsla(0, 0%, 0%, 5%);\n\t--ck-content-table-cell-border-color: hsl(0, 0%, 75%);\n\t--ck-content-table-cell-border-width: 1px;\n\t--ck-content-table-cell-border-style: solid;\n\n\t/* Table caption. These are the deprecated `--ck-content-color-*` names, kept as the default declaration;\n\trules read the new `--ck-content-table-caption-*` names with these as fallback (no BC break — overrides of\n\teither name keep working on `:root` and in scoped selectors). Keep in sync with `tablecaption.css`. */\n\t--ck-content-color-table-caption-background: hsl(0, 0%, 97%);\n\t--ck-content-color-table-caption-text: hsl(0, 0%, 20%);\n}\n\n.ck-content {\n\t/* Ensure that table header text is aligned to the start by default. See https://github.com/ckeditor/ckeditor5/issues/19454. */\n\t& .table th {\n\t\ttext-align: start;\n\t}\n\n\t/* Text alignment of the table header should match the editor settings and override the native browser styling,\n\twhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638. */\n\t&[dir=\"rtl\"] .table th {\n\t\ttext-align: right;\n\t}\n\n\t&[dir=\"ltr\"] .table th {\n\t\ttext-align: left;\n\t}\n\n\t& figure.table:not(.layout-table) {\n\t\tdisplay: table;\n\n\t\t& > table {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t}\n\n\t& .table:not(.layout-table) {\n\t\t/* Give the table widget some air and center it horizontally */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\t}\n\n\t& table.table:not(.layout-table),\n\t& figure.table:not(.layout-table) > table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: var(--ck-content-table-border-width) var(--ck-content-table-border-style) var(--ck-content-table-border-color);\n\n\t\t& > thead,\n\t\t& > tfoot,\n\t\t& > tbody {\n\t\t\t/* The linter is disabled here because linter is confused when resolving the `table.table:not(.layout-table)`\n\t\t\tand `figure.table:not(.layout-table) > table` selectors combined with below selectors.\n\t\t\tThere is no need to split it into two large structures with same code just to make linter happy. */\n\t\t\t& > tr {\n\t\t\t\t& > th {\n\t\t\t\t\tfont-weight: bold;\n\t\t\t\t\tbackground: var(--ck-content-table-header-background);\n\t\t\t\t}\n\n\t\t\t\t& > td,\n\t\t\t\t& > th {\n\t\t\t\t\t/* Opinionated table content styling: prevents content from shifting\n\t\t\t\t\t * when Enter is pressed in the first cell.\n\t\t\t\t\t * See: https://github.com/ckeditor/ckeditor5/pull/18801\n\t\t\t\t\t */\n\t\t\t\t\t& > p:first-of-type {\n\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Mirrors the rule above for the last paragraph to keep the\n\t\t\t\t\t * experience consistent with the first paragraph.\n\t\t\t\t\t *\n\t\t\t\t\t * Together, these rules prevent margins from appearing when a\n\t\t\t\t\t * bogus paragraph becomes a real paragraph after it receives line\n\t\t\t\t\t * height, text alignment, or other block style.\n\t\t\t\t\t *\n\t\t\t\t\t * See: https://github.com/ckeditor/ckeditor5/pull/18801\n\t\t\t\t\t */\n\t\t\t\t\t& > p:last-of-type {\n\t\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tmin-width: 2em;\n\t\t\t\t\tpadding: 0.4em;\n\n\t\t\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it's not necessary here.\n\t\t\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\t\t\tborder: var(--ck-content-table-cell-border-width) var(--ck-content-table-cell-border-style) var(--ck-content-table-cell-border-color);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n@media print {\n\t.ck-content figure.table {\n\t\t/**\n\t\t * Sometimes Chrome incorrectly calculates the height of the last table row and some\n\t\t * of the content overlaps the paragraph that is placed directly after the table. It affects\n\t\t * the column split mode pagination calculation which causes mismatch between the print mode and\n\t\t * the preview mode.\n\t\t *\n\t\t * This issue happens only if:\n\t\t *\n\t\t * \t* The table is inside a figure element.\n\t\t * \t* The table has `display: table` style set.\n\t\t * \t* The block element is placed directly after the table.\n\t\t */\n\t\t&:not(.layout-table) {\n\t\t\twidth: fit-content;\n\t\t\theight: fit-content;\n\t\t}\n\n\t\t/**\n\t\t * Expanding the table to the full height of the parent container is necessary because tables\n\t\t * are rendered inside <figure> elements, which is kinda buggy in table height calculation.\n\t\t * While setting `height: 100%` fixes the issue in the editing mode described here:\n\t\t * https://github.com/ckeditor/ckeditor5/issues/6186\n\t\t *\n\t\t * it's causing another issue with the table height in the print preview mode here:\n\t\t * https://github.com/ckeditor/ckeditor5/issues/16856\n\t\t *\n\t\t * For now, resetting the height to `initial` in the print mode works as a workaround.\n\t\t */\n\t\t&:not(.layout-table) > table {\n\t\t\theight: initial;\n\t\t}\n\t}\n}\n\n.ck-content {\n\t& table.table.layout-table,\n\t& figure.table.layout-table {\n\t\t/* Do not reserve space above and below the layout table. */\n\t\tmargin-top: 0;\n\t\tmargin-bottom: 0;\n\t}\n\n\t& table.table.layout-table {\n\t\tborder-spacing: 0;\n\t}\n\n\t& figure.table.layout-table > table {\n\t\tborder-spacing: 0;\n\t}\n}\n\n.ck-content {\n\t& .table {\n\t\t&.table-style-align-left {\n\t\t\tfloat: left;\n\t\t\tmargin-right: var(--ck-content-table-style-spacing);\n\t\t}\n\n\t\t&.table-style-align-right {\n\t\t\tfloat: right;\n\t\t\tmargin-left: var(--ck-content-table-style-spacing);\n\t\t}\n\n\t\t&.table-style-align-center {\n\t\t\tmargin-left: auto;\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t&.table-style-block-align-left {\n\t\t\tmargin-left: 0;\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t&.table-style-block-align-right {\n\t\t\tmargin-left: auto;\n\t\t\tmargin-right: 0;\n\t\t}\n\t}\n}\n\n.ck-content .table > figcaption,\n.ck-content figure.table > table > caption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: normal;\n\toverflow-wrap: anywhere;\n\ttext-align: center;\n\tcolor: var(--ck-content-table-caption-text-color, var(--ck-content-color-table-caption-text));\n\tbackground-color: var(--ck-content-table-caption-background-color, var(--ck-content-color-table-caption-background));\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n\n\t/* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */\n\t@media (forced-colors: active) {\n\t\tbackground-color: unset;\n\t\tcolor: unset;\n\t}\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n}\n",":root, :host {\n --ck-content-table-style-spacing: 1.5em;\n --ck-content-table-border-color: #b3b3b3;\n --ck-content-table-border-width: 1px;\n --ck-content-table-border-style: double;\n --ck-content-table-header-background: #0000000d;\n --ck-content-table-cell-border-color: #bfbfbf;\n --ck-content-table-cell-border-width: 1px;\n --ck-content-table-cell-border-style: solid;\n --ck-content-color-table-caption-background: #f7f7f7;\n --ck-content-color-table-caption-text: #333;\n}\n\n.ck-content {\n & .table th {\n text-align: start;\n }\n\n &[dir=\"rtl\"] .table th {\n text-align: right;\n }\n\n &[dir=\"ltr\"] .table th {\n text-align: left;\n }\n\n & figure.table:not(.layout-table) {\n display: table;\n\n & > table {\n width: 100%;\n height: 100%;\n }\n }\n\n & .table:not(.layout-table) {\n margin: .9em auto;\n }\n\n & table.table:not(.layout-table), & figure.table:not(.layout-table) > table {\n border-collapse: collapse;\n border-spacing: 0;\n border: var(--ck-content-table-border-width) var(--ck-content-table-border-style) var(--ck-content-table-border-color);\n\n & > thead, & > tfoot, & > tbody {\n & > tr {\n & > th {\n background: var(--ck-content-table-header-background);\n font-weight: bold;\n }\n\n & > td, & > th {\n & > p:first-of-type {\n margin-top: 0;\n }\n\n & > p:last-of-type {\n margin-bottom: 0;\n }\n\n border: var(--ck-content-table-cell-border-width) var(--ck-content-table-cell-border-style) var(--ck-content-table-cell-border-color);\n min-width: 2em;\n padding: .4em;\n }\n }\n }\n }\n}\n\n@media print {\n .ck-content figure.table {\n &:not(.layout-table) {\n width: fit-content;\n height: fit-content;\n }\n\n &:not(.layout-table) > table {\n height: initial;\n }\n }\n}\n\n.ck-content {\n & table.table.layout-table, & figure.table.layout-table {\n margin-top: 0;\n margin-bottom: 0;\n }\n\n & table.table.layout-table, & figure.table.layout-table > table {\n border-spacing: 0;\n }\n}\n\n.ck-content {\n & .table {\n &.table-style-align-left {\n float: left;\n margin-right: var(--ck-content-table-style-spacing);\n }\n\n &.table-style-align-right {\n float: right;\n margin-left: var(--ck-content-table-style-spacing);\n }\n\n &.table-style-align-center {\n margin-left: auto;\n margin-right: auto;\n }\n\n &.table-style-block-align-left {\n margin-left: 0;\n margin-right: auto;\n }\n\n &.table-style-block-align-right {\n margin-left: auto;\n margin-right: 0;\n }\n }\n}\n\n.ck-content .table > figcaption, .ck-content figure.table > table > caption {\n caption-side: top;\n word-break: normal;\n overflow-wrap: anywhere;\n text-align: center;\n color: var(--ck-content-table-caption-text-color, var(--ck-content-color-table-caption-text));\n background-color: var(--ck-content-table-caption-background-color, var(--ck-content-color-table-caption-background));\n outline-offset: -1px;\n padding: .6em;\n font-size: .75em;\n display: table-caption;\n\n @media (forced-colors: active) {\n background-color: unset;\n color: unset;\n }\n}\n\n.ck-content .table .ck-table-resized {\n table-layout: fixed;\n}\n\n.ck-content .table td, .ck-content .table th {\n overflow-wrap: break-word;\n}\n\n/*# sourceMappingURL=index-content.css.map */"]}
|
package/dist/index-editor.css
CHANGED
|
@@ -602,7 +602,7 @@
|
|
|
602
602
|
}
|
|
603
603
|
|
|
604
604
|
100% {
|
|
605
|
-
background-color: var(--ck-content-color-table-caption-background);
|
|
605
|
+
background-color: var(--ck-content-table-caption-background-color, var(--ck-content-color-table-caption-background));
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
|
|
@@ -639,7 +639,7 @@
|
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
:root, :host {
|
|
642
|
-
--ck-color-table-column-resizer-hover: var(--ck-color-
|
|
642
|
+
--ck-color-table-column-resizer-hover: var(--ck-color-border-accent);
|
|
643
643
|
--ck-table-column-resizer-width: 7px;
|
|
644
644
|
--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -.5 - .5px);
|
|
645
645
|
}
|
|
@@ -805,6 +805,11 @@
|
|
|
805
805
|
--ck-insert-table-dropdown-box-border-radius: var(--ck-radius-xs);
|
|
806
806
|
--ck-insert-table-dropdown-label-font-size: var(--ck-font-size-small, var(--ck-font-size-sm));
|
|
807
807
|
--ck-insert-table-dropdown-label-padding: var(--ck-spacing-padding-compact) 0;
|
|
808
|
+
--ck-insert-table-dropdown-box-border-color: var(--ck-color-border-control);
|
|
809
|
+
--ck-insert-table-dropdown-box-on-background: initial;
|
|
810
|
+
--ck-insert-table-dropdown-box-on-border-color: initial;
|
|
811
|
+
--ck-insert-table-dropdown-box-hover-background: initial;
|
|
812
|
+
--ck-insert-table-dropdown-box-hover-border-color: initial;
|
|
808
813
|
}
|
|
809
814
|
|
|
810
815
|
.ck .ck-insert-table-dropdown__grid {
|
|
@@ -824,7 +829,7 @@
|
|
|
824
829
|
min-width: var(--ck-insert-table-dropdown-box-width);
|
|
825
830
|
min-height: var(--ck-insert-table-dropdown-box-height);
|
|
826
831
|
margin: var(--ck-insert-table-dropdown-box-margin);
|
|
827
|
-
border: var(--ck-border-width-thin) solid var(--ck-
|
|
832
|
+
border: var(--ck-border-width-thin) solid var(--ck-insert-table-dropdown-box-border-color);
|
|
828
833
|
border-radius: var(--ck-insert-table-dropdown-box-border-radius);
|
|
829
834
|
outline: none;
|
|
830
835
|
transition: none;
|
|
@@ -838,8 +843,13 @@
|
|
|
838
843
|
}
|
|
839
844
|
|
|
840
845
|
&.ck-on {
|
|
841
|
-
border-color: var(--ck-color-focus-border, var(--ck-color-interactive-focus-border));
|
|
842
|
-
background: var(--ck-color-focus-outer-shadow, var(--ck-focus-shadow));
|
|
846
|
+
border-color: var(--ck-insert-table-dropdown-box-on-border-color, var(--ck-color-focus-border, var(--ck-color-interactive-focus-border)));
|
|
847
|
+
background: var(--ck-insert-table-dropdown-box-on-background, var(--ck-color-focus-outer-shadow, var(--ck-focus-shadow)));
|
|
848
|
+
|
|
849
|
+
&:hover:not(.ck-disabled) {
|
|
850
|
+
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))));
|
|
851
|
+
background: var(--ck-insert-table-dropdown-box-hover-background, var(--ck-button-hover-background));
|
|
852
|
+
}
|
|
843
853
|
}
|
|
844
854
|
}
|
|
845
855
|
|