Removed boostrap styling
This commit is contained in:
parent
ce45c03ff6
commit
48815f1774
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -50,7 +50,7 @@ export default class DataTable {
|
|||||||
makeDom() {
|
makeDom() {
|
||||||
this.wrapper.html(`
|
this.wrapper.html(`
|
||||||
<div class="data-table">
|
<div class="data-table">
|
||||||
<table class="data-table-header table table-bordered">
|
<table class="data-table-header">
|
||||||
</table>
|
</table>
|
||||||
<div class="body-scrollable">
|
<div class="body-scrollable">
|
||||||
</div>
|
</div>
|
||||||
@ -262,7 +262,7 @@ export default class DataTable {
|
|||||||
this.setBodyWidth();
|
this.setBodyWidth();
|
||||||
|
|
||||||
this.setStyle('.data-table .body-scrollable', {
|
this.setStyle('.data-table .body-scrollable', {
|
||||||
'margin-top': (this.header.height() + 1) + 'px'
|
'margin-top': this.header.height() + 'px'
|
||||||
});
|
});
|
||||||
|
|
||||||
// center align Sr. No column
|
// center align Sr. No column
|
||||||
|
|||||||
@ -1,9 +1,12 @@
|
|||||||
@import "~bootstrap/scss/functions";
|
/* variables */
|
||||||
@import "~bootstrap/scss/mixins";
|
|
||||||
@import "~bootstrap/scss/variables";
|
|
||||||
// @import "~bootstrap/scss/reboot";
|
|
||||||
@import "~bootstrap/scss/tables";
|
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--border-color: #d1d8dd;
|
||||||
|
--primary-color: rgb(82, 146, 247);
|
||||||
|
--light-bg: #fafbfc;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* resets */
|
||||||
*, *::after, *::before {
|
*, *::after, *::before {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@ -16,6 +19,8 @@ button, input {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* styling */
|
||||||
|
|
||||||
.data-table * {
|
.data-table * {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
@ -25,19 +30,24 @@ button, input {
|
|||||||
position: relative;
|
position: relative;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
.table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table > thead > tr > td, .table > tbody > tr > td {
|
table td {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
thead td {
|
||||||
|
border-bottom-width: 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.body-scrollable {
|
.body-scrollable {
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
border-bottom: 1px solid $border-color;
|
border-bottom: 1px solid var(--border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.data-table-header {
|
.data-table-header {
|
||||||
@ -75,7 +85,7 @@ button, input {
|
|||||||
|
|
||||||
.edit-cell {
|
.edit-cell {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
// position: absolute;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
@ -90,7 +100,7 @@ button, input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.selected .content {
|
&.selected .content {
|
||||||
border: 1px solid theme-color('primary');
|
border: 1px solid var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.editing {
|
&.editing {
|
||||||
@ -99,7 +109,7 @@ button, input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.edit-cell {
|
.edit-cell {
|
||||||
border: 2px solid theme-color('primary');
|
border: 2px solid var(--primary-color);
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -107,7 +117,7 @@ button, input {
|
|||||||
|
|
||||||
.data-table-row {
|
.data-table-row {
|
||||||
&.row-highlight {
|
&.row-highlight {
|
||||||
background-color: theme-color('light');
|
background-color: var(--light-bg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user