Site Icon: Improve responsiveness for small screen devices.

Using Jcrop's `trueSize` argument also allows us to get rid of all that behind
the scenes temp image creating and back and forth calculating of image sizes.

Props tyxla for initial patch.
See #16434.



git-svn-id: https://develop.svn.wordpress.org/trunk@33053 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Obenland
2015-07-02 21:15:52 +00:00
parent 07ee7f1ef7
commit 9532df3c9f
3 changed files with 51 additions and 110 deletions
+26 -1
View File
@@ -17,6 +17,10 @@
max-width: 720px;
}
.site-icon-crop-wrapper {
float: left;
}
.site-icon-crop-preview-shell {
float: right;
overflow: hidden;
@@ -55,4 +59,25 @@
height: 64px;
overflow: hidden;
width: 64px;
}
}
.site-icon-crop-shell .submit {
clear: both;
}
@media only screen and (max-width: 768px) {
.site-icon-crop-wrapper,
.site-icon-crop-preview-shell {
float: none;
}
.site-icon-crop-wrapper {
max-width: 100%;
margin-bottom: 20px;
}
.site-icon-crop-wrapper img {
max-width: 100%;
height: auto;
}
}