]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/css/customize-controls.css
WordPress 4.2
[autoinstalls/wordpress.git] / wp-admin / css / customize-controls.css
index 599fdac310c45268f7b0e7a875d0377e1916dab2..becc7a532eb2c0cc2aad24f02dabc446db3c5cfb 100644 (file)
@@ -1,5 +1,6 @@
 body {
        overflow: hidden;
+       -webkit-text-size-adjust: 100%;
 }
 
 #customize-controls a {
@@ -28,18 +29,22 @@ body {
 }
 
 #customize-header-actions .spinner {
-       margin-top: 16px;
+       margin-top: 13px;
        margin-right: 4px;
 }
 
 .saving #customize-header-actions .spinner {
-       display: block;
+       visibility: visible;
 }
 
 #customize-header-actions {
        border-bottom: 1px solid #ddd;
 }
 
+#customize-header-actions .secondary-actions {
+       display: none;
+}
+
 #customize-controls .wp-full-overlay-sidebar-content {
        overflow-y: auto;
        overflow-x: hidden;
@@ -108,7 +113,7 @@ body {
 #customize-theme-controls .control-section .accordion-section-title:hover,
 #customize-theme-controls .control-section.open .accordion-section-title,
 #customize-theme-controls .control-section .accordion-section-title:focus {
-       color: #222;
+       color: #23282d;
        background: #f5f5f5;
 }
 
@@ -162,10 +167,6 @@ body {
        z-index: 0;
 }
 
-.rtl .control-section.control-panel > .accordion-section-title:after {
-       content: "\f341";
-}
-
 #customize-theme-controls .control-section.control-panel > h3.accordion-section-title:focus:after,
 #customize-theme-controls .control-section.control-panel > h3.accordion-section-title:hover:after {
        background: #ddd;
@@ -196,6 +197,7 @@ body {
        width: 100%;
 }
 
