From 163e1fdcc2d0307362b3a814e6580424dbfd1831 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 7 Dec 2015 18:41:19 +0000 Subject: [PATCH] Mobile theme W.I.P.: - Implement template and styling for timesheet's listview --- timesheet/templates/mobile/index.xet | 57 +++++++++++++++++++++++++++ timesheet/templates/pixelegg/app.css | 37 +++++++++++++++++ timesheet/templates/pixelegg/app.less | 45 ++++++++++++++++++++- 3 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 timesheet/templates/mobile/index.xet diff --git a/timesheet/templates/mobile/index.xet b/timesheet/templates/mobile/index.xet new file mode 100644 index 0000000000..53978df965 --- /dev/null +++ b/timesheet/templates/mobile/index.xet @@ -0,0 +1,57 @@ + + + + + + + + + diff --git a/timesheet/templates/pixelegg/app.css b/timesheet/templates/pixelegg/app.css index 28a16ae129..59a21a1098 100755 --- a/timesheet/templates/pixelegg/app.css +++ b/timesheet/templates/pixelegg/app.css @@ -183,3 +183,40 @@ tr.dialogOperators td, #timesheet-edit_pm_id input { width: 99% !important; } +/* tablets and smartphones */ +@media only screen and (max-device-width: 1024px) { + #timesheet-index table.egwGridView_outer tbody label[id^='timesheet-index'][id$='ts_start]'] > time { + font-weight: bold; + float: left; + } + #timesheet-index table.egwGridView_outer tbody ul[id^='timesheet-index'][id$='ts_owner]'] > li { + overflow: hidden; + width: 90px; + white-space: nowrap; + text-overflow: ellipsis; + font-size: 8pt; + } + #timesheet-index table.egwGridView_outer tbody tr.timesheetRow td { + position: relative; + } + #timesheet-index table.egwGridView_outer tbody span[id^='timesheet-index'][id$='cat_id]'] { + position: absolute; + bottom: 5px; + font-size: 8pt; + } + #timesheet-index table.egwGridView_outer tbody span[id^='timesheet-index'][id$='ts_description]'] { + height: 30px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + #timesheet-index table.egwGridView_outer tbody div.timesheet3Col { + font-size: 8pt; + } + #timesheet-index table.egwGridView_outer tbody span[id^='timesheet-index'][id$='ts_duration]'] { + font-weight: bold; + } + #timesheet-index table.egwGridView_outer tbody label[id^='timesheet-index'][id$='ts_link]'] > span.et2_link { + font-weight: normal; + } +} diff --git a/timesheet/templates/pixelegg/app.less b/timesheet/templates/pixelegg/app.less index 96f4062d28..b389d05303 100755 --- a/timesheet/templates/pixelegg/app.less +++ b/timesheet/templates/pixelegg/app.less @@ -14,6 +14,7 @@ @import (reference) "../../../pixelegg/less/definitions.less"; +@import (reference) "../../../pixelegg/less/def_mobile.less"; @import (less) "../default/app.css"; // iframe @@ -150,4 +151,46 @@ span.timesheet_titleDetails {font-weight: bold;} #timesheet-edit.et2_container { } -// \ No newline at end of file +// + +/* tablets and smartphones */ +@media only screen and (max-device-width:1024px) { + #timesheet-index { + table.egwGridView_outer tbody { + label[id^='timesheet-index'][id$='ts_start]'] > time{ + font-weight: bold; + float: left; + } + ul[id^='timesheet-index'][id$='ts_owner]'] > li { + overflow: hidden; + width: 90px; + white-space: nowrap; + text-overflow: ellipsis; + .mob-fontsize-s; + } + tr.timesheetRow td { + position: relative; + } + span[id^='timesheet-index'][id$='cat_id]'] { + position: absolute; + bottom: 5px; + .mob-fontsize-s; + } + span[id^='timesheet-index'][id$='ts_description]'] { + height: 30px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + div.timesheet3Col { + .mob-fontsize-s; + } + span[id^='timesheet-index'][id$='ts_duration]'] { + font-weight: bold; + } + label[id^='timesheet-index'][id$='ts_link]'] > span.et2_link { + font-weight: normal; + } + } + } +} \ No newline at end of file