Skip to content

Commit

Permalink
D8CORE-1261: Revised table styles. (#617)
Browse files Browse the repository at this point in the history
* D8CORE-1261: Revised table styles.

* Update _table.scss
  • Loading branch information
sherakama authored Oct 7, 2020
1 parent 8f1cec2 commit d8a102a
Show file tree
Hide file tree
Showing 20 changed files with 173 additions and 79 deletions.
Binary file modified core/dist/assets/fa-brands-400.eot
Binary file not shown.
142 changes: 111 additions & 31 deletions core/dist/assets/fa-brands-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified core/dist/assets/fa-brands-400.ttf
Binary file not shown.
Binary file modified core/dist/assets/fa-brands-400.woff
Binary file not shown.
Binary file modified core/dist/assets/fa-brands-400.woff2
Binary file not shown.
Binary file modified core/dist/assets/fa-regular-400.eot
Binary file not shown.
8 changes: 2 additions & 6 deletions core/dist/assets/fa-regular-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified core/dist/assets/fa-regular-400.ttf
Binary file not shown.
Binary file modified core/dist/assets/fa-regular-400.woff
Binary file not shown.
Binary file modified core/dist/assets/fa-regular-400.woff2
Binary file not shown.
Binary file modified core/dist/assets/fa-solid-900.eot
Binary file not shown.
25 changes: 19 additions & 6 deletions core/dist/assets/fa-solid-900.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified core/dist/assets/fa-solid-900.ttf
Binary file not shown.
Binary file modified core/dist/assets/fa-solid-900.woff
Binary file not shown.
Binary file modified core/dist/assets/fa-solid-900.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion core/dist/css/decanter.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions core/src/scss/core/fonts/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:300,400,700');

// Script font: Kalam.
@warn "The Kalam font will be removed in Version 7.";
@warn "The Kalam font will be removed in Decanter Version 7.";
@import url('https://fonts.googleapis.com/css?family=Kalam:300,400,700');

// Sanskrit font: Noto Sans
@warn "The Noto Sans font will be removed in Version 7.";
@warn "The Noto Sans font will be removed in Decanter Version 7.";
@import url('https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&subset=devanagari');

// Some of the Source Serif Pro fonts are not yet available on Google, so we
Expand Down
17 changes: 7 additions & 10 deletions core/src/scss/elements/table/_table--borderless.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@

// Table without borders.
.su-table--borderless {
thead {
tr {
background-color: transparent;
}

thead,
tbody {
tr,
td,
th {
border-top: 0;
border: 0;
}
}

th,
td {
border-left: 0;
border-right: 0;
thead + tbody {
border: 0;
}
}
48 changes: 28 additions & 20 deletions core/src/scss/elements/table/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,45 @@
// Style guide: Elements.Table
//
table {
@include margin(2em 0);
@include margin(null 0);
@include modular-spacing('margin-bottom', 5);
border-collapse: collapse;
border-spacing: 0;
min-width: 100%;

th,
td {
@include padding(1.5rem);
border: 1px solid $su-color-driftwood;
caption {
@include caption;
}

th {
background-color: $su-color-cloud;
color: $su-color-black;
font-weight: $su-font-regular;
text-align: left;
}

td {
background-color: $su-color-white;
}
thead,
tbody {

thead {
th,
td {
background-color: $su-color-cloud;
@include padding(1.5rem);

*:last-child {
@include margin(null null 0 null);
}
}
}

tbody {
th {
font-weight: $su-font-regular;
color: $su-color-black;
font-weight: $su-font-semi-bold;
text-align: left;
}

tr {
border-top: 1px solid $su-color-cool-grey-25;

&:first-of-type {
border-top: 0;
}
}
}

thead + tbody {
border-top: 1px solid $su-color-cool-grey-25;
}

}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8a102a

Please sign in to comment.