resize photos
This commit is contained in:
parent
1efcae7b48
commit
a8535433b5
@ -13,6 +13,39 @@ body{
|
|||||||
padding:20px;
|
padding:20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* resize images on mobile */
|
||||||
|
@media all and (max-width: 768px) {
|
||||||
|
img.photo-message{
|
||||||
|
width:100%;
|
||||||
|
/* disable anti aliasing */
|
||||||
|
image-rendering: optimizeSpeed;
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
image-rendering: -o-crisp-edges;
|
||||||
|
image-rendering: -webkit-optimize-contrast;
|
||||||
|
image-rendering: pixelated;
|
||||||
|
image-rendering: optimize-contrast;
|
||||||
|
-ms-interpolation-mode: nearest-neighbor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* resize images on mobile */
|
||||||
|
@media all and (min-width: 768px) {
|
||||||
|
img.photo-message{
|
||||||
|
width:50%;
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
/* disable anti aliasing */
|
||||||
|
image-rendering: optimizeSpeed;
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
image-rendering: -o-crisp-edges;
|
||||||
|
image-rendering: -webkit-optimize-contrast;
|
||||||
|
image-rendering: pixelated;
|
||||||
|
image-rendering: optimize-contrast;
|
||||||
|
-ms-interpolation-mode: nearest-neighbor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
img.photo-message{
|
img.photo-message{
|
||||||
/* disable anti aliasing */
|
/* disable anti aliasing */
|
||||||
image-rendering: optimizeSpeed;
|
image-rendering: optimizeSpeed;
|
||||||
@ -23,6 +56,7 @@ img.photo-message{
|
|||||||
image-rendering: optimize-contrast;
|
image-rendering: optimize-contrast;
|
||||||
-ms-interpolation-mode: nearest-neighbor;
|
-ms-interpolation-mode: nearest-neighbor;
|
||||||
}
|
}
|
||||||
|
|
||||||
img.emo {
|
img.emo {
|
||||||
width: 22px;
|
width: 22px;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
|
Loading…
Reference in New Issue
Block a user