Forum Moderators: not2easy
background-size. /* regular code */
.gradient { height: 150px;
margin: 10px 0;
background: url('image.png') no-repeat 50% 50%, -webkit-linear-gradient(top, #fff 0%, #ccc 49%, #ddd 50%, #777 100%); /* 125 x 125 */
border: 5px solid #333; }
.gradient.gradient-linear { background: url('image.png') no-repeat 50% 50%, -webkit-linear-gradient(top, #fff 0%, #777 100%); /* 125 x 125 */ }
@media only screen and (-webkit-min-device-pixel-ratio: 1.5) and (min-width: 320px),
only screen and (min-resolution: 144dpi) and (min-width: 320px) {
.gradient { height: 150px;
background: url('image@2x.png') no-repeat 50% 50%, -webkit-linear-gradient(top, #fff 0%, #ccc 49%, #ddd 50%, #777 100%); /* 125 x 125 */
background-size: 125px 125px; }
.gradient.gradient-linear { background: url('image@2x.png') no-repeat 50% 50%, -webkit-linear-gradient(top, #fff 0%, #777 100%); /* 125 x 125 */ }
}
background-size: 125px 125px, 100% 100%;