]> scripts.mit.edu Git - autoinstallsdev/wordpress.git/blobdiff - wp-admin/css/customize-controls.css
Wordpress 4.6
[autoinstallsdev/wordpress.git] / wp-admin / css / customize-controls.css
index ced973516810ed59b889a7f855c600146b3ce16b..d2eef49a5b403b36854fd8ac653bbdce02faf3ee 100644 (file)
@@ -159,6 +159,7 @@ body {
 
 #customize-theme-controls .accordion-section-title:after {
        content: "\f345";
+       color: #a0a5aa;
 }
 
 #customize-theme-controls .accordion-section-content {
@@ -276,9 +277,9 @@ h3.customize-section-title {
 .accordion-sub-container.control-panel-content {
        display: none;
        position: absolute;
-       left: 300px;
+       left: 100%;
        top: 0;
-       width: 300px;
+       width: 100%;
        -webkit-transition: left ease-in-out .18s;
        transition: left ease-in-out .18s;
 }
@@ -426,8 +427,8 @@ h3.customize-section-title {
 
 .in-sub-panel #customize-info,
 .in-sub-panel #customize-theme-controls > ul > .accordion-section {
-       left: -300px;
-       width: 300px;
+       left: -100%;
+       width: 100%;
 }
 
 .in-sub-panel #customize-theme-controls .accordion-section.current-panel {
@@ -493,7 +494,7 @@ p.customize-section-description {
 .customize-control input[type="search"],
 .customize-control input[type="tel"],
 .customize-control input[type="url"] {
-       width: 98%;
+       width: 100%;
        line-height: 18px;
        margin: 0;
 }
@@ -523,7 +524,7 @@ p.customize-section-description {
        font-size: 14px;
        line-height: 24px;
        font-weight: 600;
-       margin-bottom: 5px;
+       margin-bottom: 4px;
 }
 
 .customize-control-description {
@@ -575,7 +576,7 @@ p.customize-section-description {
 }
 
 .customize-control .attachment-title {
-       font-weight: bold;
+       font-weight: 600;
        margin: 0;
        padding: 5px 10px;
 }
@@ -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 {
@@ -617,6 +622,48 @@ p.customize-section-description {
        border-right: 1px solid #ddd;
 }
 
+
+/**
+ * Notifications
+ */
+
+#customize-controls .customize-control-notifications-container { /* Scoped to #customize-controls for specificity over notification styles in common.css. */
+       margin: 4px 0 8px 0;
+       padding: 0;
+       display: none;
+       cursor: default;
+}
+
+#customize-controls .customize-control-widget_form.has-error .widget .widget-top,
+.customize-control-nav_menu_item.has-error .menu-item-bar .menu-item-handle {
+       -webkit-box-shadow: inset 0 0 0 2px #dc3232;
+       box-shadow: inset 0 0 0 2px #dc3232;
+       -webkit-transition: .15s box-shadow linear;
+       transition: .15s box-shadow linear;
+}
+
+.customize-control-notifications-container li.notice {
+       list-style: none;
+       margin: 0 0 6px 0;
+       padding: 4px 8px;
+}
+
+.customize-control-notifications-container li.notice:last-child {
+       margin-bottom: 0;
+}
+
+#customize-controls .customize-control-nav_menu_item .customize-control-notifications-container {
+       margin-top: 0;
+}
+
+#customize-controls .customize-control-widget_form .customize-control-notifications-container {
+       margin-top: 8px;
+}
+
+.customize-control-text.has-error input {
+       outline: 2px solid #dc3232;
+}
+
 /* Style for custom settings */
 
 /**
@@ -645,6 +692,7 @@ p.customize-section-description {
        user-select: none;
 }
 
+/* @todo maybe no more used? */
 .customize-control .dropdown-arrow {
        position: absolute;
        top: 0;
@@ -708,22 +756,16 @@ p.customize-section-description {
        position: relative;
 }
 
-.ios #customize-preview {
-       position: relative;
-}
-
 .ios #customize-controls .wp-full-overlay-sidebar-content {
        -webkit-overflow-scrolling: touch;
 }
 
 /* Media controls */
 
-.customize-control-media .current,
-.customize-control-upload .current,
-.customize-control-image .current,
-.customize-control-background .current,
-.customize-control-cropped_image .current,
-.customize-control-site_icon .current,
+.customize-control .attachment-media-view .actions {
+       margin-top: 8px;
+}
+
 .customize-control-header .current {
        margin-bottom: 8px;
 }
@@ -747,24 +789,9 @@ p.customize-section-description {
        display: block;
 }
 
