diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-04-21 13:58:22 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2016-04-21 15:21:42 +0200 |
| commit | 6768bbfcc02e0f498110cda2ba9adbc2fd23d24c (patch) | |
| tree | 7dccb1019434582874b285276189b1b3dcbb96a9 /addons/web/static/src/less/webclient_extra.less | |
| parent | e1bfd3fbda97ac7a64a585b07be161d5be606cf9 (diff) | |
| parent | 8e440b173e3b273b3aac541f2ec12527f67dfa60 (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_extra.less')
| -rw-r--r-- | addons/web/static/src/less/webclient_extra.less | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/addons/web/static/src/less/webclient_extra.less b/addons/web/static/src/less/webclient_extra.less new file mode 100644 index 00000000000..094670bf0ca --- /dev/null +++ b/addons/web/static/src/less/webclient_extra.less @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------ +// Checkboxes +// ------------------------------------------------------------------ +div.o_checkbox { + display: inline-block; + vertical-align: sub; + > input + span { + display: none; + } +} + +// ------------------------------------------------------------------ +// Inputs and selects +// ------------------------------------------------------------------ +.o-input() { + border: 1px solid @odoo-form-lightsecondary; + border-radius: @border-radius-base; + padding: 2px 4px; + color: #1f1f1f; +} +input[type="text"], input[type="password"], input[type="number"], textarea, select { + .o-input(); + + width: 100%; + outline: none; + display: block; +} +select { + background: white; +} + +// ------------------------------------------------------------------ +// Loading +// ------------------------------------------------------------------ +.o_loading { + position: fixed; + top: 0; + right: 50%; + padding: 4px 12px; + background-color: @odoo-color-pink; + color: white; + text-align: center; + border-top: none; + border-bottom-right-radius: 8px; + border-bottom-left-radius: 8px; +} + +// ------------------------------------------------------------------ +// Planner +// ------------------------------------------------------------------ +// Because the `web_planner` module has to work with Odoo community and enterprise without +// code duplication, fine-tune the display of it in the community webclient here +#PlannerDialog { + top: 35px; + box-shadow: 0 3px 9px #666666; + padding-bottom: 44px; +} + +// ------------------------------------------------------------------ +// User menu in navbar +// ------------------------------------------------------------------ +#oe_main_menu_navbar .oe_user_menu_placeholder .o_user_menu .oe_topbar_name { + .o-text-overflow(); + max-width: 150px; +} |
