summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2015-09-08 13:18:36 +0200
committerMartin Geubelle <mge@odoo.com>2015-09-08 16:24:32 +0200
commit247e5865424cdd7581308dfa3e0ea7ea98fd8db7 (patch)
treeb07255b3bbb8dbe17769e736cf0cbeaa859e08b4 /addons/web/static/src/less
parent7d77678f2fd37ba6ed92c6c019d8ece7e62469a4 (diff)
[FIX] web: many2many2tags if no color field
If there is no field 'color' on tag model, the colorpicker should not be displayed.
Diffstat (limited to 'addons/web/static/src/less')
-rw-r--r--addons/web/static/src/less/enterprise_compatibility.less17
1 files changed, 12 insertions, 5 deletions
diff --git a/addons/web/static/src/less/enterprise_compatibility.less b/addons/web/static/src/less/enterprise_compatibility.less
index 05c5706c11d..710587bb92b 100644
--- a/addons/web/static/src/less/enterprise_compatibility.less
+++ b/addons/web/static/src/less/enterprise_compatibility.less
@@ -278,23 +278,30 @@ div.o_checkbox {
.o_delete {
cursor: pointer;
}
- ul {
- min-width: 230px;
- li {
+ > ul {
+ @colored-tag-width: 45px;
+ width: 5*@colored-tag-width + 2px;
+ > li {
float: left;
color: black;
- a {
+ > span {
border-radius: 6px;
- width: 28px;
+ width: @colored-tag-width;
height: 30px;
display: inline-block;
border: 2px solid white;
+ cursor: pointer;
+ padding: 0;
&:hover {
opacity: 0.8;
}
}
}
+ > li:last-child {
+ margin-top: 7px;
+ cursor: auto;
+ }
}
}