From eddeb2e48f146821877e0aa8342065be03a11a31 Mon Sep 17 00:00:00 2001 From: Lawand Othman Date: Wed, 15 Jan 2020 23:39:24 +0000 Subject: [PATCH] tidy CSS --- public/style.css | 29 ++++------------------------- views/index.html | 4 +--- 2 files changed, 5 insertions(+), 28 deletions(-) diff --git a/public/style.css b/public/style.css index 2dbe003..21040f2 100644 --- a/public/style.css +++ b/public/style.css @@ -8,10 +8,12 @@ body { .type { text-transform: capitalize; - margin: auto; text-align: center; text-transform: uppercase; color: white; + padding: 2px 10px; + border-radius: 10px; + margin: 0px 5px 0px 5px; } .pokedex { @@ -44,11 +46,11 @@ body { .image { height: 180px; + margin: 10px 0px 10px 0px; } .fire { background-color: #fd7d24; - margin-left: auto; } .flying { @@ -117,26 +119,3 @@ body { .poison { background-color: #b97fc9; } -.fire, -.flying, -.electric, -.grass, -.water, -.psychic, -.fighting, -.bug, -.normal, -.dragon, -.fairy, -.rock, -.ground, -.steel, -.ice, -.ghost, -.dark, -.poison { - padding: 2px 10px; - border-radius: 10px; - margin-left: 5px; - margin-right: 5px; -} diff --git a/views/index.html b/views/index.html index 9303b0a..430d3b9 100644 --- a/views/index.html +++ b/views/index.html @@ -34,12 +34,10 @@

Pokédex

-
{%for type in pokemon.data.types%} - {{type.type.name}} + {{type.type.name}} {%endfor%} {%endfor%} -