Created
September 7, 2018 13:12
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
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; | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://take.ms/TmEiX