Skip to content

Commit

Permalink
Add compiled CSS to package
Browse files Browse the repository at this point in the history
  • Loading branch information
philipnewcomer committed Jun 28, 2019
1 parent 14897aa commit 354c37d
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,19 @@ npm install --save-dev bootstrap4-card-tables

## Usage

Import the SASS source files into your app:

```scss
@import "~bootstrap4-card-tables/src/bootstrap4-card-tables";
```

Compiled (and optionally, minified) CSS is provided in the `dist` directory:

```
https://unpkg.com/[email protected]/dist/bootstrap4-card-tables.css
https://unpkg.com/[email protected]/dist/bootstrap4-card-tables.min.css
```

## Notes

- This package fixes the use cases I encountered when trying to use tables inside of cards in Bootstrap 4, but I do not consider this package to be comprehensive. If you encounter an edge case not covered by this package, feel free to [open an issue](https://github.com/philipnewcomer/bootstrap4-card-tables/issues/new) or submit a pull request.
Expand Down
37 changes: 37 additions & 0 deletions dist/bootstrap4-card-tables.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.card > .table {
border-right: 0;
border-left: 0;
margin-bottom: 0;
}

.card > .table:last-child {
border-bottom: 0;
}

.card > .table th,
.card > .table td {
padding: 0.75rem 1.25rem;
}

.card > .table td:first-child,
.card > .table th:first-child {
border-left: 0;
}

.card > .table td:last-child,
.card > .table th:last-child {
border-right: 0;
}

.card > .table tr:first-child td,
.card > .table tr:first-child th {
border-top: 0;
}

.card > .table tr:last-child td {
border-bottom: 0;
}

.card .card-header + .table {
border-top: 0;
}
1 change: 1 addition & 0 deletions dist/bootstrap4-card-tables.min.css

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

0 comments on commit 354c37d

Please sign in to comment.