Change poll layout (#31)

This commit is contained in:
Maria Rushkova 2021-08-31 21:54:08 +02:00 committed by GitHub
parent 399abd0087
commit a2bca6f2ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 2 deletions

View File

@ -94,8 +94,11 @@ const PollWrapper = styled.div`
box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.15); box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.15);
border-radius: 6px; border-radius: 6px;
background-color: #fbfbfe; background-color: #fbfbfe;
margin-bottom: 24px;
padding: 32px; padding: 32px;
@media (max-width: 768px) {
padding: 24px;
}
` `
const PollTitle = styled.div` const PollTitle = styled.div`

View File

@ -53,13 +53,26 @@ export function PollList({ wakuVoting, signer }: PollListProps) {
</PollListWrapper> </PollListWrapper>
) )
} }
const PollListWrapper = styled.div` const PollListWrapper = styled.div`
display: flex; display: flex;
flex-wrap: wrap;
width: 100%; width: 100%;
gap: 24px;
align-items: flex-start;
@media (max-width: 768px) {
gap: 16px;
justify-content: center;
}
` `
const ColumnWrapper = styled.div` const ColumnWrapper = styled.div`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-right: 25px; gap: 24px;
@media (max-width: 768px) {
gap: 16px;
}
` `

View File

@ -97,6 +97,10 @@ const Wrapper = styled.div`
padding: 150px 32px 50px; padding: 150px 32px 50px;
width: 100%; width: 100%;
@media (max-width: 1146px) {
max-width: 780px;
}
@media (max-width: 600px) { @media (max-width: 600px) {
padding: 132px 16px 32px; padding: 132px 16px 32px;
} }