Skip to content

Commit

Permalink
feat(Layout): mobile cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed Feb 3, 2020
1 parent b622783 commit 51fa8ba
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ const BaseTabMenuItem = styled.span`
color: ${props.theme.blue600};
`}
@media (max-width: 480px) {
@media (max-width: 767px) {
font-size: 13px;
padding: 10px 16px;
}
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ const BaseBrand = styled.div`
}
${media.tablet`
padding-left: 15px;
img {
height: 14px;
}
> span:first-child {
display: block;
display: flex;
}
`}
`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const BaseNavItem = styled.li`
}
${media.tablet`
margin-right: 2px !important;
min-width: 24px;
min-width: 26px;
> a > span,
> div > a > span {
font-size: 18px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ import WhatsNewIcon from './WhatsNewIcon'
const BlockchainLogoImage = styled(Image)`
width: 200px;
display: block;
margin-left: 6px;
@media (min-width: 768px) {
height: 20px;
margin-left: 0;
}
height: 20px;
margin-left: 0;
${media.tablet`
width: 160px;
margin-left: 6px;
`}
`
const NavbarNavItemSpacer = styled(NavbarNavItem)`
margin-right: 12px;
${media.tablet`
margin-right: 8px;
`}
`
const NavbarNavItemWithText = styled(NavbarNavItem)`
padding: 0 26px;
Expand All @@ -43,6 +47,7 @@ const NavbarNavItemWithText = styled(NavbarNavItem)`
${media.tablet`
padding: 0px;
border-left: 0px;
margin-right: 8px;
`}
`
const NavbarStyled = styled(Navbar)`
Expand All @@ -51,6 +56,10 @@ const NavbarStyled = styled(Navbar)`
const NavbarMenuStyled = styled(NavbarMenu)`
width: 100%;
margin-left: 42px;
${media.tablet`
margin-left: 16px;
overflow-x: scroll;
`}
`

const Header = props => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const Wrapper = styled.div`
width: 100%;
margin: 6px 0 16px;
padding-left: 16px;
box-sizing: border-box;
`
const TitleText = styled(Text)`
margin-right: 8px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const Nav = styled.div`
background-color: ${props => props.theme.blue900};
`
const Content = styled.div`
box-sizing: border-box;
position: relative;
display: flex;
flex-direction: column;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { model } from 'data'
import { StickyHeader } from 'components/Layout'
import { TabMenuTransactionStatus, TextBox } from 'components/Form'
import HorizontalMenu from 'components/HorizontalMenu'
import media from 'services/ResponsiveService'
import React from 'react'
import styled from 'styled-components'

Expand All @@ -19,9 +20,12 @@ const Search = styled.div`
align-items: center;
width: 300px;
@media (max-width: 1265px) {
${media.laptop`
width: inherit;
}
`}
${media.tablet`
margin-top: 8px;
`}
`
const EthPrivateKeysWrapper = styled.div`
display: flex;
Expand Down

0 comments on commit 51fa8ba

Please sign in to comment.