|
| 1 | +.prpl-onboarding-tasks-title, |
| 2 | +.prpl-onboarding-tasks-description { |
| 3 | + display: block; |
| 4 | + margin-bottom: 1rem; |
| 5 | +} |
| 6 | + |
| 7 | +#prpl-onboarding-tasks { |
| 8 | + border: 1px solid var(--prpl-color-gray-2); |
| 9 | + border-radius: var(--prpl-border-radius); |
| 10 | + padding: var(--prpl-padding); |
| 11 | + min-width: 0; |
| 12 | + min-height: 0; |
| 13 | + margin-bottom: var(--prpl-gap); |
| 14 | + box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.07), -2px 0 6px rgba(0, 0, 0, 0.07); |
| 15 | + |
| 16 | + .prpl-onboarding-tasks-list { |
| 17 | + margin-top: 1rem; |
| 18 | + margin-left: 0; |
| 19 | + padding-left: 0; |
| 20 | + list-style: none; |
| 21 | + } |
| 22 | + |
| 23 | + .prpl-onboarding-task { |
| 24 | + margin: 0; |
| 25 | + padding: 0.5rem 0.5rem; |
| 26 | + display: flex; |
| 27 | + justify-content: space-between; |
| 28 | + align-items: center; |
| 29 | + position: relative; |
| 30 | + |
| 31 | + &:nth-child(2n+1) { |
| 32 | + background-color: #f9fafb; |
| 33 | + } |
| 34 | + |
| 35 | + h3 { |
| 36 | + font-size: 1rem; |
| 37 | + margin: 0; |
| 38 | + font-weight: 500; |
| 39 | + } |
| 40 | + } |
| 41 | + |
| 42 | + |
| 43 | + .prpl-onboarding-task-status { |
| 44 | + display: block; |
| 45 | + width: 1.5rem; |
| 46 | + height: 1.5rem; |
| 47 | + } |
| 48 | + |
| 49 | + .prpl-suggested-task-points { |
| 50 | + font-size: var(--prpl-font-size-xs); |
| 51 | + font-weight: 700; |
| 52 | + color: var(--prpl-color-headings); |
| 53 | + background-color: var(--prpl-color-400-orange); |
| 54 | + width: 1.5rem; |
| 55 | + height: 1.5rem; |
| 56 | + border-radius: 50%; |
| 57 | + display: flex; |
| 58 | + align-items: center; |
| 59 | + justify-content: center; |
| 60 | + } |
| 61 | + |
| 62 | + .prpl-suggested-task-loader { |
| 63 | + width: 25px; |
| 64 | + aspect-ratio: 1; |
| 65 | + |
| 66 | + /* display: grid; */ |
| 67 | + border-radius: 50%; |
| 68 | + background: |
| 69 | + linear-gradient(0deg, rgb(250 163 16/50%) 30%, #0000 0 70%, rgb(250 163 16/100%) 0) 50%/8% 100%, |
| 70 | + linear-gradient(90deg, rgb(250 163 16/25%) 30%, #0000 0 70%, rgb(250 163 16/75%) 0) 50%/100% 8%; |
| 71 | + background-repeat: no-repeat; |
| 72 | + animation: loaderAnimation 1s infinite steps(12); |
| 73 | + |
| 74 | + &::before, |
| 75 | + &::after { |
| 76 | + content: ""; |
| 77 | + grid-area: 1/1; |
| 78 | + border-radius: 50%; |
| 79 | + background: inherit; |
| 80 | + opacity: 0.915; |
| 81 | + transform: rotate(30deg); |
| 82 | + } |
| 83 | + |
| 84 | + &::after { |
| 85 | + opacity: 0.83; |
| 86 | + transform: rotate(60deg); |
| 87 | + } |
| 88 | + } |
| 89 | + |
| 90 | + .icon-exclamation-circle { |
| 91 | + |
| 92 | + path { |
| 93 | + fill: #6b7280; |
| 94 | + } |
| 95 | + } |
| 96 | + |
| 97 | + /* Hide the points loader and icons. */ |
| 98 | + .prpl-suggested-task-loader, |
| 99 | + .icon-check-circle, |
| 100 | + .icon-exclamation-circle { |
| 101 | + display: none; |
| 102 | + } |
| 103 | + |
| 104 | + /* Loading state. */ |
| 105 | + .prpl-onboarding-task-loading { |
| 106 | + |
| 107 | + .prpl-suggested-task-loader { |
| 108 | + display: grid; |
| 109 | + } |
| 110 | + |
| 111 | + .prpl-suggested-task-points { |
| 112 | + display: none; |
| 113 | + } |
| 114 | + } |
| 115 | + |
| 116 | + /* Completed state. */ |
| 117 | + .prpl-onboarding-task-completed { |
| 118 | + |
| 119 | + .icon-check-circle { |
| 120 | + display: inline; |
| 121 | + } |
| 122 | + |
| 123 | + .prpl-suggested-task-points { |
| 124 | + display: none; |
| 125 | + } |
| 126 | + } |
| 127 | + |
| 128 | + /* Not completed state. */ |
| 129 | + .prpl-onboarding-task-not-completed { |
| 130 | + |
| 131 | + .icon-exclamation-circle { |
| 132 | + display: inline; |
| 133 | + } |
| 134 | + |
| 135 | + .prpl-suggested-task-points { |
| 136 | + display: none; |
| 137 | + } |
| 138 | + } |
| 139 | +} |
| 140 | + |
| 141 | +.prpl-onboarding-tasks-footer { |
| 142 | + display: flex; |
| 143 | + justify-content: space-between; |
| 144 | + align-items: flex-start; |
| 145 | + gap: 2rem; |
| 146 | + |
| 147 | + .prpl-onboarding-tasks-montly-badge { |
| 148 | + display: flex; |
| 149 | + align-items: center; |
| 150 | + gap: 0.5rem; |
| 151 | + } |
| 152 | + |
| 153 | + .prpl-onboarding-tasks-montly-badge-image { |
| 154 | + display: inline-block; |
| 155 | + width: 100px; |
| 156 | + } |
| 157 | + |
| 158 | + .prpl-onboarding-tasks-total-points { |
| 159 | + font-size: var(--prpl-font-size-3xl); |
| 160 | + font-weight: 600; |
| 161 | + } |
| 162 | + |
| 163 | +} |
| 164 | + |
| 165 | +@keyframes loaderAnimation { |
| 166 | + |
| 167 | + 100% { |
| 168 | + transform: rotate(1turn); |
| 169 | + } |
| 170 | +} |
| 171 | + |
| 172 | +/* Welcome screen. */ |
| 173 | +.prpl-welcome { |
| 174 | + |
| 175 | + /* Hide the onboarding tasks by default. */ |
| 176 | + #prpl-onboarding-tasks { |
| 177 | + display: none; |
| 178 | + } |
| 179 | +} |
| 180 | + |
| 181 | +/* Onboarding tasks popover (when plugin is updated). */ |
| 182 | +#prpl-popover-upgrade-tasks.prpl-popover { |
| 183 | + max-width: 40vw; |
| 184 | + padding: calc(var(--prpl-padding) * 1.5); /* So popover's X button doesn't overlap the tasks. */ |
| 185 | + |
| 186 | + #prpl-onboarding-tasks { |
| 187 | + display: block !important; |
| 188 | + margin-bottom: 0; |
| 189 | + } |
| 190 | +} |
| 191 | + |
0 commit comments