mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Customizer: Improve small-screen styles in Widgets panel.
Props mrasharirfan, mrahmadawais. Fixes #41614. Built from https://develop.svn.wordpress.org/trunk@41602 git-svn-id: http://core.svn.wordpress.org/trunk@41437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1ac10346ce
commit
eb38b0da9b
@ -1489,6 +1489,7 @@ body.cheatin p {
|
||||
#customize-theme-controls .add-new-menu-item {
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
margin: 0;
|
||||
margin-right: 10px;
|
||||
transition: all 0.2s;
|
||||
-webkit-user-select: none;
|
||||
@ -1512,7 +1513,7 @@ body.cheatin p {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
right: -2px;
|
||||
top: -1px;
|
||||
top: 0;
|
||||
font: normal 20px/1 dashicons;
|
||||
vertical-align: middle;
|
||||
transition: all 0.2s;
|
||||
@ -1793,7 +1794,7 @@ body.adding-widget .add-new-widget:before,
|
||||
#available-widgets .widget-tpl,
|
||||
#available-menu-items .item-tpl {
|
||||
position: relative;
|
||||
padding: 20px 60px 20px 15px;
|
||||
padding: 15px 60px 15px 15px;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-right: 4px solid #fff;
|
||||
@ -1841,6 +1842,10 @@ body.adding-widget .add-new-widget:before,
|
||||
.customize-control input[type="checkbox"] + label {
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.wp-core-ui.wp-customizer .button {
|
||||
margin-top: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and ( max-width: 640px ) {
|
||||
@ -1923,6 +1928,7 @@ body.adding-widget .add-new-widget:before,
|
||||
vertical-align: middle;
|
||||
height: auto;
|
||||
margin-bottom: 4px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
#customize-header-actions .button-primary {
|
||||
@ -1986,4 +1992,9 @@ body.adding-widget .add-new-widget:before,
|
||||
#available-menu-items-search .search-icon {
|
||||
top: 85px; /* 70 section title height + 13 container padding +1 input margin +1 input border */
|
||||
}
|
||||
|
||||
.reorder,
|
||||
.reordering .reorder-done {
|
||||
padding: 8px;
|
||||
}
|
||||
}
|
||||
|
2
wp-admin/css/customize-controls-rtl.min.css
vendored
2
wp-admin/css/customize-controls-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -1489,6 +1489,7 @@ body.cheatin p {
|
||||
#customize-theme-controls .add-new-menu-item {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
margin: 0;
|
||||
margin-left: 10px;
|
||||
transition: all 0.2s;
|
||||
-webkit-user-select: none;
|
||||
@ -1512,7 +1513,7 @@ body.cheatin p {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
left: -2px;
|
||||
top: -1px;
|
||||
top: 0;
|
||||
font: normal 20px/1 dashicons;
|
||||
vertical-align: middle;
|
||||
transition: all 0.2s;
|
||||
@ -1793,7 +1794,7 @@ body.adding-widget .add-new-widget:before,
|
||||
#available-widgets .widget-tpl,
|
||||
#available-menu-items .item-tpl {
|
||||
position: relative;
|
||||
padding: 20px 15px 20px 60px;
|
||||
padding: 15px 15px 15px 60px;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-left: 4px solid #fff;
|
||||
@ -1841,6 +1842,10 @@ body.adding-widget .add-new-widget:before,
|
||||
.customize-control input[type="checkbox"] + label {
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.wp-core-ui.wp-customizer .button {
|
||||
margin-top: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and ( max-width: 640px ) {
|
||||
@ -1923,6 +1928,7 @@ body.adding-widget .add-new-widget:before,
|
||||
vertical-align: middle;
|
||||
height: auto;
|
||||
margin-bottom: 4px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
#customize-header-actions .button-primary {
|
||||
@ -1986,4 +1992,9 @@ body.adding-widget .add-new-widget:before,
|
||||
#available-menu-items-search .search-icon {
|
||||
top: 85px; /* 70 section title height + 13 container padding +1 input margin +1 input border */
|
||||
}
|
||||
|
||||
.reorder,
|
||||
.reordering .reorder-done {
|
||||
padding: 8px;
|
||||
}
|
||||
}
|
||||
|
2
wp-admin/css/customize-controls.min.css
vendored
2
wp-admin/css/customize-controls.min.css
vendored
File diff suppressed because one or more lines are too long
@ -753,7 +753,7 @@ ul.CodeMirror-hints {
|
||||
}
|
||||
|
||||
div.widget {
|
||||
margin: 0 auto 10px !important;
|
||||
margin: 0 auto !important;
|
||||
max-width: 480px;
|
||||
}
|
||||
}
|
||||
|
2
wp-admin/css/widgets-rtl.min.css
vendored
2
wp-admin/css/widgets-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -753,7 +753,7 @@ ul.CodeMirror-hints {
|
||||
}
|
||||
|
||||
div.widget {
|
||||
margin: 0 auto 10px !important;
|
||||
margin: 0 auto !important;
|
||||
max-width: 480px;
|
||||
}
|
||||
}
|
||||
|
2
wp-admin/css/widgets.min.css
vendored
2
wp-admin/css/widgets.min.css
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-alpha-41601';
|
||||
$wp_version = '4.9-alpha-41602';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user