diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-04-08 14:53:34 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2016-04-21 15:21:39 +0200 |
| commit | 977db823c7c84e9edc7c8cf8384eb9cf47275b3a (patch) | |
| tree | c3312f745baf11d51f976a60d6e285480f557d4c /addons/web/static/src/less/control_panel_layout.less | |
| parent | e1bfd3fbda97ac7a64a585b07be161d5be606cf9 (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/control_panel_layout.less')
| -rw-r--r-- | addons/web/static/src/less/control_panel_layout.less | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/addons/web/static/src/less/control_panel_layout.less b/addons/web/static/src/less/control_panel_layout.less new file mode 100644 index 00000000000..92f8397bca4 --- /dev/null +++ b/addons/web/static/src/less/control_panel_layout.less @@ -0,0 +1,70 @@ +@breadcrumb-height: 30px; + +.o_control_panel { + .o-flex-display(); + .o-flex-flow(row, wrap); + + .breadcrumb { + width: 50%; + + > li { + .o_text_overflow; + max-width: 90%; + display: inline-block; + } + } + + &.o_breadcrumb_full { + .breadcrumb { + width: 100%; + } + } + + .o_cp_searchview { + width: 50%; + min-height: @breadcrumb-height; + } + + .btn.o_enable_searchview { + width: 10%; + margin-left: 2%; + padding: 0px; + } + + .o_cp_left { + width: 50%; + margin-top: 5px; + .o-flex-display(); + .o-justify-content(space-between); + } + + .o_cp_right { + width: 50%; + margin-top: 5px; + .o-flex-display(); + + .o_cp_pager { + margin: auto 0 auto auto; + } + } +} + +.o_x2m_control_panel { + .o-flex-display(); + .o-flex-flow(row, wrap); + + .o_cp_buttons { + .o-flex-display(); + margin-right: auto; + } + .o_cp_pager { + .o-flex-display(); + margin-left: auto; + } +} + +@media print { + .o_control_panel { + display: none; + } +} |
