-#accordion-section-menu_locations {
+#customize-theme-controls #accordion-section-menu_locations {
position: relative;
margin-bottom: 15px;
}
+#customize-theme-controls #accordion-section-menu_locations > .accordion-section-title {
+ border-bottom-color: #ddd;
+}
+
.menu-in-location,
.menu-in-locations {
display: block;
#customize-controls .theme-location-set,
#customize-controls .control-section .accordion-section-title:focus .menu-in-location,
-#customize-controls .control-section .accordion-section-title:hover .menu-in-location,
-#customize-controls .control-section .accordion-section-title:focus .menu-in-locations,
-#customize-controls .control-section .accordion-section-title:hover .menu-in-locations {
+#customize-controls .control-section .accordion-section-title:hover .menu-in-location {
color: #555;
}
+/* The `edit-menu` button uses also the `button-link` class. */
+.customize-control-nav_menu_location .edit-menu {
+ margin-left: 6px;
+ vertical-align: middle;
+ line-height: 28px;
+ color: #0073aa;
+ text-decoration: underline;
+}
+
+.customize-control-nav_menu_location .edit-menu:hover,
+.customize-control-nav_menu_location .edit-menu:active {
+ color: #00a0d2;
+}
+
+.customize-control-nav_menu_location .edit-menu:focus {
+ color: #124964;
+}
+
.wp-customizer .menu-item-bar .menu-item-handle,
.wp-customizer .menu-item-settings,
.wp-customizer .menu-item-settings .description-thin {
text-align: right;
}
+.wp-customizer .menu-item-handle:hover {
+ z-index: 8;
+}
+
+.customize-control-nav_menu_item.has-notifications .menu-item-handle {
+ border-left: 4px solid #00a0d2;
+}
+
.wp-customizer .menu-item-settings {
max-width: 100%;
overflow: hidden;
+ z-index: 8;
padding: 10px;
background: #eee;
border: 1px solid #999;
}
.wp-customizer .menu-item .submitbox .submitdelete {
- display: block;
float: left;
margin: 6px 0 0;
padding: 0;
cursor: pointer;
}
-.wp-customizer .menu-item .submitbox .submitdelete:focus {
- -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
- box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
-}
/**
* Menu items reordering styles
right: 0;
}
-.menu-item-reorder-nav button {
- position: relative;
- overflow: hidden;
- float: left;
- display: block;
- width: 30px;
- height: 40px;
- color: #82878c;
- text-indent: -9999px;
- cursor: pointer;
- background: transparent;
- border: none;
- -webkit-box-shadow: none;
- box-shadow: none;
- outline: none;
-}
-
-.menu-item-reorder-nav button:before {
- display: inline-block;
- position: absolute;
- top: 0;
- right: 0;
- width: 100%;
- height: 100%;
- font: normal 20px/40px dashicons;
- text-align: center;
- text-indent: 0;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-.menu-item-reorder-nav button:hover,
-.menu-item-reorder-nav button:focus {
- color: #191e23;
- background: #eee;
-}
-
-.menus-move-down:before {
- content: "\f347";
-}
-
-.menus-move-up:before {
- content: "\f343";
-}
-
.menus-move-left:before {
content: "\f341";
}
content: "\f345";
}
-.move-up-disabled .menus-move-up,
-.move-down-disabled .menus-move-down,
-.move-right-disabled .menus-move-right,
-.move-left-disabled .menus-move-left {
- color: #d5d5d5 !important;
- background-color: #fff !important;
- cursor: default;
- pointer-events: none;
-}
-
-.menu-item-reorder-nav:before {
- content: "";
- display: block;
- position: absolute;
- left: -10px;
- width: 10px;
- height: 40px;
- background: -webkit-gradient(linear, left top, right top, from(rgba(250,250,250,0)), to(rgba(250,250,250,1)));
- background: -webkit-linear-gradient(left, rgba(250,250,250,0) 0%, rgba(250,250,250,1) 100%);
- background: linear-gradient(to right, rgba(250,250,250,0) 0%, rgba(250,250,250,1) 100%);
-}
-
.reordering .menu-item .item-controls,
.reordering .menu-item .item-type {
display: none;
.customize-screen-options-toggle:focus:before,
#customize-controls .customize-info .customize-help-toggle:focus:before {
- -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
- box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
-webkit-border-radius: 100%;
border-radius: 100%;
}
vertical-align: top;
-webkit-border-radius: 50%;
border-radius: 50%;
- color: #a0a5aa;
+ color: #72777c;
font: normal 20px/1 dashicons;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-decoration: none !important;
}
-.wp-customizer button:focus .toggle-indicator:after {
- -webkit-box-shadow:
- 0 0 0 1px #5b9dd9,
- 0 0 2px 1px rgba(30, 140, 190, .8);
- box-shadow:
- 0 0 0 1px #5b9dd9,
- 0 0 2px 1px rgba(30, 140, 190, .8);
-}
-
-#accordion-panel-nav_menus .field-link-target,
-#accordion-panel-nav_menus .field-attr-title,
-#accordion-panel-nav_menus .field-css-classes,
-#accordion-panel-nav_menus .field-xfn,
-#accordion-panel-nav_menus .field-description {
+.control-section-nav_menu .field-link-target,
+.control-section-nav_menu .field-title-attribute,
+.control-section-nav_menu .field-css-classes,
+.control-section-nav_menu .field-xfn,
+.control-section-nav_menu .field-description {
display: none;
}
-#accordion-panel-nav_menus.field-link-target-active .field-link-target,
-#accordion-panel-nav_menus.field-attr-title-active .field-attr-title,
-#accordion-panel-nav_menus.field-css-classes-active .field-css-classes,
-#accordion-panel-nav_menus.field-xfn-active .field-xfn,
-#accordion-panel-nav_menus.field-description-active .field-description {
+.control-section-nav_menu.field-link-target-active .field-link-target,
+.control-section-nav_menu.field-title-attribute-active .field-title-attribute,
+.control-section-nav_menu.field-css-classes-active .field-css-classes,
+.control-section-nav_menu.field-xfn-active .field-xfn,
+.control-section-nav_menu.field-description-active .field-description {
display: block;
}
.reordering .menu-item-depth-10 > .menu-item-bar { margin-right: 150px; }
.reordering .menu-item-depth-11 > .menu-item-bar { margin-right: 165px; }
-.control-section-nav_menu .menu .menu-item-edit-active {
+.control-section-nav_menu.menu .menu-item-edit-active {
margin-left: 0;
}
-.control-section-nav_menu .menu .menu-item-edit-active .menu-item-bar {
+.control-section-nav_menu.menu .menu-item-edit-active .menu-item-bar {
margin-right: 0;
}
-.control-section-nav_menu .menu .sortable-placeholder {
+.control-section-nav_menu.menu .sortable-placeholder {
margin-top: 0;
margin-bottom: 1px;
max-width: -webkit-calc(100% - 2px);
float: none;
}
-.control-section-nav_menu .menu ul.menu-item-transport .menu-item-bar {
+.control-section-nav_menu.menu ul.menu-item-transport .menu-item-bar {
margin-top: 0;
}
* Add-menu-items mode
*/
-.wp-full-overlay-main {
- right: auto; /* This overrides a right: 0; which causes the preview to resize rather than slide off screen at the normal size. */
- width: 100%;
-}
-
.adding-menu-items .control-section {
opacity: .4;
}
opacity: 1;
}
-.adding-menu-items .add-new-menu-item,
-.adding-menu-items .add-new-menu-item:hover,
-.add-menu-toggle.open,
-.add-menu-toggle.open:hover {
- background: #eee;
- border-color: #929793;
- color: #32373c;
- -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
- box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
-}
-
-.adding-menu-items .add-new-menu-item:before,
-#accordion-section-add_menu .add-new-menu-item.open:before {
- -webkit-transform: rotate(45deg);
- -ms-transform: rotate(45deg);
- transform: rotate(45deg);
-}
-
.menu-item-bar .item-delete {
color: #a00;
position: absolute;
color: #f00;
}
-.menu-item-bar .item-delete:focus:before {
- -webkit-box-shadow:
- 0 0 0 1px #5b9dd9,
- 0 0 2px 1px rgba(30, 140, 190, .8);
- box-shadow:
- 0 0 0 1px #5b9dd9,
- 0 0 2px 1px rgba(30, 140, 190, .8);
-}
-
.adding-menu-items .menu-item-bar .item-edit {
display: none;
}
display: block;
}
-#available-menu-items .item {
- position: static;
-}
-
-#available-menu-items {
- position: absolute;
- top: 0;
- bottom: 0;
- left: -301px;
- visibility: hidden;
- overflow-x: hidden;
- overflow-y: auto;
- width: 300px;
- margin: 0;
- z-index: 4;
- background: #eee;
- -webkit-transition: left .18s;
- transition: left .18s;
- border-right: 1px solid #ddd;
-}
+/**
+ * Styles for menu-item addition panel
+ */
#available-menu-items.opening {
overflow-y: hidden; /* avoid scrollbar jitter with animating heights */
background: #fff;
-webkit-transition: background-color 0.15s;
transition: background-color 0.15s;
+ /* Reset the value inherited from the base .accordion-section-title style. Ticket #37589. */
+ -webkit-user-select: auto;
+ -moz-user-select: auto;
+ -ms-user-select: auto;
+ user-select: auto;
}
#available-menu-items .open .accordion-section-title,
content: none !important;
}
-#available-menu-items .accordion-section-title:hover .toggle-indicator:after {
- color: #777;
+#available-menu-items .accordion-section-title:hover .toggle-indicator:after,
+#available-menu-items .button-link:hover .toggle-indicator:after,
+#available-menu-items .button-link:focus .toggle-indicator:after {
+ color: #23282d;
}
#available-menu-items .open .accordion-section-title .toggle-indicator:after {
content: "\f142";
+ color: #23282d;
}
-#available-menu-items .accordion-section-content {
+#available-menu-items .available-menu-items-list {
overflow-y: auto;
max-height: 200px; /* This gets set in JS to fit the screen size, and based on # of sections. */
background: transparent;
}
#available-menu-items .cannot-expand .accordion-section-title .no-items {
- display: block;
- color: #777;
- font-weight: normal;
float: right;
+ color: #555d66;
+ font-weight: 400;
margin-left: 5px;
}
#available-menu-items .accordion-section-content {
- padding: 1px 15px 15px 15px;
- margin: 0;
max-height: 290px;
+ margin: 0;
+ padding: 0;
+ position: relative;
+ background: transparent;
}
-#available-menu-items #available-menu-items-search .accordion-section-content {
- position: absolute;
- left: 1px;
- top: 60px; /* below title div / search input */
- bottom: 0px; /* 100% height that still triggers lazy load */
- max-height: none;
- width: 100%;
- padding: 1px 15px 15px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
+#available-menu-items .accordion-section-content .available-menu-items-list {
+ margin: 0 0 45px 0;
+ padding: 1px 15px 15px 15px;
+}
+
+#available-menu-items .accordion-section-content .available-menu-items-list:only-child { /* Types that do not support new items for the current user */
+ margin-bottom: 0;
+}
+
+#new-custom-menu-item .accordion-section-content {
+ padding: 0 15px 15px 15px;
}
#available-menu-items .menu-item-tpl {
#custom-menu-item-name.invalid,
#custom-menu-item-url.invalid,
.menu-name-field.invalid,
-.menu-name-field.invalid:focus {
+.menu-name-field.invalid:focus,
+#available-menu-items .new-content-item .create-item-input.invalid,
+#available-menu-items .new-content-item .create-item-input.invalid:focus {
border: 1px solid #f00;
}
-#available-menu-items .item-tpl {
- position: relative;
- padding: 20px 15px 20px 60px;
- border-bottom: 1px solid #e4e4e4;
- cursor: pointer;
- display: none;
-}
-
-#available-menu-items .item-tpl:hover,
-#available-menu-items .item-tpl.selected {
- background: #eee;
-}
-
#available-menu-items .menu-item-handle .item-type {
padding-right: 0;
}
cursor: pointer;
}
-#available-menu-items .item-top,
-#available-menu-items .item-top:hover {
- border: none;
- background: transparent;
- -webkit-box-shadow: none;
- box-shadow: none;
-}
-
#available-menu-items .menu-item-handle {
-webkit-box-shadow: none;
box-shadow: none;
font: normal 20px/1.05 dashicons; /* line height is to account for the dashicon's vertical alignment */
}
-#available-menu-items .item-add:focus:before {
- -webkit-box-shadow:
- 0 0 0 1px #5b9dd9,
- 0 0 2px 1px rgba(30, 140, 190, .8);
- box-shadow:
- 0 0 0 1px #5b9dd9,
- 0 0 2px 1px rgba(30, 140, 190, .8);
-}
-
#available-menu-items .menu-item-handle.item-added .item-type,
#available-menu-items .menu-item-handle.item-added .item-title,
#available-menu-items .menu-item-handle.item-added:hover .item-add,
margin: 0 20px;
}
-#available-menu-items-search .clear-results {
- position: absolute;
- top: 20px;
- right: 20px;
- width: 20px;
- height: 20px;
- cursor: pointer;
- color: #a00;
- text-decoration: none;
-}
-
-#available-menu-items-search .clear-results,
-#available-menu-items-search.loading .clear-results.is-visible {
- display: none;
-}
-
-#available-menu-items-search .clear-results.is-visible {
- display: block;
-}
-
-#available-menu-items-search .clear-results:before {
- content: "\f335";
- font: normal 20px/1 dashicons;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-#available-menu-items-search .clear-results:hover,
-#available-menu-items-search .clear-results:focus {
- color: #f00;
-}
-
-#available-menu-items-search .clear-results:focus {
- -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
- box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
-}
-
#available-menu-items-search .spinner {
position: absolute;
- top: 20px;
+ top: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */
+ right: 21px;
margin: 0 !important;
- right: 20px;
}
-#available-menu-items-search input {
- padding: 6px 10px;
+/* search results list */
+#available-menu-items #available-menu-items-search .accordion-section-content {
+ position: absolute;
+ left: 0;
+ top: 60px; /* below title div / search input */
+ bottom: 0px; /* 100% height that still triggers lazy load */
+ max-height: none;
width: 100%;
-}
-
-#available-menu-items-search .accordion-section-title {
- padding: 12px 15px;
+ padding: 1px 15px 15px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
+#available-menu-items-search .nothing-found {
+ /* Compensate the 1px top padding of the container. */
+ margin-top: -1px;
+}
+
#available-menu-items-search .accordion-section-title:after {
display: none;
}
/* Add/delete Menus */
+#customize-theme-controls .control-panel-content .control-section-nav_menu:nth-last-child(2) .accordion-section-title {
+ border-bottom-color: #ddd;
+}
+
/* @todo update selector */
#accordion-section-add_menu {
margin: 15px 12px;
+ overflow: hidden;
}
.new-menu-section-content {
}
.menu-delete-item {
- display: block;
float: left;
padding: 1em 0;
width: 100%;
.menu-delete:hover,
.menu-delete:focus {
color: #f00;
- text-decoration: none;
-}
-
-.menu-delete:focus {
- -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
- box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
}
.menu-item-handle {
margin-top: 12px;
}
-#available-menu-items .customize-section-title {
- display: none;
+/**
+ * box-shadows
+ */
+
+.wp-customizer .menu-item .submitbox .submitdelete:focus,
+.customize-screen-options-toggle:focus:before,
+#customize-controls .customize-info .customize-help-toggle:focus:before,
+.wp-customizer button:focus .toggle-indicator:after,
+.menu-delete:focus,
+.menu-item-bar .item-delete:focus:before,
+#available-menu-items .item-add:focus:before {
+ -webkit-box-shadow:
+ 0 0 0 1px #5b9dd9,
+ 0 0 2px 1px rgba(30, 140, 190, .8);
+ box-shadow:
+ 0 0 0 1px #5b9dd9,
+ 0 0 2px 1px rgba(30, 140, 190, .8);
}
+
@media screen and ( max-width: 782px ) {
#available-menu-items #available-menu-items-search .accordion-section-content {
top: 63px;
}
@media screen and ( max-width: 640px ) {
- body.adding-menu-items div#available-menu-items {
- top: 46px;
- left: 0;
- z-index: 10;
- width: 100%;
- }
-
#available-menu-items #available-menu-items-search .accordion-section-content {
- top: 133px;
- }
-
- #available-menu-items .customize-section-title {
- display: block;
- margin: 0;
- }
-
- #available-menu-items .customize-section-back {
- height: 69px;
- }
-
- #available-menu-items .customize-section-title h3 {
- font-size: 20px;
- font-weight: 200;
- padding: 9px 10px 12px 14px;
- margin: 0;
- line-height: 24px;
- color: #555;
- display: block;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
-
- #available-menu-items .customize-section-title .customize-action {
- font-size: 13px;
- display: block;
- font-weight: 400;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
+ top: 130px;
}
}