Fix table styles in rte context
This commit is contained in:
@@ -58,7 +58,7 @@ lib.parseFunc {
|
|||||||
lib.parseFunc_RTE < lib.parseFunc
|
lib.parseFunc_RTE < lib.parseFunc
|
||||||
lib.parseFunc_RTE {
|
lib.parseFunc_RTE {
|
||||||
externalBlocks := addToList(article, aside, blockquote, div, dd, dl, footer)
|
externalBlocks := addToList(article, aside, blockquote, div, dd, dl, footer)
|
||||||
externalBlocks := addToList(header, nav, ol, section, table, ul, pre)
|
externalBlocks := addToList(header, nav, ol, section, table, ul, pre, svg, use)
|
||||||
externalBlocks {
|
externalBlocks {
|
||||||
ol {
|
ol {
|
||||||
stripNL = 1
|
stripNL = 1
|
||||||
@@ -75,12 +75,12 @@ lib.parseFunc_RTE {
|
|||||||
table {
|
table {
|
||||||
stripNL = 1
|
stripNL = 1
|
||||||
stdWrap {
|
stdWrap {
|
||||||
wrap = <div class="table-responsive">|</div>
|
wrap = <div class="w-full overflow-x-scroll mb-4">|</div>
|
||||||
}
|
}
|
||||||
callRecursive = 1
|
callRecursive = 1
|
||||||
callRecursive.tagStdWrap.HTMLparser = 1
|
callRecursive.tagStdWrap.HTMLparser = 1
|
||||||
callRecursive.tagStdWrap.HTMLparser.tags.table {
|
callRecursive.tagStdWrap.HTMLparser.tags.table {
|
||||||
fixAttrib.class.default = table table-condensed table-striped
|
fixAttrib.class.default = w-full
|
||||||
}
|
}
|
||||||
HTMLtableCells = 1
|
HTMLtableCells = 1
|
||||||
HTMLtableCells {
|
HTMLtableCells {
|
||||||
|
|||||||
@@ -13,3 +13,28 @@ p {
|
|||||||
a:not(.button) {
|
a:not(.button) {
|
||||||
@apply text-ep-primary-light sbw:text-sbw-primary-dark;
|
@apply text-ep-primary-light sbw:text-sbw-primary-dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table,
|
||||||
|
.table {
|
||||||
|
@apply w-full;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead {
|
||||||
|
tr {
|
||||||
|
@apply bg-ep-primary-dark text-white
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tbody {
|
||||||
|
tr {
|
||||||
|
@apply odd:bg-gray-100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
@apply p-2 text-left;
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
@apply p-2;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user