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

Commit

Permalink
fix Markdown table corners (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToBinio authored Oct 17, 2023
1 parent b2c7513 commit 46a6fee
Showing 1 changed file with 8 additions and 14 deletions.
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

0 comments on commit 46a6fee

Please sign in to comment.