Factor out markdown widget rendering

This commit is contained in:
Zef Hemel
2023-10-29 10:02:50 +01:00
parent 23e99b0c46
commit 50caba8522
17 changed files with 102 additions and 77 deletions
+6 -8
View File
@@ -216,15 +216,13 @@
color: var(--editor-line-meta-color);
}
.sb-table-widget {
thead tr {
background-color: var(--editor-table-head-background-color);
color: var(--editor-table-head-color);
}
thead tr {
background-color: var(--editor-table-head-background-color);
color: var(--editor-table-head-color);
}
tbody tr:nth-of-type(even) {
background-color: var(--editor-table-even-background-color);
}
tbody tr:nth-of-type(even) {
background-color: var(--editor-table-even-background-color);
}
.sb-line-blockquote {
+16 -14
View File
@@ -393,22 +393,24 @@
margin-bottom: -3rem;
overflow: auto;
table {
width: 100%;
border-spacing: 0;
}
thead tr {
font-weight: bold;
}
th,
td {
padding: 8px;
white-space: nowrap;
}
}
table {
width: 100%;
border-spacing: 0;
}
thead tr {
font-weight: bold;
}
th,
td {
padding: 8px;
white-space: nowrap;
}
// dont apply background color twice for (fenced) code blocks
.sb-line-code .sb-code {
background-color: transparent;