summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/webclient.less
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2016-04-21 13:58:22 +0200
committerGéry Debongnie <ged@odoo.com>2016-04-21 15:21:42 +0200
commit6768bbfcc02e0f498110cda2ba9adbc2fd23d24c (patch)
tree7dccb1019434582874b285276189b1b3dcbb96a9 /addons/web/static/src/less/webclient.less
parente1bfd3fbda97ac7a64a585b07be161d5be606cf9 (diff)
parent8e440b173e3b273b3aac541f2ec12527f67dfa60 (diff)
[MERGE] *: stop duplicating web
Avoid duplicating web addon in enterprise by extracting a common basis. Enterprise features stay in enterprise, but use that common basis. In web, 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 Minor tweaks in some other addons to make them work with this new structure.
Diffstat (limited to 'addons/web/static/src/less/webclient.less')
-rw-r--r--addons/web/static/src/less/webclient.less89
1 files changed, 89 insertions, 0 deletions
diff --git a/addons/web/static/src/less/webclient.less b/addons/web/static/src/less/webclient.less
new file mode 100644
index 00000000000..2f9878fbdc3
--- /dev/null
+++ b/addons/web/static/src/less/webclient.less
@@ -0,0 +1,89 @@
+// ------------------------------------------------------------------
+// Typography
+// ------------------------------------------------------------------
+a {
+ color: @odoo-brand-optional;
+ &:hover {
+ color: darken(@odoo-brand-optional, 10%);
+ }
+}
+
+// ------------------------------------------------------------------
+// General
+// ------------------------------------------------------------------
+.o_web_client {
+ background-color: @odoo-webclient-background-color;
+}
+.o_text_overflow {
+ .o-text-overflow();
+}
+.o_hidden {
+ display: none!important;
+}
+
+// ------------------------------------------------------------------
+// Misc. widgets
+// ------------------------------------------------------------------
+@notification-error-bg-color: #F16567;
+@notification-info-bg-color: #FCFBEA;
+.o_notification_manager {
+ width: 300px;
+ max-width: 100%;
+
+ .o-position-absolute(@navbar-height, 0px);
+ z-index: 1100; // Bootstrap modal z-index is 1050
+
+ .o_notification {
+ padding: 0;
+ margin: 5px 0 0 0;
+
+ opacity: 0;
+
+ background-color: @notification-info-bg-color;
+ box-shadow: 0px 0px 5px 1px @odoo-main-text-color;
+
+ position: relative;
+ .o_close {
+ .o-position-absolute(5px, 5px);
+ color: rgba(0, 0, 0, 0.3);
+ text-decoration: none;
+ }
+
+ .o_notification_title {
+ .o-flex-display();
+ .o-align-items(center);
+
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
+ padding: 10px 10px 10px 20px;
+
+ font-weight: bold;
+
+ .o_icon {
+ display: inline-block;
+ margin-right: 20px;
+ color: rgba(0, 0, 0, 0.3);
+ }
+ }
+
+ .o_notification_content {
+ padding: 10px;
+ }
+
+ &.o_error {
+ color: white;
+ background-color: @notification-error-bg-color;
+ }
+ }
+}
+
+// Buttons
+.o_icon_button {
+ background-color: transparent;
+ border: 0;
+ padding: 0;
+ outline: none;
+}
+
+.oe_highlight {
+ .btn-primary;
+}