summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/form_view_layout.less
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-03-01 12:01:36 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commitd97c50148bfe29e45e9b8cc82cb40ef03a56bd4c (patch)
tree7fb1de32f287466d86badf77310b3826dd4f3667 /addons/web/static/src/less/form_view_layout.less
parent39ac2dd9bf8486fa4f580ee98a0761ac32d664ca (diff)
[REF] web: less: form view's statusbar
Move the statusbar rules to community as both webclient now share the same js basecode for the statusbar.
Diffstat (limited to 'addons/web/static/src/less/form_view_layout.less')
-rw-r--r--addons/web/static/src/less/form_view_layout.less55
1 files changed, 55 insertions, 0 deletions
diff --git a/addons/web/static/src/less/form_view_layout.less b/addons/web/static/src/less/form_view_layout.less
index 111805c7325..1f3cb374036 100644
--- a/addons/web/static/src/less/form_view_layout.less
+++ b/addons/web/static/src/less/form_view_layout.less
@@ -88,6 +88,61 @@
}
}
+ // Header containing status/workflow buttons
+ .o_form_statusbar {
+ .o-flex(0, 0, auto);
+ .o-flex-display();
+ .o-justify-content(space-between);
+
+ padding-left: @odoo-horizontal-padding;
+
+ > .o_statusbar_buttons, > .o_statusbar_status {
+ .o-flex-display();
+ .o-align-items(center);
+ .o-align-content(space-around);
+ }
+
+ > .o_form_field {
+ .o-align-self(center);
+ margin-bottom: 0px;
+ }
+
+ > .o_statusbar_buttons {
+ .o-flex-flow(row, wrap);
+
+ > .btn {
+ margin: 2px 3px 2px 0;
+ }
+ }
+
+ > .o_statusbar_status {
+ .o-flex-flow(row-reverse, wrap-reverse);
+ .o-align-self(stretch);
+ .o-align-items(stretch);
+ overflow-x: hidden; // to prevent horizontal scroll due to last arrow
+ }
+
+ // Touch device mode
+ > .o_statusbar_buttons > .btn-group {
+ > .dropdown-toggle {
+ &:after {
+ .o-caret-down();
+ margin-left: @odoo-form-spacing-unit;
+ }
+ }
+
+ > .dropdown-menu {
+ padding: 5px 0 2px 0;
+ min-width: 100px;
+
+ > li > .btn {
+ min-width: 100%;
+ margin-bottom: 3px;
+ }
+ }
+ }
+ }
+
// Title
.oe_title {
> h1, > h2, > h3 {