|
129 | 129 | color: var(--text-gray); |
130 | 130 | } |
131 | 131 |
|
| 132 | +.modal-btn { |
| 133 | + margin: 0; |
| 134 | + border: none; |
| 135 | + padding: 0; |
| 136 | + background: transparent; |
| 137 | + outline: none; |
| 138 | +} |
| 139 | + |
| 140 | +.modal__add-body-add-btn { |
| 141 | + display: flex; |
| 142 | + justify-content: flex-end; |
| 143 | + align-items: center; |
| 144 | + position: relative; |
| 145 | + border: none; |
| 146 | + padding: 10px 20px; |
| 147 | + min-width: 191px; |
| 148 | + font-family: var(--open-sans), sans-serif; |
| 149 | + font-weight: var(--semi-bold); |
| 150 | + font-size: var(--default-fs); |
| 151 | + transition-property: color, background-color; |
| 152 | + transition-duration: var(--short); |
| 153 | + transition-timing-function: ease; |
| 154 | +} |
| 155 | + |
| 156 | +.modal__add-body-add-btn-icon { |
| 157 | + position: absolute; |
| 158 | + top: 10px; |
| 159 | + left: 22px; |
| 160 | + font-size: 15px; |
| 161 | + color: var(--main-purple); |
| 162 | + opacity: 0; |
| 163 | + transition: opacity var(--short) ease; |
| 164 | +} |
| 165 | + |
| 166 | +.modal__add-body-add-btn-icon.plus-circle-stroke { |
| 167 | + opacity: 1; |
| 168 | +} |
| 169 | + |
| 170 | +.modal__add-body-add-btn:focus-visible:not(:hover) { |
| 171 | + color: var(--cold-purple); |
| 172 | +} |
| 173 | + |
| 174 | +.modal__add-body-add-btn:focus-visible:active { |
| 175 | + color: var(--light-purple); |
| 176 | +} |
| 177 | + |
| 178 | +.modal__add-body-add-btn:active:not(:disabled) { |
| 179 | + color: var(--light-purple); |
| 180 | +} |
| 181 | + |
| 182 | +.modal__add-body-add-btn:disabled .modal__add-body-add-btn-icon { |
| 183 | + color: var(--gray); |
| 184 | +} |
| 185 | + |
| 186 | +.add-modal-btn-margin { |
| 187 | + margin-bottom: 15px; |
| 188 | +} |
| 189 | + |
132 | 190 | .modal__add-body-add-contacts-wrap { |
133 | 191 | display: flex; |
134 | 192 | flex-direction: column; |
|
278 | 336 | width: 27px; |
279 | 337 | background: var(--select-gray); |
280 | 338 | outline: none; |
281 | | - transition-property: border, box-shadow; |
282 | | - transition-duration: 0.2s; |
| 339 | + transition-property: border, color, box-shadow; |
| 340 | + transition-duration: var(--short); |
283 | 341 | transition-timing-function: ease; |
284 | 342 | } |
285 | 343 |
|
286 | | -.modal__add-body-add-x-btn:before, |
287 | | -.modal__add-body-add-x-btn:after { |
288 | | - content: ''; |
| 344 | +.modal__add-body-add-x-btn-icon { |
289 | 345 | position: absolute; |
290 | 346 | top: 50%; |
291 | 347 | left: 50%; |
292 | 348 | transform: translate(-50%, -50%); |
293 | | - width: 20px; |
294 | | - height: 20px; |
295 | | - background-repeat: no-repeat; |
296 | | - background-position: center; |
297 | | - background-size: contain; |
298 | | - transition: opacity 0.2s ease; |
299 | | - /* отработка клика и на arrow-icon */ |
300 | | - pointer-events: none; |
301 | | -} |
302 | | - |
303 | | -.modal__add-body-add-x-btn:before { |
304 | | - background-image: url('../images/delete-contact-btn-gray.svg'); |
305 | | - opacity: 1; |
306 | | -} |
307 | | - |
308 | | -.modal__add-body-add-x-btn:after { |
309 | | - background-image: url('../images/delete-contact-btn-red.svg'); |
310 | | - opacity: 0; |
| 349 | + font-size: 15px; |
| 350 | + color: var(--gray); |
| 351 | + transition: color var(--short) ease; |
311 | 352 | } |
312 | 353 |
|
313 | | -.modal__add-body-add-x-btn:focus-visible { |
| 354 | +.modal__add-body-add-x-btn:focus-visible:not(:active) { |
314 | 355 | border-color: var(--bootstrap-red); |
315 | 356 | box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .25); |
316 | 357 | z-index: 1; |
317 | 358 | } |
318 | 359 |
|
319 | | -.modal__add-body-add-x-btn:focus-visible::before { |
320 | | - opacity: 0; |
321 | | -} |
322 | | - |
323 | | -.modal__add-body-add-x-btn:focus-visible:after { |
324 | | - opacity: 1; |
| 360 | +.modal__add-body-add-x-btn:focus-visible:not(:active) .modal__add-body-add-x-btn-icon { |
| 361 | + color: var(--bootstrap-red); |
325 | 362 | } |
326 | 363 |
|
327 | | -.modal__add-body-add-x-btn:active { |
| 364 | +.modal__add-body-add-x-btn:active:not(:focus-visible) { |
328 | 365 | border-color: var(--gray); |
329 | 366 | box-shadow: 0 0 0 .25rem rgba(200, 197, 209, 0.25); |
330 | 367 | z-index: 1; |
331 | 368 | } |
332 | 369 |
|
333 | | -.modal__add-body-add-x-btn:active:before { |
334 | | - opacity: 1; |
335 | | -} |
336 | | - |
337 | | -.modal__add-body-add-x-btn:active:after { |
338 | | - opacity: 0; |
339 | | -} |
340 | | - |
341 | | -.modal-btn { |
342 | | - margin: 0; |
343 | | - border: none; |
344 | | - padding: 0; |
345 | | - background: transparent; |
346 | | - outline: none; |
347 | | -} |
348 | | - |
349 | | -.modal__add-body-add-btn { |
350 | | - display: flex; |
351 | | - justify-content: flex-end; |
352 | | - align-items: center; |
353 | | - position: relative; |
354 | | - border: none; |
355 | | - padding: 10px 20px; |
356 | | - min-width: 191px; |
357 | | - font-family: var(--open-sans), sans-serif; |
358 | | - font-weight: var(--semi-bold); |
359 | | - font-size: var(--default-fs); |
360 | | - transition-property: color, background-color; |
361 | | - transition-duration: 0.2s; |
362 | | - transition-timing-function: ease; |
363 | | -} |
364 | | - |
365 | | -.modal__add-body-add-btn::before, |
366 | | -.modal__add-body-add-btn::after { |
367 | | - content: ""; |
368 | | - position: absolute; |
369 | | - left: 20px; |
370 | | - width: 19px; |
371 | | - height: 19px; |
372 | | - background-repeat: no-repeat; |
373 | | - background-position: center; |
374 | | - background-size: contain; |
375 | | - transition: opacity 0.2s ease; |
376 | | -} |
377 | | - |
378 | | -.modal__add-body-add-btn::before { |
379 | | - background-image: url('../images/add-plus-stroke.svg'); |
380 | | - opacity: 1; |
381 | | -} |
382 | | - |
383 | | -.modal__add-body-add-btn::after { |
384 | | - background-image: url('../images/add-plus-fill.svg'); |
385 | | - opacity: 0; |
386 | | -} |
387 | | - |
388 | | -.modal__add-body-add-btn:focus-visible::before { |
389 | | - opacity: 0; |
390 | | -} |
391 | | - |
392 | | -.modal__add-body-add-btn:focus-visible::after { |
393 | | - opacity: 1; |
394 | | -} |
395 | | - |
396 | | -.modal__add-body-add-btn:active::before { |
397 | | - opacity: 0; |
398 | | -} |
399 | | - |
400 | | -.modal__add-body-add-btn:active::after { |
401 | | - opacity: 1; |
402 | | -} |
403 | | - |
404 | | -.modal__add-body-add-btn:disabled::before { |
405 | | - opacity: 0; |
406 | | -} |
407 | | - |
408 | | -.modal__add-body-add-btn:disabled::after { |
409 | | - background-image: url('../images/add-plus-stroke-gray.svg'); |
410 | | - opacity: 1; |
411 | | -} |
412 | | - |
413 | | -.modal__add-body-add-btn:focus-visible:not(:hover) { |
414 | | - color: var(--cold-purple); |
415 | | -} |
416 | | - |
417 | | -.modal__add-body-add-btn:focus-visible:active { |
418 | | - color: var(--light-purple); |
419 | | -} |
420 | | - |
421 | | -.modal__add-body-add-btn:active:not(:disabled) { |
422 | | - color: var(--light-purple); |
423 | | -} |
424 | | - |
425 | | -.add-modal-btn-margin { |
426 | | - margin-bottom: 15px; |
427 | | -} |
428 | | - |
429 | 370 | .modal__add-body-save-btn { |
430 | 371 | align-self: center; |
431 | 372 | margin-bottom: 5px; |
|
434 | 375 | color: var(--white); |
435 | 376 | background-color: var(--main-purple); |
436 | 377 | transition-property: color, background-color; |
437 | | - transition-duration: 0.2s; |
| 378 | + transition-duration: var(--short); |
438 | 379 | transition-timing-function: ease; |
439 | 380 | } |
440 | 381 |
|
|
475 | 416 | /* media queries, any-hover */ |
476 | 417 |
|
477 | 418 | @media (any-hover: hover) { |
478 | | - .modal__add-body-add-btn:hover:not(:active):not(:disabled)::before { |
| 419 | + .modal__add-body-add-btn:hover:not(:active):not(:disabled) .modal__add-body-add-btn-icon.plus-circle-stroke { |
479 | 420 | opacity: 0; |
480 | 421 | } |
481 | 422 |
|
482 | | - .modal__add-body-add-btn:hover:not(:active):not(:disabled)::after { |
483 | | - background-image: url('../images/add-plus-fill.svg'); |
| 423 | + .modal__add-body-add-btn:hover:not(:active):not(:disabled) .modal__add-body-add-btn-icon.plus-circle-fill { |
484 | 424 | opacity: 1; |
485 | 425 | } |
486 | 426 |
|
|
506 | 446 | z-index: 10; |
507 | 447 | } |
508 | 448 |
|
509 | | - .modal__add-body-add-x-btn:hover:not(:active):before { |
510 | | - opacity: 0; |
511 | | - } |
512 | | - |
513 | | - .modal__add-body-add-x-btn:hover:not(:active):after { |
514 | | - opacity: 1; |
| 449 | + .modal__add-body-add-x-btn:hover:not(:active) .modal__add-body-add-x-btn-icon { |
| 450 | + color: var(--bootstrap-red); |
515 | 451 | } |
516 | 452 |
|
517 | 453 | .modal__add-body-save-btn:hover:not(:active) { |
|
0 commit comments