Skip to content

Commit

Permalink
Fix proportions for images on cards
Browse files Browse the repository at this point in the history
  • Loading branch information
peters-rebecca committed Feb 4, 2025
1 parent 3366091 commit ea6e3b4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/assets/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -500,16 +500,18 @@ a.card-title:hover{
}

.sensor-banner .sensor-image-block {
background-color:#ffffffad;
display: grid;
/* background-color:#ffffffad; */
/* display: grid; */
align-content: center;
justify-content: center;
aspect-ratio: 4/3;
}

.sensor-banner .sensor-image-block img.sensor-image {
object-fit: cover;
object-position: 50% 50%;
width: 100%;
height: 100%;
/* max-width: 400px; */
}

Expand Down Expand Up @@ -615,9 +617,9 @@ b.sensor-tag-content{
.sensor-banner {
grid-template-columns: 50% 50%;
}
.sensor-banner .sensor-image-block img.sensor-image {
/* .sensor-banner .sensor-image-block {
height: 300px;
}
} */
}

@media only screen and (min-width: 950px) {
Expand All @@ -626,8 +628,8 @@ b.sensor-tag-content{
max-width: 100%;
}

.sensor-banner .sensor-image-block img.sensor-image {
/* .sensor-banner .sensor-image-block {
height: 300px;
}
} */
}

0 comments on commit ea6e3b4

Please sign in to comment.