Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

fix Markdown table corners #105

Merged
merged 2 commits into from
Oct 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions lib/assets/styles/classes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ a,
padding: 1.5rem;
line-height: 1.5;
min-height: 0;

a {
color: var(--color-blue);
text-decoration: underline;
Expand Down Expand Up @@ -946,7 +947,7 @@ a,
border-collapse: separate;
border-spacing: 0;
line-height: 1.5;
border: 0.05rem solid var(--color-button-bg);
border: 0.1rem solid var(--color-button-bg);
border-radius: var(--radius-sm);

th {
Expand All @@ -956,27 +957,20 @@ a,
td,
th {
padding: 0.4rem 0.85rem;
border: 0.05rem solid var(--color-button-bg);
}

tr:nth-child(2n) {
background-color: var(--color-accent-contrast);
}

th:first-of-type {
border-top-left-radius: var(--radius-sm);
}

th:last-of-type {
border-top-right-radius: var(--radius-sm);
td:not(:last-of-type),
th:not(:last-of-type) {
border-right: 0.1rem solid var(--color-button-bg);
}

tr:last-of-type td:first-of-type {
border-bottom-left-radius: var(--radius-sm);
}

tr:last-of-type td:last-of-type {
border-bottom-right-radius: var(--radius-sm);
tr:not(:last-of-type) td,
th {
border-bottom: 0.1rem solid var(--color-button-bg);
}
}

Expand Down