N°4420 N°4421 Table selectable lines : restore style, restore script inclusion in object edition (#242)

This commit is contained in:
Pierre Goiffon
2021-11-16 16:05:07 +01:00
committed by GitHub
parent d66a1e8c10
commit 1b2d75efd6
2 changed files with 21 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ $ibo-datatable-header--text-color: $ibo-base-variable--text-color !default;
$ibo-datatable-panel--table-spacing: 48px !default;
$ibo-datatable-panel--body--padding: $ibo-panel--body--padding-top 0px $ibo-panel--body--padding-bottom !default;
$ibo-datatable--row--background-color--is-hover: $ibo-color-primary-200 !default;
$ibo-datatable--row--background-color--is-selected: $ibo-color-primary-300 !default;
$ibo-datatable--selection-validation-buttons-toolbar--margin-top: 10px !default;
$ibo-list-column--max-height: 150px !default;
@@ -91,6 +94,7 @@ $ibo-fieldsorter--selected--background-color: $ibo-color-blue-200 !default;
&.ibo-is-ascending::after{
content: '\f0de';
}
&.ibo-is-none::after{
content: '\f0dc';
}
@@ -100,4 +104,20 @@ $ibo-fieldsorter--selected--background-color: $ibo-color-blue-200 !default;
>.selected{
background-color: $ibo-fieldsorter--selected--background-color;
}
}
.ibo-datatable {
tbody > tr {
transition: background-color 400ms linear;
&:hover, &.selected:hover {
cursor: pointer;
background-color: $ibo-datatable--row--background-color--is-hover;
}
&.selected {
background-color: $ibo-datatable--row--background-color--is-selected;
}
}
}

View File

@@ -30,6 +30,7 @@ class StaticTable extends UIContentBlock
'node_modules/datatables.net-scroller/js/dataTables.scroller.min.js',
'node_modules/datatables.net-select/js/dataTables.select.min.js',
'js/field_sorter.js',
'js/table-selectable-lines.js',
'js/dataTables.main.js',
'js/dataTables.settings.js',
'js/dataTables.pipeline.js',