mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 13:20:20 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user