Skip to content

5 page #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Create DetailCard.css
  • Loading branch information
shafiqns authored Jan 26, 2023
commit bf5a5ad2f04e20c7d2a68ddd58e0b10450f81e3f
84 changes: 84 additions & 0 deletions src/components/DetailCard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
.card-container {
width: 80vw;
height: auto;
}

.pokemon-name {
font-size: xx-large;
font-weight: bold;
line-height: 0%;
text-transform: capitalize;
}

.top-content {
display: grid;
}

.pokemon-img {
width: 100%;
max-height: 200px;
object-fit: cover;
}

table {
width: 100%;
text-align: left;
padding: 5px;
border: 1px aliceblue solid;
}

td, th {
text-transform: capitalize;
}

.table-wrapper {
display: flex;
align-items: center;
}

.barchart-wrapper {
width: 100%;
padding-top: 20px;
margin: 0 auto;
}

.bar-box {
background-color: #302e2e;
width: 150px;
height: 6px;
}

.progress-bar {
background-color: yellow;
height: 6px;
}

button {
padding: 5px;
background-color: yellow;
color: black;
margin-top: 20px;
}

@media only screen and (min-width: 770px) {
.card-container {
width: 600px;
}
.top-content {
grid-template-columns: 50% 50%;
}
.pokemon-img {
width: 80%;
height: auto;
max-height: none;
object-fit: cover;
}

.barchart-wrapper {
padding-top: 0;
}

.bar-box {
width: 200px;
}
}