diff options
| author | Julien Mougenot <jum@odoo.com> | 2020-03-11 09:38:28 +0000 |
|---|---|---|
| committer | Julien Mougenot <jum@odoo.com> | 2020-03-13 14:08:33 +0000 |
| commit | fbf347498f1cc7b74ef373179b7bcae201715c24 (patch) | |
| tree | b8d1eb29ec93b6c2e43dbade712e636d32fe6716 /addons/web/static/src/scss/control_panel.scss | |
| parent | 0a129284e4856b6485c48a194fd86c3ab5c736e7 (diff) | |
[REF] web: Control panel Owl
Refactoring of the control panel with the Owl framework.
The MVC structure of the control panel has been changed to a 'component <-> model'
relationship. As such:
- Removed the old control panel: view/model/controller/renderer
- Created a new Owl Component (ControlPanel)
- Created a new class: the Model (an Owl Store did not fit here) and a newly
designed ControlPanelModel extending it
Refactored all inner subcomponents, including:
- Pager
- ActionMenus (peviously SideBar)
- Filter menu
> Custom filter item
- Group by menu
> Custom group by item
> Removal of groupby_menu_mixin (and refactored graph controller in sibling commit)
- Time range menu
- Favorite menu
> Custom favorite item
> Moved the favorite menu registry to the favorite_menu file
- Search bar
> Removed and splitted auto-completion dropdown logic between the new SearchBar
Component (descriptions) and to the new ControlPanelModel (domains).
The templates (all in web/base.xml) have been adapted to the new standards. Most
of the DOM structure remains unchanged with some occasional improvements (replace
hiding with not rendering, removed pointless wrapper divs, etc.).
Part of task 2196029
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Diffstat (limited to 'addons/web/static/src/scss/control_panel.scss')
| -rw-r--r-- | addons/web/static/src/scss/control_panel.scss | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/addons/web/static/src/scss/control_panel.scss b/addons/web/static/src/scss/control_panel.scss index 490b6a1d8ac..77def271d55 100644 --- a/addons/web/static/src/scss/control_panel.scss +++ b/addons/web/static/src/scss/control_panel.scss @@ -45,7 +45,7 @@ display: flex; justify-content: space-between; - > .o_cp_sidebar { + > .o_cp_action_menus { padding-right: 10px; .o_hidden_input_file { @@ -83,14 +83,14 @@ text-align: center; user-select: none; - > div { + .o_pager { display: flex; align-items: center; - } - .o_pager_counter { - margin-right: 5px; - min-width: $o-statbutton-height; + .o_pager_counter { + margin-right: 5px; + min-width: $o-statbutton-height; + } } } @@ -123,12 +123,17 @@ } } -// Pager input (to edit pager values) -.o_pager_value > input { +.o_pager_value { display: inline-block; - width: 60px; - text-align: right; +} +span.o_pager_value { + border-bottom: 1px solid transparent; +} + +input.o_pager_value { + text-align: right; + width: 60px; &:focus { outline: none; } |
