Skip to content

Commit

Permalink
Theme: Use outline for border; Use on surface variant for header border
Browse files Browse the repository at this point in the history
  • Loading branch information
PatelUtkarsh committed Jul 15, 2022
1 parent 7df4422 commit f6b3e3e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions theme/assets/css/src/components/tables.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/* Setup default table style with m3 without radius */
table {
max-width: calc(100vw - 2 * 40px);
border: 1px solid var(--md-sys-color-surface-variant);
border: 1px solid var(--md-sys-color-outline);
width: 100%;

@media screen and (max-width: 480px) {
Expand All @@ -34,20 +34,24 @@ th {
background: var(--md-sys-color-surface-variant);
color: var(--md-sys-color-on-surface-variant);
font-weight: bold;
border-left: 1px solid var(--md-sys-color-on-surface-variant);
}

th,
td {
padding: 16px 24px;
border-top: 1px solid var(--md-sys-color-surface-variant);
border-left: 1px solid var(--md-sys-color-surface-variant);
border-top: 1px solid var(--md-sys-color-outline);
vertical-align: middle;

&:first-child {
border-left: 0;
}
}

td {
border-left: 1px solid var(--md-sys-color-outline);
}

td:empty,
th:empty {
border-top: 0;
Expand Down

0 comments on commit f6b3e3e

Please sign in to comment.