X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/256a3b381f63716209b3527d0a14442ae570c283..849f15aeed7a5e39314057bdc0064d8edd60dd7d:/wp-admin/css/customize-controls.css diff --git a/wp-admin/css/customize-controls.css b/wp-admin/css/customize-controls.css index 63a3a3a4..599fdac3 100644 --- a/wp-admin/css/customize-controls.css +++ b/wp-admin/css/customize-controls.css @@ -10,6 +10,10 @@ body { font-size: 14px; } +#customize-controls img { + max-width: 100%; +} + #customize-controls .submit { text-align: center; } @@ -32,6 +36,15 @@ body { display: block; } +#customize-header-actions { + border-bottom: 1px solid #ddd; +} + +#customize-controls .wp-full-overlay-sidebar-content { + overflow-y: auto; + overflow-x: hidden; +} + #customize-info { border: none; border-top: 1px solid #ddd; @@ -45,22 +58,12 @@ body { border-bottom: 1px solid #eeeeee; } -#customize-info.open .accordion-section-title, -#customize-info .accordion-section-title:hover, -#customize-info .accordion-section-title:focus { - color: #555555; -} - #customize-info.open .accordion-section-title:after, #customize-info .accordion-section-title:hover:after, #customize-info .accordion-section-title:focus:after { color: #555555; } -#customize-info.open .accordion-section-title { - border-color: transparent; -} - #customize-info .preview-notice { font-size: 13px; line-height: 24px; @@ -83,11 +86,6 @@ body { line-height: 20px; } -#customize-theme-controls { - -webkit-box-shadow: 0px 1px 1px -1px rgba(0, 0, 0, 0.1); - box-shadow: 0px 1px 1px -1px rgba(0, 0, 0, 0.1); -} - #customize-theme-controls .control-section { border: none; } @@ -100,14 +98,17 @@ body { #customize-theme-controls .accordion-section-content { color: #555555; - background: white; + background: #fff; } -#customize-theme-controls .control-section:hover .accordion-section-title, +#customize-info.open .accordion-section-title, +#customize-info .accordion-section-title:hover, +#customize-info .accordion-section-title:focus, +#customize-theme-controls .control-section:hover > .accordion-section-title, #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: #555555; + color: #222; background: #f5f5f5; } @@ -118,13 +119,14 @@ body { background: #f5f5f5; } -#customize-theme-controls .control-section:hover .accordion-section-title::after, -#customize-theme-controls .control-section .accordion-section-title:hover::after, -#customize-theme-controls .control-section.open .accordion-section-title::after, -#customize-theme-controls .control-section .accordion-section-title:focus::after { - color: #555555; +#customize-theme-controls .control-section:hover > .accordion-section-title:after, +#customize-theme-controls .control-section .accordion-section-title:hover:after, +#customize-theme-controls .control-section.open .accordion-section-title:after, +#customize-theme-controls .control-section .accordion-section-title:focus:after { + color: #555; } +#customize-info.open, #customize-theme-controls .control-section.open { border-bottom: 1px solid #eeeeee; } @@ -134,7 +136,7 @@ body { } #customize-theme-controls .control-section:last-of-type.open, -#customize-theme-controls .control-section:last-of-type .accordion-section-title { +#customize-theme-controls .control-section:last-of-type > .accordion-section-title { border-bottom-color: #ddd; } @@ -143,6 +145,192 @@ body { margin: 0; } +.control-section.control-panel > .accordion-section-title { + padding-right: 54px; +} + +.control-section.control-panel > .accordion-section-title:after { + content: "\f345"; + background: #f5f5f5; + color: #555; + width: 38px; + height: 100%; + margin: -11px -10px -11px 0; /* compensate for positioning */ + line-height: 45px; + padding-left: 5px; + border-left: 1px solid #eee; + 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; + color: #000; + border: 1px solid #d9d9d9; + border-right: none; + margin-top: -12px; + line-height: 44px; + z-index: 1; +} + +.accordion-sub-container.control-panel-content { + display: none; + position: absolute; + left: 300px; + top: 0; + width: 300px; + border-top: 1px solid #ddd; + -webkit-transition: left ease-in-out .18s; + transition: left ease-in-out .18s; +} + +.accordion-sub-container.control-panel-content.animating { + display: block; +} + +.current-panel .accordion-sub-container.control-panel-content { + width: 100%; +} + +.customize-controls-close { + display: block; + position: absolute; + top: 0; + left: 0; + width: 45px; + height: 45px; + padding-right: 2px; + 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; +} + +.control-panel-back { + display: block; + position: fixed; + top: 0; + z-index: 99; + left: -48px; + width: 45px; + height: 45px; + padding-right: 2px; + background: #eee; + border-right: 1px solid #ddd; + cursor: pointer; + -webkit-transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; + transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; +} + +.collapsed .control-panel-back { + display: none; +} + +.customize-controls-close:focus, +.customize-controls-close:hover, +.control-panel-back:focus, +.control-panel-back:hover { + background: #ddd; + border-color: #ccc; + color: #000; + outline: none; + -webkit-box-shadow: none; + box-shadow: none; +} + +.customize-controls-close:before { + font: normal 22px/1 dashicons; + content: "\f335"; + position: relative; + top: 7px; + left: 13px; +} + +.control-panel-back:before { + font: normal 20px/1 dashicons; + content: "\f341"; + position: relative; + top: 7px; + left: 13px; +} + +.rtl .control-panel-back:before { + content: "\f345"; +} + +.in-sub-panel .control-panel-back { + left: 0; +} + +.current-panel > .accordion-section-title { + height: 22px; +} + +.wp-full-overlay-sidebar .wp-full-overlay-header { + -webkit-transition: padding ease-in-out .18s; + transition: padding ease-in-out .18s; +} + +.in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header { + padding-left: 62px; +} + +#customize-info, +#customize-theme-controls > ul > .accordion-section { + position: relative; + left: 0; + -webkit-transition: left ease-in-out .18s; + transition: left ease-in-out .18s; +} + +.in-sub-panel #customize-info, +.in-sub-panel #customize-theme-controls > ul > .accordion-section { + left: -300px; + width: 300px; +} + +.in-sub-panel #customize-theme-controls .accordion-section.current-panel { + width: 100%; +} + +#customize-theme-controls .control-section.current-panel { + padding: 0; +} + +#customize-theme-controls .control-section > h3.accordion-section-title { + position: relative; + left: 0; +} + +#customize-theme-controls .control-section.current-panel > h3.accordion-section-title { + left: -300px; + -webkit-transition: left ease-in-out .18s; + transition: left ease-in-out .18s; +} + +.control-section.control-panel .accordion-section-title .panel-title { + font-size: 20px; + font-weight: 200; + line-height: 24px; + display: block; + border: none; +} + +.control-section.control-panel .preview-notice { + font-size: 13px; + line-height: 24px; +} + +p.customize-section-description { + font-style: normal; +} + .customize-control { width: 100%; float: left; @@ -151,18 +339,28 @@ body { } .customize-control select, -.customize-control input[type="text"], .customize-control input[type="radio"], .customize-control input[type="checkbox"] { line-height: 28px; } -.customize-control input[type="text"] { +.customize-control input[type="text"], +.customize-control input[type="password"], +.customize-control input[type="email"], +.customize-control input[type="number"], +.customize-control input[type="search"], +.customize-control input[type="tel"], +.customize-control input[type="url"] { width: 98%; line-height: 18px; margin: 0; } +.customize-control-textarea textarea { + width: 100%; + resize: vertical; +} + .customize-control select { min-width: 50%; max-width: 100%; @@ -170,6 +368,10 @@ body { line-height: 28px; } +.customize-control select[multiple] { + height: auto; +} + .customize-control-title { display: block; font-size: 14px; @@ -178,6 +380,13 @@ body { margin-bottom: 5px; } +.customize-control-description { + display: block; + font-style: italic; + line-height: 18px; + margin-bottom: 5px; +} + .customize-control-color .color-picker, .customize-control-checkbox label, .customize-control-upload div { @@ -197,6 +406,10 @@ body { line-height: 22px; } +.customize-control-radio .customize-control-title + .customize-control-description { + margin-top: 7px; +} + .customize-control-radio label { line-height: 32px; } @@ -205,6 +418,38 @@ body { margin-right: 5px; } +.customize-control .attachment-thumb.type-icon { + float: left; + margin: 10px; + width: auto; +} + +.customize-control .attachment-title { + font-weight: bold; + margin: 0; + padding: 5px 10px; +} + +.customize-control .attachment-meta { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + margin: 0; + padding: 5px 10px 0; +} + +.customize-control .attachment-meta-title { + padding-top: 7px; +} + +.customize-control .thumbnail-image { + line-height: 0; +} + +.customize-control .thumbnail-image img { + cursor: pointer; +} + #customize-preview iframe { width: 100%; height: 100%; @@ -218,7 +463,9 @@ body { .collapse-sidebar { background-color: transparent !important; border: none !important; + -webkit-box-shadow: none !important; box-shadow: none !important; + -webkit-border-radius: 0 !important; border-radius: 0 !important; } @@ -256,6 +503,7 @@ body { border: 2px solid #eeeeee; -webkit-user-select: none; -moz-user-select: none; + -ms-user-select: none; user-select: none; } @@ -313,162 +561,290 @@ body { border-color: rgba(0, 0, 0, 0.25); } -/* - * Image Picker +/** + * iOS can't scroll iframes, + * instead it expands the iframe size to match the size of the content */ -.customize-control-image .library, -.customize-control-image .actions { - display: none; - float: left; +.ios .wp-full-overlay { + position: relative; +} + +.ios #customize-preview { + position: relative; +} + +.ios #customize-controls .wp-full-overlay-sidebar-content { + -webkit-overflow-scrolling: touch; +} + +/** Header control **/ + +.customize-control-upload .current, +.customize-control-image .current, +.customize-control-background .current, +.customize-control-header .current { + margin-bottom: 8px; +} + +.customize-control-header .uploaded { + margin-bottom: 18px; +} + +.customize-control-header .uploaded button:not(.random), +.customize-control-header .default button:not(.random) { width: 100%; + padding: 0; + margin: 0; + background: none; + border: none; + color: inherit; + cursor: pointer; } -.customize-control-image.open .library, -.customize-control-image.open .actions { +.customize-control-header button img { display: block; } -.accordion-section .customize-control-image .dropdown-content { +.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-header button.new, +.customize-control-header button.remove { + white-space: normal; + width: 48%; height: auto; - min-height: 24px; - min-width: 40px; - padding: 0; } -.accordion-section .customize-control-image .dropdown-status { - padding: 4px 5px; +.customize-control-upload .current .container, +.customize-control-image .current .container, +.customize-control-background .current .container, +.customize-control-header .current .container { + overflow: hidden; + -webkit-border-radius: 2px; + border: 1px solid #eee; + -webkit-border-radius: 2px; + border-radius: 2px; } -.accordion-section .customize-control-image .preview-thumbnail img { - display: block; - width: 100%; - max-width: 122px; - max-height: 98px; - margin: 0 auto; +.customize-control-upload .current .container, +.customize-control-background .current .container, +.customize-control-image .current .container { + min-height: 40px; } -.accordion-section .customize-control-image .actions { - text-align: right; +.customize-control-upload .placeholder, +.customize-control-image .placeholder, +.customize-control-background .placeholder, +.customize-control-header .placeholder { + width: 100%; + position: relative; + text-align: center; + cursor: default; } -.accordion-section .customize-control-image .library ul { - border-bottom: 1px solid #ddd; - float: left; +.customize-control-upload .inner, +.customize-control-image .inner, +.customize-control-background .inner, +.customize-control-header .inner { + display: none; + position: absolute; width: 100%; - margin: 10px 0 0; + color: #555; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; } -.accordion-section .customize-control-image .library li { - color: #ccc; - float: left; - padding: 3px 15px; - margin: 0; - border: 1px solid transparent; +.customize-control-upload .inner, +.customize-control-background .inner, +.customize-control-image .inner { + display: block; + min-height: 40px; } -.accordion-section .customize-control-image .library li.library-selected { - margin-bottom: -1px; - padding-bottom: 4px; - color: #666666; - border-color: #ddd; - border-bottom-color: #fff; +.customize-control-upload .inner, +.customize-control-image .inner, +.customize-control-background .inner, +.customize-control-header .inner, +.customize-control-header .inner .dashicons { + line-height: 20px; + top: 10px; } -.accordion-section .customize-control-image .library .thumbnail { - display: block; +.customize-control-header .list .inner, +.customize-control-header .list .inner .dashicons { + top: 9px; +} + +.customize-control-header .header-view { + position: relative; width: 100%; + margin-bottom: 5px; } -.accordion-section .customize-control-image .library .thumbnail img { - display: block; - max-width: 90%; - max-height: 80px; - margin: 5px auto; - padding: 2px; - background: #666666; +.customize-control-header .header-view:last-child { + margin-bottom: 0px; } -.accordion-section .customize-control-image .library .thumbnail:hover img { - background-color: #2ea2cc; +/* Convoluted, but 'outline' support isn't good enough yet */ +.customize-control-header .header-view:after { + border: 0; +} +.customize-control-header .header-view.selected:after { + content: ''; + position: absolute; + height: auto; + top: 0; left: 0; bottom: 0; right: 0; + border: 4px solid #2ea2cc; + -webkit-border-radius: 2px; + border-radius: 2px; +} +.customize-control-header .header-view.button.selected { + border: 0; } -.accordion-section .customize-control-image .library-content { - display: none; +/* Header control: overlay "close" button */ + +.customize-control-header .uploaded .header-view .close { + font-size: 2em; + color: grey; + position: absolute; + visibility: hidden; + top: 10px; + right: 10px; + z-index: 1; + width: 20px; + height: 20px; + cursor: pointer; +} + +.customize-control-header .uploaded .header-view .close:hover { + color: black; + text-shadow: + -1px -1px 0 #fff, + 1px -1px 0 #fff, + -1px 1px 0 #fff, + 1px 1px 0 #fff; +} + +.customize-control-header .header-view:hover .close { + visibility: visible; +} + +/* Header control: randomiz(s)er */ + +.customize-control-header .random.placeholder { + cursor: pointer; + -webkit-border-radius: 2px; + border-radius: 2px; + height: 40px; +} + +.customize-control-header button.random { width: 100%; - float: left; - padding: 10px 0; + height: auto; + min-height: 40px; + white-space: normal; } -.accordion-section .customize-control-image .library-content.library-selected { - display: block; +.customize-control-header button.random .dice { + margin-top: 4px; } -.accordion-section .customize-control-upload .upload-fallback, -.accordion-section .customize-control-image .upload-fallback { - display: none; +.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; } -.accordion-section .customize-control-upload .upload-dropzone, -.accordion-section .customize-control-image .upload-dropzone { - display: none; - padding: 15px 10px; - border: 3px dashed #dfdfdf; - margin: 5px auto; - text-align: center; - position: relative; - cursor: default; +@-webkit-keyframes dice-color-change { + 0% { color: #d4b146; } + 50% { color: #ef54b0; } + 75% { color: #7190d3; } + 100% { color: #d4b146; } } -.accordion-section .customize-control-upload .upload-dropzone.supports-drag-drop, -.accordion-section .customize-control-image .upload-dropzone.supports-drag-drop { - display: block; - -webkit-transition: border-color 0.1s; - -moz-transition: border-color 0.1s; - -ms-transition: border-color 0.1s; - -o-transition: border-color 0.1s; - transition: border-color 0.1s; +@-ms-keyframes dice-color-change { + 0% { color: #d4b146; } + 50% { color: #ef54b0; } + 75% { color: #7190d3; } + 100% { color: #d4b146; } } -.accordion-section .customize-control-upload .library ul li, -.accordion-section .customize-control-image .library ul li { - cursor: pointer; +@keyframes dice-color-change { + 0% { color: #d4b146; } + 50% { color: #ef54b0; } + 75% { color: #7190d3; } + 100% { color: #d4b146; } } -.accordion-section .customize-control-upload .upload-dropzone.supports-drag-drop.drag-over, -.accordion-section .customize-control-image .upload-dropzone.supports-drag-drop.drag-over { - border-color: #83b4d8; +.customize-control-upload .actions, +.customize-control-image .actions, +.customize-control-background .actions, +.customize-control-header .actions { + margin-bottom: 32px; } -/** - * iOS can't scroll iframes, - * instead it expands the iframe size to match the size of the content - */ -.ios .wp-full-overlay { +.customize-control-header .choice { position: relative; + display: block; + margin-bottom: 9px; } -.ios #customize-preview { - position: relative; +.customize-control-header .uploaded div:last-child > .choice { + margin-bottom: 0; } -.ios #customize-controls .wp-full-overlay-sidebar-content { - -webkit-overflow-scrolling: touch; +.customize-control-upload img, +.customize-control-image img, +.customize-control-background img, +.customize-control-header img { + width: 100%; + -webkit-border-radius: 2px; + border-radius: 2px; +} + +.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-header .remove { + float: left; + margin-right: 3px; } +.customize-control-upload .upload-button, +.customize-control-image .upload-button, +.customize-control-background .upload-button, +.customize-control-header .new { + float: right; +} + + /** Handle cheaters. */ body.cheatin { + font-size: medium; + height: auto; + background: #fff; + margin: 50px auto 2em; + padding: 1em 2em; + max-width: 700px; min-width: 0; - background: #f9f9f9; - padding: 50px; + -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13); + box-shadow: 0 1px 3px rgba(0,0,0,0.13); } body.cheatin p { - max-width: 700px; - margin: 0 auto; - padding: 2em; font-size: 14px; - background: #555555; - border: 1px solid #dfdfdf; - -webkit-border-radius: 3px; - border-radius: 3px; + line-height: 1.5; + margin: 25px 0 20px; }