diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-06-15 16:31:27 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-06-15 16:31:27 +0200 |
| commit | 2c7367a8cc8d9e200b1fa2083ce0d80f8f4e4bd3 (patch) | |
| tree | af916cff4d94554b1e9667913e3feb331ec81a13 /addons/project/static/src/less | |
| parent | 5cb10d4fc9594f0c6825757c24d66d63664ce026 (diff) | |
| parent | 82186a93bb3f93c36667835df68fa31dcacf97a2 (diff) | |
[MERGE] new kanban view
This branch introduces the new kanban view. It is not completely
compatible with the previous version. Here are a few importants
points to be aware of:
* the kanban view template is rendered directly, not put inside a div.
It means that if a template has more than one root, chaos will ensue
* kanban view has been split into several files, and various js modules
have changed. For example, the KanbanRecord class is now exported by
the 'web_kanban.Record' module. So, require statements need to be
updated
* records do not have access to the view (i.e., record.view.is_action_enabled('edit'))
You can use the 'editable' and 'deletable' key instead
Diffstat (limited to 'addons/project/static/src/less')
| -rw-r--r-- | addons/project/static/src/less/project_dashboard.less | 58 |
1 files changed, 27 insertions, 31 deletions
diff --git a/addons/project/static/src/less/project_dashboard.less b/addons/project/static/src/less/project_dashboard.less index 9ce363aea0a..e47f36a4f0a 100644 --- a/addons/project/static/src/less/project_dashboard.less +++ b/addons/project/static/src/less/project_dashboard.less @@ -1,45 +1,37 @@ -.oe_kanban_view.o_kanban_dashboard.o_project_kanban { - - @odoo-brand-optional: #21b799; +.o_kanban_view.o_kanban_dashboard.o_project_kanban { .o_kanban_flexbox { - display: flex; + .o-flex-display(); position: relative; } - .oe_kanban_record { + .o_kanban_record { min-width: 300px; - max-width: 350px; - } - - /* - .oe_kanban_record:hover .o_project_kanban_manage { - visibility: visible; } - */ .o_project_kanban_main { - margin-bottom: 40px; // give space for manage section at the bottom - width: 75%; + // give space for manage section at the bottom + margin-bottom: 40px; + width: 70%; - .o_primary { - font-size: larger; + .o_kanban_card_content { + font-size: 12px; + .o_primary { + font-size: larger; + } } .o_project_kanban_manage { visibility: visible; position: absolute; bottom: 0; - margin-left: 10px; + margin-left: 16px; margin-bottom: 10px; } .o_project_kanban_colorpicker { padding: 8px; } .o_kanban_card_manage_pane { - border-color: lightgrey; - border-bottom-style: solid; - border-bottom-width: 1px; .o_kanban_card_manage_title { margin: 0; @@ -48,12 +40,16 @@ } .o_project_kanban_boxes { - display: flex; - flex-direction: column; - justify-content: flex-end; - align-content: stretch; + .o-flex-display(); + .o-flex-flow(column, nowrap); + .o-justify-content(flex-end); + .o-align-content(stretch); + + width: 30%; - width: 25%; + > a:hover { + text-decoration: none; + } .o_value { font-size: x-large; @@ -67,11 +63,11 @@ .o_project_kanban_box { text-align: center; padding: 15px 0 15px 0; - flex: 1 1 auto; - display: flex; - align-items: center; - flex-direction: column; - justify-content: center; + .o-flex(1, 1, auto); + .o-flex-display(); + .o-align-items(center); + .o-flex-flow(column, nowrap); + .o-justify-content(center); } .o_project_kanban_box:nth-child(even) { background-color: grey; @@ -80,4 +76,4 @@ background-color: @odoo-brand-optional; } } -} +}
\ No newline at end of file |