-.customize-control-media .remove-button,
-.customize-control-media .default-button,
-.customize-control-media .upload-button,
-.customize-control-upload .remove-button,
-.customize-control-upload .default-button,
-.customize-control-upload .upload-button,
-.customize-control-image .remove-button,
-.customize-control-image .default-button,
-.customize-control-image .upload-button,
-.customize-control-background .remove-button,
-.customize-control-background .default-button,
-.customize-control-background .upload-button,
-.customize-control-cropped_image .remove-button,
-.customize-control-cropped_image .default-button,
-.customize-control-cropped_image .upload-button,
-.customize-control-site_icon .remove-button,
-.customize-control-site_icon .default-button,
-.customize-control-site_icon .upload-button,
+.customize-control .attachment-media-view .remove-button,
+.customize-control .attachment-media-view .default-button,
+.customize-control .attachment-media-view .upload-button,
 .customize-control-header button.new,
 .customize-control-header button.remove {
        white-space: normal;
@@ -772,48 +799,25 @@ p.customize-section-description {
        height: auto;
 }
 
-.customize-control-media .current .container,
-.customize-control-upload .current .container,
-.customize-control-image .current .container,
-.customize-control-background .current .container,
-.customize-control-cropped_image .current .container,
-.customize-control-site_icon .current .container,
+.customize-control .attachment-media-view .thumbnail,
 .customize-control-header .current .container {
        overflow: hidden;
-       -webkit-border-radius: 2px;
-       border: 1px solid #eee;
-       -webkit-border-radius: 2px;
-       border-radius: 2px;
-}
-
-.customize-control-media .current .container,
-.customize-control-upload .current .container,
-.customize-control-background .current .container,
-.customize-control-cropped_image .current .container,
-.customize-control-site_icon .current .container,
-.customize-control-image .current .container {
-       min-height: 40px;
 }
 
-.customize-control-media .placeholder,
-.customize-control-upload .placeholder,
-.customize-control-image .placeholder,
-.customize-control-background .placeholder,
-.customize-control-cropped_image .placeholder,
-.customize-control-site_icon .placeholder,
+.customize-control .attachment-media-view .placeholder,
 .customize-control-header .placeholder {
        width: 100%;
        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;
+       padding: 9px 0;
+       line-height: 20px;
 }
 
-.customize-control-media .inner,
-.customize-control-upload .inner,
-.customize-control-image .inner,
-.customize-control-background .inner,
-.customize-control-cropped_image .inner,
-.customize-control-site_icon .inner,
 .customize-control-header .inner {
        display: none;
        position: absolute;
@@ -824,26 +828,10 @@ p.customize-section-description {
        overflow: hidden;
 }
 
-.customize-control-media .inner,
-.customize-control-upload .inner,
-.customize-control-background .inner,
-.customize-control-cropped_image .inner,
-.customize-control-site_icon .inner,
-.customize-control-image .inner {
-       display: block;
-       min-height: 40px;
-}
-
-.customize-control-media .inner,
-.customize-control-upload .inner,
-.customize-control-image .inner,
-.customize-control-background .inner,
-.customize-control-cropped_image .inner,
-.customize-control-site_icon .inner,
 .customize-control-header .inner,
 .customize-control-header .inner .dashicons {
        line-height: 20px;
-       top: 10px;
+       top: 8px;
 }
 
 .customize-control-header .list .inner,
@@ -939,16 +927,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;
@@ -959,41 +937,19 @@ p.customize-section-description {
        margin-bottom: 0;
 }
 
-.customize-control-media img,
-.customize-control-upload img,
-.customize-control-image img,
-.customize-control-background img,
-.customize-control-cropped_image img,
-.customize-control-site_icon img,
+.customize-control .attachment-media-view .thumbnail-image img,
 .customize-control-header img {
-       width: 100%;
-       -webkit-border-radius: 2px;
-       border-radius: 2px;
+       max-width: 100%;
 }
 
-.customize-control-media .remove-button,
-.customize-control-media .default-button,
-.customize-control-upload .remove-button,
-.customize-control-upload .default-button,
-.customize-control-image .remove-button,
-.customize-control-image .default-button,
-.customize-control-background .remove-button,
-.customize-control-background .default-button,
-.customize-control-cropped_image .remove-button,
-.customize-control-cropped_image .default-button,
-.customize-control-site_icon .remove-button,
-.customize-control-site_icon .default-button,
+.customize-control .attachment-media-view .remove-button,
+.customize-control .attachment-media-view .default-button,
 .customize-control-header .remove {
        float: left;
        margin-right: 3px;
 }
 
-.customize-control-media .upload-button,
-.customize-control-upload .upload-button,
-.customize-control-image .upload-button,
-.customize-control-background .upload-button,
-.customize-control-cropped_image .upload-button,
-.customize-control-site_icon .upload-button,
+.customize-control .attachment-media-view .upload-button,
 .customize-control-header .new {
        float: right;
 }
@@ -1054,7 +1010,7 @@ p.customize-section-description {
        right: 10px;
        top: 50%;
        margin-top: -14px;
-       font-weight: normal;
+       font-weight: 400;
 }
 
 .control-section-themes .accordion-section-title:before {
@@ -1220,10 +1176,11 @@ 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;
+       font-size: 24px;
+       font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
        margin: 30px 0 0 0;
        padding: 0;
        padding-bottom: 7px;
@@ -1278,6 +1235,7 @@ body.cheatin p {
 
 /* Reordering */
 .reorder-toggle {
+       color: #0073aa;
        float: right;
        padding: 5px 8px;
        text-decoration: none;
@@ -1289,6 +1247,10 @@ body.cheatin p {
        user-select: none;
 }
 
+.reorder-toggle:hover {
+       color: #00a0d2;
+}
+
 .reorder-toggle:focus {
        outline: 1px dotted;
 }
@@ -1311,6 +1273,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 +1494,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;
        }
@@ -1364,10 +1511,11 @@ body.cheatin p {
                left: 48px;
                line-height: 45px;
                font-size: 14px;
-               padding: 0 12px 0 12px;
+               padding: 0 12px;
                margin: 0;
                height: 45px;
                background: #eee;
+               border: 0;
                border-right: 1px solid #ddd;
                color: #444;
                cursor: pointer;
@@ -1423,4 +1571,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;
+       }
 }