1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-29 16:59:58 +02:00

Merge pull request #296 from sazzadsazib/develop

Feat/add instagram icon
This commit is contained in:
ダーシノ
2019-02-19 21:39:19 +09:00
committed by GitHub
6 changed files with 41 additions and 2 deletions

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@ node_modules
.vscode .vscode
css css
storybook-static storybook-static
.DS_Store

View File

@@ -16,6 +16,7 @@ stories.add('icon', () => {
'nes-icon whatsapp': 'nes-icon whatsapp', 'nes-icon whatsapp': 'nes-icon whatsapp',
'nes-icon gmail': 'nes-icon gmail', 'nes-icon gmail': 'nes-icon gmail',
'nes-icon linkedin': 'nes-icon linkedin', 'nes-icon linkedin': 'nes-icon linkedin',
'nes-icon instagram': 'nes-icon instagram',
'nes-icon close': 'nes-icon close', 'nes-icon close': 'nes-icon close',
'nes-icon coin': 'nes-icon coin', 'nes-icon coin': 'nes-icon coin',
'nes-pokeball': 'nes-pokeball', 'nes-pokeball': 'nes-pokeball',

View File

@@ -869,6 +869,11 @@
<i class="nes-icon linkedin"></i> <i class="nes-icon linkedin"></i>
<i class="nes-icon linkedin is-medium"></i> <i class="nes-icon linkedin is-medium"></i>
<i class="nes-icon linkedin is-large"></i> <i class="nes-icon linkedin is-large"></i>
<i class="nes-icon instagram is-small"></i>
<i class="nes-icon instagram"></i>
<i class="nes-icon instagram is-medium"></i>
<i class="nes-icon instagram is-large"></i>
</div> </div>
<button type="button" class="nes-btn is-error show-code" id="show-sns-code">&lt;&gt;</button> <button type="button" class="nes-btn is-error show-code" id="show-sns-code">&lt;&gt;</button>
<span class="nes-balloon from-right copied" id="copied-sns">Copied!</span> <span class="nes-balloon from-right copied" id="copied-sns">Copied!</span>
@@ -927,7 +932,14 @@
&lt;i class=&quot;nes-icon linkedin is-small&quot;&gt;&lt;/i&gt; &lt;i class=&quot;nes-icon linkedin is-small&quot;&gt;&lt;/i&gt;
&lt;i class=&quot;nes-icon linkedin&quot;&gt;&lt;/i&gt; &lt;i class=&quot;nes-icon linkedin&quot;&gt;&lt;/i&gt;
&lt;i class=&quot;nes-icon linkedin is-medium&quot;&gt;&lt;/i&gt; &lt;i class=&quot;nes-icon linkedin is-medium&quot;&gt;&lt;/i&gt;
&lt;i class=&quot;nes-icon linkedin is-large&quot;&gt;&lt;/i&gt;</code></pre> &lt;i class=&quot;nes-icon linkedin is-large&quot;&gt;&lt;/i&gt;
&lt;i class=&quot;nes-icon instagram is-small&quot;&gt;&lt;/i&gt;
&lt;i class=&quot;nes-icon instagram&quot;&gt;&lt;/i&gt;
&lt;i class=&quot;nes-icon instagram is-medium&quot;&gt;&lt;/i&gt;
&lt;i class=&quot;nes-icon instagram is-large&quot;&gt;&lt;/i&gt;
</code></pre>
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('sns')">Copy</button> <button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('sns')">Copy</button>
</section> </section>

View File

@@ -162,4 +162,4 @@
"path": "./node_modules/cz-conventional-changelog" "path": "./node_modules/cz-conventional-changelog"
} }
} }
} }

View File

@@ -15,6 +15,7 @@
@import "whatsapp.scss"; @import "whatsapp.scss";
@import "gmail.scss"; @import "gmail.scss";
@import "linkedin.scss"; @import "linkedin.scss";
@import "instagram.scss";
// others // others
@import "close.scss"; @import "close.scss";
@@ -148,6 +149,10 @@
@include pixelize($default-size, $icon-linkedin, $icon-linkedin-colors); @include pixelize($default-size, $icon-linkedin, $icon-linkedin-colors);
} }
&.instagram::before {
@include pixelize($default-size, $icon-instagram, $icon-instagram-colors);
}
&.coin::before { &.coin::before {
@include pixelize($default-size, $icon-coin, $icon-coin-colors); @include pixelize($default-size, $icon-coin, $icon-coin-colors);
} }

20
scss/icons/instagram.scss Normal file
View File

@@ -0,0 +1,20 @@
$icon-instagram-colors: (#fff, #8005c8, #d40075, #e98c25, #d84646);
// prettier-ignore
$icon-instagram: (
( 0,0,2,2,2,2,2,2,2,2,2,2,2,2,0,0),
( 0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0),
( 2,2,0,0,0,0,0,0,0,0,0,0,0,0,2,2),
( 2,2,0,0,0,0,0,0,0,0,0,2,2,0,2,2),
( 2,2,0,0,0,0,0,0,0,0,0,2,2,0,2,2),
( 2,2,0,0,0,0,2,2,2,2,0,0,0,0,2,2),
( 3,2,0,0,0,2,0,0,0,0,2,0,0,0,2,3),
( 3,3,0,0,0,2,0,0,0,0,2,0,0,0,3,3),
( 3,3,0,0,0,3,0,0,0,0,3,0,0,0,3,3),
( 3,3,0,0,0,3,0,0,0,0,3,0,0,0,3,3),
( 4,4,0,0,0,0,3,3,3,3,0,0,0,0,3,3),
( 4,4,0,0,0,0,0,0,0,0,0,0,0,0,3,3),
( 4,4,0,0,0,0,0,0,0,0,0,0,0,0,5,5),
( 4,4,0,0,0,0,0,0,0,0,0,0,0,0,5,5),
( 0,4,4,4,4,4,4,4,4,5,5,5,5,5,5,0),
( 0,0,4,4,4,4,4,4,5,5,5,5,5,5,0,0)
);