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.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.less')
| -rw-r--r-- | addons/web/static/src/less/control_panel.less | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/addons/web/static/src/less/control_panel.less b/addons/web/static/src/less/control_panel.less new file mode 100644 index 00000000000..e2635af43d4 --- /dev/null +++ b/addons/web/static/src/less/control_panel.less @@ -0,0 +1,74 @@ +.o_control_panel { + .o-webclient-padding(@top: 10px, @bottom: 10px); + background-color: @odoo-control-panel-background-color; + border-bottom: 1px solid @odoo-main-color-muted; + .breadcrumb { + font-size: 18px; + margin: 0px; + > li > a { + color: @odoo-brand-optional; + cursor: pointer; + &:hover { + color: darken(@odoo-brand-optional, 10%); + text-decoration: none; + } + } + } + + // Sidebar + .o_cp_sidebar { + padding-right: 10px; + + .o_hidden_input_file { + position: relative; + input.o_form_input_file { + position: absolute; + top: 1px; + opacity: 0; + width: 100%; + height: 26px; + } + .o_form_binary_form span { + padding: 3px 25px; + color: @btn-default-color; + } + .o_form_binary_form:hover { + background-color: @table-bg-hover; + } + } + .o_sidebar_delete_attachment { + padding: 0px; + position: absolute; + top: 5px; + right: 10px; + } + } + + // Pager + .o_cp_pager { + text-align: center; + padding-left: 5px; + .user-select(none); + } + + // View Switcher + .o_cp_switch_buttons { + padding-left: 5px; + } +} + +.o_x2m_control_panel { + .o_cp_buttons > div { + margin-top: 5px; + } +} + +// Pager input (to edit pager values) +.o_pager_value > input { + display: inline-block; + width: 60px; + text-align: right; + &:focus { + outline: none; + } +} |
