|
| 1 | +$color-selector-size: 24px; |
| 2 | + |
1 | 3 | #stats-art-creator { |
2 | 4 | display: flex; |
3 | 5 | gap: 15px; |
|
17 | 19 | align-items: center; |
18 | 20 | justify-items: center; |
19 | 21 | justify-content: center; |
| 22 | + |
20 | 23 | .gallery-tile { |
21 | 24 | max-width: 100px; |
22 | 25 | border: none; |
23 | 26 | pointer-events: none; |
| 27 | + |
24 | 28 | &.selected { |
25 | 29 | border: 3px solid $orange; |
26 | 30 | } |
27 | 31 | } |
28 | 32 | } |
29 | 33 |
|
30 | | - .color-picker-panel { |
31 | | - display: flex; |
32 | | - align-items: center; |
33 | | - justify-content: space-between; |
| 34 | + .color-presets-panel { |
34 | 35 | margin-bottom: 4px; |
35 | 36 | margin-top: 10px; |
| 37 | + display: grid; |
| 38 | + grid-template-columns: repeat(5, 1fr); |
| 39 | + gap: 15px; |
| 40 | + max-height: 140px; |
| 41 | + overflow-y: scroll; |
| 42 | + padding: 5px; |
| 43 | + align-items: start; |
| 44 | + justify-items: center; |
| 45 | + |
| 46 | + /* prettier-ignore */ |
| 47 | + @supports not selector(::-webkit-scrollbar) { |
| 48 | + scrollbar-width: thin; |
| 49 | + scrollbar-color: rgba(0, 0, 0, 0.2) transparent; |
| 50 | + } |
| 51 | + |
| 52 | + &::-webkit-scrollbar { |
| 53 | + width: 4px; |
| 54 | + } |
| 55 | + |
| 56 | + &::-webkit-scrollbar-track { |
| 57 | + background: transparent; |
| 58 | + } |
| 59 | + |
| 60 | + &::-webkit-scrollbar-thumb { |
| 61 | + background: rgba(0, 0, 0, 0.2); |
| 62 | + border-radius: 2px; |
| 63 | + } |
36 | 64 | } |
37 | 65 |
|
38 | 66 | .settings-navbar { |
39 | 67 | margin-left: auto; |
40 | 68 | max-width: 320px; |
| 69 | + overflow-y: scroll; |
| 70 | + |
| 71 | + /* prettier-ignore */ |
| 72 | + @supports not selector(::-webkit-scrollbar) { |
| 73 | + scrollbar-width: thin; |
| 74 | + scrollbar-color: rgba(0, 0, 0, 0.2) transparent; |
| 75 | + } |
| 76 | + |
| 77 | + &::-webkit-scrollbar { |
| 78 | + width: 4px; |
| 79 | + } |
| 80 | + |
| 81 | + &::-webkit-scrollbar-track { |
| 82 | + background: transparent; |
| 83 | + } |
| 84 | + |
| 85 | + &::-webkit-scrollbar-thumb { |
| 86 | + background: rgba(0, 0, 0, 0.2); |
| 87 | + border-radius: 2px; |
| 88 | + } |
41 | 89 | } |
42 | 90 |
|
43 | 91 | /*Color Picker*/ |
44 | 92 | .color-picker { |
45 | | - width: 24px; |
46 | | - height: 24px; |
| 93 | + width: $color-selector-size; |
| 94 | + height: $color-selector-size; |
47 | 95 | border-radius: 50%; |
48 | 96 | position: relative; |
49 | 97 | overflow: hidden; |
50 | 98 | border: none; |
| 99 | + cursor: pointer; |
51 | 100 |
|
52 | 101 | .color-half { |
53 | 102 | width: 50%; |
54 | 103 | height: 100%; |
55 | 104 | position: absolute; |
56 | 105 | top: 0; |
| 106 | + |
57 | 107 | &:first-child { |
58 | 108 | left: 0; |
59 | 109 | } |
| 110 | + |
60 | 111 | &:last-child { |
61 | 112 | left: 50%; |
62 | 113 | } |
63 | 114 | } |
64 | 115 | } |
65 | 116 |
|
| 117 | + .color-preset-wrapper { |
| 118 | + position: relative; |
| 119 | + display: flex; |
| 120 | + justify-content: center; |
| 121 | + align-items: center; |
| 122 | + border-radius: 50%; |
| 123 | + height: $color-selector-size; |
| 124 | + width: $color-selector-size; |
| 125 | + |
| 126 | + &.preset-selected { |
| 127 | + box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px $listenbrainz-blue; |
| 128 | + z-index: 1; |
| 129 | + } |
| 130 | + |
| 131 | + .delete-preset-btn { |
| 132 | + position: absolute; |
| 133 | + top: -5px; |
| 134 | + right: -5px; |
| 135 | + border-radius: 50%; |
| 136 | + border: none; |
| 137 | + color: $listenbrainz-blue; |
| 138 | + font-size: 14px; |
| 139 | + cursor: pointer; |
| 140 | + opacity: 0; |
| 141 | + transition: opacity 0.2s ease-in-out, transform 0.1s; |
| 142 | + padding: 0; |
| 143 | + width: 14px; |
| 144 | + height: 14px; |
| 145 | + display: flex; |
| 146 | + align-items: center; |
| 147 | + justify-content: center; |
| 148 | + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); |
| 149 | + z-index: 2; |
| 150 | + } |
| 151 | + |
| 152 | + &:hover .delete-preset-btn { |
| 153 | + opacity: 1; |
| 154 | + } |
| 155 | + } |
| 156 | + |
66 | 157 | .preview { |
67 | 158 | border-radius: 5px; |
68 | 159 | margin-bottom: 10px; |
|
85 | 176 | position: relative; |
86 | 177 | display: inline-block; |
87 | 178 | padding-left: 0; |
| 179 | + |
88 | 180 | /* Input */ |
89 | 181 | > input { |
90 | 182 | appearance: none; |
|
105 | 197 | transform: scale(1); |
106 | 198 | pointer-events: none; |
107 | 199 | transition: opacity 0.3s 0.1s, transform 0.2s 0.1s; |
| 200 | + |
108 | 201 | /* Checked */ |
109 | 202 | &:checked { |
110 | 203 | right: -10px; |
111 | 204 | background-color: $gray-600; |
112 | 205 | } |
| 206 | + |
113 | 207 | &:focus { |
114 | 208 | opacity: 0.12; |
115 | 209 | } |
| 210 | + |
116 | 211 | /* Active */ |
117 | 212 | &:active { |
118 | 213 | opacity: 1; |
|
128 | 223 | background-color: $gray-600; |
129 | 224 | transform: translateX(10px); |
130 | 225 | } |
| 226 | + |
131 | 227 | &:active + span::before { |
132 | 228 | background-color: $gray-600; |
133 | 229 | } |
|
153 | 249 | background-color: $black; |
154 | 250 | } |
155 | 251 | } |
| 252 | + |
156 | 253 | /* Track */ |
157 | 254 | > span::before { |
158 | 255 | content: ""; |
|
165 | 262 | vertical-align: top; |
166 | 263 | transition: background-color 0.2s, opacity 0.2s; |
167 | 264 | } |
| 265 | + |
168 | 266 | /* Thumb */ |
169 | 267 | > span::after { |
170 | 268 | content: ""; |
|
183 | 281 | /* Hover, Focus */ |
184 | 282 | &:hover > input { |
185 | 283 | opacity: 0.04; |
| 284 | + |
186 | 285 | &:focus { |
187 | 286 | opacity: 0.16; |
188 | 287 | } |
|
196 | 295 | gap: 1em; |
197 | 296 | margin-top: 1em; |
198 | 297 | margin-bottom: 1em; |
| 298 | + |
199 | 299 | .profile, |
200 | 300 | .share-buttons { |
201 | 301 | flex: 1; |
202 | 302 | flex-basis: 300px; |
203 | 303 | justify-content: left; |
| 304 | + |
204 | 305 | > .btn-link > span { |
205 | 306 | margin-right: 0.2em; |
206 | 307 | font-size: 14px; |
207 | 308 | } |
208 | 309 | } |
| 310 | + |
209 | 311 | .profile { |
210 | 312 | text-align: left; |
211 | 313 | } |
| 314 | + |
212 | 315 | .link-container { |
213 | 316 | min-width: 150px; |
214 | 317 | height: 3em; |
215 | 318 | margin-left: 0.6em; |
216 | 319 | margin-right: auto; |
| 320 | + |
217 | 321 | > input { |
218 | 322 | text-overflow: ellipsis; |
219 | 323 | border-radius: 5px 0 0 5px; |
220 | 324 | height: inherit; |
221 | 325 | } |
| 326 | + |
222 | 327 | > span { |
223 | 328 | height: inherit; |
| 329 | + |
224 | 330 | > button { |
225 | 331 | height: inherit; |
226 | 332 | border-radius: 0 5px 5px 0; |
227 | 333 | line-height: 1em; |
| 334 | + |
228 | 335 | > svg { |
229 | 336 | font-size: 1.5em; |
230 | 337 | } |
231 | 338 | } |
232 | 339 | } |
233 | 340 | } |
234 | 341 | } |
| 342 | + |
235 | 343 | input[type="color"] { |
236 | 344 | padding: 0; |
237 | 345 | max-width: 5em; |
238 | 346 | } |
239 | 347 |
|
240 | 348 | .input-group { |
241 | 349 | flex-wrap: nowrap; |
| 350 | + |
242 | 351 | .input-group-text { |
243 | 352 | font-size: 1.4rem; |
244 | 353 | } |
|
0 commit comments