+.customize-overlay-close,
 .customize-controls-close {
        display: block;
        position: absolute;
@@ -203,13 +205,25 @@ body {
        left: 0;
        width: 45px;
        height: 45px;
-       padding-right: 2px;
+       padding: 0 2px 0 0;
        background: #eee;
+       border: none;
        border-right: 1px solid #ddd;
        color: #444;
+       text-align: left;
        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;
+       -webkit-box-sizing: content-box;
+       -moz-box-sizing: content-box;
+       box-sizing: content-box;
+}
+
+.customize-overlay-close {
+       left: auto;
+       right: 0;
+       border-right: 0;
+       border-left: 1px solid #ddd;
 }
 
 .control-panel-back {
@@ -228,14 +242,23 @@ body {
        transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out;
 }
 
+.ios .control-panel-back {
+       -webkit-transition: left 0s;
+       transition: left 0s;
+}
+
 .collapsed .control-panel-back {
        display: none;
 }
 
+.customize-overlay-close:focus,
+.customize-overlay-close:hover,
 .customize-controls-close:focus,
 .customize-controls-close:hover,
 .control-panel-back:focus,
-.control-panel-back:hover {
+.control-panel-back:hover,
+.customize-controls-preview-toggle:focus,
+.customize-controls-preview-toggle:hover {
        background: #ddd;
        border-color: #ccc;
        color: #000;
@@ -244,26 +267,23 @@ body {
        box-shadow: none;
 }
 
+.customize-overlay-close:before,
 .customize-controls-close:before {
-       font: normal 22px/1 dashicons;
+       font: normal 22px/45px dashicons;
        content: "\f335";
        position: relative;
-       top: 7px;
+       top: 1px;
        left: 13px;
 }
 
 .control-panel-back:before {
-       font: normal 20px/1 dashicons;
+       font: normal 20px/45px dashicons;
        content: "\f341";
        position: relative;
-       top: 7px;
+       top: 1px;
        left: 13px;
 }
 
-.rtl .control-panel-back:before {
-       content: "\f345";
-}
-
 .in-sub-panel .control-panel-back {
        left: 0;
 }
@@ -289,6 +309,12 @@ body {
        transition: left ease-in-out .18s;
 }
 
+.ios #customize-info,
+.ios #customize-theme-controls > ul > .accordion-section {
+       -webkit-transition: left 0s;
+       transition: left 0s;
+}
+
 .in-sub-panel #customize-info,
 .in-sub-panel #customize-theme-controls > ul > .accordion-section {
        left: -300px;
@@ -309,11 +335,16 @@ body {
 }
 
 #customize-theme-controls .control-section.current-panel > h3.accordion-section-title {
-       left: -300px;
+       left: -354px;
        -webkit-transition: left ease-in-out .18s;
        transition: left ease-in-out .18s;
 }
 
+.ios #customize-theme-controls .control-section.current-panel > h3.accordion-section-title {
+       -webkit-transition: left 0s;
+       transition: left 0s;
+}
+
 .control-section.control-panel .accordion-section-title .panel-title {
        font-size: 20px;
        font-weight: 200;
@@ -356,6 +387,10 @@ p.customize-section-description {
        margin: 0;
 }
 
+.customize-control-hidden {
+       margin: 0;
+}
+
 .customize-control-textarea textarea {
        width: 100%;
        resize: vertical;
@@ -435,7 +470,7 @@ p.customize-section-description {
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
-       padding: 5px 10px 0;
+       padding: 0 10px;
 }
 
 .customize-control .attachment-meta-title {
@@ -450,6 +485,13 @@ p.customize-section-description {
        cursor: pointer;
 }
 
+#customize-controls .thumbnail-audio .thumbnail {
+       max-width: 64px;
+       max-height: 64px;
+       margin: 10px;
+       float: left;
+}
+
 #customize-preview iframe {
        width: 100%;
        height: 100%;
@@ -477,7 +519,7 @@ p.customize-section-description {
 }
 
 .collapsed .collapse-sidebar-arrow:before {
-       color: #888;
+       color: #82878c;
 }
 
 /* Style for custom settings */
@@ -528,11 +570,11 @@ p.customize-section-description {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-decoration: none !important;
-       color: #333;
+       color: #32373c;
 }
 
 .customize-control .dropdown-status {
-       color: #333;
+       color: #32373c;
        background: #eeeeee;
        display: none;
        max-width: 112px;
@@ -577,8 +619,9 @@ p.customize-section-description {
        -webkit-overflow-scrolling: touch;
 }
 
-/** Header control **/
+/** Media controls **/
 
+.customize-control-media .current,
 .customize-control-upload .current,
 .customize-control-image .current,
 .customize-control-background .current,
@@ -605,6 +648,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,
@@ -621,6 +667,7 @@ 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,
@@ -632,12 +679,14 @@ p.customize-section-description {
        border-radius: 2px;
 }
 
+.customize-control-media .current .container,
 .customize-control-upload .current .container,
 .customize-control-background .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,
@@ -648,6 +697,7 @@ p.customize-section-description {
        cursor: default;
 }
 
+.customize-control-media .inner,
 .customize-control-upload .inner,
 .customize-control-image .inner,
 .customize-control-background .inner,
@@ -661,6 +711,7 @@ p.customize-section-description {
        overflow: hidden;
 }
 
+.customize-control-media .inner,
 .customize-control-upload .inner,
 .customize-control-background .inner,
 .customize-control-image .inner {
@@ -668,6 +719,7 @@ p.customize-section-description {
        min-height: 40px;
 }
 
+.customize-control-media .inner,
 .customize-control-upload .inner,
 .customize-control-image .inner,
 .customize-control-background .inner,
@@ -701,7 +753,7 @@ p.customize-section-description {
        position: absolute;
        height: auto;
        top: 0; left: 0; bottom: 0; right: 0;
-       border: 4px solid #2ea2cc;
+       border: 4px solid #00a0d2;
        -webkit-border-radius: 2px;
        border-radius: 2px;
 }
@@ -760,7 +812,6 @@ p.customize-section-description {
 .customize-control-header .placeholder:hover .dice,
 .customize-control-header .header-view:hover > button.random .dice {
        -webkit-animation: dice-color-change 3s infinite;
-       -ms-animation: dice-color-change 3s infinite;
        animation: dice-color-change 3s infinite;
 }
 
@@ -771,13 +822,6 @@ p.customize-section-description {
        100% { color: #d4b146; }
 }
 
-@-ms-keyframes dice-color-change {
-       0% { color: #d4b146; }
-       50% { color: #ef54b0; }
-       75% { color: #7190d3; }
-       100% { color: #d4b146; }
-}
-
 @keyframes dice-color-change {
        0% { color: #d4b146; }
        50% { color: #ef54b0; }
@@ -785,6 +829,7 @@ p.customize-section-description {
        100% { color: #d4b146; }
 }
 
+.customize-control-media .actions,
 .customize-control-upload .actions,
 .customize-control-image .actions,
 .customize-control-background .actions,
@@ -802,6 +847,7 @@ p.customize-section-description {
        margin-bottom: 0;
 }
 
+.customize-control-media img,
 .customize-control-upload img,
 .customize-control-image img,
 .customize-control-background img,
@@ -811,6 +857,8 @@ p.customize-section-description {
        border-radius: 2px;
 }
 
+.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,
@@ -822,6 +870,7 @@ p.customize-section-description {
        margin-right: 3px;
 }
 
+.customize-control-media .upload-button,
 .customize-control-upload .upload-button,
 .customize-control-image .upload-button,
 .customize-control-background .upload-button,
@@ -829,8 +878,195 @@ p.customize-section-description {
        float: right;
 }
 
+/**
+ * Themes
+ */
+@-webkit-keyframes customize-reload {
+       0%   { opacity: 0; }
+       100% { opacity: 1; }
+}
+
+@keyframes customize-reload {
+       0%   { opacity: 0; }
+       100% { opacity: 1; }
+}
+
+/* #customize-container is reused from customize-loader.js, hence the naming. */
+.wp-customizer .customize-loading #customize-container {
+       display: block;
+       -webkit-animation: customize-reload .75s; /* Can't use `transition` because `display` changes here. */
+       animation: customize-reload .75s;
+}
+
+.control-section-themes .accordion-section-title {
+       cursor: default;
+}
+
+#customize-theme-controls .control-section-themes .accordion-section-title:hover,
+#customize-theme-controls .control-section-themes .accordion-section-title:focus {
+       color: #555555;
+       background-color: #fff;
+}
+
+.control-section-themes .accordion-section-title {
+       margin: 15px 0;
+}
+
+.customize-themes-panel .accordion-section-title {
+       margin: 15px -8px;
+}
+
+.control-section-themes .accordion-section-title {
+       padding-right: 100px; /* Space for the button */
+}
 
-/** Handle cheaters. */
+.control-section-themes .accordion-section-title span {
+       font-size: small;
+       display: block;
+       font-weight: 400;
+}
+
+.control-section-themes .accordion-section-title .change-theme,
+.control-section-themes .accordion-section-title .customize-theme {
+       position: absolute;
+       right: 10px;
+       top: 50%;
+       margin-top: -14px;
+       font-weight: normal;
+}
+
+.customize-themes-panel {
+       display: none;
+       padding: 0 8px;
+       background: #f1f1f1;
+       box-sizing: border-box;
+       -webkit-box-sizing: border-box;
+       -moz-box-sizing: border-box;
+       box-sizing: border-box;
+}
+
+
+.customize-themes-panel > h2 {
+       padding: 15px 8px 0 8px;
+}
+
+.control-section.open .customize-themes-panel {
+       display: block;
+}
+
+#customize-theme-controls .customize-themes-panel .accordion-section-content {
+       background: transparent;
+       display: block;
+}
+
+.customize-control.customize-control-theme {
+       margin-bottom: 8px;
+}
+
+.wp-customizer .theme-browser .themes {
+       padding-bottom: 8px;
+}
+
+.wp-customizer .theme-browser .theme {
+       margin: 0;
+       width: 100%;
+}
+
+.wp-customizer .theme-browser .theme .theme-actions {
+       -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
+       opacity: 1;
+}
+
+#customize-controls h3.theme-name {
+       font-size: 15px;
+}
+
+#customize-controls .theme-overlay .theme-name {
+       font-size: 32px;
+}
+
+.wp-customizer #themes-filter {
+       font-size: 16px;
+       font-weight: 300;
+       line-height: 1.5;
+       width: 100%;
+}
+
+#accordion-section-themes .accordion-section-title:after {
+       display: none;
+}
+
+#customize-theme-controls .control-section-themes.current-panel > h3.accordion-section-title {
+       left: 0;
+}
+
+.customize-themes-panel.control-panel-content {
+       position: absolute;
+       left: -100%;
+       top: 0;
+       width: 100%;
+       border-top: 1px solid #ddd;
+}
+
+.in-themes-panel #customize-info,
+.in-themes-panel #customize-theme-controls > ul > .accordion-section {
+       left: 100%;
+}
+
+/* Details View */
+.wp-customizer .theme-overlay {
+       display: none;
+}
+
+.wp-customizer.modal-open .theme-overlay {
+       position: fixed;
+       left: 0;
+       top: 0;
+       right: 0;
+       bottom: 0;
+       z-index: 109;
+}
+
+.wp-customizer .theme-overlay .theme-backdrop {
+       background: rgba( 238, 238, 238, 0.75 );
+       position: fixed;
+       z-index: 110;
+}
+
+.wp-customizer .theme-overlay .theme-wrap {
+       left: 90px;
+       right: 90px;
+       top: 45px;
+       bottom: 45px;
+       z-index: 120;
+       max-width: 1740px; /* To ensure that theme screenshots are not displayed larger than 880px wide. */
+}
+
+.wp-customizer .theme-overlay .theme-actions {
+       text-align: right; /* Because there's only one action, match the pattern of media modals and right-align the action. */
+}
+
+.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content {
+       overflow: visible; /* Prevent the top-level Customizer controls from becoming visible when elements on the right of the details modal are focused. */
+}
+
+.ie8 .wp-customizer .theme-overlay .theme-header,
+.ie8 .wp-customizer .theme-overlay .theme-about,
+.ie8 .wp-customizer .theme-overlay .theme-actions {
+       position: static;
+}
+
+/* Small Screens */
+@media (max-width:850px), (max-height:472px) {
+       .wp-customizer .theme-overlay .theme-wrap {
+               left: 0;
+               right: 0;
+               top: 0;
+               bottom: 0;
+       }
+}
+
+/* Handle cheaters. */
 body.cheatin {
        font-size: medium;
        height: auto;
@@ -848,3 +1084,108 @@ body.cheatin p {
        line-height: 1.5;
        margin: 25px 0 20px;
 }
+
+/* Responsive */
+.customize-controls-preview-toggle {
+       display: none;
+}
+
+@media only screen and (max-width: 780px) {
+       .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;
+       }
+}
+
+@media screen and ( max-width: 640px ) {
+       #customize-controls {
+               width: 100%;
+       }
+
+       .wp-full-overlay.expanded {
+               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 0 12px;
+               margin: 0;
+               height: 45px;
+               background: #eee;
+               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: "\f100";
+       }
+
+       .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;
+       }
+
+       .adding-widget #customize-header-actions .primary-actions {
+               display: none;
+       }
+
+       .adding-widget #customize-header-actions .secondary-actions {
+               display: block;
+       }
+
+       #customize-header-actions .button-primary {
+               margin-top: 6px;
+       }
+}