+
+/**
+ * Widgets and Menus common styles
+ */
+
+/* higher specificity than .wp-core-ui .button-secondary */
+#customize-theme-controls .add-new-widget,
+#customize-theme-controls .add-new-menu-item {
+ cursor: pointer;
+ float: right;
+ margin-left: 10px;
+ -webkit-transition: all 0.2s;
+ transition: all 0.2s;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ outline: none;
+}
+
+.reordering .add-new-widget,
+.reordering .add-new-menu-item {
+ opacity: 0.2;
+ pointer-events: none;
+ cursor: not-allowed; /* doesn't work in conjunction with pointer-events */
+}
+
+.add-new-widget:before,
+.add-new-menu-item:before {
+ content: "\f132";
+ display: inline-block;
+ position: relative;
+ left: -2px;
+ top: -1px;
+ font: normal 20px/1 dashicons;
+ vertical-align: middle;
+ -webkit-transition: all 0.2s;
+ transition: all 0.2s;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+/* Reordering */
+.reorder-toggle {
+ color: #0073aa;
+ float: right;
+ padding: 5px 8px;
+ text-decoration: none;
+ cursor: pointer;
+ outline: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+.reorder-toggle:hover {
+ color: #00a0d2;
+}
+
+.reorder-toggle:focus {
+ outline: 1px dotted;
+}
+
+.reorder,
+.reordering .reorder-done {
+ display: block;
+ padding: 5px 8px;
+}
+
+.reorder-done,
+.reordering .reorder {
+ display: none;
+ color: #0073aa;
+}
+
+.reorder-toggle:hover .reorder-done,
+.reorder-toggle:active .reorder-done,
+.reorder-toggle:focus .reorder-done {
+ color: #00a0d2;
+}
+
+.widget-reorder-nav span,
+.menu-item-reorder-nav button {
+ position: relative;
+ overflow: hidden;
+ float: left;
+ display: block;
+ width: 33px; /* was 42px for mobile */
+ height: 43px;
+ color: #82878c;
+ text-indent: -9999px;
+ cursor: pointer;
+ outline: none;
+}
+
+.menu-item-reorder-nav button {
+ width: 30px;
+ height: 40px;
+ background: transparent;
+ border: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+.widget-reorder-nav span:before,
+.menu-item-reorder-nav button:before {
+ display: inline-block;
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 100%;
+ height: 100%;
+ font: normal 20px/43px dashicons;
+ text-align: center;
+ text-indent: 0;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.widget-reorder-nav span:hover,
+.widget-reorder-nav span:focus,
+.menu-item-reorder-nav button:hover,
+.menu-item-reorder-nav button:focus {
+ color: #191e23;
+ background: #eee;
+}
+
+.move-widget-down:before,
+.menus-move-down:before {
+ content: "\f347";
+}
+
+.move-widget-up:before,
+.menus-move-up:before {
+ content: "\f343";
+}
+
+#customize-theme-controls .first-widget .move-widget-up,
+#customize-theme-controls .last-widget .move-widget-down,
+.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;
+ background-color: #fff;
+ cursor: default;
+ pointer-events: none;
+}
+
+/**
+ * New widget and Add-menu-items modes and panels
+ */
+
+.wp-full-overlay-main {
+ right: auto; /* this overrides a right: 0; which causes the preview to resize, I'd rather have it go off screen at the normal size. */
+ width: 100%;
+}
+
+body.adding-widget .add-new-widget,
+body.adding-widget .add-new-widget:hover,
+.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);
+}
+
+body.adding-widget .add-new-widget:before,
+.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);
+}
+
+#available-widgets,
+#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;
+}
+
+#available-widgets .customize-section-title,
+#available-menu-items .customize-section-title {
+ display: none;
+}
+
+#available-widgets-list {
+ top: 60px;
+ position: absolute;
+ overflow: auto;
+ bottom: 0;
+ width: 100%;
+}
+
+#available-widgets-filter {
+ position: fixed;
+ top: 0;
+ z-index: 1;
+ width: 300px;
+ background: #eee;
+ border-bottom: 1px solid #e5e5e5;
+}
+
+/* search field container */
+#available-widgets-filter,
+#available-menu-items-search .accordion-section-title {
+ padding: 12px 15px;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+#available-widgets-filter input,
+#available-menu-items-search input {
+ padding: 6px 10px;
+ width: 100%;
+}
+
+#available-widgets .widget-top,
+#available-widgets .widget-top:hover,
+#available-menu-items .item-top,
+#available-menu-items .item-top:hover {
+ border: none;
+ background: transparent;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+#available-widgets .widget-tpl,
+#available-menu-items .item-tpl {
+ position: relative;
+ padding: 20px 15px 20px 60px;
+ background: #fff;
+ border-bottom: 1px solid #e5e5e5;
+ cursor: pointer;
+ display: none;
+}
+
+#available-widgets .widget,
+#available-menu-items .item {
+ position: static;
+}
+
+
+/* Responsive */
+.customize-controls-preview-toggle {
+ display: none;
+}
+
+@media only screen and (max-width: 782px) {
+ .wp-customizer .theme:not(.active):hover .theme-actions,
+ .wp-customizer .theme:not(.active):focus .theme-actions {
+ display: block;
+ }
+
+ .wp-customizer .theme-browser .theme.active .theme-name span {
+ display: inline;
+ }
+
+ .customize-control-radio label,
+ .customize-control-checkbox label,
+ .customize-control-nav_menu_auto_add label {
+ margin-left: 32px;
+ }
+
+ .customize-control-radio input,
+ .customize-control-checkbox input,
+ .customize-control-nav_menu_auto_add input {
+ margin-left: -32px;
+ }
+
+ .customize-control input[type="radio"] + label,
+ .customize-control input[type="checkbox"] + label {
+ line-height: 32px;
+ }
+}
+
+@media screen and ( max-width: 640px ) {
+ #customize-controls {
+ width: 100%;
+ }
+
+ .wp-full-overlay.expanded {
+ margin-left: 0;
+ }
+
+ /* when the sidebar is collapsed and switching to responsive view,
+ bring it back see ticket #35220 */
+ .wp-full-overlay.collapsed #customize-controls {
+ margin-left: 0;
+ }
+
+ .wp-full-overlay-sidebar .wp-full-overlay-sidebar-content {
+ bottom: 0;
+ }
+
+ .customize-controls-preview-toggle {
+ display: block;
+ position: absolute;
+ top: 0;
+ left: 48px;
+ line-height: 45px;
+ font-size: 14px;
+ padding: 0 12px;
+ margin: 0;
+ height: 45px;
+ background: #eee;
+ border: 0;
+ border-right: 1px solid #ddd;
+ color: #444;
+ cursor: pointer;
+ -webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
+ transition: color .1s ease-in-out, background .1s ease-in-out;
+ }
+
+ #customize-footer-actions,
+ #customize-preview,
+ .customize-controls-preview-toggle .controls,
+ .preview-only .wp-full-overlay-sidebar-content,
+ .preview-only .customize-controls-preview-toggle .preview {
+ display: none;
+ }
+
+ .customize-controls-preview-toggle .preview:before,
+ .customize-controls-preview-toggle .controls:before {
+ font: normal 20px/1 dashicons;
+ content: "\f177";
+ position: relative;
+ top: 4px;
+ margin-right: 6px;
+ }
+
+ .customize-controls-preview-toggle .controls:before {
+ content: "\f540";
+ }
+
+ .preview-only #customize-controls {
+ height: 45px;
+ }
+
+ .preview-only #customize-preview,
+ .preview-only .customize-controls-preview-toggle .controls {
+ display: block;
+ }
+
+ #customize-preview {
+ top: 45px;
+ bottom: 0;
+ height: auto;
+ }
+
+ .wp-core-ui.wp-customizer .button {
+ padding: 6px 14px;
+ line-height: normal;
+ font-size: 14px;
+ vertical-align: middle;
+ height: auto;
+ margin-bottom: 4px;
+ }
+
+ #customize-header-actions .button-primary {
+ margin-top: 6px;
+ }
+
+ body.adding-widget div#available-widgets,
+ body.adding-menu-items div#available-menu-items {
+ top: 46px;
+ left: 0;
+ z-index: 10;
+ width: 100%;
+ }
+
+ #available-widgets .customize-section-title,
+ #available-menu-items .customize-section-title {
+ display: block;
+ margin: 0;
+ }
+
+ #available-widgets .customize-section-back,
+ #available-menu-items .customize-section-back {
+ height: 69px;
+ }
+
+ #available-widgets .customize-section-title h3,
+ #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-widgets .customize-section-title .customize-action,
+ #available-menu-items .customize-section-title .customize-action {
+ font-size: 13px;
+ display: block;
+ font-weight: 400;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ }
+
+ #available-widgets-filter {
+ position: relative;
+ width: 100%;
+ background: #fff;
+ height: auto;
+ padding: 10px 15px;
+ }
+
+ #available-widgets-list {
+ top: 140px;
+ }
+}