trickster (16 Октябрь 2015 - 18:24) писал:
Спасибо!
скажите а нельзя как-то сделать чтобы картинка просто менялась в зависимости от размера экрана?
проверил сейчас на ноутбуке, на нем её вообще нет
Здравствуйте.
Попробуйте сделать, пожалуйста, следующее:
В шаблоне
style.css найдите данный код:
@media screen and (min-width: 860px) {
.buy-item button {width: auto;overflow: visible;padding: 0.714em 1em 0.714em 2.5em;background: url("{ASSETS_IMAGES_PATH}icons.png") no-repeat scroll 10% -552px #5C6063;color: #fff;font-size: 100%;margin: 0 1em 0 0;border: none;font-weight: normal;margin: auto;color: #fff;letter-spacing: 1px;text-transform: uppercase;line-height: 1;text-shadow: 0px 1px 0px rgba(0,0,0,0.2);display: inline-block;text-align: center;}
}
@media screen and (max-width: 480px) {
.buy-item button {width: auto;overflow: visible;padding: 0.714em 1em 0.714em 2.5em;background: url("{ASSETS_IMAGES_PATH}icons.png") no-repeat scroll 10% -552px #5C6063;color: #fff;font-size: 100%;margin: 0 1em 0 0;border: none;font-weight: normal;margin: auto;color: #fff;letter-spacing: 1px;text-transform: uppercase;line-height: 1;text-shadow: 0px 1px 0px rgba(0,0,0,0.2);display: inline-block;text-align: center;}
}
/* 1020px и больше*/
@media screen and (min-width: 1200px) {
}
@media screen and (max-width: 860px) {
a.more-items, a.power.middle, .card-action p.current {width: 50%;}
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
section.newsletter h3 {font-size: 1em; margin-top: 3px;}
section.newsletter form input[type="email"] {width: 14em;}
}
@media only screen and (max-width: 768px) {
body {background: #F6F6F4;}
И замените его вот этим вот кодом:
@media screen and (min-width: 860px) {
.buy-item button {width: auto;overflow: visible;padding: 0.714em 1em 0.714em 2.5em;background: url("{ASSETS_IMAGES_PATH}icons.png") no-repeat scroll 10% -552px #5C6063;color: #fff;font-size: 100%;margin: 0 1em 0 0;border: none;font-weight: normal;margin: auto;color: #fff;letter-spacing: 1px;text-transform: uppercase;line-height: 1;text-shadow: 0px 1px 0px rgba(0,0,0,0.2);display: inline-block;text-align: center;}
}
@media screen and (max-width: 480px) {
.buy-item button {width: auto;overflow: visible;padding: 0.714em 1em 0.714em 2.5em;background: url("{ASSETS_IMAGES_PATH}icons.png") no-repeat scroll 10% -552px #5C6063;color: #fff;font-size: 100%;margin: 0 1em 0 0;border: none;font-weight: normal;margin: auto;color: #fff;letter-spacing: 1px;text-transform: uppercase;line-height: 1;text-shadow: 0px 1px 0px rgba(0,0,0,0.2);display: inline-block;text-align: center;}
}
/* 1020px и больше*/
@media screen and (min-width: 1200px) {
}
@media screen and (max-width: 1100px) {
.header_banner {float: right;margin-top: -20%;margin-right: 15%;width: 50%;}
}
@media screen and (max-width: 860px) {
a.more-items, a.power.middle, .card-action p.current {width: 50%;}
.header_banner {float: right;margin-top: -20%;margin-right: 30%;width: 35%;}
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
section.newsletter h3 {font-size: 1em; margin-top: 3px;}
section.newsletter form input[type="email"] {width: 14em;}
}
@media only screen and (max-width: 768px) {
body {background: #F6F6F4;}
.header_banner {float: right;margin-top: 5%;margin-right: 20%;width: 50%;}