From e0fd5f8fe0e8579d8c969feb770df91ab60ee232 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 18 Oct 2021 14:22:40 +0200 Subject: [PATCH] feat: merge taskRelations.scss with component styles --- .../tasks/partials/relatedTasks.vue | 50 ++++++++++++++++++- src/styles/components/_index.scss | 1 - src/styles/components/taskRelations.scss | 45 ----------------- 3 files changed, 48 insertions(+), 48 deletions(-) delete mode 100644 src/styles/components/taskRelations.scss diff --git a/src/components/tasks/partials/relatedTasks.vue b/src/components/tasks/partials/relatedTasks.vue index 9279e147..8afcafb3 100644 --- a/src/components/tasks/partials/relatedTasks.vue +++ b/src/components/tasks/partials/relatedTasks.vue @@ -248,7 +248,9 @@ export default { } - + +.task-relations { + &.is-narrow .columns { + display: block; + + .column { + width: 100%; + } + } + + .different-list { + color: $grey-500; + width: auto; + } + + .related-tasks { + .title { + font-size: 1rem; + margin: 0; + } + + .tasks { + margin: 0; + + a:not(.remove) { + width: calc(100% - #{$remove-icon-width}); + } + + .task .tasktext { + width: calc(100% - .25rem); // Magic .25rem extra space + } + + .remove { + width: $remove-icon-width; + text-align: center; + } + } + } + + .none { + font-style: italic; + text-align: center; + } +} + \ No newline at end of file diff --git a/src/styles/components/_index.scss b/src/styles/components/_index.scss index 986d186b..36908919 100644 --- a/src/styles/components/_index.scss +++ b/src/styles/components/_index.scss @@ -2,7 +2,6 @@ @import "labels"; @import "list"; @import "task"; -@import "taskRelations"; @import "tasks"; @import "teams"; @import "namespaces"; \ No newline at end of file diff --git a/src/styles/components/taskRelations.scss b/src/styles/components/taskRelations.scss deleted file mode 100644 index 4da758ee..00000000 --- a/src/styles/components/taskRelations.scss +++ /dev/null @@ -1,45 +0,0 @@ -$remove-icon-width: 24px; - -.task-relations { - &.is-narrow .columns { - display: block; - - .column { - width: 100%; - } - } - - .different-list { - color: $grey-500; - width: auto; - } - - .related-tasks { - .title { - font-size: 1rem; - margin: 0; - } - - .tasks { - margin: 0; - - a:not(.remove) { - width: calc(100% - #{$remove-icon-width}); - } - - .task .tasktext { - width: calc(100% - .25rem); // Magic .25rem extra space - } - - .remove { - width: $remove-icon-width; - text-align: center; - } - } - } - - .none { - font-style: italic; - text-align: center; - } -} \ No newline at end of file