Skip to content

Commit

Permalink
fix(website): fix responsive problems with component's tab (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
Larissa Moura authored and plouc committed Oct 19, 2019
1 parent dbd44e2 commit ccbb4de
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion website/src/components/components/ComponentTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,17 @@ const Wrapper = styled.div`
const Nav = styled.nav`
height: 46px;
background: ${({ theme }) => theme.colors.background};
display: flex;
font-size: 15px;
color: #aaa;
position: relative;
display: flex;
${media.mobile`
& {
display: grid;
grid-template-columns: repeat(4, 1fr);
}
`}
`

const NavItem = styled.span`
Expand Down Expand Up @@ -205,6 +212,15 @@ const DiceRollButton = styled.span`
background: ${({ theme }) => theme.colors.accent};
color: ${({ theme }) => theme.colors.background};
}
${media.mobile`
& {
grid-column-start: 4;
justify-self: end;
right: 8px;
padding: 8px 8px;
}
`}
`

const NodeCount = styled.span`
Expand Down

0 comments on commit ccbb4de

Please sign in to comment.