aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorMarcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de>2023-04-21 10:15:04 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2023-04-21 10:15:04 +0000
commitf4bcbfc960d2bbd5f17e6b09121b3bac41898a56 (patch)
treea0a54296e997971832d75a19e77087ef57e02a45 /resources
parent875210fe67a42d8f704c33d4c4fa55bc6a0c1c40 (diff)
Fix several problems of #1899.
Merge request studip/studip!1732
Diffstat (limited to 'resources')
-rw-r--r--resources/assets/javascripts/chunks/wysiwyg.js11
-rw-r--r--resources/assets/stylesheets/scss/content.scss12
-rw-r--r--resources/assets/stylesheets/scss/studip-cke-ui.scss12
-rw-r--r--resources/assets/stylesheets/scss/typography.scss2
-rw-r--r--resources/assets/stylesheets/studip.less22
5 files changed, 51 insertions, 8 deletions
diff --git a/resources/assets/javascripts/chunks/wysiwyg.js b/resources/assets/javascripts/chunks/wysiwyg.js
index ade5731..7d9ccfc 100644
--- a/resources/assets/javascripts/chunks/wysiwyg.js
+++ b/resources/assets/javascripts/chunks/wysiwyg.js
@@ -220,10 +220,21 @@ ClassicEditor.defaultConfig = {
tableProperties: {
borderColors: customColorPalette,
backgroundColors: customColorPalette,
+ defaultProperties: {
+ alignment: 'left',
+ borderStyle: 'solid',
+ borderColor: '#666666',
+ borderWidth: '1px',
+ },
},
tableCellProperties: {
borderColors: customColorPalette,
backgroundColors: customColorPalette,
+ defaultProperties: {
+ borderStyle: 'solid',
+ borderColor: '#666666',
+ borderWidth: '1px',
+ },
},
},
typing: {
diff --git a/resources/assets/stylesheets/scss/content.scss b/resources/assets/stylesheets/scss/content.scss
index aca9cb0..4769434 100644
--- a/resources/assets/stylesheets/scss/content.scss
+++ b/resources/assets/stylesheets/scss/content.scss
@@ -55,18 +55,16 @@
white-space: pre-wrap;
}
- figure {
+ figure.table {
display: table;
margin: 0.9em auto;
- table {
- width: 100%;
- height: 100%;
- border-collapse: collapse;
- border-spacing: 0;
+ &:not([style]) {
+ margin-inline-start: 0;
+ }
+ table {
td {
- border: unset;
min-width: 2em;
padding: 0.4em;
}
diff --git a/resources/assets/stylesheets/scss/studip-cke-ui.scss b/resources/assets/stylesheets/scss/studip-cke-ui.scss
index a6cd72b..65a2955 100644
--- a/resources/assets/stylesheets/scss/studip-cke-ui.scss
+++ b/resources/assets/stylesheets/scss/studip-cke-ui.scss
@@ -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);
}
+/* table */
+.ck-content .table {
+ margin: 0.9em auto;
+}
+.ck-content .table {
+ margin: 0.9em auto;
+
+ &:not([style]) {
+ margin-inline-start: 0;
+ }
+}
+
/* StudipWikiLink plugin */
.ck.ck-studip-wiki-link-form {
max-width: 100%;
diff --git a/resources/assets/stylesheets/scss/typography.scss b/resources/assets/stylesheets/scss/typography.scss
index e225c42..0c2295d 100644
--- a/resources/assets/stylesheets/scss/typography.scss
+++ b/resources/assets/stylesheets/scss/typography.scss
@@ -69,7 +69,7 @@ h1, h2 {
h1 {
margin-top: 0;
- span {
+ span:not([style]) {
display: block;
font-size: calc($font-size-h1 * 0.75);
font-weight: calc($headings-font-weight / 7);
diff --git a/resources/assets/stylesheets/studip.less b/resources/assets/stylesheets/studip.less
index 1cb3da3..d0ba056 100644
--- a/resources/assets/stylesheets/studip.less
+++ b/resources/assets/stylesheets/studip.less
@@ -45,6 +45,28 @@ table.content {
border: thin solid #666;
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;
+ }
}