-
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.
Merge pull request #38 from agrim-deriv/Agrim/DAPI-536/copyproduction
Agrim/dapi 536/copyproduction
- Loading branch information
Showing
17 changed files
with
266 additions
and
164 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
1 change: 1 addition & 0 deletions
1
src/features/dashboard/components/ApiTokenTable/CopyButton/index.tsx
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
139 changes: 65 additions & 74 deletions
139
src/features/dashboard/components/ApiTokenTable/token-cell.module.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 |
---|---|---|
@@ -1,82 +1,73 @@ | ||
@use 'src/styles/utility' as *; | ||
|
||
.hidden_container { | ||
display: flex; | ||
gap: rem(0.45); | ||
.hidden_character { | ||
width: rem(0.5); | ||
height: rem(0.5); | ||
border-radius: 100%; | ||
background-color: var(--ifm-color-emphasis-900); | ||
display: flex; | ||
gap: rem(0.45); | ||
.hidden_character { | ||
width: rem(0.5); | ||
height: rem(0.5); | ||
border-radius: 100%; | ||
background-color: var(--ifm-color-emphasis-900); | ||
} | ||
} | ||
|
||
.copy_button { | ||
background-repeat: no-repeat; | ||
background-position: 50%; | ||
width: rem(2.4); | ||
height: rem(2.4); | ||
cursor: copy; | ||
background-image: url(/img/copy.svg); | ||
&:hover { | ||
&::after { | ||
content: 'Copy this token'; | ||
text-align: center; | ||
position: absolute; | ||
display: inline-block; | ||
border-radius: 4px; | ||
padding: rem(1); | ||
color: var(--ifm-color-emphasis-100); | ||
background-color: var(--ifm-color-emphasis-700); | ||
font-size: var(--fontSizes-3xs); | ||
top: calc(50% - 15px); | ||
min-width: 100px; | ||
transform: translate(-50%, -50%); | ||
@media (max-width: 425px) { | ||
top: calc(50% + 5px); | ||
} | ||
} | ||
&::before { | ||
content: 'Token copied!'; | ||
text-align: center; | ||
position: absolute; | ||
display: inline-block; | ||
border-radius: 4px; | ||
padding: rem(1); | ||
color: var(--ifm-color-emphasis-100); | ||
background-color: var(--ifm-color-emphasis-700); | ||
font-size: var(--fontSizes-3xs); | ||
top: calc(50% - 15px); | ||
min-width: 100px; | ||
transform: translate(-50%, -50%); | ||
@media (max-width: 425px) { | ||
top: calc(50% + 5px); | ||
} | ||
} | ||
} | ||
&.is_copying { | ||
background-image: url(/img/check.svg); | ||
border-radius: 100%; | ||
background-color: var(--ifm-color-primary-lightest); | ||
border: 1px solid var(--ifm-color-primary); | ||
&:hover::after { | ||
content: 'Token copied!'; | ||
} | ||
} | ||
} | ||
|
||
.token_cell { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: rem(1); | ||
button { | ||
position: relative; | ||
min-width: rem(1.5); | ||
min-height: rem(1.5); | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
background-color: var(--colors-greyLight200); | ||
border: 1px solid var(--colors-greyLight400); | ||
border-radius: 100%; | ||
padding: rem(0.3); | ||
&.copy_button { | ||
cursor: copy; | ||
background-image: url(/img/copy.svg); | ||
} | ||
&:hover { | ||
&::after { | ||
content: ''; | ||
text-align: center; | ||
position: absolute; | ||
display: inline-block; | ||
border-radius: 4px; | ||
padding: rem(1); | ||
color: var(--ifm-color-emphasis-100); | ||
background-color: var(--ifm-color-emphasis-700); | ||
font-size: var(--fontSizes-3xs); | ||
top: calc(-50% - 20px); | ||
left: 50%; | ||
min-width: 100px; | ||
transform: translate(-50%, -50%); | ||
} | ||
&::before { | ||
content: ''; | ||
position: absolute; | ||
width: 0; | ||
height: 0; | ||
border-left: rem(0.7) solid transparent; | ||
border-right: rem(0.7) solid transparent; | ||
border-top: rem(0.7) solid var(--ifm-color-emphasis-700); | ||
top: calc(-50% + 2px); | ||
transform: translate(-50%, -50%); | ||
left: 50%; | ||
} | ||
} | ||
&.eye_button { | ||
cursor: pointer; | ||
&:hover::after { | ||
content: 'Hide this token'; | ||
} | ||
} | ||
&.copy_button { | ||
&:hover::after { | ||
content: 'Copy this token'; | ||
} | ||
&.is_copying { | ||
background-image: url(/img/check.svg); | ||
background-color: var(--ifm-color-primary-lightest); | ||
border: 1px solid var(--ifm-color-primary); | ||
&:hover::after { | ||
content: 'Token copied!'; | ||
} | ||
} | ||
} | ||
} | ||
display: flex; | ||
justify-content: left; | ||
align-items: center; | ||
gap: 0.625rem; | ||
} |
Oops, something went wrong.