Skip to content

Commit

Permalink
[BSv5] Factor out Docy's table style and set max-width (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Mar 9, 2023
1 parent e1b0f62 commit 1d192e3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
4 changes: 1 addition & 3 deletions assets/scss/_boxes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@
padding-right: 5vw;
}
table {
@extend .table;
@extend .table-striped;
@extend .table-responsive;
@extend .td-table;
}
}

Expand Down
19 changes: 8 additions & 11 deletions assets/scss/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@
}

table {
@extend .table-striped;

@extend .table-responsive;

@extend .table;
@extend .td-table;
}

blockquote {
Expand All @@ -64,18 +60,19 @@
font-weight: $font-weight-bold;
}

> pre,
.footnotes,
> .alert,
> .highlight,
> .lead,
> .td-table,
> blockquote,
> dl dd,
> h1,
> h2,
> ul,
> ol,
> p,
> blockquote,
> dl dd,
.footnotes,
> .alert {
> pre,
> ul {
@extend .td-max-width-on-larger-screens;
}

Expand Down
5 changes: 5 additions & 0 deletions assets/scss/_table.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.td-table {
@extend .table;
@extend .table-responsive;
@extend .table-striped;
}
1 change: 1 addition & 0 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $display1-size: null !default;

@import "support/utilities";
@import "colors";
@import "table";
@import "boxes";
@import "blog";
@import "code";
Expand Down

0 comments on commit 1d192e3

Please sign in to comment.