feat: merge taskRelations.scss with component styles

This commit is contained in:
Dominik Pschenitschni 2021-10-18 14:22:40 +02:00
parent e41dec611e
commit 23486d8a6b
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
3 changed files with 48 additions and 48 deletions

View File

@ -248,7 +248,9 @@ export default {
}
</script>
<style lang="scss">
<style lang="scss" scoped>
$remove-icon-width: 24px;
.add-task-relation-button {
margin-top: -3rem;
@ -260,4 +262,48 @@ export default {
transform: rotate(45deg);
}
}
</style>
.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;
}
}
</style>

View File

@ -2,7 +2,6 @@
@import "labels";
@import "list";
@import "task";
@import "taskRelations";
@import "tasks";
@import "teams";
@import "namespaces";

View File

@ -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;
}
}