From 3ae5a108ab40ccbcd4c2a38302195c6c2df90583 Mon Sep 17 00:00:00 2001 From: Minh Tran Date: Tue, 28 Aug 2012 20:02:37 +0200 Subject: [PATCH] Restyling of project kanban view bzr revid: mit@openerp.com-20120828180237-w14dhdufbx6dxc2i --- addons/project/project_view.xml | 54 ++++++++++++++++------- addons/project/static/src/css/project.css | 39 +++++++++++----- 2 files changed, 67 insertions(+), 26 deletions(-) diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index 6dbcaebd045..6195ca909d2 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -239,30 +239,52 @@
-

+

- -
-
Deadline
-
-
-
-
Progress
-
/
-
-
- + Tasks
+ + + + + + + + + +
Deadline
Progress/
+ + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/addons/project/static/src/css/project.css b/addons/project/static/src/css/project.css index ebab44e225a..51bb8f45ee9 100644 --- a/addons/project/static/src/css/project.css +++ b/addons/project/static/src/css/project.css @@ -1,23 +1,41 @@ +.oe_kanban_card { + margin: 2px; +} + .oe_kanban_project { - width: 300px; + width: 250px; + min-height: 160px; } .oe_kanban_project_list { - margin: 8px 0 8px 0; + margin: 4px 0; } -/*.oe_kanban_project_list a:not(:first-child):before { - content: ' - '; -}*/ -.oe_kanban_project_fields div { - display: inline-block; - width: 49%; - box-sizing: border-box; - padding: 2px 0 2px 0; + +.openerp .oe_kanban_content h4 { + margin: 0 0 8px; } + +.oe_kanban_content > table { + width: 100%; +} + +.oe_kanban_content > table > th { + padding: 0; + border-right: 1px solid #DDD; + vertical-align: top; + font-weight: normal; +} + +.oe_kanban_content > table > td { + padding: 2px 0 2px 8px; + color: #888; +} + .oe_kanban_project_fields div:nth-child(odd) { border-right: 1px solid #dddddd; vertical-align: top; padding-right: 8px; } + .oe_kanban_project_fields div:nth-child(even) { padding-left: 8px; color: #888888; @@ -27,6 +45,7 @@ padding-top: 1em; margin-top: 8px; } + .oe_kanban_project_avatars img { width: 30px; height: 30px;