summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2017-12-29 13:52:33 +0100
committerqsm-odoo <qsm@odoo.com>2017-12-29 15:29:56 +0100
commit9a42dff490df07de5dff29bf58e0f55cdd872009 (patch)
treea6dba3ec07834363ea9dd09a8a0f50800c4e1ebe
parentc268aa58e059e05587b2332bfb5ece54ba53ab31 (diff)
[FIX] web: LESS 1.4.2 compatibility
Broken with https://github.com/odoo/odoo/commit/23e6dd36d7477f13fe42fdcaae890ffb690d05a4 Indeed CSS guards are used while LESS 1.4.2 only supports mixins guards.
-rw-r--r--addons/web/static/src/less/fields.less10
1 files changed, 6 insertions, 4 deletions
diff --git a/addons/web/static/src/less/fields.less b/addons/web/static/src/less/fields.less
index 358e9e81897..3c6428e5c75 100644
--- a/addons/web/static/src/less/fields.less
+++ b/addons/web/static/src/less/fields.less
@@ -156,8 +156,8 @@
}
}
- .o-tag-color(@size: 0) when (@size < @odoo-nb-ui-color) {
- .o_tag_color_@{size} when (@size = 0) {
+ .o-tag-color(@size: 0) when (@size = 0) {
+ .o_tag_color_@{size} {
& {
background-color: white;
color: ~"@{odoo-color-@{size}}";
@@ -167,7 +167,10 @@
background-color: ~"@{odoo-color-@{size}}";
}
}
- .o_tag_color_@{size} when (@size > 0) {
+ .o-tag-color(@size + 1);
+ }
+ .o-tag-color(@size: 0) when (@size > 0) and (@size < @odoo-nb-ui-color) {
+ .o_tag_color_@{size} {
&, &::after {
background-color: ~"@{odoo-color-@{size}}";
}
@@ -175,7 +178,6 @@
.o-tag-color(@size + 1);
}
.o-tag-color();
-
}
// Stars