Skip to content

Commit

Permalink
feat(icon): add OpenSea icon 16x16
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleynguyen committed Nov 9, 2021
1 parent b1cc994 commit 6e80a1d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,9 @@ const sampleCollection = [
<!-- whatsapp -->
<i class="nes-icon whatsapp is-large"></i>
<!-- opensea -->
<i class="nes-icon opensea is-large"></i>
</section>`,
},
{
Expand Down
5 changes: 5 additions & 0 deletions scss/icons/icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
@import "gmail.scss";
@import "linkedin.scss";
@import "instagram.scss";
@import "opensea.scss";

// others
@import "close.scss";
Expand Down Expand Up @@ -159,6 +160,10 @@
@include pixelize($default-size, $icon-instagram, $icon-instagram-colors);
}

&.opensea::before {
@include pixelize($default-size, $icon-opensea, $icon-opensea-colors);
}

&.coin::before {
@include pixelize($default-size, $icon-coin, $icon-coin-colors);
}
Expand Down
20 changes: 20 additions & 0 deletions scss/icons/opensea.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$icon-opensea-colors: (#fff, #2081e2);
// prettier-ignore
$icon-opensea: (
( 0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0),
( 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),
( 2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2),
( 2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2),
( 2,2,2,2,2,2,1,1,1,1,1,2,2,2,2,2),
( 2,2,2,2,2,2,1,1,1,1,1,1,2,2,2,2),
( 2,2,2,2,1,2,2,2,1,1,1,1,2,2,2,2),
( 2,2,2,1,1,1,2,2,1,1,1,1,1,2,2,2),
( 2,2,1,1,1,1,2,2,1,1,1,1,1,2,2,2),
( 2,1,1,1,1,2,1,1,1,1,1,1,2,2,2,2),
( 2,2,2,2,2,2,1,1,1,1,2,2,2,2,2,2),
( 2,1,1,1,1,2,2,2,1,1,2,1,1,1,1,2),
( 2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2),
( 2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2),
( 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),
( 0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0)
);
1 change: 1 addition & 0 deletions story/_helpers/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const Icons = {
gmail: 'gmail',
linkedin: 'linkedin',
instagram: 'instagram',
opensea: 'opensea',
close: 'close',
coin: 'coin',
trophy: 'trophy',
Expand Down

0 comments on commit 6e80a1d

Please sign in to comment.