diff --git a/css/backoffice/components/_all.scss b/css/backoffice/components/_all.scss index da6bea7d2..1c73b8d8f 100644 --- a/css/backoffice/components/_all.scss +++ b/css/backoffice/components/_all.scss @@ -22,6 +22,7 @@ @import "title"; @import "datatable"; +@import "datatableconfig"; @import "form"; @import "fieldset"; @import "field"; diff --git a/css/backoffice/components/_datatableconfig.scss b/css/backoffice/components/_datatableconfig.scss new file mode 100644 index 000000000..c4ade8215 --- /dev/null +++ b/css/backoffice/components/_datatableconfig.scss @@ -0,0 +1,39 @@ +/* + * @copyright Copyright (C) 2010-2021 Combodo SARL + * @license http://opensource.org/licenses/AGPL-3.0 + */ + +$ibo-datatableconfig--attributes-panel--first-column--margin-x: $ibo-spacing-0 !default; +$ibo-datatableconfig--attributes-panel--first-column--margin-y: $ibo-spacing-300 !default; +$ibo-datatableconfig--attributes-panel--first-column--max-height: 150px !default; + +$ibo-datatableconfig--attributes-panel--per-page--input--margin-x: $ibo-spacing-200 !default; +$ibo-datatableconfig--attributes-panel--per-page--input--margin-y: $ibo-spacing-0 !default; + +$ibo-datatableconfig--settings-panel--option--margin-right: $ibo-spacing-200 !default; + +.ibo-datatableconfig--attributes-panel .ibo-panel--body{ + @extend %ibo-font-ral-nor-100; +} +.ibo-datatableconfig--attributes-panel .ibo-multi-column .ibo-column:first-child{ + margin: $ibo-datatableconfig--attributes-panel--first-column--margin-y $ibo-datatableconfig--attributes-panel--first-column--margin-x; + max-height: $ibo-datatableconfig--attributes-panel--first-column--max-height; + overflow-y: scroll; +} +.ibo-datatableconfig--attributes-panel--per-page--input{ + margin: $ibo-datatableconfig--attributes-panel--per-page--input--margin-y $ibo-datatableconfig--attributes-panel--per-page--input--margin-x; +} + +.ibo-datatableconfig--settings-panel .ibo-panel--body{ + display: flex; + flex-direction: row; +} +.ibo-datatableconfig--settings-panel--options-container{ + flex-grow: 1; +} +.ibo-datatableconfig--settings-panel--option{ + display: flex; + flex-direction: row; + align-items: first baseline; + margin-right: $ibo-datatableconfig--settings-panel--option--margin-right; +} \ No newline at end of file diff --git a/templates/base/components/datatable/config/layout.html.twig b/templates/base/components/datatable/config/layout.html.twig index 375bd9cb6..8da02ad9f 100644 --- a/templates/base/components/datatable/config/layout.html.twig +++ b/templates/base/components/datatable/config/layout.html.twig @@ -1,48 +1,48 @@