Skip to content

Commit

Permalink
feat(reDesign): fix worklog table styles
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Sep 22, 2019
1 parent e8b4d1b commit cc43aab
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions src/app/features/worklog/worklog.component.scss
Expand Up @@ -90,10 +90,12 @@ $this-table-outer-padding-left-right: $s*6;
&:first-child {
padding-left: $this-table-outer-padding-left-right;
text-align: left;
border-top-left-radius: $card-border-radius;
}

&:last-child {
padding-right: $this-table-outer-padding-left-right;
border-top-right-radius: $card-border-radius;

mat-icon {
// prevent table recalculation on icon change
Expand Down Expand Up @@ -163,10 +165,23 @@ $this-table-outer-padding-left-right: $s*6;
position: relative;
z-index: 3;

border-top-left-radius: 0;
border-top-right-radius: 0;

> table {
width: 100%;
text-align: left;
border-collapse: collapse;

// Overwrite default styles in table.scss
tr {
&:first-of-type {
th,
td {
border-top-width: 1px;
}
}
}
}

caption {
Expand Down
4 changes: 2 additions & 2 deletions src/styles/components/table.scss
Expand Up @@ -95,14 +95,14 @@ div.material-table {
&:first-of-type {
th,
td {
border-top: 0;
border-top-width: 0;
}
}

&:last-of-type {
th,
td {
border-bottom: 0;
border-bottom-width: 0;
}
}
}
Expand Down

0 comments on commit cc43aab

Please sign in to comment.