diff --git a/src/styles/components/task.scss b/src/styles/components/task.scss index dec1ca2325..fda55fe4d8 100644 --- a/src/styles/components/task.scss +++ b/src/styles/components/task.scss @@ -200,7 +200,24 @@ } .task-view-container { - padding-bottom: 1em; + padding-bottom: 1rem; + + .task-view * { + opacity: 0; + transition: opacity 50ms ease; + } + + &.is-loading { + opacity: 1; + + .task-view * { + opacity: 0; + } + } + + &.visible:not(.is-loading) .task-view * { + opacity: 1; + } } .is-done { diff --git a/src/styles/theme/variables.scss b/src/styles/theme/variables.scss index 4d37fea7c3..0445400a7b 100644 --- a/src/styles/theme/variables.scss +++ b/src/styles/theme/variables.scss @@ -31,7 +31,8 @@ $vikunja-nav-background: $light-background; $vikunja-nav-color: lighten($black, 25); $vikunja-nav-selected-width: 0.4em; -$transition: 150ms ease; +$transition-duration: 150ms; +$transition: $transition-duration ease; $multiselect-primary: $green; $multiselect-dark: #35495e; diff --git a/src/views/tasks/TaskDetailView.vue b/src/views/tasks/TaskDetailView.vue index 9dd229eea8..753728a602 100644 --- a/src/views/tasks/TaskDetailView.vue +++ b/src/views/tasks/TaskDetailView.vue @@ -1,5 +1,5 @@