]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/css/customize-controls.css
WordPress 4.5
[autoinstalls/wordpress.git] / wp-admin / css / customize-controls.css
index ced973516810ed59b889a7f855c600146b3ce16b..36e512aa017feffe9965d7641b8b93340219c7a0 100644 (file)
@@ -159,6 +159,7 @@ body {
 
 #customize-theme-controls .accordion-section-title:after {
        content: "\f345";
+       color: #a0a5aa;
 }
 
 #customize-theme-controls .accordion-section-content {
@@ -610,6 +611,10 @@ p.customize-section-description {
 #customize-preview iframe {
        width: 100%;
        height: 100%;
+       position: absolute;
+}
+#customize-preview iframe + iframe {
+       visibility: hidden;
 }
 
 .wp-full-overlay-sidebar {
@@ -645,6 +650,7 @@ p.customize-section-description {
        user-select: none;
 }
 
+/* @todo maybe no more used? */
 .customize-control .dropdown-arrow {
        position: absolute;
        top: 0;
@@ -708,10 +714,6 @@ p.customize-section-description {
        position: relative;
 }
 
-.ios #customize-preview {
-       position: relative;
-}
-
 .ios #customize-controls .wp-full-overlay-sidebar-content {
        -webkit-overflow-scrolling: touch;
 }
@@ -806,6 +808,11 @@ p.customize-section-description {
        position: relative;
        text-align: center;
        cursor: default;
+       border: 1px dashed #b4b9be;
+       -webkit-box-sizing: border-box;
+       -moz-box-sizing: border-box;
+       box-sizing: border-box;
+       min-height: 40px;
 }
 
 .customize-control-media .inner,
@@ -843,7 +850,7 @@ p.customize-section-description {
 .customize-control-header .inner,
 .customize-control-header .inner .dashicons {
        line-height: 20px;
-       top: 10px;
+       top: 8px;
 }
 
 .customize-control-header .list .inner,
@@ -939,16 +946,6 @@ p.customize-section-description {
        100% { color: #d4b146; }
 }
 
-.customize-control-media .actions,
-.customize-control-upload .actions,
-.customize-control-image .actions,
-.customize-control-background .actions,
-.customize-control-cropped_image .actions,
-.customize-control-site_icon .actions,
-.customize-control-header .actions {
-       margin-bottom: 32px;
-}
-
 .customize-control-header .choice {
        position: relative;
        display: block;
@@ -964,7 +961,6 @@ p.customize-section-description {
 .customize-control-image img,
 .customize-control-background img,
 .customize-control-cropped_image img,
-.customize-control-site_icon img,
 .customize-control-header img {
        width: 100%;
        -webkit-border-radius: 2px;
@@ -1220,7 +1216,7 @@ body.cheatin {
 }
 
 body.cheatin h1 {
-       border-bottom: 1px solid #dadada;
+       border-bottom: 1px solid #ddd;
        clear: both;
        color: #666;
        font: 24px "Open Sans", sans-serif;
@@ -1278,6 +1274,7 @@ body.cheatin p {
 
 /* Reordering */
 .reorder-toggle {
+       color: #0073aa;
        float: right;
        padding: 5px 8px;
        text-decoration: none;
@@ -1289,6 +1286,10 @@ body.cheatin p {
        user-select: none;
 }
 
+.reorder-toggle:hover {
+       color: #00a0d2;
+}
+
 .reorder-toggle:focus {
        outline: 1px dotted;
 }
@@ -1311,6 +1312,185 @@ body.cheatin p {
        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;
@@ -1353,6 +1533,12 @@ body.cheatin p {
                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;
        }
@@ -1423,4 +1609,59 @@ body.cheatin p {
        #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;
+       }
 }