Skip to content

Commit

Permalink
Merge pull request #4 from MyTonSwap/develop
Browse files Browse the repository at this point in the history
update styles to match design
  • Loading branch information
Ho3einWave authored Nov 19, 2024
2 parents 0b25bf1 + 73ddca3 commit f0436f5
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 25 deletions.
4 changes: 2 additions & 2 deletions lib/components/Header/Header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
align-items: center;
justify-content: space-between;
padding: 0 0.25rem;
font-weight: 500;
font-weight: 700;
font-size: var(--font-size-lg);
color: var(--text-black-color);
}
Expand Down Expand Up @@ -46,7 +46,7 @@
@media screen and (min-width: 1024px) {
.mytonswap-app {
.header-container {
font-size: var(--font-size-xl);
font-size: var(--font-size-lg);
}
}
}
4 changes: 2 additions & 2 deletions lib/components/Header/SlippageSetting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
align-items: center;
}
.dropdown-item {
background: var(--light-shade-color);
background: var(--secondary-color);
position: relative;
padding: 0.25rem;
height: 2rem;
Expand All @@ -53,7 +53,7 @@
width: 50px;
background-color: var(--light-shade-color);
}
background: var(--light-shade-color);

.icon {
position: absolute;
top: -0.25rem;
Expand Down
4 changes: 2 additions & 2 deletions lib/components/Header/Wallet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
margin: 0.5rem 0;
}
.address {
background: var(--light-shade-color);
background: var(--secondary-color);
font-size: 0.8rem;
width: fit-content;
padding: 0.25rem 0.5rem;
Expand All @@ -46,7 +46,7 @@
}
.wallet-icon {
color: var(--text-black-color);
background: var(--light-shade-color);
background: var(--secondary-color);
font-size: var(--font-size-xs);
width: 2rem;
height: 2rem;
Expand Down
13 changes: 4 additions & 9 deletions lib/components/Swap/Swap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,16 @@
.container {
max-width: 450px;
width: 450px;
padding: 1rem 0.75rem;
padding: 0.75rem;
}
}
@media screen and (min-width: 1024px) {
.container {
max-width: 500px;
width: 550px;
}
}
@media screen and (min-width: 1440px) {
.container {
max-width: 600px;
width: 600px;
max-width: calc(550px + 24px);
width: calc(550px + 24px);
}
}

.text-provided {
color: var(--text-black-color);
width: 100%;
Expand Down
1 change: 0 additions & 1 deletion lib/components/SwapCard/Card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@
.swapcard-card {
.card-content {
padding: 1rem 1rem;
padding-right: 1.5rem;
.card-inputs {
.card-input {
font-size: var(--font-size-2xl);
Expand Down
3 changes: 2 additions & 1 deletion lib/components/SwapCard/CardDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
border-radius: 0.75rem;
width: 100%;
border: 1px solid var(--border-color);
background: var(--input-card-color);
display: flex;
align-items: center;
padding-left: 0.5rem;
Expand All @@ -89,7 +90,6 @@
.dialog-search-icon {
font-size: var(--font-size-lg);
color: var(--text-black-color);
opacity: 0.5;
}

.dialog-search-input {
Expand All @@ -109,6 +109,7 @@
height: 50vh;
}
.infinite-scroll-loading {
color: var(--text-black-color);
display: flex;
align-items: center;
justify-content: center;
Expand Down
3 changes: 1 addition & 2 deletions lib/components/SwapCard/SwapCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@
@media screen and (min-width: 768px) {
.mytonswap-app {
.swap-card-container {
padding: 1.5rem 1rem;
.line {
height: 5px;
}
.change-direction-button {
padding: 1rem 5rem;
padding: 0.75rem 3.75rem;
font-size: var(--font-size-2xl);
}
}
Expand Down
3 changes: 2 additions & 1 deletion lib/components/SwapDetails/SwapDetails.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
align-items: center;
padding-left: 0.75rem;
padding-right: 0.75rem;
font-size: 0.75rem;

.detail-accordion {
display: flex;
Expand All @@ -21,6 +20,7 @@
width: 100%;
min-height: 52px;
font-size: var(--font-size-sm);
font-weight: 500;

.finding {
display: flex;
Expand Down Expand Up @@ -92,6 +92,7 @@
padding-right: 1rem;
.detail-accordion {
min-height: 3.5rem;
font-size: var(--font-size-sm);
.finding {
column-gap: 0.5rem;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/components/SwapDetails/SwapKeyValue.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@media screen and (min-width: 768px) {
.mytonswap-app {
.details-key-value {
font-size: var(--font-size-xs);
font-size: var(--font-size-sm);
}
}
}
8 changes: 4 additions & 4 deletions lib/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
}

.mts-dark {
--border-color: #1d2939;
--border-color: #344054;
--primary-color: #16a34a;
--secondary-color: #283241;
--background-color: #101828;
--modal-background-color: #101828;
--modal-background-color: #1d2939;
--swap-container-background-color: #101828;
--swap-container-border-color: #1d293900;
--input-card-pay-color: #09090b;
Expand All @@ -38,10 +38,10 @@
--change-direction-background-color: #101828;
--change-direction-icon-color: #16a34a;
--light-shade-color: #1d2939;
--slippage-box-color: #101828;
--slippage-box-color: #344054;
--text-black-color: #ffffff;
--text-white-color: #ffffff;
--text-fade-color: #6b7280;
--text-fade-color: #687085;
--skeleton-shine-color: #585959;
}

Expand Down

0 comments on commit f0436f5

Please sign in to comment.