Skip to content

Commit

Permalink
Work-around a chrome bug for images
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Jul 29, 2018
1 parent 3da8a71 commit 5aa044d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion app/assets/stylesheets/parts/a_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ textarea {
max-width: 100%;
}

img {
img,
svg {
max-width: 100%;
max-height: 80vh;
object-fit: cover;
border: none;
}

Expand Down
1 change: 0 additions & 1 deletion app/assets/stylesheets/parts/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ footer.actions {
svg {
display: block;
margin: 0 auto;
max-width: 100%;
}
img.mathjax {
display: inline;
Expand Down
3 changes: 0 additions & 3 deletions app/assets/stylesheets/responsive/m.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
ul.links {
padding-left: 25px;
}
input {
max-width: 100%;
}

#site {
position: static;
Expand Down

0 comments on commit 5aa044d

Please sign in to comment.