Skip to content

Commit 7ef39be

Browse files
authored
Merge pull request #702 from ProgressPlanner/filip/v110/page-interactive-tasks
Convert Settings page to interactive tasks
2 parents e84ed1e + 19f6490 commit 7ef39be

27 files changed

Lines changed: 860 additions & 923 deletions

assets/css/page-widgets/suggested-tasks.css

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,3 +495,119 @@
495495
}
496496
}
497497
}
498+
499+
/*------------------------------------*\
500+
Page select setting.
501+
\*------------------------------------*/
502+
.prpl-pages-item {
503+
504+
&:has(input[type="radio"][value="yes"]:checked),
505+
&:has(input[type="radio"][value="no"]:checked) {
506+
507+
h3 {
508+
509+
.icon-exclamation-circle {
510+
display: block;
511+
}
512+
513+
.icon-check-circle {
514+
display: none;
515+
}
516+
}
517+
}
518+
519+
&:has(option[value=""]:not(:checked)):has(input[type="radio"][value="yes"]:checked),
520+
&:has(input[type="radio"][value="not-applicable"]:checked) {
521+
522+
h3 {
523+
524+
.icon-check-circle {
525+
display: block;
526+
}
527+
528+
.icon-exclamation-circle {
529+
display: none;
530+
}
531+
}
532+
}
533+
534+
.item-actions,
535+
.prpl-select-page {
536+
display: flex;
537+
align-items: center;
538+
gap: 1rem;
539+
}
540+
541+
.remind-button,
542+
.assign-button {
543+
544+
svg {
545+
width: 1rem;
546+
height: 1rem;
547+
}
548+
}
549+
550+
h3 {
551+
font-size: 1.15rem;
552+
margin: 0;
553+
554+
display: flex;
555+
align-items: center;
556+
gap: 0.5rem;
557+
558+
.icon {
559+
width: 1em;
560+
height: 1em;
561+
display: none;
562+
}
563+
}
564+
565+
p {
566+
margin-block-start: 0.5rem;
567+
margin-block-end: 1rem;
568+
}
569+
570+
.radios {
571+
margin-bottom: 1rem;
572+
}
573+
574+
.prpl-radio-wrapper {
575+
display: flex;
576+
justify-content: space-between;
577+
align-items: center;
578+
579+
[data-action="select"],
580+
[data-action="create"] {
581+
visibility: hidden;
582+
}
583+
584+
&:has(input[type="radio"]:checked) {
585+
586+
[data-action="select"],
587+
[data-action="create"] {
588+
visibility: visible;
589+
}
590+
}
591+
592+
&:has(input[type="radio"][value="not-applicable"]) {
593+
padding-top: 0.25rem;
594+
595+
/* Add bit height, because we dont have button or select */
596+
}
597+
}
598+
}
599+
600+
/*------------------------------------*\
601+
Post types selection.
602+
\*------------------------------------*/
603+
.prpl-post-types-selection {
604+
605+
label {
606+
display: block;
607+
margin-top: 0.75rem;
608+
609+
&:first-child {
610+
margin-top: 0;
611+
}
612+
}
613+
}

0 commit comments

Comments
 (0)