.modalBody { composes: modalBody from '~Components/Modal/ModalBody.css'; display: flex; flex: 1 1 auto; flex-direction: column; } .filterInput { composes: input from '~Components/Form/TextInput.css'; flex: 0 0 auto; margin-bottom: 20px; } .scroller { flex: 1 1 auto; } .footer { composes: modalFooter from '~Components/Modal/ModalFooter.css'; display: flex; justify-content: space-between; overflow: hidden; } .details { margin-right: 20px; color: var(--dimColor); word-break: break-word; } .buttons { display: flex; } @media only screen and (max-width: $breakpointSmall) { .footer { display: block; } .details { margin-right: 0; margin-bottom: 10px; } .buttons { justify-content: space-between; flex-grow: 1; } }