Koenig - Fixing editing styles for HTML card

This commit is contained in:
Zimo 2018-04-20 17:51:33 +02:00
parent af7c6faf65
commit 58f5941357
2 changed files with 40 additions and 12 deletions

View File

@ -23,7 +23,8 @@
.koenig-editor__editor h3,
.koenig-editor__editor h4,
.koenig-editor__editor h5,
.koenig-editor__editor h6 {
.koenig-editor__editor h6,
.koenig-editor__editor blockquote {
margin: 1.6rem 0 0;
}
@ -315,22 +316,22 @@
margin: 3.2rem 0 0;
}
.koenig-editor__editor p + div,
.koenig-editor__editor blockquote + div,
.koenig-editor__editor ul + div,
.koenig-editor__editor ol + div {
.koenig-editor__editor > p + div,
.koenig-editor__editor > blockquote + div,
.koenig-editor__editor > ul + div,
.koenig-editor__editor > ol + div {
margin: 3.2rem 0 0;
}
.koenig-editor__editor h1 + div {
.koenig-editor__editor > h1 + div {
margin: 2.8rem 0 0;
}
.koenig-editor__editor h2 + div,
.koenig-editor__editor h3 + div,
.koenig-editor__editor h4 + div,
.koenig-editor__editor h5 + div,
.koenig-editor__editor h6 + div {
.koenig-editor__editor > h2 + div,
.koenig-editor__editor > h3 + div,
.koenig-editor__editor > h4 + div,
.koenig-editor__editor > h5 + div,
.koenig-editor__editor > h6 + div {
margin: 1.6rem 0 0;
}
@ -457,3 +458,30 @@
.koenig-editor .gh-markdown-editor a {
box-shadow: none;
}
/* HTML editor
/* --------------------------------------------------------------- */
.koenig-card-html--editor pre {
border: none;
background: none;
white-space: pre-line;
padding: 0 .8rem;
line-height: 1.4em;
}
/* Table
/* --------------------------------------------------------------- */
.koenig-editor__editor table {
font-size: 1.75rem;
margin: 0;
}
.koenig-editor__editor table tr td,
.koenig-editor__editor table tr th {
vertical-align: top;
border-bottom: 1px solid var(--lightgrey);
}

View File

@ -1,5 +1,5 @@
{{#koenig-card
class=(concat (kg-style "media-card") " mih10 miw-100 tc relative")
class=(concat (kg-style "media-card") " mih10 miw-100 relative")
toolbar=toolbar
isSelected=isSelected
isEditing=isEditing