Skip to content

Commit

Permalink
style: update border-radius for loading indicators and enhance global…
Browse files Browse the repository at this point in the history
… color variables for improved design consistency
  • Loading branch information
Ho3einWave committed Nov 16, 2024
1 parent c14ccc0 commit 31bce89
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 4 additions & 2 deletions lib/components/SwapCard/Card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
.card-input-loading {
height: 1.875rem;
width: 6rem;
border-radius: 0.375rem;
border-radius: 0.75rem;
}
.card-rate {
font-family: inherit;
Expand All @@ -72,7 +72,7 @@
.card-rate-loading {
height: 1.25rem;
width: 3rem;
border-radius: 0.375rem;
border-radius: 0.75rem;
}
}
.card-button {
Expand Down Expand Up @@ -118,13 +118,15 @@
.card-input-loading {
height: 1.5rem;
width: 7rem;
border-radius: 0.75rem;
}
.card-rate {
font-size: var(--font-size-sm);
}
.card-rate-loading {
height: 1rem;
width: 5rem;
border-radius: 0.75rem;
}
}
.card-button {
Expand Down
1 change: 0 additions & 1 deletion lib/components/SwapDetails/SwapDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const SwapDetails = () => {
const { onePayRoute, bestRoute, isFindingBestRoute, slippage } =
useSwapStore();
const [ref, { height }] = useMeasure();
console.log(height);
return (
<motion.button
className="detail-accordion-container"
Expand Down
10 changes: 8 additions & 2 deletions lib/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,19 @@
}

.mts-ton-jiggle {
--swap-container-background-color: #101828;
--swap-container-border-color: #1d293900;
--border-color: #004a6533;
--primary-color: #177594;
--secondary-color: #283241;
--background-color: #181f34;
--modal-background-color: #101828;
--swap-container-background-color: #101828;
--swap-container-border-color: #1d293900;
--input-card-pay-color: #09090b;
--input-card-receive-color: #30475b;
--input-card-color: #181f34;
--input-token-color: #1d2939;
--change-direction-background-color: #101828;
--change-direction-icon-color: #177594;
--light-shade-color: #193349;
--slippage-box-color: #d1d1e0;
--text-black-color: #ffffff;
Expand Down

0 comments on commit 31bce89

Please sign in to comment.