Skip to content

Commit

Permalink
Make image and picture height automatic to aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
helenclx committed Jul 19, 2024
1 parent fe58600 commit a941e18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/assets/css/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

img, picture { height: auto; }

code { font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace; }
:not(pre) > code { padding: 0.125em 0.25em; }

Expand Down

0 comments on commit a941e18

Please sign in to comment.