mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Customize: Allow page stubs to be created via dropdown-pages controls in the Static Front Page section.
This ability was previously added to nav menus via the available page items panel. The "Add New Page" button only appears when the `allow_addition` control param is supplied as `true`. Code is adapted from the Customize Posts feature plugin. Props celloexpressions, westonruter. See #38013, #34923. Fixes #38164. git-svn-id: https://develop.svn.wordpress.org/trunk@38906 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -565,8 +565,8 @@ p.customize-section-description {
|
||||
}
|
||||
|
||||
.customize-control select {
|
||||
min-width: 50%;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
}
|
||||
@@ -587,6 +587,7 @@ p.customize-section-description {
|
||||
display: block;
|
||||
font-style: italic;
|
||||
line-height: 18px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
@@ -674,6 +675,54 @@ p.customize-section-description {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#available-menu-items .accordion-section-content .new-content-item,
|
||||
.customize-control-dropdown-pages .new-content-item {
|
||||
width: -webkit-calc(100% - 30px);
|
||||
width: calc(100% - 30px);
|
||||
padding: 8px 15px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
z-index: 10;
|
||||
background: #eee;
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .new-content-item {
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
padding: 5px 0 5px 1px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#available-menu-items .new-content-item .create-item-input,
|
||||
.customize-control-dropdown-pages .new-content-item .create-item-input {
|
||||
-webkit-box-flex: 10;
|
||||
-webkit-flex-grow: 10;
|
||||
-moz-box-flex: 10;
|
||||
-ms-flex-positive: 10;
|
||||
-ms-flex: 10;
|
||||
flex-grow: 10;
|
||||
}
|
||||
|
||||
#available-menu-items .new-content-item .add-content,
|
||||
.customize-control-dropdown-pages .new-content-item .add-content {
|
||||
margin: 2px 0 2px 6px;
|
||||
-webkit-box-flex: 10;
|
||||
-webkit-flex-grow: 10;
|
||||
-moz-box-flex: 10;
|
||||
-ms-flex-positive: 10;
|
||||
-ms-flex: 10;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .new-content-item .create-item-input.invalid {
|
||||
border: 1px solid #f00;
|
||||
}
|
||||
|
||||
#customize-preview iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
@@ -572,41 +572,6 @@
|
||||
padding: 0 15px 15px 15px;
|
||||
}
|
||||
|
||||
#available-menu-items .accordion-section-content .new-content-item {
|
||||
width: -webkit-calc(100% - 30px);
|
||||
width: calc(100% - 30px);
|
||||
padding: 8px 15px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
z-index: 10;
|
||||
background: #eee;
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
#available-menu-items .new-content-item .create-item-input {
|
||||
-webkit-box-flex: 10;
|
||||
-webkit-flex-grow: 10;
|
||||
-moz-box-flex: 10;
|
||||
-ms-flex-positive: 10;
|
||||
-ms-flex: 10;
|
||||
flex-grow: 10;
|
||||
margin-left: 5px;
|
||||
padding: 4.5px;
|
||||
}
|
||||
#available-menu-items .new-content-item .add-content {
|
||||
padding-left: 6px;
|
||||
-webkit-box-flex: 10;
|
||||
-webkit-flex-grow: 10;
|
||||
-moz-box-flex: 10;
|
||||
-ms-flex-positive: 10;
|
||||
-ms-flex: 10;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
#available-menu-items .menu-item-tpl {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user