Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: refactor trade container styles #5103

Merged
merged 3 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions apps/cowswap-frontend/src/common/pure/RateInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ const InvertIcon = styled.div`
min-width: var(--size);
min-height: var(--size);
border-radius: var(--size);
transition: background var(${UI.ANIMATION_DURATION}) ease-in-out, var(${UI.ANIMATION_DURATION}) ease-in-out;
transition:
background var(${UI.ANIMATION_DURATION}) ease-in-out,
var(${UI.ANIMATION_DURATION}) ease-in-out;
}

> svg {
Expand Down Expand Up @@ -118,7 +120,7 @@ export const RateWrapper = styled.button`
color: inherit;
font-size: 13px;
letter-spacing: -0.1px;
text-align: right;
text-align: left;
font-weight: 500;
width: 100%;
`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,17 @@ export const Details = styled.div`

export const Summary = styled.div`
display: grid;
grid-template-columns: auto 1fr;
grid-template-columns: 1fr auto;
justify-content: space-between;
align-items: center;
width: 100%;
gap: 8px;
gap: 10px;
font-size: inherit;
font-weight: inherit;

span {
font-size: inherit;
font-weight: inherit;
white-space: nowrap;
}
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const TradeButtonBox = styled.div`
export const FooterBox = styled.div`
display: flex;
flex-flow: column wrap;
max-width: 100%;
margin: 0 4px;
padding: 0;
`
Expand All @@ -22,6 +23,7 @@ export const RateWrapper = styled.div`
display: grid;
grid-template-columns: auto 151px;
grid-template-rows: max-content;
max-width: 100%;
gap: 6px;
text-align: right;
color: inherit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const ContainerBox = styled.div`
display: flex;
flex-flow: column wrap;
gap: 10px;
max-width: 100%;
background: var(${UI.COLOR_PAPER});
color: var(${UI.COLOR_TEXT_PAPER});
border: none;
Expand All @@ -22,6 +23,11 @@ export const ContainerBox = styled.div`
padding: 10px;
position: relative;

> div,
> span {
max-width: 100%;
}

.modalMode & {
box-shadow: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ export const MenuItem = styled.div<{ isActive?: boolean; isDropdownVisible: bool
width: 100%;
margin: 0 0 10px;
`}

}
}
`

Expand Down
Loading