mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-31 17:51:46 +02:00
Merge pull request #285 from nostalgic-css/revert-258-add-psone-controller-icon
Revert "feat(icons): add psone controller icon"
This commit is contained in:
@@ -33,7 +33,6 @@ stories.add('icon', () => {
|
|||||||
'nes-jp-logo': 'nes-jp-logo',
|
'nes-jp-logo': 'nes-jp-logo',
|
||||||
'snes-logo': 'snes-logo',
|
'snes-logo': 'snes-logo',
|
||||||
'snes-jp-logo': 'snes-jp-logo',
|
'snes-jp-logo': 'snes-jp-logo',
|
||||||
'nes-psone': 'nes-psone',
|
|
||||||
}, 'nes-icon twitter');
|
}, 'nes-icon twitter');
|
||||||
const selectedSize = radios('size', {
|
const selectedSize = radios('size', {
|
||||||
default: '',
|
default: '',
|
||||||
|
@@ -852,7 +852,6 @@
|
|||||||
<i class="nes-jp-logo"></i>
|
<i class="nes-jp-logo"></i>
|
||||||
<i class="snes-logo"></i>
|
<i class="snes-logo"></i>
|
||||||
<i class="snes-jp-logo"></i>
|
<i class="snes-jp-logo"></i>
|
||||||
<i class="nes-psone"></i>
|
|
||||||
</div>
|
</div>
|
||||||
<button type="button" class="nes-btn is-error show-code" id="show-controllers-code"><></button>
|
<button type="button" class="nes-btn is-error show-code" id="show-controllers-code"><></button>
|
||||||
<span class="nes-balloon from-right copied" id="copied-controllers">Copied!</span>
|
<span class="nes-balloon from-right copied" id="copied-controllers">Copied!</span>
|
||||||
@@ -861,8 +860,7 @@
|
|||||||
<pre class="sample-code"><code class="html"><i class="nes-logo"></i>
|
<pre class="sample-code"><code class="html"><i class="nes-logo"></i>
|
||||||
<i class="nes-jp-logo"></i>
|
<i class="nes-jp-logo"></i>
|
||||||
<i class="snes-logo"></i>
|
<i class="snes-logo"></i>
|
||||||
<i class="snes-jp-logo"></i>
|
<i class="snes-jp-logo"></i></code></pre>
|
||||||
<i class="nes-psone"></i></code></pre>
|
|
||||||
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('controllers')">Copy</button>
|
<button type="button" class="nes-btn show-code copy" onClick="copyToClipboard('controllers')">Copy</button>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
@@ -14,5 +14,4 @@
|
|||||||
@import "smartphone.scss";
|
@import "smartphone.scss";
|
||||||
@import "mario.scss";
|
@import "mario.scss";
|
||||||
@import "kirby.scss";
|
@import "kirby.scss";
|
||||||
@import "psone.scss";
|
|
||||||
@import "octocat.scss";
|
@import "octocat.scss";
|
||||||
|
@@ -1,34 +0,0 @@
|
|||||||
.nes-psone {
|
|
||||||
$psone-colors: (#cbcbcb, #b1b1b2, #2a2a2a);
|
|
||||||
|
|
||||||
// prettier-ignore
|
|
||||||
$psone: (
|
|
||||||
(0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0),
|
|
||||||
(0,0,1,1,1,0,0,3,0,0,0,1,1,1,0,0),
|
|
||||||
(0,1,1,1,1,1,0,0,3,0,1,1,1,1,1,0),
|
|
||||||
(1,1,1,3,1,1,1,1,1,1,1,1,3,1,1,1),
|
|
||||||
(1,1,3,1,3,1,1,1,1,1,1,3,1,3,1,1),
|
|
||||||
(1,1,1,3,1,1,1,1,1,1,1,1,3,1,1,1),
|
|
||||||
(2,1,1,1,1,1,3,1,1,3,1,1,1,1,1,2),
|
|
||||||
(2,2,1,1,1,0,0,0,0,0,0,1,1,1,2,2),
|
|
||||||
(2,2,2,2,0,0,0,0,0,0,0,0,2,2,2,2),
|
|
||||||
(0,2,2,0,0,0,0,0,0,0,0,0,0,2,2,0)
|
|
||||||
);
|
|
||||||
|
|
||||||
$size: 4px;
|
|
||||||
|
|
||||||
position: relative;
|
|
||||||
display: inline-block;
|
|
||||||
width: $size * length(nth($psone, 1));
|
|
||||||
height: $size * length($psone);
|
|
||||||
|
|
||||||
&::before {
|
|
||||||
position: absolute;
|
|
||||||
top: -$size;
|
|
||||||
left: -$size;
|
|
||||||
content: "";
|
|
||||||
background: transparent;
|
|
||||||
|
|
||||||
@include pixelize($size, $psone, $psone-colors);
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user