From d7dc57f23cd1f029340cc747d4ece8e3b0b7be72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Sun, 16 Feb 2025 11:54:09 +0100 Subject: [PATCH] improve css --- addons/html_builder/static/src/builder.scss | 15 +++++++++++-- addons/html_builder/static/src/builder.xml | 16 +++++++------- .../static/src/sidebar/block_tab.scss | 18 +++++++++++++++ .../static/src/sidebar/block_tab.xml | 18 +++++++-------- .../static/src/sidebar/option_container.scss | 22 +++++++++++++++++++ .../static/src/sidebar/option_container.xml | 6 ++--- 6 files changed, 73 insertions(+), 22 deletions(-) create mode 100644 addons/html_builder/static/src/sidebar/option_container.scss diff --git a/addons/html_builder/static/src/builder.scss b/addons/html_builder/static/src/builder.scss index 27eb573fcd668..ac594a24efd33 100644 --- a/addons/html_builder/static/src/builder.scss +++ b/addons/html_builder/static/src/builder.scss @@ -1,11 +1,11 @@ .o-snippets-menu { - background-color: #191922; + background-color: $o-we-bg-darker; color: #d9d9d9; width: 288px; } .o-snippets-top-actions { - border-bottom: 1px solid gray; + border-bottom: 1px solid $o-we-bg-lighter; height: 46px; .btn { @@ -37,11 +37,22 @@ } .o-snippets-tabs { + font-size: 12px; + line-height: 24px; + + > button { + color: $o-we-color; + } .active { box-shadow: inset 0 -2px 0 #01bad2; } } +.o-tab-content { + background-color: $o-we-bg-dark; + font-size: 12px; +} + .we-bg-darker { background-color: #2b2b33; } diff --git a/addons/html_builder/static/src/builder.xml b/addons/html_builder/static/src/builder.xml index e77262052ca2d..c328f25c62f0e 100644 --- a/addons/html_builder/static/src/builder.xml +++ b/addons/html_builder/static/src/builder.xml @@ -14,18 +14,18 @@ -
- - -
-
+
diff --git a/addons/html_builder/static/src/sidebar/block_tab.scss b/addons/html_builder/static/src/sidebar/block_tab.scss index 66972ebc26b9e..dcf5867019a2e 100644 --- a/addons/html_builder/static/src/sidebar/block_tab.scss +++ b/addons/html_builder/static/src/sidebar/block_tab.scss @@ -1,6 +1,24 @@ .o-snippets-menu { + + .o-section { + padding-left: 6px; + } + .o-block-container { + > .row { + margin-right: 2px; + } + } + .o-draggable-block { + padding: 1px; + } .block { background-color: rgba(62, 62, 70, 0.9); + color: $o-we-color; + + &:hover { + background: $o-we-dropdown-item-bg-hover; + color: $o-we-dropdown-item-hover-color; + } &.to_install { .img-container { diff --git a/addons/html_builder/static/src/sidebar/block_tab.xml b/addons/html_builder/static/src/sidebar/block_tab.xml index 551ab6ff89d8a..f66ca64cde0a0 100644 --- a/addons/html_builder/static/src/sidebar/block_tab.xml +++ b/addons/html_builder/static/src/sidebar/block_tab.xml @@ -2,38 +2,38 @@ -
Categories
-
+
Categories
+
-
+
- +
-
Custom Inner Content
+
Custom Inner Content
-
Inner Content
-
+
Inner Content
+
-
+
- +
diff --git a/addons/html_builder/static/src/sidebar/option_container.scss b/addons/html_builder/static/src/sidebar/option_container.scss new file mode 100644 index 0000000000000..640a802c79885 --- /dev/null +++ b/addons/html_builder/static/src/sidebar/option_container.scss @@ -0,0 +1,22 @@ +.options-container { + .btn-primary { + background-color: $o-we-bg-lightest !important; + color: $o-we-fg-light; + font-size: 12px; + padding: 0px 6px; + border: none; + + &.active { + color: $o-we-fg-lighter; + background-color: $o-we-bg-light !important; + + } + } + + .we-bg-options-container { + > div { + margin-top: 1px; + margin-bottom: 1px; + } + } +} \ No newline at end of file diff --git a/addons/html_builder/static/src/sidebar/option_container.xml b/addons/html_builder/static/src/sidebar/option_container.xml index e2594a86fc9af..50fd47d8994dd 100644 --- a/addons/html_builder/static/src/sidebar/option_container.xml +++ b/addons/html_builder/static/src/sidebar/option_container.xml @@ -5,9 +5,9 @@
-
+
- +
@@ -39,7 +39,7 @@
-
+