-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated the Copy button - Added the copy button to the popup for long alleles in VEP results table:
- Loading branch information
Showing
8 changed files
with
70 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,7 @@ | |
font-size: 11px; | ||
font-weight: var(--font-weight-light); | ||
} | ||
|
||
.copy { | ||
margin-bottom: 0.5rem; | ||
} |
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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
.copyLozenge { | ||
display: inline-flex; | ||
width: 68px; | ||
align-items: center; | ||
.copy { | ||
position: relative; | ||
font-size: var(--copy-button-font-size, 12px); | ||
} | ||
|
||
/* | ||
Considering that when the copy button is pressed, it shows | ||
a lozenge that is wider than the initial text "Copy" | ||
(the lozenge text says "Copied", and the lozenge itself | ||
has padding left and right), below are three alignment classes | ||
to position the initial label ("Copy") within the space taken by the lozenge. | ||
The label "Copy" can be aligned to the left of the lozenge space, | ||
or to its right, or to the middle. | ||
Notice that the text "Copied" is always middle-aligned | ||
*/ | ||
|
||
.alignLeft { | ||
justify-content: flex-start; | ||
.copyText { | ||
color: var(--color-blue); | ||
line-height: inherit; | ||
position: relative; | ||
z-index: 0; | ||
} | ||
|
||
.alignMiddle { | ||
justify-content: center; | ||
.copied .copyText { | ||
visibility: hidden; | ||
} | ||
|
||
.alignRight { | ||
justify-content: flex-end; | ||
.checkmark { | ||
fill: var(--color-green); | ||
height: 13px; | ||
position: absolute; | ||
left: 50%; | ||
translate: -50%; | ||
scale: 1; | ||
z-index: 1; | ||
animation: checkmark-pulse 0.3s ease-in-out; | ||
} | ||
|
||
.copy { | ||
color: var(--color-blue); | ||
line-height: inherit; | ||
} | ||
@keyframes checkmark-pulse { | ||
0% { | ||
scale: 0.6; | ||
} | ||
|
||
70% { | ||
scale: 1.1; | ||
} | ||
|
||
.copyLozengeCopied { | ||
color: var(--color-white); | ||
background-color: var(--color-black); | ||
border-radius: 30px; | ||
100% { | ||
scale: 1; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: start; | ||
row-gap: 1ch; | ||
} | ||
|
||
|
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