Skip to content

Commit

Permalink
QA: Header (#646)
Browse files Browse the repository at this point in the history
* side menu fixed width

* side menu display none id screen is wide

* fix account arrangement

* change camelot link  color
  • Loading branch information
alekseevaiana authored Jul 31, 2024
1 parent c84c377 commit 038ada0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
27 changes: 13 additions & 14 deletions src/components/NavLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,11 @@ const Nav = styled.div`
align-items: center;
justify-content: center;
height: 100%;
@media (max-width: 767px) {
@media (max-width: 1073px) {
position: unset;
transform: initial;
flex-direction: column;
}
${({ theme }) => theme.mediaWidth.upToSmall``}
`

const BtnStyle = css`
Expand Down Expand Up @@ -99,18 +98,18 @@ const BtnStyle = css`
margin-right: 0;
}
${({ theme }) => theme.mediaWidth.upToSmall`
flex: 0 0 100%;
min-width: 100%;
font-weight: normal;
padding: 15px 25px;
display: flex;
align-items:center;
text-align: left;
margin: 0;
color :#1A74EC;
font-size: 20px;
`}
@media (max-width: 1073px) {
flex: 0 0 100%;
min-width: 100%;
font-weight: normal;
padding: 15px 25px;
display: flex;
align-items: center;
text-align: left;
margin: 0;
color: #1a74ec;
font-size: 20px;
}
`
const NavBarLink = styled(NavLink)`
${BtnStyle}
Expand Down
5 changes: 4 additions & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,11 @@ const InfoPopUpText = styled.div`
const InfoPopUpSubText = styled.div`
font-size: 13px;
line-height: ${(props) => props.theme.font.xSmall};
color: ${(props) => props.theme.colors.accent};
font-weight: 500;
a {
color: ${(props) => props.theme.colors.accent};
}
`

const OdBalanceWrapper = styled.span`
Expand Down
10 changes: 6 additions & 4 deletions src/components/SideMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,10 @@ const Container = styled.div`
opacity: 1;
transition: all 300ms;
}
@media (min-width: 1073px) {
display: none;
}
`

const Inner = styled.div`
Expand All @@ -503,6 +507,7 @@ const Overlay = styled.div`
const InnerContainer = styled.div`
min-height: 100vh;
width: calc(100% - 50px);
max-width: 364px;
background: ${(props) => props.theme.colors.neutral};
padding-bottom: 1rem;
position: relative;
Expand Down Expand Up @@ -553,9 +558,6 @@ const Address = styled.div`

const Account = styled.div`
display: flex;
justify-content: center;
justify-content: flex-start;
cursor: pointer;
@media (max-width: 767px) {
justify-content: flex-start;
}
`

0 comments on commit 038ada0

Please sign in to comment.