summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/tooltip.less
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2016-04-08 14:53:34 +0200
committerGéry Debongnie <ged@odoo.com>2016-04-21 15:21:39 +0200
commit977db823c7c84e9edc7c8cf8384eb9cf47275b3a (patch)
treec3312f745baf11d51f976a60d6e285480f557d4c /addons/web/static/src/less/tooltip.less
parente1bfd3fbda97ac7a64a585b07be161d5be606cf9 (diff)
[REF] web: stop duplicating web
Avoid duplicating web addon in enterprise by extracting a common basis. Enterprise features stay in enterprise, but use that common basis. Mainly: - JS refactoring and linting - Conversion of .sass into .less split into multiple files - Templates cleaning and DOM simplification - Re-generation of web.pot, and update of .po files
Diffstat (limited to 'addons/web/static/src/less/tooltip.less')
-rw-r--r--addons/web/static/src/less/tooltip.less57
1 files changed, 57 insertions, 0 deletions
diff --git a/addons/web/static/src/less/tooltip.less b/addons/web/static/src/less/tooltip.less
new file mode 100644
index 00000000000..dad63e374fa
--- /dev/null
+++ b/addons/web/static/src/less/tooltip.less
@@ -0,0 +1,57 @@
+
+.tooltip {
+ padding: 0;
+ margin: 0;
+ opacity: 1;
+
+ .tooltip-inner {
+ background-color: @odoo-tooltip-background-color;
+ color: @odoo-tooltip-color;
+ border-radius: @border-radius-base;
+ box-shadow: 0px 0px 1px 1px @odoo-brand-secondary;
+
+ padding: 5px;
+
+ text-align: left;
+
+ .oe_tooltip_string {
+ background-color: @odoo-brand-primary;
+ color: white;
+ font-weight: bold;
+ padding: 5px;
+ }
+ .oe_tooltip_help {
+ white-space: pre-line;
+ padding: 5px 5px 0;
+ }
+ .oe_tooltip_technical {
+ padding: 0;
+ margin: 5px 0 5px 20px;
+ list-style-type: circle;
+
+ .oe_tooltip_technical_title {
+ font-weight: bold;
+ }
+ }
+ }
+
+ .tooltip-arrow {
+ -moz-transform: scale(0.9999);
+ }
+ &.top, &.top-left, &.top-right {
+ .tooltip-arrow {
+ border-top-color: @odoo-tooltip-arrow-color!important;
+ }
+ }
+ &.bottom, &.bottom-left, &.bottom-right {
+ .tooltip-arrow {
+ border-bottom-color: @odoo-tooltip-arrow-color!important;
+ }
+ }
+ &.left .tooltip-arrow {
+ border-left-color: @odoo-tooltip-arrow-color!important;
+ }
+ &.right .tooltip-arrow {
+ border-right-color: @odoo-tooltip-arrow-color!important;
+ }
+}