Skip to content

Commit 33f5f87

Browse files
authored
Merge pull request #80 from OSRS-Taskman/timestamps_task_modal
timestamps and task modal
2 parents 0c9a832 + 789894a commit 33f5f87

8 files changed

Lines changed: 910 additions & 142 deletions

File tree

static/js/task.js

Lines changed: 322 additions & 58 deletions
Large diffs are not rendered by default.

static/styles.css

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,179 @@ hr {
531531
transition: 100ms;
532532
}
533533

534+
.task-action-modal {
535+
border: none;
536+
background: transparent;
537+
padding: 0;
538+
max-width: calc(100vw - 20px);
539+
}
540+
541+
.task-action-modal::backdrop {
542+
background: rgba(0, 0, 0, 0.7);
543+
}
544+
545+
.task-action-shell {
546+
padding: 10px;
547+
min-width: 420px;
548+
max-width: 620px;
549+
width: max-content;
550+
min-height: 520px;
551+
max-height: calc(100vh - 40px);
552+
overflow-y: auto;
553+
border: 1px solid #8f8d7d;
554+
}
555+
556+
.task-action-header {
557+
display: flex;
558+
align-items: center;
559+
justify-content: space-between;
560+
gap: 8px;
561+
}
562+
563+
.task-action-title {
564+
margin: 0;
565+
text-align: center;
566+
flex: 1;
567+
overflow: hidden;
568+
text-overflow: ellipsis;
569+
white-space: nowrap;
570+
}
571+
572+
.task-action-wiki {
573+
display: inline-flex;
574+
align-items: center;
575+
justify-content: center;
576+
text-decoration: none;
577+
padding: 0 12px;
578+
}
579+
580+
.task-action-divider {
581+
margin: 8px 0;
582+
}
583+
584+
.task-action-tip {
585+
text-align: center;
586+
margin: 0 0 8px 0;
587+
min-height: 18px;
588+
}
589+
590+
.task-action-progress-wrap {
591+
margin: 0 0 8px 0;
592+
}
593+
594+
.task-action-time {
595+
display: flex;
596+
align-items: center;
597+
gap: 10px;
598+
margin: 0 0 10px 0;
599+
}
600+
601+
.task-action-time-label {
602+
min-width: 44px;
603+
}
604+
605+
.task-action-time-input {
606+
flex: 1;
607+
min-height: 28px;
608+
padding: 4px 8px;
609+
color: var(--current-task-color);
610+
background: var(--main-bg-color);
611+
border: 1px solid #606060;
612+
outline: none;
613+
}
614+
615+
.task-action-time-input:focus {
616+
border-color: var(--current-task-color);
617+
}
618+
619+
.task-action-time-input:disabled {
620+
opacity: 0.65;
621+
}
622+
623+
.task-action-progress-bar {
624+
height: 22px;
625+
border: 1px solid #606060;
626+
position: relative;
627+
overflow: hidden;
628+
background: #3f3930;
629+
}
630+
631+
.task-action-progress-fill {
632+
position: absolute;
633+
left: 0;
634+
top: 0;
635+
bottom: 0;
636+
width: 0%;
637+
background: linear-gradient(90deg, #4f6f44 0%, #6d8d5f 100%);
638+
}
639+
640+
.task-action-progress-text {
641+
position: relative;
642+
z-index: 1;
643+
line-height: 22px;
644+
text-align: center;
645+
}
646+
647+
.task-action-items {
648+
min-height: 300px;
649+
overflow: visible;
650+
display: grid;
651+
grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
652+
gap: 8px;
653+
padding: 8px;
654+
margin-bottom: 10px;
655+
border: 1px solid #606060;
656+
background: #3f3930;
657+
}
658+
659+
.task-action-item {
660+
width: 38px;
661+
height: 38px;
662+
object-fit: contain;
663+
justify-self: center;
664+
padding: 2px;
665+
border: 1px solid #8f8d7d;
666+
background: #52524d;
667+
image-rendering: pixelated;
668+
cursor: pointer;
669+
}
670+
671+
.task-action-item-active {
672+
filter: none;
673+
opacity: 1;
674+
border-color: var(--complete-color);
675+
}
676+
677+
.task-action-item-muted {
678+
filter: grayscale(1);
679+
opacity: 0.45;
680+
border-color: #6b6b6b;
681+
}
682+
683+
.task-action-empty {
684+
margin: 0;
685+
grid-column: 1 / -1;
686+
text-align: center;
687+
}
688+
689+
.task-action-footer {
690+
display: flex;
691+
justify-content: center;
692+
}
693+
694+
@media (max-width: 640px) {
695+
.task-action-shell {
696+
min-width: 320px;
697+
max-width: calc(100vw - 20px);
698+
width: calc(100vw - 20px);
699+
min-height: 460px;
700+
}
701+
702+
.task-action-items {
703+
min-height: 240px;
704+
}
705+
}
706+
534707

535708
.triangle-top-left {
536709
width: 0;

0 commit comments

Comments
 (0)