forked from binary-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aizad/feat: Improvements on Base Components (binary-com#10802)
* chore: updated modules css to SCSS * fix: change modules.css to scss for wallet text * fix: typo on wallet button * fix: typo on wallet button pt.2 * fix: implement responsive sizing in base and edit sizes in other components * fix: remove modules.css in wallettextfield component * fix: resolve comments added walletbutton inside of inputfield * fix: remove border radius lg in walletbutton * fix: removed classname inside of wallet text * fix: resolve conflicts * fix: resolve conflicts
- Loading branch information
1 parent
b970299
commit de10aba
Showing
24 changed files
with
385 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 0 additions & 79 deletions
79
packages/wallets/src/components/Base/WalletButton/WalletButton.module.css
This file was deleted.
Oops, something went wrong.
95 changes: 95 additions & 0 deletions
95
packages/wallets/src/components/Base/WalletButton/WalletButton.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
$color-map: ( | ||
'primary': ( | ||
backgroundcolor: #ff444f, | ||
hover: #eb3e48, | ||
), | ||
'primary-light': ( | ||
backgroundcolor: #ff444f29, | ||
hover: #ff444f3d, | ||
color: #ff444f, | ||
), | ||
'white': ( | ||
backgroundcolor: #fff, | ||
hover: #d6dadb, | ||
), | ||
'black': ( | ||
backgroundcolor: #0e0e0e, | ||
hover: #323738, | ||
), | ||
); | ||
|
||
$size-map: ( | ||
'sm': ( | ||
height: auto, | ||
padding: 0.3rem 0.8rem, | ||
), | ||
'md': ( | ||
height: 3.2rem, | ||
padding: 0.6rem 1.6rem, | ||
), | ||
); | ||
|
||
.wallets-button { | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 0.8rem; | ||
cursor: pointer; | ||
|
||
&:disabled { | ||
opacity: 0.32; | ||
cursor: not-allowed; | ||
} | ||
|
||
@each $size, $values in $size-map { | ||
&__size--#{$size} { | ||
padding: map-get($values, padding); | ||
height: map-get($values, height); | ||
} | ||
} | ||
|
||
@each $color, $values in $color-map { | ||
&__color--#{$color} { | ||
background-color: map-get($values, backgroundcolor); | ||
&:hover { | ||
background-color: map-get($values, hover); | ||
} | ||
} | ||
} | ||
|
||
&__variant { | ||
&--contained { | ||
border: none; | ||
} | ||
&--outlined { | ||
border: 1px solid var(--system-light-3-less-prominent-text, #999); | ||
background: none; | ||
&:hover { | ||
background: #00000014; | ||
} | ||
} | ||
&--ghost { | ||
background: none; | ||
border: none; | ||
&:hover { | ||
background: #ff444f14; | ||
} | ||
} | ||
} | ||
|
||
&__rounded { | ||
&--sm { | ||
border-radius: 0.4rem; | ||
} | ||
&--md { | ||
border-radius: 6.4rem; | ||
} | ||
&--lg { | ||
border-radius: 100%; | ||
} | ||
} | ||
|
||
&__full-width { | ||
width: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.