Skip to content

Commit

Permalink
VotingCardGroup: add responsive behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
AquiGorka committed Jan 17, 2019
1 parent 2262022 commit 65ad44e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions apps/voting/app/src/components/VotingCard/VotingCardGroup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import styled from 'styled-components'
import { Badge, Text, unselectable } from '@aragon/ui'
import { Badge, Text, unselectable, breakpoint } from '@aragon/ui'

const VotingCardGroup = ({ title, count, children }) => (
<Main>
Expand All @@ -24,9 +24,16 @@ const Main = styled.section`

const Grid = styled.div`
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
grid-template-columns: 1fr;
grid-auto-rows: 270px;
grid-gap: 30px;
${breakpoint(
'medium',
`
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
`,
)};
`

const Title = styled.h1`
Expand Down

0 comments on commit 65ad44e

Please sign in to comment.