[WIP] CORD-686 Added pagination to table
Change-Id: I26c57cdf9759363e2bce2fd5333f45d63694278b
diff --git a/src/app/core/table/table.scss b/src/app/core/table/table.scss
index a2af05e..9922026 100644
--- a/src/app/core/table/table.scss
+++ b/src/app/core/table/table.scss
@@ -1,3 +1,6 @@
+@import './../../style/vars.scss';
+@import '../../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables';
+
xos-table {
.row + .table-responsive {
margin-top: 10px;
@@ -5,40 +8,29 @@
}
table {
- border-collapse: collapse !important;
- background: darken(grey, 20);
- border: 1px solid darken(grey, 35);
+ border: 1px solid $background-dark-color;
td, th {
+ position: relative;
}
- > tbody > tr > th,
- > tfoot > tr > th,
- > thead > tr > td,
- > tbody > tr > td,
- > tfoot > tr > td {
- padding: 8px;
- line-height: 1.42857143;
- vertical-align: top;
- border-top: 1px solid #ddd;
+
+ .xos-table-hover {
+ position: absolute;
+ top: -$padding-large-vertical;
+ left: $padding-large-horizontal;
+ opacity: 0;
+ transition: all .5s;
+ z-index: -1;
+ width: 250px;
+
+ &:hover {
+ cursor: pointer;
+ }
}
- > thead > tr > th {
- vertical-align: bottom;
- border-bottom: 2px solid #ddd;
- text-align: left;
- padding: 8px;
+
+ td:hover .xos-table-hover {
+ opacity: 1;
+ z-index: 2;
}
- > caption + thead > tr:first-child > th,
- > colgroup + thead > tr:first-child > th,
- > thead:first-child > tr:first-child > th,
- > caption + thead > tr:first-child > td,
- > colgroup + thead > tr:first-child > td,
- > thead:first-child > tr:first-child > td {
- border-top: 0;
- }
- > tbody + tbody {
- border-top: 2px solid #ddd;
- }
- .table .table {
- background-color: #fff;
- }
+
}
\ No newline at end of file