Skip to content

Commit 11b9160

Browse files
authored
Make images more responsive (#240)
* Make images more responsive More info can be found here: https://www.zachleat.com/web/fluid-images/ * Don't make exception for SVG images * Refactor assets file
1 parent 92f8217 commit 11b9160

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

assets.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
*/
44

55
:where(iframe, img, input, video, select, textarea) {
6-
height: auto;
76
max-width: 100%;
87
}
8+
9+
/**
10+
* Preserve aspect ratio
11+
*/
12+
13+
:where(iframe, img[width][height], input, video, select, textarea) {
14+
height: auto;
15+
}

0 commit comments

Comments
 (0)