This commit is contained in:
kolaente 2021-07-27 18:07:49 +02:00
parent 5a29982e99
commit e1ecca3596
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 260 additions and 260 deletions

View File

@ -1,341 +1,341 @@
.tasks-container { .tasks-container {
display: flex; display: flex;
.tasks { .tasks {
width: 100%; width: 100%;
} }
.taskedit { .taskedit {
width: 50%; width: 50%;
} }
} }
.tasks { .tasks {
margin-top: 1rem; margin-top: 1rem;
padding: 0; padding: 0;
text-align: left; text-align: left;
@media screen and (min-width: $tablet) { @media screen and (min-width: $tablet) {
&.short { &.short {
max-width: 53vw; max-width: 53vw;
} }
} }
@media screen and (max-width: $tablet) { @media screen and (max-width: $tablet) {
max-width: 100%; max-width: 100%;
} }
&.noborder { &.noborder {
margin: 1rem -0.5rem; margin: 1rem -0.5rem;
} }
.task { .task {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
padding: 0.5rem; padding: 0.5rem;
transition: background-color $transition; transition: background-color $transition;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
margin: 0 .5rem; margin: 0 .5rem;
border-radius: $radius; border-radius: $radius;
&:first-child { &:first-child {
margin-top: .5rem; margin-top: .5rem;
} }
&:last-child { &:last-child {
margin-bottom: .5rem; margin-bottom: .5rem;
} }
&:hover { &:hover {
background-color: $grey-100; background-color: $grey-100;
} }
.tasktext, .tasktext,
&.tasktext { &.tasktext {
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
display: inline-block; display: inline-block;
flex: 1 0 50%; flex: 1 0 50%;
.overdue { .overdue {
color: $red; color: $red;
} }
} }
.task-list { .task-list {
width: auto; width: auto;
color: $grey-400; color: $grey-400;
font-size: .9rem; font-size: .9rem;
white-space: nowrap; white-space: nowrap;
} }
.fancycheckbox span { .fancycheckbox span {
display: none; display: none;
} }
.color-bubble { .color-bubble {
height: 10px; height: 10px;
flex: 0 0 10px; flex: 0 0 10px;
} }
.tag { .tag {
margin: 0 0.5rem; margin: 0 0.5rem;
} }
.avatar { .avatar {
border-radius: 50%; border-radius: 50%;
vertical-align: bottom; vertical-align: bottom;
margin-left: 5px; margin-left: 5px;
height: 27px; height: 27px;
width: 27px; width: 27px;
} }
.list-task-icon { .list-task-icon {
margin-left: 6px; margin-left: 6px;
&:not(:first-of-type) { &:not(:first-of-type) {
margin-left: 8px; margin-left: 8px;
} }
}
a { }
color: $text;
transition: color ease $transition-duration;
&:hover { a {
color: $grey-900; color: $text;
} transition: color ease $transition-duration;
}
.favorite { &:hover {
opacity: 0; color: $grey-900;
text-align: center; }
width: 27px; }
transition: opacity $transition, color $transition;
&:hover { .favorite {
color: $orange; opacity: 0;
} text-align: center;
width: 27px;
transition: opacity $transition, color $transition;
&.is-favorite { &:hover {
opacity: 1; color: $orange;
color: $orange; }
}
}
&:hover .favorite { &.is-favorite {
opacity: 1; opacity: 1;
} color: $orange;
}
}
.fancycheckbox { &:hover .favorite {
height: 18px; opacity: 1;
padding-top: 0; }
padding-right: .5rem;
span { .fancycheckbox {
display: none; height: 18px;
} padding-top: 0;
} padding-right: .5rem;
.tasktext.done { span {
text-decoration: line-through; display: none;
color: $grey-500; }
} }
span.parent-tasks { .tasktext.done {
color: $grey-500; text-decoration: line-through;
width: auto; color: $grey-500;
} }
.remove { span.parent-tasks {
color: $red; color: $grey-500;
} width: auto;
}
input[type="checkbox"] { .remove {
vertical-align: middle; color: $red;
} }
.settings { input[type="checkbox"] {
float: right; vertical-align: middle;
width: 24px; }
cursor: pointer;
}
&.loader-container.is-loading:after { .settings {
top: calc(50% - 1rem); float: right;
left: calc(50% - 1rem); width: 24px;
width: 2rem; cursor: pointer;
height: 2rem; }
border-left-color: $grey-300;
border-bottom-color: $grey-300;
}
}
.progress { &.loader-container.is-loading:after {
width: 50px; top: calc(50% - 1rem);
margin: 0 0.5rem 0 0; left: calc(50% - 1rem);
flex: 3 1 auto; width: 2rem;
height: 2rem;
border-left-color: $grey-300;
border-bottom-color: $grey-300;
}
}
@media screen and (max-width: $tablet) { .progress {
margin: 0.5rem 0 0 0; width: 50px;
order: 1; margin: 0 0.5rem 0 0;
width: 100%; flex: 3 1 auto;
}
}
.task:last-child { @media screen and (max-width: $tablet) {
border-bottom: none; margin: 0.5rem 0 0 0;
} order: 1;
width: 100%;
}
}
.task:last-child {
border-bottom: none;
}
} }
.is-menu-enabled .tasks .task { .is-menu-enabled .tasks .task {
span:not(.tag), a { span:not(.tag), a {
.tasktext, &.tasktext { .tasktext, &.tasktext {
@media screen and (max-width: $desktop) { @media screen and (max-width: $desktop) {
max-width: calc(100vw - 27px - 2rem - 1.5rem - 3rem - #{$navbar-width}); // 1.5rem is the padding of the tasks container, 3rem is the padding of .app-container max-width: calc(100vw - 27px - 2rem - 1.5rem - 3rem - #{$navbar-width}); // 1.5rem is the padding of the tasks container, 3rem is the padding of .app-container
} }
// Duplicated rule to have it work properly in at least some browsers // Duplicated rule to have it work properly in at least some browsers
// This should be fine as the ui doesn't work in rare edge cases to begin with // This should be fine as the ui doesn't work in rare edge cases to begin with
@media screen and (max-width: calc(#{$desktop} + #{$navbar-width})) { @media screen and (max-width: calc(#{$desktop} + #{$navbar-width})) {
max-width: calc(100vw - 27px - 2rem - 1.5rem - 3rem - #{$navbar-width}); // 1.5rem is the padding of the tasks container, 3rem is the padding of .app-container max-width: calc(100vw - 27px - 2rem - 1.5rem - 3rem - #{$navbar-width}); // 1.5rem is the padding of the tasks container, 3rem is the padding of .app-container
} }
}
} }
}
} }
.taskedit { .taskedit {
min-height: calc(100% - 1rem); min-height: calc(100% - 1rem);
margin-top: 1rem; margin-top: 1rem;
.priority-select { .priority-select {
.select, select { .select, select {
width: 100%; width: 100%;
} }
} }
ul.assingees { ul.assingees {
list-style: none; list-style: none;
margin: 0; margin: 0;
li { li {
padding: 0.5rem 0.5rem 0; padding: 0.5rem 0.5rem 0;
a { a {
float: right; float: right;
color: $red; color: $red;
transition: all $transition; transition: all $transition;
} }
} }
} }
.tag { .tag {
margin-right: 0.5rem; margin-right: 0.5rem;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }
} }
} }
.show-tasks { .show-tasks {
h3 { h3 {
text-align: left; text-align: left;
&.nothing { &.nothing {
text-align: center; text-align: center;
margin-top: 3rem; margin-top: 3rem;
} }
.input { .input {
width: 190px; width: 190px;
vertical-align: middle; vertical-align: middle;
margin: .5rem 0; margin: .5rem 0;
} }
} }
img { img {
margin-top: 2rem; margin-top: 2rem;
} }
.user img{ .user img {
margin: 0; margin: 0;
} }
.spinner.is-loading:after { .spinner.is-loading:after {
margin-left: calc(40% - 1rem); margin-left: calc(40% - 1rem);
} }
} }
.defer-task { .defer-task {
$defer-task-max-width: 350px; $defer-task-max-width: 350px;
position: absolute; position: absolute;
width: 100%; width: 100%;
max-width: $defer-task-max-width; max-width: $defer-task-max-width;
border-radius: $radius; border-radius: $radius;
border: 1px solid $grey-200; border: 1px solid $grey-200;
padding: 1rem; padding: 1rem;
margin: 1rem; margin: 1rem;
background: $white; background: $white;
color: $text; color: $text;
cursor: default; cursor: default;
z-index: 10; z-index: 10;
box-shadow: $shadow-lg; box-shadow: $shadow-lg;
input.input { input.input {
display: none; display: none;
} }
.flatpickr-calendar { .flatpickr-calendar {
margin: 0 auto; margin: 0 auto;
box-shadow: none; box-shadow: none;
span { span {
width: auto !important; width: auto !important;
} }
} }
.defer-days { .defer-days {
justify-content: space-between; justify-content: space-between;
display: flex; display: flex;
margin: .5rem 0; margin: .5rem 0;
} }
@media screen and (max-width: ($defer-task-max-width + 100px)) { // 100px is roughly the size the pane is pulled to the right @media screen and (max-width: ($defer-task-max-width + 100px)) { // 100px is roughly the size the pane is pulled to the right
left: .5rem; left: .5rem;
right: .5rem; right: .5rem;
max-width: 100%; max-width: 100%;
width: calc(100vw - 1rem - 2rem); width: calc(100vw - 1rem - 2rem);
.flatpickr-calendar { .flatpickr-calendar {
max-width: 100%; max-width: 100%;
.flatpickr-innerContainer { .flatpickr-innerContainer {
overflow: scroll; overflow: scroll;
} }
} }
} }
} }
.is-max-width-desktop .tasks .task { .is-max-width-desktop .tasks .task {
max-width: $desktop; max-width: $desktop;
} }
.tasktext { .tasktext {
:focus { :focus {
box-shadow: inset 0 0 0 2px rgba($primary, 0.5); box-shadow: inset 0 0 0 2px rgba($primary, 0.5);
} }
:focus:not(:focus-visible) { :focus:not(:focus-visible) {
outline: 0; outline: 0;
} }
:focus-visible, :-moz-focusring { :focus-visible, :-moz-focusring {
box-shadow: inset 0 0 0 2px rgba($primary, 0.5); box-shadow: inset 0 0 0 2px rgba($primary, 0.5);
} }
} }