Team page grid responsive style

This commit is contained in:
Ezekiel Aquino
2018-12-12 15:06:37 +01:00
parent f06c17cccc
commit d8e03b87d6
2 changed files with 12 additions and 0 deletions

View File

@@ -98,6 +98,10 @@ export const WrapGrid = styled(Wrap)<WrapGridProps>`
display: flex;
flex-wrap: ${props => props.isWrapped && `wrap`};
justify-content: ${props => props.isCentered ? `center` : 'space-between'};
@media (max-width: 768px) {
width: 100%;
}
`;
Section.defaultProps = {

View File

@@ -240,4 +240,12 @@ const StyledMember = styled.div`
object-fit: contain;
margin-bottom: 10px;
}
@media (max-width: 900px) {
width: calc(33.3333% - 30px);
}
@media (max-width: 600px) {
width: calc(50% - 15px);
}
`;