-
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.
Add protein sequence to variant transcript consequences in Entity Vie…
…wer (#1108)
- Loading branch information
Showing
13 changed files
with
711 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,10 @@ | |
position: relative; | ||
} | ||
|
||
.rowCollapsed { | ||
margin-bottom: 5px; | ||
} | ||
|
||
.rowExpanded { | ||
padding-bottom: 30px; | ||
} | ||
|
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
4 changes: 4 additions & 0 deletions
4
...riant-view/transcript-consequences/transcript-variant-cds/TranscriptVariantCDS.module.css
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,3 +1,7 @@ | ||
.diagram { | ||
margin-bottom: 50px; | ||
} | ||
|
||
.exonBlock { | ||
fill: var(--color-grey); | ||
} | ||
|
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
4 changes: 4 additions & 0 deletions
4
...sequences/transcript-variant-genomic-sequence/TranscriptVariantGenomicSequence.module.css
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
96 changes: 96 additions & 0 deletions
96
...ew/transcript-consequences/transcript-variant-protein/TranscriptVariantProtein.module.css
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,96 @@ | ||
.diagramContainer { | ||
margin-bottom: 50px; | ||
} | ||
|
||
.letter { | ||
--sequence-block-color: transparent; | ||
font-size: 11px; | ||
font-weight: var(--font-weight-semibold); | ||
} | ||
|
||
.letterReferenceAllele { | ||
--sequence-block-letter-color: var(--color-black); | ||
} | ||
|
||
.letterFlankingSequence { | ||
--sequence-block-letter-color: var(--color-medium-dark-grey); | ||
} | ||
|
||
.letter + .letter { | ||
margin-left: 1px; | ||
} | ||
|
||
/* should probably move this to common styles */ | ||
.ellipsis { | ||
letter-spacing: -3px; | ||
} | ||
|
||
.changedSequenceContainer { | ||
position: relative; | ||
display: inline-block; | ||
transform: translateX(-50%); | ||
margin-top: 16px; | ||
} | ||
|
||
.changedSequenceBlock { | ||
display: inline-flex; | ||
height: 16px; | ||
align-items: center; | ||
color: var(--color-white); | ||
background-color: var(--color-dark-grey); | ||
font-family: var(--font-family-monospace); | ||
line-height: 1; | ||
font-size: 11px; | ||
padding: 0 8px; | ||
} | ||
|
||
.proteinImpactLabel { | ||
position: absolute; | ||
left: -12px; | ||
transform: translateX(-100%); | ||
white-space: nowrap; | ||
} | ||
|
||
.modificationTypeLabel { | ||
position: absolute; | ||
top: 50%; | ||
right: -12px; | ||
font-size: 10px; | ||
font-weight: var(--font-weight-light); | ||
transform: translate(100%, -50%); | ||
} | ||
|
||
.altAlleleLetter { | ||
--sequence-block-color: var(--color-dark-grey); | ||
} | ||
|
||
.referenceVariantSequenceLength { | ||
font-family: var(--font-family-monospace); | ||
font-size: 10px; | ||
} | ||
|
||
.referenceVariantSequenceLabel { | ||
font-size: 10px; | ||
font-weight: var(--font-weight-light); | ||
} | ||
|
||
/* FIXME: remove the classes for alt allele arrow | ||
after extracting it into a dedicated component | ||
*/ | ||
.altAlleleArrow { | ||
position: absolute; | ||
left: 50%; | ||
top: -11px; /* positioning styles should be passed to the arrow */ | ||
transform: translateX(-50%); | ||
width: 9px; | ||
aspect-ratio: 1.5; | ||
background-color: var(--color-orange); | ||
} | ||
|
||
.altAlleleArrowUp { | ||
clip-path: polygon(50% 0, 100% 100%, 0 100%); /* this is what creates the triangle */ | ||
} | ||
|
||
.altAlleleArrowDown { | ||
clip-path: polygon(0 0, 50% 100%, 100% 0); /* this is what creates the triangle */ | ||
} |
Oops, something went wrong.