diff --git a/timelog-ui/src/app/app.component.html b/timelog-ui/src/app/app.component.html index 9085593..6e88414 100644 --- a/timelog-ui/src/app/app.component.html +++ b/timelog-ui/src/app/app.component.html @@ -1,7 +1,7 @@ - + diff --git a/timelog-ui/src/app/components/settings/settings-view/settings-view.component.css b/timelog-ui/src/app/components/settings/settings-view/settings-view.component.css index c698938..e69de29 100644 --- a/timelog-ui/src/app/components/settings/settings-view/settings-view.component.css +++ b/timelog-ui/src/app/components/settings/settings-view/settings-view.component.css @@ -1,3 +0,0 @@ -.settings-view { - padding: 24px; -} \ No newline at end of file diff --git a/timelog-ui/src/app/components/settings/settings-view/settings-view.component.html b/timelog-ui/src/app/components/settings/settings-view/settings-view.component.html index 55261c0..51e37d0 100644 --- a/timelog-ui/src/app/components/settings/settings-view/settings-view.component.html +++ b/timelog-ui/src/app/components/settings/settings-view/settings-view.component.html @@ -2,16 +2,22 @@ Loading... - Settings - - - Prevent task with no time log to be put to "Done" - - - Allow task to be undone - - - - Save + + Settings + + + save + + + + + + + Prevent task with no time log to be put to "Done" + + + Allow task to be undone + + diff --git a/timelog-ui/src/app/components/tasks/task-detail/task-detail.component.css b/timelog-ui/src/app/components/tasks/task-detail/task-detail.component.css index dab254e..345e9b5 100644 --- a/timelog-ui/src/app/components/tasks/task-detail/task-detail.component.css +++ b/timelog-ui/src/app/components/tasks/task-detail/task-detail.component.css @@ -1,19 +1,3 @@ -.task-details { - padding: 24px; -} - -.detail-view-header { - display: flex; -} - -.detail-view-header div { - flex: 1; -} - -.detail-view-header .actions { - text-align: right; -} - .timelog-entry .timelog-content { flex: 1; } diff --git a/timelog-ui/src/app/components/tasks/task-detail/task-detail.component.html b/timelog-ui/src/app/components/tasks/task-detail/task-detail.component.html index f777521..b1caa48 100644 --- a/timelog-ui/src/app/components/tasks/task-detail/task-detail.component.html +++ b/timelog-ui/src/app/components/tasks/task-detail/task-detail.component.html @@ -21,46 +21,52 @@ - - - + + + arrow_back + + + Task {{task.name}} + - - {{task.name}} - - - Status: {{done?'Done':'Pending'}} - - - Total time spent: {{totalSpentTime}} - + + + {{task.name}} + + + Status: {{done?'Done':'Pending'}} + + + Total time spent: {{totalSpentTime}} + - - Activity - - - - - {{getTimelogFormattedDuration(timelog)}} on {{getTimelogFormattedDate(timelog)}} - - - - - delete - - - - - - + + Activity + + + + + {{getTimelogFormattedDuration(timelog)}} on {{getTimelogFormattedDate(timelog)}} + + + + + delete + + + + + + + \ No newline at end of file diff --git a/timelog-ui/src/app/components/tasks/task-list/task-list.component.css b/timelog-ui/src/app/components/tasks/task-list/task-list.component.css index 19e5e2c..4cfd481 100644 --- a/timelog-ui/src/app/components/tasks/task-list/task-list.component.css +++ b/timelog-ui/src/app/components/tasks/task-list/task-list.component.css @@ -1,6 +1,5 @@ .task-list { display: flex; - padding: 24px; height: 100%; box-sizing: border-box; flex-direction: column; diff --git a/timelog-ui/src/app/components/tasks/task-list/task-list.component.html b/timelog-ui/src/app/components/tasks/task-list/task-list.component.html index fa2e8f1..ad860af 100644 --- a/timelog-ui/src/app/components/tasks/task-list/task-list.component.html +++ b/timelog-ui/src/app/components/tasks/task-list/task-list.component.html @@ -6,42 +6,46 @@ Loading... - - + + My tasks - - Pending - Done - All - - - - - - {{task.name}} - - - add_alarm - - - info - - - check_circle - - - highlight_off - - - - - - - - - - add - + + + + Pending + Done + All + + + + + + + {{task.name}} + + + add_alarm + + + info + + + check_circle + + + highlight_off + + + + + + + + + + add + + \ No newline at end of file diff --git a/timelog-ui/src/content.css b/timelog-ui/src/content.css new file mode 100644 index 0000000..4786876 --- /dev/null +++ b/timelog-ui/src/content.css @@ -0,0 +1,39 @@ +.content-view { + display: flex; + flex-direction: column; + height: 100%; +} + +.content-view-title { + flex: 0; + display: flex; + padding: 16px; + background: rgba(255, 255, 255, 0.78); +} + +.content-view-title h1, +.content-view-title .title-area { + flex: 1; +} + +.content-view-title h1 { + margin: 0; + font-size: 24px; + margin-top: 4px; + display: inline-block; +} + +.content-view-title .actions-left { + flex: 0; + text-align: left; +} + +.content-view-title .actions { + flex: 0; + text-align: right; +} + +.content-view-body { + padding: 24px; + flex: 1; +} \ No newline at end of file diff --git a/timelog-ui/src/styles.css b/timelog-ui/src/styles.css index 2302af0..8955289 100644 --- a/timelog-ui/src/styles.css +++ b/timelog-ui/src/styles.css @@ -1,12 +1,15 @@ /* You can add global styles to this file, and also import other style files */ @import "~@angular/material/prebuilt-themes/indigo-pink.css"; @import "https://fonts.googleapis.com/icon?family=Material+Icons"; +@import url('https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i'); @import "./form.css"; +@import "./content.css"; html, body{ margin: 0; height: 100%; width: 100%; + font-family: 'Roboto', sans-serif; } app-root{
- Status: {{done?'Done':'Pending'}} -
- Total time spent: {{totalSpentTime}} -
+ Status: {{done?'Done':'Pending'}} +
+ Total time spent: {{totalSpentTime}} +
- - delete - -
+ + delete + +
- - add_alarm - - - info - - - check_circle - - - highlight_off - -
+ + add_alarm + + + info + + + check_circle + + + highlight_off + +