feat: merge taskRelations.scss with component styles

This commit is contained in:
Dominik Pschenitschni 2021-10-18 14:22:40 +02:00
parent c9e23cdd29
commit e0fd5f8fe0
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
3 changed files with 48 additions and 48 deletions

View file

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

View file

@ -2,7 +2,6 @@
@import "labels"; @import "labels";
@import "list"; @import "list";
@import "task"; @import "task";
@import "taskRelations";
@import "tasks"; @import "tasks";
@import "teams"; @import "teams";
@import "namespaces"; @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;
}
}