-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unnecessary button wrapper * Update Modal component * Add button tertiary variant * Add button text-blue variant * Adapt Input component * Update Deposit modal * Update Withdraw/Stake/Unstake modals * Update Unstake Confirm modal * Update Unsupported Network modal * Self review * Show primary buttons first on mobile * Adapt to Button component without wrapper
- Loading branch information
1 parent
33d8d05
commit 2cbe5ff
Showing
27 changed files
with
737 additions
and
235 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
@mixin button-tertiary-color { | ||
position: relative; | ||
color: $color-blue-500; | ||
border: 1px solid $color-blue-500; | ||
background: $color-base-light; | ||
|
||
&.xxs { | ||
padding: 0 10px; | ||
border-radius: 24px; | ||
height: 24px; | ||
@include font-tagline-10; | ||
} | ||
|
||
&.xs { | ||
padding: 0 16px; | ||
border-radius: 24px; | ||
height: 32px; | ||
@include font-tagline-10; | ||
} | ||
|
||
&.sm { | ||
padding: 0 20px; | ||
border-radius: 24px; | ||
height: 40px; | ||
@include font-tagline-10; | ||
} | ||
|
||
&.md { | ||
padding: 0 24px; | ||
border-radius: 28px; | ||
height: 48px; | ||
@include font-tagline-7; | ||
} | ||
|
||
&.lg { | ||
padding: 0 32px; | ||
border-radius: 32px; | ||
height: 56px; | ||
@include font-tagline-7; | ||
} | ||
|
||
&:hover { | ||
color: $color-blue-200; | ||
border: 1px solid $color-blue-200; | ||
} | ||
|
||
&:active { | ||
color: $color-blue-600; | ||
border: 1px solid $color-blue-600; | ||
} | ||
|
||
&:disabled { | ||
color: $color-blue-25; | ||
border: 1px solid $color-blue-25; | ||
} | ||
|
||
&.dark { | ||
color: $color-blue-400; | ||
border: $color-blue-400; | ||
|
||
&:hover { | ||
color: $color-blue-200; | ||
border: $color-blue-200; | ||
} | ||
|
||
&:active { | ||
color: $color-blue-500; | ||
border: $color-blue-500; | ||
} | ||
|
||
&:disabled { | ||
color: $color-blue-100; | ||
border: $color-blue-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
@import '../../../styles/fonts.module.scss'; | ||
|
||
@mixin text-blue { | ||
color: $color-blue-500; | ||
height: 20px; | ||
border: none; | ||
|
||
&.xs { | ||
padding: 0 16px; | ||
border-radius: 24px; | ||
height: 32px; | ||
@include font-body-14; | ||
} | ||
|
||
&.sm { | ||
padding: 0 20px; | ||
border-radius: 24px; | ||
height: 40px; | ||
@include font-button-3; | ||
} | ||
|
||
&.md { | ||
padding: 0 24px; | ||
border-radius: 28px; | ||
height: 48px; | ||
@include font-button-2; | ||
} | ||
|
||
&.lg { | ||
padding: 0 32px; | ||
border-radius: 32px; | ||
height: 56px; | ||
@include font-button-1; | ||
} | ||
|
||
&:hover { | ||
color: $color-blue-200; | ||
} | ||
|
||
&:active { | ||
color: $color-blue-600; | ||
} | ||
|
||
&:disabled { | ||
color: $color-blue-50; | ||
} | ||
|
||
&.dark { | ||
color: $color-blue-100; | ||
|
||
&:hover { | ||
color: $color-blue-200; | ||
} | ||
|
||
&:active { | ||
color: $color-blue-500; | ||
} | ||
|
||
&:disabled { | ||
color: $color-dark-blue-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ComponentProps } from 'react'; | ||
|
||
export const CloseIcon = (props: ComponentProps<'svg'>) => { | ||
return ( | ||
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}> | ||
<path | ||
d="M11.25 11.25L28.7501 28.7499" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
<path | ||
d="M11.252 28.752L20.0013 20.0026L28.752 11.252" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
</svg> | ||
); | ||
}; |
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,16 @@ | ||
import { ComponentProps } from 'react'; | ||
|
||
export const HelpOutlineIcon = (props: ComponentProps<'svg'>) => { | ||
return ( | ||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}> | ||
<circle cx="8.68211" cy="8.68211" r="7.85985" stroke="currentColor" strokeWidth="1.25" /> | ||
<path | ||
d="M6.69531 7.00868C6.78529 5.91419 7.74806 5.09966 8.84572 5.18937C9.85005 5.27145 10.6703 6.03406 10.6703 7.07366C10.6703 8.25105 9.56253 8.59808 8.84572 9.47775C8.5199 9.8776 8.38957 10.1257 8.38957 10.9054M8.43277 12.6826H8.37027" | ||
stroke="currentColor" | ||
strokeWidth="1.25" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
</svg> | ||
); | ||
}; |
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,4 @@ | ||
import { CloseIcon } from './close'; | ||
import { HelpOutlineIcon } from './help-outline'; | ||
|
||
export { CloseIcon, HelpOutlineIcon }; |
Oops, something went wrong.