mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-31 01:39:50 +02:00
Merge branch 'develop' into feat/use-data-uris-for-cursors
This commit is contained in:
@@ -8,7 +8,7 @@ $background-color: $color-white;
|
||||
$cursor-url: url(../assets/cursor.png);
|
||||
$cursor-click-url: url(../assets/cursor-click.png);
|
||||
|
||||
$border-size: 0.25em;
|
||||
$border-size: 4px;
|
||||
|
||||
$default-colors: (
|
||||
normal: $background-color,
|
||||
|
@@ -4,11 +4,9 @@
|
||||
@import "badges.scss";
|
||||
@import "balloons.scss";
|
||||
@import "buttons.scss";
|
||||
@import "checkboxes.scss";
|
||||
@import "containers.scss";
|
||||
@import "dialogs.scss";
|
||||
@import "lists.scss";
|
||||
@import "progress.scss";
|
||||
@import "radios.scss";
|
||||
@import "tables.scss";
|
||||
@import "text.scss";
|
||||
|
@@ -1,20 +1,22 @@
|
||||
.nes-list {
|
||||
// prettier-ignore
|
||||
$disc: (
|
||||
(0, 0, 0, 1, 1, 0, 0, 0),
|
||||
(0, 0, 1, 1, 1, 1, 0, 0),
|
||||
(0, 1, 1, 1, 1, 1, 1, 0),
|
||||
(0, 1, 1, 1, 1, 1, 1, 0),
|
||||
(0, 0, 1, 1, 1, 1, 0, 0),
|
||||
(0, 0, 0, 1, 1, 0, 0, 0)
|
||||
);
|
||||
(0,0,0,1,1,0,0,0),
|
||||
(0,0,1,1,1,1,0,0),
|
||||
(0,1,1,1,1,1,1,0),
|
||||
(0,1,1,1,1,1,1,0),
|
||||
(0,0,1,1,1,1,0,0),
|
||||
(0,0,0,1,1,0,0,0)
|
||||
);
|
||||
|
||||
// prettier-ignore
|
||||
$circle: (
|
||||
(0, 0, 0, 1, 1, 0, 0, 0),
|
||||
(0, 0, 1, 1, 1, 1, 0, 0),
|
||||
(0, 1, 1, 0, 0, 1, 1, 0),
|
||||
(0, 1, 1, 0, 0, 1, 1, 0),
|
||||
(0, 0, 1, 1, 1, 1, 0, 0),
|
||||
(0, 0, 0, 1, 1, 0, 0, 0)
|
||||
(0,0,0,1,1,0,0,0),
|
||||
(0,0,1,1,1,1,0,0),
|
||||
(0,1,1,0,0,1,1,0),
|
||||
(0,1,1,0,0,1,1,0),
|
||||
(0,0,1,1,1,1,0,0),
|
||||
(0,0,0,1,1,0,0,0)
|
||||
);
|
||||
$colors: ($base-color, map-get($default-colors, "shadow"));
|
||||
|
||||
@@ -28,19 +30,17 @@
|
||||
position: absolute;
|
||||
top: calc(50% - 8px);
|
||||
left: -22px;
|
||||
font-size: 2px;
|
||||
content: "";
|
||||
|
||||
@include pixelize($disc, $colors);
|
||||
@include pixelize(2px, $disc, $colors);
|
||||
}
|
||||
|
||||
&.is-circle li::before {
|
||||
position: absolute;
|
||||
top: calc(50% - 8px);
|
||||
left: -22px;
|
||||
font-size: 2px;
|
||||
content: "";
|
||||
|
||||
@include pixelize($circle, $colors);
|
||||
@include pixelize(2px, $circle, $colors);
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,6 @@
|
||||
@charset "utf-8";
|
||||
|
||||
@import "inputs.scss";
|
||||
@import "radios.scss";
|
||||
@import "checkboxes.scss";
|
||||
@import "selects.scss";
|
||||
|
@@ -62,23 +62,22 @@
|
||||
position: absolute;
|
||||
top: -3px;
|
||||
left: -28px;
|
||||
font-size: 2px;
|
||||
content: "";
|
||||
}
|
||||
|
||||
// prettier-ignore
|
||||
& + span::before { /* stylelint-disable-line no-descending-specificity */
|
||||
@include pixelize($checkbox, $colors);
|
||||
@include pixelize(2px, $checkbox, $colors);
|
||||
}
|
||||
// prettier-ignore
|
||||
&:focus + span::before { /* stylelint-disable-line no-descending-specificity */
|
||||
@include pixelize($checkbox-focus, $colors);
|
||||
@include pixelize(2px, $checkbox-focus, $colors);
|
||||
}
|
||||
|
||||
&:checked + span::before {
|
||||
@include pixelize($checkbox-checked, $colors);
|
||||
@include pixelize(2px, $checkbox-checked, $colors);
|
||||
}
|
||||
&:checked:focus + span::before {
|
||||
@include pixelize($checkbox-checked-focus, $colors);
|
||||
@include pixelize(2px, $checkbox-checked-focus, $colors);
|
||||
}
|
||||
}
|
@@ -1,18 +1,17 @@
|
||||
.nes-input,
|
||||
.nes-textarea {
|
||||
@mixin border-style($border, $outline) {
|
||||
@include compact-rounded-corners();
|
||||
@include compact-border-image($border);
|
||||
|
||||
outline-color: $outline;
|
||||
}
|
||||
|
||||
@include compact-rounded-corners();
|
||||
|
||||
width: 100%;
|
||||
padding: 0.5rem 1rem;
|
||||
margin: 4px;
|
||||
|
||||
@include border-style($base-color, map-get($default-colors, "hover"));
|
||||
|
||||
&.is-dark {
|
||||
@include border-style(map-get($default-colors, "normal"), map-get($default-colors, "hover"));
|
||||
|
||||
|
@@ -35,10 +35,9 @@
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
left: -20px;
|
||||
font-size: 2px;
|
||||
content: "";
|
||||
|
||||
@include pixelize($radio, $colors);
|
||||
@include pixelize(2px, $radio, $colors);
|
||||
}
|
||||
|
||||
&:checked:hover,
|
||||
@@ -49,6 +48,6 @@
|
||||
}
|
||||
|
||||
&:checked:focus + span::before {
|
||||
@include pixelize($radio-checked-focus, $colors);
|
||||
@include pixelize(2px, $radio-checked-focus, $colors);
|
||||
}
|
||||
}
|
@@ -31,12 +31,11 @@
|
||||
}
|
||||
|
||||
&::after {
|
||||
@include pixelize($dropdown, $colors);
|
||||
@include pixelize(3px, $dropdown, $colors);
|
||||
|
||||
position: absolute;
|
||||
top: calc(50% - 11px);
|
||||
right: 36px;
|
||||
font-size: 3px;
|
||||
pointer-events: none;
|
||||
content: "";
|
||||
}
|
||||
|
@@ -21,115 +21,129 @@
|
||||
@import "trophy.scss";
|
||||
|
||||
.nes-icon {
|
||||
$default-size: 1px;
|
||||
$icon-size: $default-size * 16;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 16);
|
||||
height: calc(1em * 16);
|
||||
width: $icon-size;
|
||||
height: $icon-size;
|
||||
margin-right: $icon-size;
|
||||
margin-bottom: $icon-size;
|
||||
|
||||
// font size dictates pixel size, everything will adjust
|
||||
// default
|
||||
font-size: 2px;
|
||||
// NOTE: Use `transform: scale()` because cannot use font-size less than 10px on Chrome
|
||||
// default 2px
|
||||
transform: scale(2);
|
||||
transform-origin: top left;
|
||||
|
||||
&.is-small {
|
||||
font-size: 1px;
|
||||
margin: 0;
|
||||
// 1px
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
&.is-medium {
|
||||
font-size: 3px;
|
||||
margin-right: $icon-size * 2;
|
||||
margin-bottom: $icon-size * 2;
|
||||
// 3px
|
||||
transform: scale(3);
|
||||
}
|
||||
|
||||
&.is-large {
|
||||
font-size: 4px;
|
||||
margin-right: $icon-size * 3;
|
||||
margin-bottom: $icon-size * 3;
|
||||
// 4px
|
||||
transform: scale(4);
|
||||
}
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: $default-size * -1;
|
||||
left: $default-size * -1;
|
||||
display: block;
|
||||
content: "";
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&.heart::before {
|
||||
@include pixelize($icon-heart, $icon-heart-colors);
|
||||
@include pixelize($default-size, $icon-heart, $icon-heart-colors);
|
||||
}
|
||||
&.heart.is-empty::before {
|
||||
@include pixelize($icon-heart-empty, $icon-heart-empty-colors);
|
||||
@include pixelize($default-size, $icon-heart-empty, $icon-heart-empty-colors);
|
||||
}
|
||||
|
||||
&.star::before {
|
||||
@include pixelize($icon-star, $icon-star-colors);
|
||||
@include pixelize($default-size, $icon-star, $icon-star-colors);
|
||||
}
|
||||
&.star.is-empty::before {
|
||||
@include pixelize($icon-star-empty, $icon-star-empty-colors);
|
||||
@include pixelize($default-size, $icon-star-empty, $icon-star-empty-colors);
|
||||
}
|
||||
&.star.is-half::before {
|
||||
@include pixelize($icon-star-half, $icon-star-colors);
|
||||
@include pixelize($default-size, $icon-star-half, $icon-star-colors);
|
||||
}
|
||||
&.star.is-transparent::before {
|
||||
@include pixelize($icon-star-transparent, $icon-star-colors);
|
||||
@include pixelize($default-size, $icon-star-transparent, $icon-star-colors);
|
||||
}
|
||||
|
||||
&.trophy::before {
|
||||
@include pixelize($icon-trophy, $icon-trophy-colors);
|
||||
@include pixelize($default-size, $icon-trophy, $icon-trophy-colors);
|
||||
}
|
||||
&.trophy.is-empty::before {
|
||||
@include pixelize($icon-trophy-empty, $icon-trophy-empty-colors);
|
||||
@include pixelize($default-size, $icon-trophy-empty, $icon-trophy-empty-colors);
|
||||
}
|
||||
|
||||
&.like::before {
|
||||
@include pixelize($icon-like, $icon-like-colors);
|
||||
@include pixelize($default-size, $icon-like, $icon-like-colors);
|
||||
}
|
||||
&.like.is-empty::before {
|
||||
@include pixelize($icon-like-empty, $icon-like-empty-colors);
|
||||
@include pixelize($default-size, $icon-like-empty, $icon-like-empty-colors);
|
||||
}
|
||||
|
||||
&.twitter::before {
|
||||
@include pixelize($icon-twitter, $icon-twitter-colors);
|
||||
@include pixelize($default-size, $icon-twitter, $icon-twitter-colors);
|
||||
}
|
||||
|
||||
&.facebook::before {
|
||||
@include pixelize($icon-facebook, $icon-facebook-colors);
|
||||
@include pixelize($default-size, $icon-facebook, $icon-facebook-colors);
|
||||
}
|
||||
|
||||
&.github::before {
|
||||
@include pixelize($icon-github, $icon-github-colors);
|
||||
@include pixelize($default-size, $icon-github, $icon-github-colors);
|
||||
}
|
||||
|
||||
&.youtube::before {
|
||||
@include pixelize($icon-youtube, $icon-youtube-colors);
|
||||
@include pixelize($default-size, $icon-youtube, $icon-youtube-colors);
|
||||
}
|
||||
|
||||
&.close::before {
|
||||
@include pixelize($icon-close, $icon-close-colors);
|
||||
@include pixelize($default-size, $icon-close, $icon-close-colors);
|
||||
}
|
||||
|
||||
&.google::before {
|
||||
@include pixelize($icon-google, $icon-google-colors);
|
||||
@include pixelize($default-size, $icon-google, $icon-google-colors);
|
||||
}
|
||||
|
||||
&.medium::before {
|
||||
@include pixelize($icon-medium, $icon-medium-colors);
|
||||
@include pixelize($default-size, $icon-medium, $icon-medium-colors);
|
||||
}
|
||||
|
||||
&.twitch::before {
|
||||
@include pixelize($icon-twitch, $icon-twitch-colors);
|
||||
@include pixelize($default-size, $icon-twitch, $icon-twitch-colors);
|
||||
}
|
||||
|
||||
&.reddit::before {
|
||||
@include pixelize($icon-reddit, $icon-reddit-colors);
|
||||
@include pixelize($default-size, $icon-reddit, $icon-reddit-colors);
|
||||
}
|
||||
|
||||
&.whatsapp::before {
|
||||
@include pixelize($icon-whatsapp, $icon-whatsapp-colors);
|
||||
@include pixelize($default-size, $icon-whatsapp, $icon-whatsapp-colors);
|
||||
}
|
||||
|
||||
&.gmail::before {
|
||||
@include pixelize($icon-gmail, $icon-gmail-colors);
|
||||
@include pixelize($default-size, $icon-gmail, $icon-gmail-colors);
|
||||
}
|
||||
|
||||
&.linkedin::before {
|
||||
@include pixelize($icon-linkedin, $icon-linkedin-colors);
|
||||
@include pixelize($default-size, $icon-linkedin, $icon-linkedin-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +1,5 @@
|
||||
.nes-ash {
|
||||
// prettier-ignore
|
||||
$ash-colors: (#f8f8ff, #ff614e, #007f7f,
|
||||
#181818, #ffe3c5, #426adb, #4169e1);
|
||||
$ash-colors: (#f8f8ff, #ff614e, #007f7f, #181818, #ffe3c5, #426adb, #4169e1);
|
||||
// prettier-ignore
|
||||
$ash: (
|
||||
(0,0,0,0,4,4,4,4,4,4,0,0,0,0),
|
||||
@@ -20,20 +18,20 @@
|
||||
(4,3,3,4,4,4,4,4,3,3,4,0,0,0),
|
||||
(0,4,4,0,0,0,0,0,4,4,0,0,0,0)
|
||||
);
|
||||
$size: 6px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 14);
|
||||
height: calc(1em * 15);
|
||||
font-size: 6px;
|
||||
width: $size * length(nth($ash, 1));
|
||||
height: $size * length($ash);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($ash, $ash-colors);
|
||||
@include pixelize($size, $ash, $ash-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -20,20 +20,20 @@
|
||||
(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),
|
||||
);
|
||||
$size: 6px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 16);
|
||||
height: calc(1em * 16);
|
||||
font-size: 4px;
|
||||
width: $size * length(nth($bcrikko, 1));
|
||||
height: $size * length($bcrikko);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($bcrikko, $bcrikko-colors);
|
||||
@include pixelize($size, $bcrikko, $bcrikko-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -1,41 +1,39 @@
|
||||
.nes-bulbasaur {
|
||||
// prettier-ignore
|
||||
$bulbasaur-colors: (#000, #8beb46, #2d8d22, #5ceee1,
|
||||
#3fc3b5, #fdfdf5, #ca242a);
|
||||
$bulbasaur-colors: (#000, #8beb46, #2d8d22, #5ceee1, #3fc3b5, #fdfdf5, #ca242a);
|
||||
// prettier-ignore
|
||||
$bulbasaur: (
|
||||
(0,0,0,0,0,0,0,0,0,0,0,0,1,1,1),
|
||||
(0,0,0,0,0,0,0,0,0,0,0,1,2,2,2,1),
|
||||
(0,0,0,0,0,0,0,0,0,1,1,1,2,2,2,1),
|
||||
(0,0,0,0,0,0,0,1,1,2,2,3,2,2,3,2,1,1),
|
||||
(0,0,0,1,1,0,1,2,2,2,3,3,2,2,3,2,2,2,1),
|
||||
(0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0),
|
||||
(0,0,0,0,0,0,0,0,0,0,0,1,2,2,2,1,0,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,0,0,0,0,0),
|
||||
(0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0),
|
||||
);
|
||||
$size: 6px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 20);
|
||||
height: calc(1em * 17);
|
||||
font-size: 6px;
|
||||
width: $size * length(nth($bulbasaur, 1));
|
||||
height: $size * length($bulbasaur);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($bulbasaur, $bulbasaur-colors);
|
||||
@include pixelize($size, $bulbasaur, $bulbasaur-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -1,42 +1,40 @@
|
||||
.nes-charmander {
|
||||
// prettier-ignore
|
||||
$charmander-colors: (#000202, #f77702, #eb2010,
|
||||
#fdfcff, #e5d70a, #e7d70e);
|
||||
$charmander-colors: (#000202, #f77702, #eb2010, #fdfcff, #e5d70a, #e7d70e);
|
||||
// prettier-ignore
|
||||
$charmander: (
|
||||
(0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1),
|
||||
(0,0,0,1,2,2,2,2,1,0,0,0,0,0,0,0,1,3,1),
|
||||
(0,0,1,2,2,2,2,2,2,1,0,0,0,0,0,0,1,3,3,1),
|
||||
(0,0,1,2,2,2,2,2,2,1,0,0,0,0,0,0,1,3,3,1),
|
||||
(0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0),
|
||||
(0,0,0,1,2,2,2,2,1,0,0,0,0,0,0,0,1,3,1,0,0),
|
||||
(0,0,1,2,2,2,2,2,2,1,0,0,0,0,0,0,1,3,3,1,0),
|
||||
(0,0,1,2,2,2,2,2,2,1,0,0,0,0,0,0,1,3,3,1,0),
|
||||
(0,1,2,2,2,2,2,2,2,2,1,0,0,0,0,1,3,3,2,3,1),
|
||||
(1,2,2,2,2,4,1,2,2,2,1,0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0,0,0,1,1,1,0,0,0,0,0,0,0,0)
|
||||
);
|
||||
$size: 6px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 21);
|
||||
height: calc(1em * 18);
|
||||
font-size: 6px;
|
||||
width: $size * length(nth($charmander, 1));
|
||||
height: $size * length($charmander);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($charmander, $charmander-colors);
|
||||
@include pixelize($size, $charmander, $charmander-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -2,12 +2,12 @@
|
||||
$kirby-colors: (#000, #ffaccc, #ff5478);
|
||||
// prettier-ignore
|
||||
$kirby: (
|
||||
(0,0,1,1,0,1,1,1,1,1,0,0,0,0),
|
||||
(0,1,2,2,1,2,2,2,2,2,1,1,0,0),
|
||||
(1,2,2,1,2,2,2,2,2,2,2,2,1,0),
|
||||
(1,2,2,2,2,2,1,2,1,2,2,2,2,1),
|
||||
(1,2,2,2,2,2,1,2,1,2,2,2,2,1,),
|
||||
(1,2,2,2,2,2,1,2,1,2,2,2,2,2,1),
|
||||
(0,0,1,1,0,1,1,1,1,1,0,0,0,0,0,0),
|
||||
(0,1,2,2,1,2,2,2,2,2,1,1,0,0,0,0),
|
||||
(1,2,2,1,2,2,2,2,2,2,2,2,1,0,0,0),
|
||||
(1,2,2,2,2,2,1,2,1,2,2,2,2,1,0,0),
|
||||
(1,2,2,2,2,2,1,2,1,2,2,2,2,1,0,0),
|
||||
(1,2,2,2,2,2,1,2,1,2,2,2,2,2,1,0),
|
||||
(1,2,2,2,3,3,2,2,2,3,3,2,2,2,2,1),
|
||||
(1,2,2,2,2,2,2,1,2,2,2,2,2,2,2,1),
|
||||
(0,1,2,2,2,2,2,1,2,2,2,2,2,2,2,1),
|
||||
@@ -15,24 +15,24 @@
|
||||
(0,1,2,2,2,2,2,2,2,2,2,1,3,3,3,1),
|
||||
(0,0,1,2,2,2,2,2,2,2,1,3,3,3,3,1),
|
||||
(0,0,1,1,2,2,2,2,2,2,1,3,3,3,3,1),
|
||||
(0,1,3,3,1,1,2,2,2,1,3,3,3,3,1),
|
||||
(1,3,3,3,3,3,1,1,1,1,1,3,3,1),
|
||||
(0,1,1,1,1,1,1,0,0,0,1,1,1,0)
|
||||
(0,1,3,3,1,1,2,2,2,1,3,3,3,3,1,0),
|
||||
(1,3,3,3,3,3,1,1,1,1,1,3,3,1,0,0),
|
||||
(0,1,1,1,1,1,1,0,0,0,1,1,1,0,0,0)
|
||||
);
|
||||
$size: 6px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 16);
|
||||
height: calc(1em * 16);
|
||||
font-size: 6px;
|
||||
width: $size * length(nth($kirby, 1));
|
||||
height: $size * length($kirby);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($kirby, $kirby-colors);
|
||||
@include pixelize($size, $kirby, $kirby-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +1,5 @@
|
||||
.nes-mario {
|
||||
// prettier-ignore
|
||||
$mario-colors: (#f81c2f, #65352b, #ffbb8e, #000,
|
||||
#1560ad, #aeaeac, #fef102);
|
||||
$mario-colors: (#f81c2f, #65352b, #ffbb8e, #000, #1560ad, #aeaeac, #fef102);
|
||||
// prettier-ignore
|
||||
$mario: (
|
||||
(0,0,0,0,1,1,1,1,1,0,0,0,0,0),
|
||||
@@ -21,20 +19,20 @@
|
||||
(0,0,2,2,2,0,0,0,0,2,2,2,0,0),
|
||||
(0,2,2,2,2,0,0,0,0,2,2,2,2,0)
|
||||
);
|
||||
$size: 6px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 14);
|
||||
height: calc(1em * 16);
|
||||
font-size: 6px;
|
||||
width: $size * length(nth($mario, 1));
|
||||
height: $size * length($mario);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($mario, $mario-colors);
|
||||
@include pixelize($size, $mario, $mario-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -14,20 +14,20 @@
|
||||
(2,1,1,1,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)
|
||||
);
|
||||
$size: 4px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 16);
|
||||
height: calc(1em * 11);
|
||||
font-size: 3px;
|
||||
width: $size * length(nth($logo, 1));
|
||||
height: $size * length($logo);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($logo, $logo-colors);
|
||||
@include pixelize($size, $logo, $logo-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -14,20 +14,20 @@
|
||||
(2,3,3,3,3,3,3,3,3,3,3,3,3,3,2),
|
||||
(2,2,2,2,2,2,2,2,2,2,2,2,2,2,2)
|
||||
);
|
||||
$size: 4px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 16);
|
||||
height: calc(1em * 11);
|
||||
font-size: 3px;
|
||||
width: $size * length(nth($logo, 1));
|
||||
height: $size * length($logo);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($logo, $logo-colors);
|
||||
@include pixelize($size, $logo, $logo-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -36,21 +36,21 @@
|
||||
(0,0,0,0,0,1,0,1,1,0,1,0,0,0),
|
||||
(0,0,0,0,1,0,1,0,0,1,0,1,0,0)
|
||||
);
|
||||
$size: 6px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 14);
|
||||
height: calc(1em * 15);
|
||||
font-size: 6px;
|
||||
width: $size * length(nth($octocat-1, 1));
|
||||
height: $size * length($octocat-1);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($octocat-1, $octocat-colors);
|
||||
@include pixelize($size, $octocat-1, $octocat-colors);
|
||||
}
|
||||
|
||||
&.animate::before {
|
||||
@@ -58,11 +58,8 @@
|
||||
}
|
||||
|
||||
@keyframes wave {
|
||||
0% {
|
||||
@include pixelize($octocat-1, $octocat-colors);
|
||||
}
|
||||
50% {
|
||||
@include pixelize($octocat-2, $octocat-colors);
|
||||
@include pixelize($size, $octocat-2, $octocat-colors);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -24,20 +24,20 @@
|
||||
(0,3,3,2,2,2,1,3),
|
||||
(0,0,3,3,3,3,3,3)
|
||||
);
|
||||
$size: 6px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 8);
|
||||
height: calc(1em * 21);
|
||||
font-size: 6px;
|
||||
width: $size * length(nth($phone, 1));
|
||||
height: $size * length($phone);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($phone, $phone-colors);
|
||||
@include pixelize($size, $phone, $phone-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -19,20 +19,20 @@
|
||||
(0,0,0,0,0,0,0,0,0,0,0,0,0,0),
|
||||
(0,0,0,0,0,0,0,0,0,0,0,0,0,0),
|
||||
);
|
||||
$size: 6px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 14);
|
||||
height: calc(1em * 14);
|
||||
font-size: 6px;
|
||||
width: $size * length(nth($pokeball, 1));
|
||||
height: $size * length($pokeball);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($pokeball, $pokeball-colors);
|
||||
@include pixelize($size, $pokeball, $pokeball-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
$smartphone-colors: (#fff, #060606);
|
||||
// prettier-ignore
|
||||
$smartphone: (
|
||||
(0,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,0),
|
||||
(2,2,1,1,1,1,1,1,1,1,1,1,1,2,2),
|
||||
(2,1,1,1,2,2,2,2,2,2,2,1,1,1,2),
|
||||
(2,1,1,1,1,1,1,1,1,1,1,1,1,1,2),
|
||||
@@ -28,22 +28,22 @@
|
||||
(2,1,1,1,1,1,1,2,2,1,1,1,1,1,2),
|
||||
(2,1,1,1,1,1,1,2,2,1,1,1,1,1,2),
|
||||
(2,2,1,1,1,1,1,1,1,1,1,1,1,2,2),
|
||||
(0,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,0)
|
||||
);
|
||||
$size: 6px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 16);
|
||||
height: calc(1em * 27);
|
||||
font-size: 6px;
|
||||
width: $size * length(nth($smartphone, 1));
|
||||
height: $size * length($smartphone);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($smartphone, $smartphone-colors);
|
||||
@include pixelize($size, $smartphone, $smartphone-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -14,20 +14,20 @@
|
||||
(0,1,2,2,2,2,2,2,2,2,2,2,2,1,0),
|
||||
(0,0,1,1,1,1,1,1,1,1,1,1,1,0,0)
|
||||
);
|
||||
$size: 4px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 16);
|
||||
height: calc(1em * 11);
|
||||
font-size: 3px;
|
||||
width: $size * length(nth($logo, 1));
|
||||
height: $size * length($logo);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($logo, $logo-colors);
|
||||
@include pixelize($size, $logo, $logo-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -15,20 +15,20 @@
|
||||
(0,1,2,2,2,2,2,2,2,2,2,2,2,1,0),
|
||||
(0,0,1,1,1,1,1,1,1,1,1,1,1,0,0)
|
||||
);
|
||||
$size: 4px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 16);
|
||||
height: calc(1em * 11);
|
||||
font-size: 3px;
|
||||
width: $size * length(nth($logo, 1));
|
||||
height: $size * length($logo);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($logo, $logo-colors);
|
||||
@include pixelize($size, $logo, $logo-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -1,41 +1,39 @@
|
||||
.nes-squirtle {
|
||||
// prettier-ignore
|
||||
$squirtle-colors: (#000, #9cf, #cb6633,
|
||||
#9fa1a1, #fff, #f89934, #ff3);
|
||||
$squirtle-colors: (#000, #9cf, #cb6633, #9fa1a1, #fff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,5,6,6,1,0,0,0,0,0),
|
||||
(0,0,1,2,1,1,1,1,2,2,2,2,5,6,6,1,0,0,0,0,0),
|
||||
(0,0,0,1,1,7,7,1,2,2,2,1,5,6,6,1,0,0,0,0,0),
|
||||
(0,0,0,0,0,1,7,7,1,1,1,1,5,6,6,1,0,0,0,0,0),
|
||||
(0,0,0,0,1,2,1,7,7,7,7,7,1,5,1,0,0,0,0,0,0),
|
||||
(0,0,0,0,0,1,1,1,1,7,7,2,1,5,1,0,0,0,0,0,0),
|
||||
(0,0,0,0,0,0,0,0,1,1,1,2,1,1,0,0,0,0,0,0,0),
|
||||
(0,0,0,0,0,0,0,0,0,1,2,2,2,1,0,0,0,0,0,0,0),
|
||||
(0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0),
|
||||
);
|
||||
$size: 6px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: calc(1em * 21);
|
||||
height: calc(1em * 17);
|
||||
font-size: 6px;
|
||||
width: $size * length(nth($squirtle, 1));
|
||||
height: $size * length($squirtle);
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: -1em;
|
||||
left: -1em;
|
||||
top: -$size;
|
||||
left: -$size;
|
||||
content: "";
|
||||
background: transparent;
|
||||
|
||||
@include pixelize($squirtle, $squirtle-colors);
|
||||
@include pixelize($size, $squirtle, $squirtle-colors);
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@mixin pixelize($matrix, $colors, $default-color: null) {
|
||||
@mixin pixelize($size, $matrix, $colors, $default-color: null) {
|
||||
$ret: "";
|
||||
$moz: "";
|
||||
@if ($default-color == null) {
|
||||
@@ -37,18 +37,18 @@
|
||||
|
||||
$color: nth($colors, $dot);
|
||||
@if $color == $default-color {
|
||||
$ret: $ret + $j + "em " + $i + "em";
|
||||
$moz: $moz + $j + "em " + $i + "em 0 0.020em";
|
||||
$ret: $ret + ($j * $size) + " " + ($i * $size);
|
||||
$moz: $moz + ($j * $size) + " " + ($i * $size) + "0 0.020px";
|
||||
} @else {
|
||||
$ret: $ret + $j + "em " + $i + "em " + $color;
|
||||
$moz: $moz + $j + "em " + $i + "em 0 0.020em " + $color;
|
||||
$ret: $ret + ($j * $size) + " " + ($i * $size) + "" + $color;
|
||||
$moz: $moz + ($j * $size) + " " + ($i * $size) + "0 0.020px " + $color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
width: $size;
|
||||
height: $size;
|
||||
color: $default-color;
|
||||
box-shadow: unquote($ret);
|
||||
@-moz-document url-prefix() {
|
||||
|
@@ -16,6 +16,7 @@
|
||||
|
||||
border-image-slice: 3;
|
||||
border-image-width: 3;
|
||||
border-image-repeat: space;
|
||||
|
||||
@if $isDark {
|
||||
@include border-image($color-white);
|
||||
@@ -33,6 +34,7 @@
|
||||
|
||||
border-image-slice: 2;
|
||||
border-image-width: 2;
|
||||
border-image-repeat: space;
|
||||
|
||||
@if $isDark {
|
||||
@include compact-border-image($color-white);
|
||||
|
Reference in New Issue
Block a user