Skip to content

Commit

Permalink
Tweak map styling
Browse files Browse the repository at this point in the history
  • Loading branch information
vkoves committed Jul 19, 2023
1 parent 35a58e2 commit cb83086
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions src/styles/power-plant-details.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.power-plant-page .top-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 3rem;
margin-top: 2rem;
}
Expand All @@ -21,7 +22,9 @@
}

.power-plant-page .map-img {
width: 400px;
width: 20rem;
max-width: 100%;
margin-left: auto;
}

.power-plant-page .power-plant-profile .state-icon {
Expand Down Expand Up @@ -97,30 +100,47 @@
margin-top: 0.25rem;
}

@media (max-width: 1199px) {
.power-plant-page .power-plant-profile img {
width: 8rem;
}
}

/** Tablet & mobile styling */
@media (max-width: 991px) {
.power-plant-page .top-row {
flex-direction: column;
align-items: flex-start;
gap: 0rem;
}

.power-plant-page .power-plant-profile {
padding: 1rem;
}

.power-plant-page .power-plant-profile img {
width: 6rem;
}

.power-plant-page .power-plant-profile .state-icon {
font-size: 2rem;
bottom: -15%;
right: -15%;
}

.power-plant-page .map-img {
margin-top: 2rem;
margin-left: 0;
}

.power-plant-page .stat-panel dl.detailed-emissions > div {
width: 100%;
}
}

/** Mobile Styling */
@media (max-width: 575px) {
.power-plant-page .top-row {
flex-direction: column;
align-items: flex-start;
gap: 0rem;
.power-plant-page .map-img {
width: 14rem;
}
}

0 comments on commit cb83086

Please sign in to comment.