]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/css/customize-controls.css
WordPress 4.5.2-scripts
[autoinstalls/wordpress.git] / wp-admin / css / customize-controls.css
index 46c4170bfff4e7cc038a059c191599ebe8ad05bb..36e512aa017feffe9965d7641b8b93340219c7a0 100644 (file)
@@ -82,7 +82,7 @@ body {
 #customize-controls .customize-info .panel-title {
        font-size: 20px;
        font-weight: 200;
-       line-height: 24px;
+       line-height: 26px;
        display: block;
        overflow: hidden;
        white-space: nowrap;
@@ -123,13 +123,17 @@ body {
        color: #0073aa;
 }
 
-#customize-controls .customize-info .customize-panel-description {
+#customize-controls .customize-info .customize-panel-description,
+#customize-controls .no-widget-areas-rendered-notice {
        color: #555;
        display: none;
        background: #fff;
        padding: 12px 15px;
        border-top: 1px solid #ddd;
 }
+#customize-controls .customize-info .customize-panel-description.open + .no-widget-areas-rendered-notice {
+       border-top: none;
+}
 
 #customize-controls .customize-info .customize-panel-description p:first-child {
        margin-top: 0;
@@ -155,6 +159,7 @@ body {
 
 #customize-theme-controls .accordion-section-title:after {
        content: "\f345";
+       color: #a0a5aa;
 }
 
 #customize-theme-controls .accordion-section-content {
@@ -207,7 +212,7 @@ body {
        left: 100%;
        width: 100%;
        margin: 0;
-       padding: 12px;
+       padding: 12px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
@@ -318,7 +323,7 @@ h3.customize-section-title {
        display: block;
        float: left;
        width: 48px;
-       height: 69px;
+       height: 71px;
        padding: 0 24px 0 0;
        margin: 0;
        background: #fff;
@@ -332,7 +337,7 @@ h3.customize-section-title {
 }
 
 .customize-section-back {
-       height: 70px;
+       height: 74px;
 }
 
 .ios .customize-panel-back,
@@ -391,7 +396,7 @@ h3.customize-section-title {
 
 .customize-panel-back:before,
 .customize-section-back:before {
-       font: normal 20px/69px dashicons;
+       font: normal 20px/72px dashicons;
        content: "\f341";
        position: relative;
        left: 13px;
@@ -530,13 +535,25 @@ p.customize-section-description {
 }
 
 .customize-control-color .color-picker,
-.customize-control-checkbox label,
 .customize-control-upload div {
        line-height: 28px;
 }
 
-.customize-control-checkbox input {
-       margin-right: 5px;
+.customize-control-radio label,
+.customize-control-checkbox label,
+.customize-control-nav_menu_auto_add label {
+       line-height: 20px;
+       display: block;
+       margin-left: 24px;
+       padding-top: 6px;
+       padding-bottom: 6px;
+}
+
+.customize-control-radio input,
+.customize-control-checkbox input,
+.customize-control-nav_menu_auto_add input {
+       margin-right: 4px;
+       margin-left: -24px;
 }
 
 .customize-control-radio {
@@ -552,14 +569,6 @@ p.customize-section-description {
        margin-top: 7px;
 }
 
-.customize-control-radio label {
-       line-height: 32px;
-}
-
-.customize-control-radio input {
-       margin-right: 5px;
-}
-
 .customize-control .attachment-thumb.type-icon {
        float: left;
        margin: 10px;
@@ -602,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 {
@@ -611,9 +624,10 @@ p.customize-section-description {
 
 /* Style for custom settings */
 
-/*
+/**
  * Dropdowns
  */
+
 .accordion-section .dropdown {
        float: left;
        display: block;
@@ -636,6 +650,7 @@ p.customize-section-description {
        user-select: none;
 }
 
+/* @todo maybe no more used? */
 .customize-control .dropdown-arrow {
        position: absolute;
        top: 0;
@@ -647,7 +662,7 @@ p.customize-section-description {
 
 .customize-control .dropdown-arrow:after {
        content: "\f140";
-       font: normal 20px/1 'dashicons';
+       font: normal 20px/1 dashicons;
        speak: none;
        display: block;
        padding: 0;
@@ -694,11 +709,8 @@ p.customize-section-description {
  * iOS can't scroll iframes,
  * instead it expands the iframe size to match the size of the content
  */
-.ios .wp-full-overlay {
-       position: relative;
-}
 
-.ios #customize-preview {
+.ios .wp-full-overlay {
        position: relative;
 }
 
@@ -706,7 +718,7 @@ p.customize-section-description {
        -webkit-overflow-scrolling: touch;
 }
 
-/** Media controls **/
+/* Media controls */
 
 .customize-control-media .current,
 .customize-control-upload .current,
@@ -796,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,
@@ -833,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,
@@ -929,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;
@@ -954,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;
@@ -991,6 +997,7 @@ p.customize-section-description {
 /**
  * Themes
  */
+
 @-webkit-keyframes customize-reload {
        0%   { opacity: 0; }
        100% { opacity: 1; }
@@ -1208,18 +1215,288 @@ body.cheatin {
        box-shadow: 0 1px 3px rgba(0,0,0,0.13);
 }
 
+body.cheatin h1 {
+       border-bottom: 1px solid #ddd;
+       clear: both;
+       color: #666;
+       font: 24px "Open Sans", sans-serif;
+       margin: 30px 0 0 0;
+       padding: 0;
+       padding-bottom: 7px;
+}
+
 body.cheatin p {
        font-size: 14px;
        line-height: 1.5;
        margin: 25px 0 20px;
 }
 
+/**
+ * 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: 780px) {
+@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;
@@ -1228,6 +1505,23 @@ body.cheatin p {
        .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 ) {
@@ -1239,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;
        }
@@ -1309,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;
+       }
 }