ConfirmationModal.styled.tsx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import styled, { css } from 'styled-components';
  2. export const ConfirmationModalWrapper = styled.div.attrs({ role: 'dialog' })(
  3. ({ theme }) => css`
  4. display: flex;
  5. align-items: center;
  6. flex-direction: column;
  7. justify-content: center;
  8. overflow: hidden;
  9. position: fixed;
  10. z-index: 40;
  11. bottom: 0;
  12. left: 0;
  13. right: 0;
  14. top: 0;
  15. & div:first-child {
  16. background-color: ${theme.modal.overlay};
  17. bottom: 0;
  18. left: 0;
  19. position: absolute;
  20. right: 0;
  21. top: 0;
  22. }
  23. & div:last-child {
  24. position: absolute;
  25. display: flex;
  26. flex-direction: column;
  27. width: 560px;
  28. border-radius: 8px;
  29. background-color: ${theme.modal.backgroundColor};
  30. filter: drop-shadow(0px 4px 16px ${theme.modal.shadow});
  31. & > * {
  32. padding: 16px;
  33. width: 100%;
  34. }
  35. & > header {
  36. height: 64px;
  37. font-size: 20px;
  38. text-align: start;
  39. }
  40. & > section {
  41. border-top: 1px solid ${theme.modal.border.top};
  42. border-bottom: 1px solid ${theme.modal.border.bottom};
  43. }
  44. & > footer {
  45. height: 64px;
  46. display: flex;
  47. justify-content: flex-end;
  48. gap: 10px;
  49. }
  50. }
  51. `
  52. );