summaryrefslogtreecommitdiff
path: root/addons/hr_timesheet_sheet/static/src/css
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2015-06-30 14:58:33 +0200
committerqsm-odoo <qsm@odoo.com>2015-07-01 12:22:23 +0200
commit0a446f976f11d5145e8035ec2decfcacdf3d306c (patch)
treeadc624ee92a70b96af216255acf8db02495ce292 /addons/hr_timesheet_sheet/static/src/css
parentb601ec66caa5bebdd97fc196af294c488dd78100 (diff)
[FIX] Timesheet design
Simplify timesheet design and adapt it for both enterprise and community editions
Diffstat (limited to 'addons/hr_timesheet_sheet/static/src/css')
-rw-r--r--addons/hr_timesheet_sheet/static/src/css/timesheet.css76
-rw-r--r--addons/hr_timesheet_sheet/static/src/css/timesheet.sass72
2 files changed, 57 insertions, 91 deletions
diff --git a/addons/hr_timesheet_sheet/static/src/css/timesheet.css b/addons/hr_timesheet_sheet/static/src/css/timesheet.css
index 99a63002326..f91e6342e2a 100644
--- a/addons/hr_timesheet_sheet/static/src/css/timesheet.css
+++ b/addons/hr_timesheet_sheet/static/src/css/timesheet.css
@@ -1,65 +1,45 @@
-@charset "utf-8";
-.openerp .oe_form_readonly .oe_timesheet_weekly .oe_timesheet_button_add {
- display: none;
-}
-.openerp .oe_form_readonly .oe_timesheet_weekly div.oe_view_nocontent {
- display: none;
-}
-.openerp .oe_timesheet_weekly {
+.o_web_client .oe_timesheet_weekly {
overflow-x: auto;
}
-.openerp .oe_timesheet_weekly table {
+.o_web_client .oe_timesheet_weekly > table {
width: 100%;
}
-.openerp .oe_timesheet_weekly td {
- padding: 3px;
- text-align: right;
-}
-.openerp .oe_timesheet_weekly th {
- text-align: center;
- color: #006699;
- font-family: "Helvetica Neue", Arial, Verdana, "Nimbus Sans L", sans-serif;
- font-size: 11px;
- background: #eeeeee;
- min-width: 47px;
-}
-.openerp .oe_timesheet_weekly .oe_timesheet_total {
- background: #eeeeee;
+.o_web_client .oe_timesheet_weekly > table > tbody > tr.oe_timesheet_weekly_add_row {
+ display: none;
}
-.openerp .oe_timesheet_weekly .oe_timesheet_weekly_account {
+.o_web_client .oe_timesheet_weekly > table > tbody > tr.oe_timesheet_weekly_add_row > td {
text-align: left;
}
-.openerp .oe_timesheet_weekly .oe_timesheet_first_col {
- min-width: 130px;
-}
-.openerp .oe_timesheet_weekly td input.oe_timesheet_weekly_input {
- padding-right: 2px !important;
- width: 40px;
+.o_web_client .oe_timesheet_weekly > table > tbody > tr > td {
text-align: right;
- min-width: 0 !important;
}
-.openerp .oe_timesheet_weekly td.oe_timesheet_total {
+.o_web_client .oe_timesheet_weekly > table > tbody > tr > td.oe_timesheet_total {
font-weight: bold;
- padding: 5px 3px !important;
}
-.openerp .oe_timesheet_weekly .oe_timesheet_weekly_adding_tot {
- display: table;
- width: 100%;
-}
-.openerp .oe_timesheet_weekly .oe_timesheet_weekly_adding {
- display: table-cell;
+.o_web_client .oe_timesheet_weekly > table > tbody > tr > td.oe_timesheet_weekly_account {
+ white-space: nowrap;
text-align: left;
}
-.openerp .oe_timesheet_weekly .oe_timesheet_weekly_tottot {
- display: table-cell;
+.o_web_client .oe_timesheet_weekly > table > tbody > tr > td input.oe_timesheet_weekly_input {
+ display: inline-block;
+ width: 40px;
+ text-align: right;
+}
+.o_web_client .oe_timesheet_weekly > table > tbody > tr > th {
+ text-align: center;
+ font-size: 10px;
+ background: #eee;
}
-.openerp .oe_timesheet_weekly .oe_timesheet_weekly_add_row td {
- text-align: left;
+.o_web_client .oe_timesheet_weekly .oe_timesheet_total {
+ background: #eee;
}
-.openerp .oe_timesheet_weekly .oe_timesheet_weekly_add_row .oe_form_field_many2one {
- display: inline-block;
- width: 200px;
+.o_web_client .oe_timesheet_weekly .oe_timesheet_button_add {
+ float: left;
+}
+.o_web_client .oe_timesheet_weekly .oe_timesheet_weekly_today {
+ background: #fde;
}
-.openerp .oe_timesheet_weekly .oe_timesheet_weekly_today {
- background: #ffddee;
+
+.openerp .oe_timesheet_weekly > table > tbody > tr > th {
+ color: #069;
}
diff --git a/addons/hr_timesheet_sheet/static/src/css/timesheet.sass b/addons/hr_timesheet_sheet/static/src/css/timesheet.sass
index daa835db88d..32dbd4a46ab 100644
--- a/addons/hr_timesheet_sheet/static/src/css/timesheet.sass
+++ b/addons/hr_timesheet_sheet/static/src/css/timesheet.sass
@@ -1,52 +1,38 @@
@charset "utf-8"
-.openerp
- .oe_form_readonly
- .oe_timesheet_weekly
- .oe_timesheet_button_add
- display: none
- div.oe_view_nocontent
- display: none
+.o_web_client
.oe_timesheet_weekly
overflow-x: auto
- table
+ > table
width: 100%
- td
- padding: 3px
- text-align: right
- th
- text-align: center
- color: #069
- font-family: 'Helvetica Neue', Arial, Verdana, 'Nimbus Sans L', sans-serif
- font-size: 10px
- background: #eee
- min-width: 47px
+ > tbody > tr
+ &.oe_timesheet_weekly_add_row
+ display: none
+ > td
+ text-align: left
+ > td
+ text-align: right
+ &.oe_timesheet_total
+ font-weight: bold
+ &.oe_timesheet_weekly_account
+ white-space: nowrap
+ text-align: left
+ input.oe_timesheet_weekly_input
+ display: inline-block
+ width: 40px
+ text-align: right
+ > th
+ text-align: center
+ font-size: 10px
+ background: #eee
.oe_timesheet_total
background: #eee
- .oe_timesheet_weekly_account
- text-align: left
- .oe_timesheet_first_col
- min-width: 130px
- td input.oe_timesheet_weekly_input
- padding-right: 2px !important
- width: 40px
- text-align: right
- min-width: 0 !important
- td.oe_timesheet_total
- font-weight: bold
- padding: 5px 3px !important
- .oe_timesheet_weekly_adding_tot
- display: table
- width: 100%
- .oe_timesheet_weekly_adding
- display: table-cell
- text-align: left
- .oe_timesheet_weekly_tottot
- display: table-cell
- .oe_timesheet_weekly_add_row td
- text-align: left
- .oe_timesheet_weekly_add_row .oe_form_field_many2one
- display: inline-block
- width: 200px
+ .oe_timesheet_button_add
+ float: left
.oe_timesheet_weekly_today
background: #fde
+
+.openerp
+ .oe_timesheet_weekly
+ > table > tbody > tr > th
+ color: #069 \ No newline at end of file