Skip to content

Instantly share code, notes, and snippets.

@ae-elaine-axis
Created September 7, 2018 13:12
Show Gist options
  • Save ae-elaine-axis/fa28a57e143beb7449e44272a4cbc6bb to your computer and use it in GitHub Desktop.
Save ae-elaine-axis/fa28a57e143beb7449e44272a4cbc6bb to your computer and use it in GitHub Desktop.
To show images in the mobile gallery in the same proportion
```
html#ecwid_html body#ecwid_body .ec-size:not(.ec-size--s) .ec-store .details-gallery__thumb, html#ecwid_html body#ecwid_body .ec-size:not(.ec-size--s) .ec-store .details-gallery__thumb .details-gallery__thumb-img {
max-width: 100%;
background-size: contain;
}
```
/* или, наоборот, расширить первую */
```
html#ecwid_html body#ecwid_body .ec-size:not(.ec-size--s) .ec-store .details-gallery__thumb:first-child, html#ecwid_html body#ecwid_body .ec-size:not(.ec-size--s) .ec-store .details-gallery__thumb:first-child .details-gallery__thumb-img {
max-width: none;
background-size: cover;
}
```
@ae-elaine-axis
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment