diff options
-rw-r--r-- | app/assets/stylesheets/pokeviewer/pokemon.css.scss | 27 | ||||
-rw-r--r-- | app/helpers/pokeviewer/pokemon_helper.rb | 2 |
2 files changed, 28 insertions, 1 deletions
diff --git a/app/assets/stylesheets/pokeviewer/pokemon.css.scss b/app/assets/stylesheets/pokeviewer/pokemon.css.scss index c935f4f..1b1ce5d 100644 --- a/app/assets/stylesheets/pokeviewer/pokemon.css.scss +++ b/app/assets/stylesheets/pokeviewer/pokemon.css.scss | |||
@@ -93,6 +93,10 @@ | |||
93 | .party-icon { | 93 | .party-icon { |
94 | display: inline-block; | 94 | display: inline-block; |
95 | vertical-align: middle; | 95 | vertical-align: middle; |
96 | |||
97 | img { | ||
98 | image-rendering: pixelated; | ||
99 | } | ||
96 | } | 100 | } |
97 | 101 | ||
98 | .party-name { | 102 | .party-name { |
@@ -134,6 +138,10 @@ | |||
134 | width: 32px; | 138 | width: 32px; |
135 | height: 32px; | 139 | height: 32px; |
136 | } | 140 | } |
141 | |||
142 | img { | ||
143 | image-rendering: pixelated; | ||
144 | } | ||
137 | } | 145 | } |
138 | } | 146 | } |
139 | } | 147 | } |
@@ -164,6 +172,10 @@ | |||
164 | 172 | ||
165 | li { | 173 | li { |
166 | display: block; | 174 | display: block; |
175 | |||
176 | img { | ||
177 | image-rendering: pixelated; | ||
178 | } | ||
167 | } | 179 | } |
168 | } | 180 | } |
169 | 181 | ||
@@ -214,6 +226,7 @@ | |||
214 | 226 | ||
215 | .pokemon-ball { | 227 | .pokemon-ball { |
216 | margin: -8px; | 228 | margin: -8px; |
229 | image-rendering: pixelated; | ||
217 | } | 230 | } |
218 | 231 | ||
219 | .pokemon-name { | 232 | .pokemon-name { |
@@ -252,10 +265,15 @@ | |||
252 | padding: 4px; | 265 | padding: 4px; |
253 | position: relative; | 266 | position: relative; |
254 | 267 | ||
268 | img { | ||
269 | image-rendering: pixelated; | ||
270 | } | ||
271 | |||
255 | .pkv-shiny-star { | 272 | .pkv-shiny-star { |
256 | position: absolute; | 273 | position: absolute; |
257 | top: 0; | 274 | top: 0; |
258 | right: -1.5em; | 275 | right: -1.5em; |
276 | image-rendering: pixelated; | ||
259 | } | 277 | } |
260 | } | 278 | } |
261 | } | 279 | } |
@@ -282,10 +300,15 @@ | |||
282 | img { | 300 | img { |
283 | vertical-align: bottom; | 301 | vertical-align: bottom; |
284 | margin: -4px -4px -4px -8px; | 302 | margin: -4px -4px -4px -8px; |
303 | image-rendering: pixelated; | ||
285 | } | 304 | } |
286 | } | 305 | } |
287 | } | 306 | } |
288 | 307 | ||
308 | .pkv-type { | ||
309 | image-rendering: pixelated; | ||
310 | } | ||
311 | |||
289 | table { | 312 | table { |
290 | border-spacing: 0; | 313 | border-spacing: 0; |
291 | width: 100%; | 314 | width: 100%; |
@@ -464,6 +487,10 @@ | |||
464 | 487 | ||
465 | li { | 488 | li { |
466 | display: block; | 489 | display: block; |
490 | |||
491 | img { | ||
492 | image-rendering: pixelated; | ||
493 | } | ||
467 | } | 494 | } |
468 | } | 495 | } |
469 | } | 496 | } |
diff --git a/app/helpers/pokeviewer/pokemon_helper.rb b/app/helpers/pokeviewer/pokemon_helper.rb index 3c9cfe6..4c2f9de 100644 --- a/app/helpers/pokeviewer/pokemon_helper.rb +++ b/app/helpers/pokeviewer/pokemon_helper.rb | |||
@@ -120,7 +120,7 @@ module Pokeviewer | |||
120 | end | 120 | end |
121 | 121 | ||
122 | def image_for_type(type) | 122 | def image_for_type(type) |
123 | image_tag "pokeviewer/types/#{type}.gif" | 123 | image_tag "pokeviewer/types/#{type}.gif", class: "pkv-type" |
124 | end | 124 | end |
125 | 125 | ||
126 | def move_details(revision, index) | 126 | def move_details(revision, index) |