fix(#2451): fixed close button layout in choose sport popup

keep-around/28cb0681f2f8f0687bac30f308a1e10b452386e9
Rakov Roman 4 years ago
parent 60fc538b5e
commit 28cb0681f2
  1. 33
      src/features/SportsFilter/components/SelectSportPopup/styled.tsx

@ -6,7 +6,7 @@ import { client } from 'config/clients'
import { isMobileDevice } from 'config/userAgent' import { isMobileDevice } from 'config/userAgent'
import { Logo } from 'features/Logo' import { Logo } from 'features/Logo'
import { ModalWindow } from 'features/Modal/styled' import { ModalWindow, ModalCloseButton } from 'features/Modal/styled'
import { Modal as BaseModal } from 'features/Modal' import { Modal as BaseModal } from 'features/Modal'
import { customScrollbar } from 'features/Common' import { customScrollbar } from 'features/Common'
@ -148,8 +148,6 @@ export const ScSportsWrapper = styled.div`
` `
export const ScModal = styled(BaseModal)` export const ScModal = styled(BaseModal)`
background-color: rgba(0, 0, 0, 0.7);
${ModalWindow} { ${ModalWindow} {
position: absolute; position: absolute;
top: 200px; top: 200px;
@ -161,18 +159,38 @@ export const ScModal = styled(BaseModal)`
padding: 0; padding: 0;
overflow-y: auto; overflow-y: auto;
${ModalCloseButton} {
font-size: 0;
padding: 17px 19px;
:hover {
background-color: rgba(255, 255, 255, 0.22);
}
}
${customScrollbar} ${customScrollbar}
${isMobileDevice ${isMobileDevice
? css` ? css`
position: static; position: relative;
left: auto;
top: auto;
min-width: 280px; min-width: 280px;
max-height: 250px; max-height: 250px;
height: auto; height: auto;
top: -140px;
${ModalCloseButton} {
padding: 16px 14px 15px 15px;
}
` `
: ''}; : ''};
} }
${isMobileDevice
? css`
background-color: rgba(0, 0, 0, 0.7);
`
: ''};
` `
export const ScHeaderTitle = styled.span` export const ScHeaderTitle = styled.span`
font-weight: 700; font-weight: 700;
@ -253,4 +271,9 @@ export const ScSport = styled.div<SportProps>`
export const ScSportName = styled.span` export const ScSportName = styled.span`
padding-left: 30px; padding-left: 30px;
${isMobileDevice
? css`
padding: 0;
` : ''};
` `

Loading…
Cancel
Save