scinote-web/app/assets/stylesheets/dashboard/current_tasks.scss

329 lines
5.8 KiB
SCSS
Raw Normal View History

2020-02-17 17:47:10 +08:00
// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
2020-02-13 20:50:29 +08:00
.dashboard-container .current-tasks-widget {
grid-column: 1 / span 9;
grid-row: 1 / span 6;
2020-02-14 19:07:40 +08:00
.title {
flex-shrink: 0;
}
.actions-container {
display: flex;
flex-grow: 1;
padding-left: 10px;
}
2020-03-03 16:50:44 +08:00
.search-container {
flex-basis: 36px;
.fa-search {
animation-timing-function: $timing-function-sharp;
color: $color-alto;
transition: .3s;
width: 26px;
}
.task-search-field {
background: transparent;
border: $border-default;
padding-left: 36px;
position: relative;
width: 200px;
z-index: 2;
&:placeholder-shown {
border: $border-transparent;
cursor: pointer;
width: 36px;
+ .fa-search {
color: $color-volcano;
}
}
&:hover {
border: $border-default;
}
&:focus {
border: $border-focus;
cursor: auto;
width: 200px;
+ .fa-search {
color: $color-alto;
}
}
}
}
.filter-container {
height: 36px;
margin-right: 4px;
width: 36px;
.curent-tasks-filters {
padding: 0;
width: 230px;
.header {
align-items: center;
border-bottom: $border-default;
display: flex;
height: 44px;
margin-bottom: 16px;
padding: 0 5px 0 16px;
.title {
@include font-h2;
flex-grow: 1;
user-select: none;
}
}
.select-block {
display: inline-block;
padding: 0 16px 16px;
position: relative;
width: 100%;
label {
@include font-small;
display: inline-block;
font-weight: bold;
margin-bottom: 5px;
user-select: none;
}
}
.footer {
align-items: center;
border-top: $border-default;
display: flex;
height: 68px;
justify-content: center;
position: relative;
width: 100%;
}
}
}
.no-tasks {
color: $color-alto;
margin-left: 8px;
margin-top: 16px;
.text-1 {
font-size: 24px;
font-weight: bold;
}
.text-2 {
color: $color-silver-chalice;
font-size: 16px;
}
.fas {
font-size: 32px;
margin-left: 100px;
margin-top: 50px;
}
}
.current-tasks-list {
display: flex;
flex-direction: column;
height: 100%;
overflow-y: auto;
padding: 0 16px;
position: relative;
.current-task-item {
border-bottom: $border-tertiary;
color: $color-volcano;
padding: 6px;
text-decoration: none;
.current-task-breadcrumbs {
@include font-small;
color: $color-silver-chalice;
line-height: 14px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.slash {
display: inline-block;
text-align: center;
width: 16px;
}
}
2020-03-03 16:50:44 +08:00
.item-row {
display: flex;
.task-name {
flex-grow: 1;
font-size: $font-size-base;
font-weight: bold;
overflow: hidden;
padding-right: 10px;
text-overflow: ellipsis;
white-space: nowrap;
}
.task-due-date {
flex-basis: 280px;
flex-shrink: 0;
font-size: 14px;
.fas {
padding: 4px;
}
&.overdue {
color: $brand-danger;
}
&.day-prior {
color: $brand-warning;
}
&.completed {
color: $brand-success;
}
}
}
&:hover {
background: $color-concrete;
}
}
}
2020-02-18 21:28:06 +08:00
.task-progress-container {
max-width: 250px;
2020-02-18 21:28:06 +08:00
min-width: 150px;
position: relative;
width: 100%;
&::after {
@include font-small;
@include font-awesome;
content: "";
line-height: 18px;
position: absolute;
right: 8px;
top: 0;
}
.task-progress {
background: $brand-focus-light;
border-radius: $border-radius-tag;
display: flex;
height: 18px;
outline: $border-tertiary;
position: relative;
&::after {
background: $color-white;
content: "";
height: 18px;
width: 100%;
}
}
.task-progress-label {
@include font-small;
font-weight: bold;
height: 18px;
left: 0;
line-height: 18px;
padding-left: 8px;
position: absolute;
top: 0;
width: calc(100% - 30px);
}
&.overdue {
.task-progress {
background: $brand-danger-light;
}
.task-progress-label {
color: $brand-danger;
}
&::after {
color: $brand-danger;
content: $font-fas-exclamation-triangle;
}
}
&.completed {
.task-progress {
outline: $border-success;
}
.task-progress,
.task-progress::after {
background: $brand-success-light;
}
.task-progress-label {
color: $brand-success;
}
&::after {
color: $brand-success;
content: $font-fas-check;
}
}
}
2020-02-13 20:50:29 +08:00
}
@media (max-width: 1500px) {
.dashboard-container .current-tasks-widget {
.task-progress-container {
max-width: 200px;
}
}
}
2020-02-19 22:57:06 +08:00
@media (max-width: 1250px) {
.dashboard-container .current-tasks-widget {
grid-column: 1 / span 8;
.task-progress-container {
max-width: 150px;
}
.current-tasks-list {
.current-task-item {
.item-row {
.task-due-date {
flex-basis: 230px;
}
}
}
}
2020-02-19 22:57:06 +08:00
}
}
2020-02-13 21:44:59 +08:00
@media (max-width: 1000px) {
2020-02-13 20:50:29 +08:00
.dashboard-container .current-tasks-widget {
grid-column: 1 / span 12;
grid-row: 1 / span 4;
2020-03-03 20:52:36 +08:00
.no-tasks .fas {
margin-left: 500px;
}
2020-02-13 20:50:29 +08:00
}
}