Skip to content

Commit bf3ece0

Browse files
committed
minor markdown table style improvements
1 parent 59ba975 commit bf3ece0

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

src/components/schema-table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default class SchemaTable extends LitElement {
8282
${this.schemaDescriptionExpanded === 'true' ? 'Single line description' : 'Multiline description'}
8383
</div>
8484
</div>
85-
<div style='padding: 5px 0; color:var(--fg3)'>
85+
<div style='padding: 5px 0; color:var(--fg2)'>
8686
<span class='bold-text upper'> ${this.data ? this.data['::type'] : ''}</span>
8787
<span class='m-markdown' >${this.data ? unsafeHTML(marked(this.data['::description'] || '')) : ''}</span>
8888
</div>

src/components/schema-tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default class SchemaTree extends LitElement {
8383
return html`
8484
<div class="tree ${this.schemaDescriptionExpanded === 'true' ? 'expanded-descr' : 'collapsed-descr'}">
8585
<div class='toolbar'>
86-
<div class='toolbar-item bold-text upper' style='cursor:auto; color:var(--fg3)'> ${this.data ? this.data['::type'] : ''} </div>
86+
<div class='toolbar-item bold-text upper' style='cursor:auto; color:var(--fg2)'> ${this.data ? this.data['::type'] : ''} </div>
8787
<div style="flex:1"></div>
8888
<div class='toolbar-item' @click='${() => { this.schemaDescriptionExpanded = (this.schemaDescriptionExpanded === 'true' ? 'false' : 'true'); }}'>
8989
${this.schemaDescriptionExpanded === 'true' ? 'Single line description' : 'Multiline description'}

src/styles/font-styles.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export default css`
140140
margin-top: 4px;
141141
padding: 2px 4px;
142142
background-color: var(--bg3);
143-
color: var(--fg3);
143+
color: var(--fg2);
144144
}
145145
146146
.m-markdown-small pre code,
@@ -205,6 +205,7 @@ export default css`
205205
.m-markdown th {
206206
vertical-align: top;
207207
border-top: 1px solid var(--border-color);
208+
line-height: calc(var(--font-size-small) + 4px);
208209
}
209210
210211
.m-markdown-small tr:first-child th,

src/styles/table-styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default css`
2727
}
2828
2929
.m-table th {
30-
color: var(--fg3);
30+
color: var(--fg2);
3131
font-size: var(--font-size-small);
3232
line-height: calc(var(--font-size-small) + 18px);
3333
font-weight: 600;

src/templates/components-template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function componentBodyTemplate(sComponent) {
1313
<h1> ${sComponent.name} </h1>
1414
${sComponent.component
1515
? html`
16-
<div class='mono-font regular-font-size' style='padding: 8px 0; color:var(--fg3)'>
16+
<div class='mono-font regular-font-size' style='padding: 8px 0; color:var(--fg2)'>
1717
1818
<json-tree
1919
class="border tree"

0 commit comments

Comments
 (0)