Make it easier to override markdown table stylings

Fixes #105796

This makes the markdown preview's default css for tables less specific. This should make it easier to user or extensions to override it
This commit is contained in:
Matt Bierner 2020-11-02 13:53:02 -08:00
parent 699e3e5afa
commit 90b17ed115

View file

@ -154,15 +154,13 @@ table {
border-collapse: collapse;
}
table > thead > tr > th {
th {
text-align: left;
border-bottom: 1px solid;
}
table > thead > tr > th,
table > thead > tr > td,
table > tbody > tr > th,
table > tbody > tr > td {
th,
td {
padding: 5px 10px;
}
@ -217,22 +215,22 @@ pre code {
border-color: rgb(0, 0, 0);
}
.vscode-light table > thead > tr > th {
.vscode-light th {
border-color: rgba(0, 0, 0, 0.69);
}
.vscode-dark table > thead > tr > th {
.vscode-dark th {
border-color: rgba(255, 255, 255, 0.69);
}
.vscode-light h1,
.vscode-light hr,
.vscode-light table > tbody > tr + tr > td {
.vscode-light td {
border-color: rgba(0, 0, 0, 0.18);
}
.vscode-dark h1,
.vscode-dark hr,
.vscode-dark table > tbody > tr + tr > td {
.vscode-dark td {
border-color: rgba(255, 255, 255, 0.18);
}