Skip to content

Commit 609994b

Browse files
FireIsGoodberdandy
authored andcommitted
Fix theme images loading (getzola#2517)
* chore: format themes file * feat: add aspect ratio to theme images
1 parent dc9ebd2 commit 609994b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/sass/_themes.scss

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.themes-container {
32
padding: 3rem;
43
width: 80%;
@@ -9,7 +8,7 @@
98
}
109
}
1110

12-
@media only screen and (max-width: 1000px) {
11+
@media only screen and (max-width: 1000px) {
1312
.themes-container {
1413
width: 100%;
1514
margin: 0 1rem;
@@ -32,6 +31,7 @@
3231

3332
img {
3433
width: 100%;
34+
aspect-ratio: 16 / 9;
3535
height: 90%;
3636
object-fit: cover;
3737
}
@@ -54,21 +54,21 @@
5454
margin-right: 2rem;
5555
}
5656

57-
h1, p {
57+
h1,
58+
p {
5859
margin: 0;
5960
}
6061

6162
padding: 1rem;
6263
}
6364

64-
65-
@media only screen and (max-width: 1000px) {
65+
@media only screen and (max-width: 1000px) {
6666
.themes .theme {
6767
width: 100%;
6868
}
6969
}
7070

71-
@media only screen and (max-width: 1000px) {
71+
@media only screen and (max-width: 1000px) {
7272
.theme-info {
7373
flex-direction: column;
7474
align-items: center;

0 commit comments

Comments
 (0)