Skip to content
Snippets Groups Projects
Commit f4bcbfc9 authored by Marcus Eibrink-Lunzenauer's avatar Marcus Eibrink-Lunzenauer Committed by David Siegfried
Browse files

Fix several problems of #1899.

Merge request studip/studip!1732
parent 875210fe
No related branches found
No related tags found
No related merge requests found
Pipeline #11838 passed
...@@ -342,6 +342,7 @@ class Markup ...@@ -342,6 +342,7 @@ class Markup
'link-extern', 'link-extern',
'link-intern', 'link-intern',
'math-tex', 'math-tex',
'table',
'usercode', 'usercode',
'wiki-link' 'wiki-link'
]); ]);
...@@ -358,6 +359,7 @@ class Markup ...@@ -358,6 +359,7 @@ class Markup
'height', 'height',
'color', 'color',
'background-color', // needed by span, td 'background-color', // needed by span, td
'border-color',
'border-style', 'border-style',
'float', 'float',
'border' 'border'
......
...@@ -220,10 +220,21 @@ ClassicEditor.defaultConfig = { ...@@ -220,10 +220,21 @@ ClassicEditor.defaultConfig = {
tableProperties: { tableProperties: {
borderColors: customColorPalette, borderColors: customColorPalette,
backgroundColors: customColorPalette, backgroundColors: customColorPalette,
defaultProperties: {
alignment: 'left',
borderStyle: 'solid',
borderColor: '#666666',
borderWidth: '1px',
},
}, },
tableCellProperties: { tableCellProperties: {
borderColors: customColorPalette, borderColors: customColorPalette,
backgroundColors: customColorPalette, backgroundColors: customColorPalette,
defaultProperties: {
borderStyle: 'solid',
borderColor: '#666666',
borderWidth: '1px',
},
}, },
}, },
typing: { typing: {
......
...@@ -55,18 +55,16 @@ ...@@ -55,18 +55,16 @@
white-space: pre-wrap; white-space: pre-wrap;
} }
figure { figure.table {
display: table; display: table;
margin: 0.9em auto; margin: 0.9em auto;
table { &:not([style]) {
width: 100%; margin-inline-start: 0;
height: 100%; }
border-collapse: collapse;
border-spacing: 0;
table {
td { td {
border: unset;
min-width: 2em; min-width: 2em;
padding: 0.4em; padding: 0.4em;
} }
......
...@@ -260,6 +260,18 @@ a.ck.ck-button.ck-button_with-text.ck-dropdown__button:not(.ck-disabled):hover { ...@@ -260,6 +260,18 @@ a.ck.ck-button.ck-button_with-text.ck-dropdown__button:not(.ck-disabled):hover {
border: 1px solid var(--dark-gray-color-60); border: 1px solid var(--dark-gray-color-60);
} }
/* table */
.ck-content .table {
margin: 0.9em auto;
}
.ck-content .table {
margin: 0.9em auto;
&:not([style]) {
margin-inline-start: 0;
}
}
/* StudipWikiLink plugin */ /* StudipWikiLink plugin */
.ck.ck-studip-wiki-link-form { .ck.ck-studip-wiki-link-form {
max-width: 100%; max-width: 100%;
......
...@@ -69,7 +69,7 @@ h1, h2 { ...@@ -69,7 +69,7 @@ h1, h2 {
h1 { h1 {
margin-top: 0; margin-top: 0;
span { span:not([style]) {
display: block; display: block;
font-size: calc($font-size-h1 * 0.75); font-size: calc($font-size-h1 * 0.75);
font-weight: calc($headings-font-weight / 7); font-weight: calc($headings-font-weight / 7);
......
...@@ -45,6 +45,28 @@ table.content { ...@@ -45,6 +45,28 @@ table.content {
border: thin solid #666; border: thin solid #666;
padding: 3px; padding: 3px;
} }
/* for CKE5 Table Border Colors */
&[style*='border-color'] {
border-width: thin;
border-style: solid;
}
td:first-child {
border-inline-start: unset;
}
td:last-child {
border-inline-end: unset;
}
tr:first-child td {
border-block-start: unset;
}
tr:last-child td {
border-block-end: unset;
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment