SCSS: Improve panel space occupation by removing unnecessary margins

This commit is contained in:
Molkobain
2021-05-27 11:08:12 +02:00
committed by Eric
parent 6e001141a8
commit deb3dcbb73
2 changed files with 2 additions and 12 deletions

View File

@@ -11,6 +11,7 @@
$ibo-panel-with-tab-container--padding-top: -1 * ($ibo-panel--body--padding-top - $ibo-panel--highlight--height) !default;
$ibo-panel-with-tab-container--margin-x: -1 * $ibo-panel--body--padding-x !default;
$ibo-panel-with-tab-container--margin-bottom: -1 * $ibo-panel--body--padding-bottom !default;
// Note: We use the child ">" selector to ensure this applies only the child tab container, not another one that would be nested
.ibo-panel {
@@ -19,6 +20,7 @@ $ibo-panel-with-tab-container--margin-x: -1 * $ibo-panel--body--padding-x !defau
margin-top: $ibo-panel-with-tab-container--padding-top;
margin-left: $ibo-panel-with-tab-container--margin-x;
margin-right: $ibo-panel-with-tab-container--margin-x;
margin-bottom: $ibo-panel-with-tab-container--margin-bottom;
> .ibo-tab-container--tab-container-list {
height: 100%;

View File

@@ -50,18 +50,6 @@ $ibo-datatable--sort-order--color: $ibo-color-orange-600 !default;
padding: $ibo-datatable-panel--body--padding;
}
.ibo-datatable-panel {
/* Above the table */
&:first-child {
margin-bottom: $ibo-datatable-panel--table-spacing;
}
/* below the table */
&:not(:first-child) {
margin-top: $ibo-datatable-panel--table-spacing;
}
}
// For cancel / OK / next... selection validation buttons
.ibo-datatable--selection-validation-buttons-toolbar {
clear: both;