summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/scss/web_editor.ui.scss
diff options
context:
space:
mode:
authorDipalee Bhalodia <dbh@odoo.com>2018-08-08 16:18:28 +0530
committerqsm-odoo <qsm@odoo.com>2018-08-12 18:37:08 +0200
commitf37c1b124bcbeb136312009f3c1d7745e0f7214d (patch)
tree17835925cab83b1bc5a069abc201df1c789fc02f /addons/web_editor/static/src/scss/web_editor.ui.scss
parenta17771f591411d744abd4ee45b4c5effb3bf16e4 (diff)
[IMP] web_editor: add custom colors for editor colorpicker
- Custom color can now be applied to elements - Find used custom colors in the page and add them as colorpicker suggestions - Current color is selected in the picker when you open the custom color wizard task-37974 Closes #26274
Diffstat (limited to 'addons/web_editor/static/src/scss/web_editor.ui.scss')
-rw-r--r--addons/web_editor/static/src/scss/web_editor.ui.scss15
1 files changed, 11 insertions, 4 deletions
diff --git a/addons/web_editor/static/src/scss/web_editor.ui.scss b/addons/web_editor/static/src/scss/web_editor.ui.scss
index 0b71f290e20..02e7c7552e2 100644
--- a/addons/web_editor/static/src/scss/web_editor.ui.scss
+++ b/addons/web_editor/static/src/scss/web_editor.ui.scss
@@ -789,7 +789,7 @@ html[lang] > body.editor_enable [data-oe-translation-state] {
min-width: 228px;
}
- .note-color-palette .note-color-row {
+ .note-color-palette .note-color-row, .note-custom-color-palette .note-color-row {
height: auto!important;
&::after {
@@ -800,8 +800,10 @@ html[lang] > body.editor_enable [data-oe-translation-state] {
.note-color-btn {
float: left;
+ height: 20px;
+ width: 20px;
margin: 1px 1px 0 0;
- border-color: black;
+ border: 1px solid black;
@include o-alpha-button-preview;
&.o_small {
@@ -858,8 +860,13 @@ html[lang] > body.editor_enable [data-oe-translation-state] {
}
.dropdown-menu {
min-width: 180px!important;
- .btn-group .note-color-reset {
- font-size: 14px !important;
+ .note-custom-color {
+ cursor: pointer;
+ border-radius: 5px;
+ &:hover {
+ background-color: gray('400');
+ color: black
+ }
}
}
}