summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/form_view.less
diff options
context:
space:
mode:
authorKhoi Nguyen <bng@odoo.com>2017-07-20 12:04:59 +0200
committerKhoi Nguyen <bng@odoo.com>2017-07-20 13:25:50 +0200
commitf97861f4b14d1831fc25231fcd722ad64422a2e5 (patch)
tree05e625e930112ee9c8c9a538aeefe119189f5390 /addons/web/static/src/less/form_view.less
parent104dfe3c07d36a6487f045f31d0999cc429cb5bb (diff)
[FIX] web: fix colour for .o_form_uri
Before this revision, multiline links in form views had a different colour depending on whether we were editing a record, or merely viewing it. As an example, the 'customer' field (containing both the name and the address) in the form view of 'invoice' is affected. When editing the invoice, all lines have @link-color as colour. However, when viewing it, only the first line does, while the address is in @odoo-main-text-color.
Diffstat (limited to 'addons/web/static/src/less/form_view.less')
-rw-r--r--addons/web/static/src/less/form_view.less21
1 files changed, 11 insertions, 10 deletions
diff --git a/addons/web/static/src/less/form_view.less b/addons/web/static/src/less/form_view.less
index 34ce34e6ad8..c4990e6c824 100644
--- a/addons/web/static/src/less/form_view.less
+++ b/addons/web/static/src/less/form_view.less
@@ -86,18 +86,19 @@
display: inline-block;
}
- .o_form_uri { // FIXME maybe global?
- display: inline-block;
+ }
- color: @odoo-main-text-color;
+ .o_form_uri {
+ display: inline-block;
+
+ color: @odoo-main-text-color;
+ &:first-line {
+ color: @link-color;
+ }
+ &:hover {
+ color: darken(@odoo-main-text-color, 1%); // hack required on chrome
&:first-line {
- color: @link-color;
- }
- &:hover {
- color: darken(@odoo-main-text-color, 1%); // hack required on chrome
- &:first-line {
- color: darken(@link-color, 15%);
- }
+ color: darken(@link-color, 15%);
}
}
}