4b3f92ae34
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
237 lines
No EOL
4.3 KiB
SCSS
237 lines
No EOL
4.3 KiB
SCSS
$gantt-border: 1px solid $grey-lighter;
|
|
$gantt-vertical-border-color: lighten($grey, 45);
|
|
|
|
.gantt-chart-container {
|
|
padding-bottom: 1em;
|
|
}
|
|
|
|
.gantt-chart {
|
|
padding: 5px 0;
|
|
overflow-x: auto;
|
|
|
|
.dates {
|
|
display: flex;
|
|
text-align: center;
|
|
|
|
.months {
|
|
display: flex;
|
|
|
|
.month {
|
|
padding: 0.5em 0 0;
|
|
border-right: $gantt-border;
|
|
font-family: $vikunja-font;
|
|
font-weight: bold;
|
|
|
|
&:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
.days {
|
|
display: flex;
|
|
|
|
.day {
|
|
padding: 0.5em 0;
|
|
font-weight: normal;
|
|
|
|
&.today {
|
|
background: $primary;
|
|
color: $white;
|
|
border-radius: 5px 5px 0 0;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.theday {
|
|
padding: 0 .5em;
|
|
width: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.weekday {
|
|
font-size: 0.8em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.tasks {
|
|
max-width: unset !important;
|
|
margin: 0;
|
|
border-top: $gantt-border;
|
|
|
|
.row {
|
|
height: 45px;
|
|
|
|
.task {
|
|
display: inline-block;
|
|
border: 2px solid $primary;
|
|
background: lighten($primary, 40);
|
|
font-size: 0.85em;
|
|
margin: 0.5em;
|
|
border-radius: 6px;
|
|
padding: 0.25em 0.5em;
|
|
cursor: grab;
|
|
position: relative;
|
|
|
|
-webkit-touch-callout: none; // iOS Safari
|
|
-webkit-user-select: none; // Safari
|
|
-khtml-user-select: none; // Konqueror HTML
|
|
-moz-user-select: none; // Firefox
|
|
-ms-user-select: none; // Internet Explorer/Edge
|
|
user-select: none; // Non-prefixed version, currently supported by Chrome and Opera
|
|
|
|
&.is-current-edit {
|
|
border-color: $orange !important;
|
|
}
|
|
|
|
&.has-light-text {
|
|
color: $light;
|
|
|
|
&.done span:after {
|
|
border-top: 1px solid $light;
|
|
}
|
|
|
|
.edit-toggle {
|
|
color: $light;
|
|
}
|
|
}
|
|
|
|
&.has-dark-text {
|
|
color: $dark;
|
|
|
|
&.done span:after {
|
|
border-top: 1px solid $dark;
|
|
}
|
|
|
|
.edit-toggle {
|
|
color: $dark;
|
|
}
|
|
}
|
|
|
|
&.done span {
|
|
position: relative;
|
|
|
|
&:after {
|
|
content: '';
|
|
position: absolute;
|
|
right: 0;
|
|
left: 0;
|
|
top: 57%;
|
|
}
|
|
}
|
|
|
|
span:not(.high-priority) {
|
|
max-width: calc(100% - 20px);
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
|
|
&.has-high-priority {
|
|
max-width: calc(100% - 90px);
|
|
}
|
|
|
|
&.has-not-so-high-priority {
|
|
max-width: calc(100% - 70px);
|
|
}
|
|
|
|
&.has-super-high-priority {
|
|
max-width: calc(100% - 111px);
|
|
}
|
|
|
|
&.icon {
|
|
width: 10px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.high-priority{
|
|
margin: 0 0 0 .5em;
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
.edit-toggle {
|
|
float: right;
|
|
cursor: pointer;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
&.nodate {
|
|
border: 2px dashed $grey-light;
|
|
background: lighten($grey-light, 40);
|
|
}
|
|
|
|
&:active {
|
|
cursor: grabbing;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.taskedit {
|
|
position: fixed;
|
|
min-height: 0;
|
|
top: 10vh;
|
|
right: 10vw;
|
|
z-index: 5;
|
|
|
|
.card-content {
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
|
|
.add-new-task {
|
|
padding: 1em .7em .4em .7em;
|
|
display: flex;
|
|
max-width: 450px;
|
|
|
|
.input {
|
|
margin-right: .7em;
|
|
font-size: .8em;
|
|
}
|
|
|
|
.button {
|
|
font-size: .68em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.gantt-options {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
.range-picker {
|
|
display: flex;
|
|
margin-bottom: 1em;
|
|
|
|
.field {
|
|
margin: 0 0 0 .5em;
|
|
max-width: 100px;
|
|
|
|
&, .input {
|
|
font-size: .8em;
|
|
}
|
|
|
|
.select {
|
|
height: auto;
|
|
}
|
|
|
|
select {
|
|
height: auto;
|
|
font-size: 0.75em;
|
|
}
|
|
|
|
.label {
|
|
font-size: .9em;
|
|
padding-left: .4em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.vdr.active::before {
|
|
display: none;
|
|
} |