From 4690b3597ed7698fa3517355217a72b32ee93a91 Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Sat, 13 Mar 2021 05:28:43 +0100 Subject: [PATCH] =?UTF-8?q?pok=C3=A9mon=20related=20style=20stuff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- style/shiny/pkmn-types/bed.png | 3 + style/shiny/pkmn-types/bed.svg | 68 ++++++++++++++ style/shiny/pkmn-types/bug.svg | 14 +++ style/shiny/pkmn-types/dark.svg | 10 +++ style/shiny/pkmn-types/dragon.svg | 13 +++ style/shiny/pkmn-types/electric.svg | 10 +++ style/shiny/pkmn-types/fairy.svg | 10 +++ style/shiny/pkmn-types/fighting.svg | 13 +++ style/shiny/pkmn-types/fire.svg | 10 +++ style/shiny/pkmn-types/flying.svg | 10 +++ style/shiny/pkmn-types/ghost.svg | 10 +++ style/shiny/pkmn-types/grass.svg | 10 +++ style/shiny/pkmn-types/ground.svg | 10 +++ style/shiny/pkmn-types/ice.svg | 19 ++++ style/shiny/pkmn-types/normal.svg | 10 +++ style/shiny/pkmn-types/poison.svg | 10 +++ style/shiny/pkmn-types/psychic.svg | 10 +++ style/shiny/pkmn-types/rock.svg | 10 +++ style/shiny/pkmn-types/steel.svg | 10 +++ style/shiny/pkmn-types/water.svg | 10 +++ style/shiny/pkmn.css | 134 ++++++++++++++++++++++++++++ style/shiny/single.css | 1 + 22 files changed, 405 insertions(+) create mode 100644 style/shiny/pkmn-types/bed.png create mode 100644 style/shiny/pkmn-types/bed.svg create mode 100644 style/shiny/pkmn-types/bug.svg create mode 100644 style/shiny/pkmn-types/dark.svg create mode 100644 style/shiny/pkmn-types/dragon.svg create mode 100644 style/shiny/pkmn-types/electric.svg create mode 100644 style/shiny/pkmn-types/fairy.svg create mode 100644 style/shiny/pkmn-types/fighting.svg create mode 100644 style/shiny/pkmn-types/fire.svg create mode 100644 style/shiny/pkmn-types/flying.svg create mode 100644 style/shiny/pkmn-types/ghost.svg create mode 100644 style/shiny/pkmn-types/grass.svg create mode 100644 style/shiny/pkmn-types/ground.svg create mode 100644 style/shiny/pkmn-types/ice.svg create mode 100644 style/shiny/pkmn-types/normal.svg create mode 100644 style/shiny/pkmn-types/poison.svg create mode 100644 style/shiny/pkmn-types/psychic.svg create mode 100644 style/shiny/pkmn-types/rock.svg create mode 100644 style/shiny/pkmn-types/steel.svg create mode 100644 style/shiny/pkmn-types/water.svg create mode 100644 style/shiny/pkmn.css diff --git a/style/shiny/pkmn-types/bed.png b/style/shiny/pkmn-types/bed.png new file mode 100644 index 0000000..f7db4b3 --- /dev/null +++ b/style/shiny/pkmn-types/bed.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee882e8eb458bf0fdf6dfdd7334749264c5210e455b5b479462ced6385e61647 +size 922 diff --git a/style/shiny/pkmn-types/bed.svg b/style/shiny/pkmn-types/bed.svg new file mode 100644 index 0000000..ce967b4 --- /dev/null +++ b/style/shiny/pkmn-types/bed.svg @@ -0,0 +1,68 @@ + + + +image/svg+xml + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/bug.svg b/style/shiny/pkmn-types/bug.svg new file mode 100644 index 0000000..5a362d1 --- /dev/null +++ b/style/shiny/pkmn-types/bug.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/dark.svg b/style/shiny/pkmn-types/dark.svg new file mode 100644 index 0000000..601213d --- /dev/null +++ b/style/shiny/pkmn-types/dark.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/dragon.svg b/style/shiny/pkmn-types/dragon.svg new file mode 100644 index 0000000..4f33c74 --- /dev/null +++ b/style/shiny/pkmn-types/dragon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/electric.svg b/style/shiny/pkmn-types/electric.svg new file mode 100644 index 0000000..0897245 --- /dev/null +++ b/style/shiny/pkmn-types/electric.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/fairy.svg b/style/shiny/pkmn-types/fairy.svg new file mode 100644 index 0000000..226ca71 --- /dev/null +++ b/style/shiny/pkmn-types/fairy.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/fighting.svg b/style/shiny/pkmn-types/fighting.svg new file mode 100644 index 0000000..14769fd --- /dev/null +++ b/style/shiny/pkmn-types/fighting.svg @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/fire.svg b/style/shiny/pkmn-types/fire.svg new file mode 100644 index 0000000..5cd2b12 --- /dev/null +++ b/style/shiny/pkmn-types/fire.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/flying.svg b/style/shiny/pkmn-types/flying.svg new file mode 100644 index 0000000..7f75ef2 --- /dev/null +++ b/style/shiny/pkmn-types/flying.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/ghost.svg b/style/shiny/pkmn-types/ghost.svg new file mode 100644 index 0000000..5e34993 --- /dev/null +++ b/style/shiny/pkmn-types/ghost.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/grass.svg b/style/shiny/pkmn-types/grass.svg new file mode 100644 index 0000000..4d68edc --- /dev/null +++ b/style/shiny/pkmn-types/grass.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/ground.svg b/style/shiny/pkmn-types/ground.svg new file mode 100644 index 0000000..9fc00f7 --- /dev/null +++ b/style/shiny/pkmn-types/ground.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/ice.svg b/style/shiny/pkmn-types/ice.svg new file mode 100644 index 0000000..4c723bc --- /dev/null +++ b/style/shiny/pkmn-types/ice.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/normal.svg b/style/shiny/pkmn-types/normal.svg new file mode 100644 index 0000000..051ee93 --- /dev/null +++ b/style/shiny/pkmn-types/normal.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/poison.svg b/style/shiny/pkmn-types/poison.svg new file mode 100644 index 0000000..d49d5cb --- /dev/null +++ b/style/shiny/pkmn-types/poison.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/psychic.svg b/style/shiny/pkmn-types/psychic.svg new file mode 100644 index 0000000..ac57ed5 --- /dev/null +++ b/style/shiny/pkmn-types/psychic.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/rock.svg b/style/shiny/pkmn-types/rock.svg new file mode 100644 index 0000000..9c5914c --- /dev/null +++ b/style/shiny/pkmn-types/rock.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/steel.svg b/style/shiny/pkmn-types/steel.svg new file mode 100644 index 0000000..1b57e4f --- /dev/null +++ b/style/shiny/pkmn-types/steel.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn-types/water.svg b/style/shiny/pkmn-types/water.svg new file mode 100644 index 0000000..ce56188 --- /dev/null +++ b/style/shiny/pkmn-types/water.svg @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/style/shiny/pkmn.css b/style/shiny/pkmn.css new file mode 100644 index 0000000..4a4cd5b --- /dev/null +++ b/style/shiny/pkmn.css @@ -0,0 +1,134 @@ +.pkmn-type, .pkmn-move { + --icon-size: 20px; +} + +.pkmn-type { + text-transform: uppercase; + font-size: 80%; + font-weight: 600; + text-shadow: none; + padding: 3px 4px 2px calc(var(--offset) + 0.4ex); + background: + var(--type-sym) left center no-repeat, + linear-gradient(105deg, + var(--type-col) 0, + var(--type-col) var(--offset), + #5d4e5d calc(var(--offset) + 1px) + ); + --offset: calc(var(--icon-size) * 1.5); +} + +.pkmn-move::before { + content: var(--type-sym); + display: inline-block; + height: var(--icon-size); + width: var(--icon-size); + vertical-align: -15%; + margin-right: 0.4ex; +} + +.pkmn-type + .pkmn-type { + margin-left: 0.25ex; +} + +.pkmn-species { + text-transform: uppercase; + font-weight: 700; + font-size: 75%; +} + +.pkmn-stats dt { + font-size: 100%; + font-weight: 700; +} + +.pkmn-stats table { + width: 80%; + text-align: center; + margin: 0; +} + + + +.bug { + --type-col: #83c300; + --type-sym: url('pkmn-types/bug.svg'); +} +.dark { + --type-col: #5b5466; + --type-sym: url('pkmn-types/dark.svg'); +} +.dragon { + --type-col: #0a6cc2; + --type-sym: url('pkmn-types/dragon.svg'); +} +.electric { + --type-col: #fbd100; + --type-sym: url('pkmn-types/electric.svg'); +} +.fairy { + --type-col: #ed9be8; + --type-sym: url('pkmn-types/fairy.svg'); +} +.fighting { + --type-col: #e0306a; + --type-sym: url('pkmn-types/fighting.svg'); +} +.fire { + --type-col: #ff9741; + --type-sym: url('pkmn-types/fire.svg'); +} +.flying { + --type-col: #89aae3; + --type-sym: url('pkmn-types/flying.svg'); +} +.ghost { + --type-col: #4c6ab2; + --type-sym: url('pkmn-types/ghost.svg'); +} +.grass { + --type-col: #38bf4b; + --type-sym: url('pkmn-types/grass.svg'); +} +.ground { + --type-col: #e87236; + --type-sym: url('pkmn-types/ground.svg'); +} +.ice { + --type-col: #4cd1c0; + --type-sym: url('pkmn-types/ice.svg'); +} +.normal { + --type-col: #919aa2; + --type-sym: url('pkmn-types/normal.svg'); +} +.poison { + --type-col: #b567ce; + --type-sym: url('pkmn-types/poison.svg'); +} +.psychic { + --type-col: #ff6675; + --type-sym: url('pkmn-types/psychic.svg'); +} +.rock { + --type-col: #c8b686; + --type-sym: url('pkmn-types/rock.svg'); +} +.steel { + --type-col: #5a8ea2; + --type-sym: url('pkmn-types/steel.svg'); +} +.water { + --type-col: #5090d6; + --type-sym: url('pkmn-types/water.svg'); +} + +.bed { + /* inkscape notes: + * 340 ÷ 360 × 255 ≃ 241 + * 0.83 × 255 ≃ 212 + * 0.68 × 255 ≃ 173 + */ + --type-col: hsl(340deg, 83%, 68%); + --type-sym: url('pkmn-types/bed.svg'); +} diff --git a/style/shiny/single.css b/style/shiny/single.css index 3e6560e..c218cbb 100644 --- a/style/shiny/single.css +++ b/style/shiny/single.css @@ -1,5 +1,6 @@ @import url(base.css); @import url(nsfw-warning.css); +@import url(pkmn.css); :root { --image-width: 1000px;