Skip to content

Commit

Permalink
Fix theme images loading (#2517)
Browse files Browse the repository at this point in the history
* chore: format themes file

* feat: add aspect ratio to theme images
  • Loading branch information
FireIsGood authored Jun 11, 2024
1 parent 8aedec9 commit 0056851
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/sass/_themes.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.themes-container {
padding: 3rem;
width: 80%;
Expand All @@ -9,7 +8,7 @@
}
}

@media only screen and (max-width: 1000px) {
@media only screen and (max-width: 1000px) {
.themes-container {
width: 100%;
margin: 0 1rem;
Expand All @@ -32,6 +31,7 @@

img {
width: 100%;
aspect-ratio: 16 / 9;
height: 90%;
object-fit: cover;
}
Expand All @@ -54,21 +54,21 @@
margin-right: 2rem;
}

h1, p {
h1,
p {
margin: 0;
}

padding: 1rem;
}


@media only screen and (max-width: 1000px) {
@media only screen and (max-width: 1000px) {
.themes .theme {
width: 100%;
}
}

@media only screen and (max-width: 1000px) {
@media only screen and (max-width: 1000px) {
.theme-info {
flex-direction: column;
align-items: center;
Expand Down

0 comments on commit 0056851

Please sign in to comment.