From 97cdb765b761a97e1fc5c163828a99801905361d Mon Sep 17 00:00:00 2001 From: tilen1976 <68303562+tilen1976@users.noreply.github.com> Date: Mon, 22 Jan 2024 10:19:18 +0100 Subject: [PATCH] Moved inline-styling into cbi.css --- src/datadoc/assets/cbi.css | 9 +++++++++ src/datadoc/frontend/components/variables_tab_cbi2.py | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/datadoc/assets/cbi.css b/src/datadoc/assets/cbi.css index f6df2fc8..ee456939 100644 --- a/src/datadoc/assets/cbi.css +++ b/src/datadoc/assets/cbi.css @@ -3,3 +3,12 @@ flex-wrap: wrap; flex-grow: 1; } + +.accordion-section{ + padding: 1rem; + padding-left: 0; +} + +.ssb-input{ + padding: 1rem; +} diff --git a/src/datadoc/frontend/components/variables_tab_cbi2.py b/src/datadoc/frontend/components/variables_tab_cbi2.py index 5bd4ec62..e92ae8e6 100644 --- a/src/datadoc/frontend/components/variables_tab_cbi2.py +++ b/src/datadoc/frontend/components/variables_tab_cbi2.py @@ -39,7 +39,6 @@ def build_variables_tab() -> dbc.Tab: ), ], className="ssb-input", - style={"padding": "1rem"}, ) for index, x in enumerate(test_variabel_details) ], @@ -53,7 +52,7 @@ def build_variables_tab() -> dbc.Tab: class_name="ssb-accordion", ), ], - style={"padding": "1rem", "paddingLeft": "0"}, + className="accordion-section", ), ], ),