summaryrefslogtreecommitdiff
path: root/addons/web_tip/static/src/less/tip.less
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2015-08-25 14:47:20 +0200
committerqsm-odoo <qsm@odoo.com>2015-08-26 16:41:56 +0200
commit09d7250ab6ae22f05ff3ec8e93ae5a0afb90950c (patch)
tree3b938079bc20c059f29bb522db295d448ad36bc8 /addons/web_tip/static/src/less/tip.less
parent6d439ec6df249e6460368e96b884014198504c41 (diff)
[IMP] web_tip: Convert CSS to LESS
This was needed so that the border radius of tips was set correctly in both community and enterprise versions.
Diffstat (limited to 'addons/web_tip/static/src/less/tip.less')
-rw-r--r--addons/web_tip/static/src/less/tip.less92
1 files changed, 92 insertions, 0 deletions
diff --git a/addons/web_tip/static/src/less/tip.less b/addons/web_tip/static/src/less/tip.less
new file mode 100644
index 00000000000..e71e44f8e0d
--- /dev/null
+++ b/addons/web_tip/static/src/less/tip.less
@@ -0,0 +1,92 @@
+.oe_tip_overlay {
+ .o-position-absolute(0, 0, 0, 0);
+ opacity: 0.6;
+ z-index: 1001;
+ background-color: #000;
+ background: -moz-radial-gradient(center,ellipse cover,rgba(0,0,0,0.4) 0,rgba(0,0,0,0.9) 100%);
+ background: -webkit-gradient(radial,center center,0px,center center,100%,color-stop(0%,rgba(0,0,0,0.4)),color-stop(100%,rgba(0,0,0,0.9)));
+ background: -webkit-radial-gradient(center,ellipse cover,rgba(0,0,0,0.4) 0,rgba(0,0,0,0.9) 100%);
+ background: -o-radial-gradient(center,ellipse cover,rgba(0,0,0,0.4) 0,rgba(0,0,0,0.9) 100%);
+ background: -ms-radial-gradient(center,ellipse cover,rgba(0,0,0,0.4) 0,rgba(0,0,0,0.9) 100%);
+ background: radial-gradient(center,ellipse cover,rgba(0,0,0,0.4) 0,rgba(0,0,0,0.9) 100%);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#66000000',endColorstr='#e6000000',GradientType=1);
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
+ filter: alpha(opacity=50);
+ .o-transition(all, 300ms, ease-out);
+}
+
+.oe_tip_helper {
+ position: absolute;
+ z-index: 1008;
+ background-color: @odoo-view-background-color;
+ border: 1px solid @odoo-brand-secondary;
+ border-radius: @border-radius-base;
+ box-shadow: 0 2px 15px rgba(0,0,0,.4);
+ .o-transition(all, 300ms, ease-out);
+}
+
+.oe_tip_close {
+ padding: 5px 5px 10px 10px !important;
+ margin-top: -15px;
+ margin-right: -15px;
+}
+
+.oe_tip_fix_parent {
+ z-index: auto !important;
+ opacity: 1.0 !important;
+ transition: none !important;
+}
+
+.oe_tip_show_element {
+ z-index: 1011 !important;
+ position: relative;
+}
+
+.oe_breathing {
+ background: transparent url(/web_tip/static/src/img/tip_throbber.png) no-repeat center center;
+ cursor : pointer;
+ height: 58px;
+ width: 58px;
+ position: absolute;
+ z-index: 1;
+ .o-animation(bounce, .5s, steps(12), 0s, infinite, alternate);
+}
+
+@-webkit-keyframes bounce {
+ from{ background-position: 0 0}
+ to{ background-position: -696px 0}
+}
+@-moz-keyframes bounce {
+ from{ background-position: 0 0}
+ to{ background-position: -696px 0}
+}
+@-o-keyframes explode {
+ from{ background-position: 0 0}
+ to{ background-position: -696px 0}
+}
+@keyframes bounce {
+ from{ background-position: 0 0}
+ to{ background-position: -696px 0}
+}
+
+.oe_explode {
+ opacity: 0;
+ .o-animation(explode, .5s);
+}
+
+@-webkit-keyframes explode {
+ from{ opacity: 1; transform: scale(1, 1); }
+ to{ opacity: 0; transform: scale(2, 2); }
+}
+@-moz-keyframes explode {
+ from{ opacity: 1; transform: scale(1, 1);}
+ to{ opacity: 0; transform: scale(2, 2);}
+}
+@-o-keyframes explode {
+ from{ opacity: 1; transform: scale(1, 1);}
+ to{ opacity: 0; transform: scale(2, 2);}
+}
+@keyframes explode {
+ from{ opacity: 1; transform: scale(1, 1);}
+ to{ opacity: 0; transform: scale(2, 2);}
+}