-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support 2 fold and 3 fold large icons
- Loading branch information
Showing
6 changed files
with
288 additions
and
95 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,104 @@ | ||
@mixin icon-background-position($x, $y) { | ||
background-position-x: -(13px + ($x - 1) * 25px); | ||
background-position-y: -(19px + ($y - 1) * 30px); | ||
@mixin icon-background-position($x, $y, $scale:1) { | ||
background-position-x: -(13px + ($x - 1) * 25px) * $scale; | ||
background-position-y: -(19px + ($y - 1) * 30px) * $scale; | ||
} | ||
|
||
@mixin annotation-icon-background-position-x($x) { | ||
background-position-x: -(9px + ($x - 1) * 30px); | ||
@mixin annotation-icon-background-position-x($x, $scale:1) { | ||
background-position-x: -(9px + ($x - 1) * 30px) * $scale; | ||
} | ||
|
||
@mixin annotation-icon-background-position-y($y) { | ||
background-position-y: -(9px + ($y - 1) * 30px); | ||
@mixin annotation-icon-background-position-y($y, $scale:1) { | ||
background-position-y: -(9px + ($y - 1) * 30px) * $scale; | ||
} | ||
|
||
@mixin icon-size($scale:1) { | ||
background-image: url('images/v4/icons.png'); | ||
width: 18px * $scale; | ||
height: 18px * $scale; | ||
flex-shrink: 0; | ||
line-height: 18px * $scale; | ||
// background size is the same of corresponding to the width of svg file | ||
background-size: 170px * $scale; | ||
margin: 0 3px; | ||
display: block; | ||
|
||
&.oncogenic, &.likely-oncogenic, &.resistance { | ||
@include icon-background-position(1, 1, $scale); | ||
} | ||
|
||
&.neutral, &.likely-neutral { | ||
@include icon-background-position(2, 1, $scale); | ||
} | ||
|
||
&.inconclusive { | ||
@include icon-background-position(3, 1, $scale); | ||
} | ||
|
||
&.vus { | ||
@include icon-background-position(4, 1, $scale); | ||
} | ||
|
||
&.unknown { | ||
@include icon-background-position(5, 1, $scale); | ||
} | ||
|
||
&.level-1 { | ||
@include icon-background-position(1, 2, $scale); | ||
} | ||
|
||
&.level-2 { | ||
@include icon-background-position(2, 2, $scale); | ||
} | ||
|
||
&.level-3 { | ||
@include icon-background-position(3, 2, $scale); | ||
} | ||
|
||
&.level-3A { | ||
@include icon-background-position(4, 2, $scale); | ||
} | ||
|
||
&.level-3B { | ||
@include icon-background-position(5, 2, $scale); | ||
} | ||
|
||
&.level-4 { | ||
@include icon-background-position(6, 2, $scale); | ||
} | ||
|
||
&.level-R1 { | ||
@include icon-background-position(1, 3, $scale); | ||
} | ||
|
||
&.level-R2 { | ||
@include icon-background-position(2, 3, $scale); | ||
} | ||
|
||
&.level-R3 { | ||
@include icon-background-position(3, 3, $scale); | ||
} | ||
|
||
&.level-Dx1 { | ||
@include icon-background-position(1, 4, $scale); | ||
} | ||
|
||
&.level-Dx2 { | ||
@include icon-background-position(2, 4, $scale); | ||
} | ||
|
||
&.level-Dx3 { | ||
@include icon-background-position(3, 4, $scale); | ||
} | ||
|
||
&.level-Px1 { | ||
@include icon-background-position(1, 5, $scale); | ||
} | ||
|
||
&.level-Px2 { | ||
@include icon-background-position(2, 5, $scale); | ||
} | ||
|
||
&.level-Px3 { | ||
@include icon-background-position(3, 5, $scale); | ||
} | ||
} |
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