diff --git a/docs/icons.stories.js b/docs/icons.stories.js index 8410653..3f89ddb 100644 --- a/docs/icons.stories.js +++ b/docs/icons.stories.js @@ -15,6 +15,8 @@ stories.add('icon', () => { 'icon youtube': 'icon youtube', 'icon close': 'icon close', pokeball: 'pokeball', + smartphone: 'smartphone', + phone: 'phone', 'octocat animate': 'octocat animate', 'icon trophy': 'icon trophy', 'nes-logo': 'nes-logo', @@ -24,6 +26,7 @@ stories.add('icon', () => { }, 'icon twitter'); const selectedSize = radios('size', { default: '', + 'is-small': 'is-small', 'is-medium': 'is-medium', 'is-large': 'is-large', }, ''); diff --git a/index.html b/index.html index b33b579..b635a68 100644 --- a/index.html +++ b/index.html @@ -179,16 +179,19 @@

Reaction

+ + + @@ -198,34 +201,42 @@

SNS

+ + + + + + + + @@ -235,17 +246,21 @@

Others

+ + + +
diff --git a/scss/form/inputs.scss b/scss/form/inputs.scss index 1ac736e..b758627 100644 --- a/scss/form/inputs.scss +++ b/scss/form/inputs.scss @@ -9,7 +9,7 @@ -4px 0 $border; } - max-width: 100%; + width: 100%; padding: 0.5rem 1rem; margin: 4px; border: none; diff --git a/scss/icons/icons.scss b/scss/icons/icons.scss index 25c095a..047934f 100644 --- a/scss/icons/icons.scss +++ b/scss/icons/icons.scss @@ -55,6 +55,9 @@ &.trophy::before { @include pixelize($icon-trophy, $icon-trophy-colors, $px); } + &.trophy.is-empty::before { + @include pixelize($icon-trophy-empty, $icon-trophy-empty-colors, $px); + } &.like::before { @include pixelize($icon-like, $icon-like-colors, $px); @@ -89,12 +92,12 @@ &.medium::before { @include pixelize($icon-medium, $icon-medium-colors, $px); - } - + } + &.twitch::before { @include pixelize($icon-twitch, $icon-twitch-colors, $px); } - + &.reddit::before { @include pixelize($icon-reddit, $icon-reddit-colors, $px); } @@ -103,6 +106,10 @@ // default @include setup(2px); + &.is-small { + @include setup(1px); + } + &.is-medium { @include setup(3px); } diff --git a/scss/icons/trophy.scss b/scss/icons/trophy.scss index 8b30005..ed18eb3 100644 --- a/scss/icons/trophy.scss +++ b/scss/icons/trophy.scss @@ -16,10 +16,26 @@ $icon-trophy: ( (0,0,0,0,0,0,2,3,2,0,0,0,0,0,0,0), (0,0,0,0,0,2,2,3,2,2,0,0,0,0,0,0), (0,0,0,0,2,3,3,3,3,4,2,0,0,0,0,0), - (0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0), + (0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0) ); -// 2 black -// 3 yellow -// 1 white -// 4 orange +$icon-trophy-empty-colors: (#adafbb); +// prettier-ignore +$icon-trophy-empty: ( + (0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0), + (0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0), + (1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0), + (1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0), + (1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0), + (0,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0), + (0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0), + (0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0), + (0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0), + (0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0), + (0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0), + (0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0), + (0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0), + (0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0), + (0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0), + (0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0) +); diff --git a/scss/pixel-arts/_index.scss b/scss/pixel-arts/_index.scss index 86a1138..8c74223 100644 --- a/scss/pixel-arts/_index.scss +++ b/scss/pixel-arts/_index.scss @@ -7,3 +7,5 @@ @import "bcrikko.scss"; @import "octocat.scss"; @import "pokeball.scss"; +@import "phone.scss"; +@import "smartphone.scss"; diff --git a/scss/pixel-arts/phone.scss b/scss/pixel-arts/phone.scss new file mode 100644 index 0000000..398c13b --- /dev/null +++ b/scss/pixel-arts/phone.scss @@ -0,0 +1,43 @@ +.phone { + $px: 6px; + $phone-colors: (#596985, #3c4665, #000); + // prettier-ignore + $phone: ( + (0,0,3,3,3,3,3,3), + (0,3,3,2,2,2,1,3), + (3,3,2,2,2,2,1,3), + (3,2,2,2,2,2,1,3), + (3,2,2,2,2,2,1,3), + (3,2,2,2,2,2,1,3), + (3,2,2,3,3,3,3,3), + (3,2,2,3,0,0,0,0), + (3,2,2,3,0,0,0,0), + (3,2,2,3,0,0,0,0), + (3,2,2,3,0,0,0,0), + (3,2,2,3,0,0,0,0), + (3,2,2,3,0,0,0,0), + (3,2,2,3,0,0,0,0), + (3,2,2,3,3,3,3,3), + (3,2,2,2,2,2,1,3), + (3,2,2,2,2,2,1,3), + (3,2,2,2,2,2,1,3), + (3,3,2,2,2,2,1,3), + (0,3,3,2,2,2,1,3), + (0,0,3,3,3,3,3,3) + ); + + position: relative; + display: inline-block; + width: $px * 8; + height: $px * 21; + + &::before { + position: absolute; + top: $px * -1; + left: $px * -1; + content: ""; + background: transparent; + + @include pixelize($phone, $phone-colors, $px); + } +} diff --git a/scss/pixel-arts/smartphone.scss b/scss/pixel-arts/smartphone.scss new file mode 100644 index 0000000..2bdec75 --- /dev/null +++ b/scss/pixel-arts/smartphone.scss @@ -0,0 +1,49 @@ +.smartphone { + $px: 6px; + $smartphone-colors: (#fff, #060606); + // prettier-ignore + $smartphone: ( + (0,2,2,2,2,2,2,2,2,2,2,2,2,2), + (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), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,2,2,2,2,2,2,2,2,2,2,2,1,2), + (2,1,1,1,1,1,1,1,1,1,1,1,1,1,2), + (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) + ); + + position: relative; + display: inline-block; + width: $px * 16; + height: $px * 27; + + &::before { + position: absolute; + top: $px * -1; + left: $px * -1; + content: ""; + background: transparent; + + @include pixelize($smartphone, $smartphone-colors, $px); + } +}