Consistent, concise styling of datables
Add a semantic class to aggregate bootstrap classes and consistently applyt them to all datatables.
This commit is contained in:
parent
3bb73f27cf
commit
4ecf078db6
25 changed files with 47 additions and 25 deletions
21
app/assets/stylesheets/osem-datatables.scss
Normal file
21
app/assets/stylesheets/osem-datatables.scss
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
table.datatable {
|
||||
@extend .table, .table-striped, .table-bordered, .table-hover;
|
||||
|
||||
td.actions {
|
||||
vertical-align: middle;
|
||||
align: center;
|
||||
|
||||
div.btn-group {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
a {
|
||||
@extend .btn;
|
||||
}
|
||||
}
|
||||
|
||||
td.truncate {
|
||||
max-width: 1px;
|
||||
@include text-overflow();
|
||||
}
|
||||
}
|
||||
|
|
@ -61,3 +61,6 @@ $navbar-default-link-hover-color: #000000;
|
|||
// Utility classes
|
||||
@import "bootstrap/utilities";
|
||||
@import "bootstrap/responsive-utilities";
|
||||
|
||||
// semantic classes
|
||||
@import "osem-datatables";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue