vikunja-frontend/src/styles/components/tasks.scss
konrad 4b3f92ae34 Custom backgrounds for lists (#144)
Make backgrounds list responsive

Show initial collection of backgrounds

Remove test data

Fix "backgroundInformation is null" when navigating

Fix kanban height

Remove debug log

Move list title to top header

Add styling for title in top header

Set the current list (and background) when loading settings

Only load the background if it changed

Make task detail view look good again

Fix bottom spacing

Make list and table view look good again

Make pages with background at least 100vh

Fix kanban height

Make extra buttons look good again

Move list title and view-switcher in one row

Add styling for backgrounds

Set background globally

Add getting list background and putting it in vuex

Add setting list background

Move list background setting to seperate list

Add search timeout to not search on every keypress

Add getting thumbnails through api

Add basic search for unsplash backgrounds

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/144
2020-05-31 19:17:10 +00:00

152 lines
2.4 KiB
SCSS

.tasks {
margin-top: 1rem;
padding: 0;
text-align: left;
max-width: 80vw;
@media screen and (min-width: $tablet) {
&.short {
max-width: 53vw;
}
}
@media screen and (max-width: $tablet) {
max-width: 100%;
}
&.noborder{
margin: 1rem -0.5rem;
}
.task {
display: block;
padding: 0.5rem 1rem;
border-bottom: 1px solid darken(#fff, 10%);
transition: background-color $transition;
&:hover {
background-color: darken($light-background, 3);
}
span:not(.tag) {
width: calc(100% - 40px);
display: inline-block;
cursor: pointer;
.tasktext,
&.tasktext {
vertical-align: top;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
display: inline-block;
width: 94%;
@media screen and (max-width: $tablet) {
width: 89%;
}
.overdue{
color: $red;
}
.task-list {
width: auto;
color: lighten($grey, 25%);
font-size: .9em;
vertical-align: text-bottom;
}
}
.tag {
margin: 0 0.5em;
}
.avatar {
border-radius: 50%;
vertical-align: bottom;
margin-left: 5px;
height: 27px;
width: 27px;
}
a {
color: $text;
transition: color ease $transition-duration;
&:hover {
color: darken($text, 40%);
}
}
}
.tasktext.done{
text-decoration: line-through;
color: $grey;
}
span.parent-tasks {
color: lighten($dark, 50);
width: auto;
}
.remove {
color: $red;
}
input[type="checkbox"] {
vertical-align: middle;
}
.settings{
float: right;
width: 24px;
cursor: pointer;
}
}
.task:last-child {
border-bottom: none;
}
}
.taskedit{
min-height: calc(100% - 1rem);
margin-top: 1rem;
.priority-select{
.select, select{
width: 100%;
}
}
ul.assingees {
list-style: none;
margin: 0;
li{
padding: 0.5em 0.5em 0;
a{
float: right;
color: $red;
transition: all $transition;
&:hover{
color: darken($red, 15);
}
}
}
}
.tag{
margin-right: 0.5em;
margin-bottom: 0.5em;
&:last-child{
margin-right: 0;
}
}
}