X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/e0feb3b2e5b436a06bbb04fbc838d1cd6ec95399..8d3bb1a5dcfdea9857d3c88c3751f09593e34dc8:/wp-admin/css/themes.css diff --git a/wp-admin/css/themes.css b/wp-admin/css/themes.css index 3121a1e4..ab67ad06 100644 --- a/wp-admin/css/themes.css +++ b/wp-admin/css/themes.css @@ -9,18 +9,12 @@ .theme-browser .themes { clear: both; - padding: 0 0 100px; } -.themes-php .wrap h1 { - float: left; +.themes-php:not(.network-admin) .wrap h1 { margin-bottom: 15px; } -.network-admin.themes-php .wrap h1 { - margin-bottom: 0; -} - .themes-php .wrap h1 .button { margin-left: 20px; } @@ -38,15 +32,13 @@ } /* Position admin messages */ -.themes-php div.updated, -.themes-php div.error, -.themes-php div.notice { - margin: 0 0 20px 0; - clear: both; -} - -.themes-php div.updated a { - text-decoration: underline; +.theme .notice, +.theme .notice.is-dismissible { + left: 0; + margin: 0; + position: absolute; + right: 0; + top: 0; } /** @@ -59,7 +51,7 @@ margin: 0 4% 4% 0; position: relative; width: 30.6%; - border: 1px solid #dedede; + border: 1px solid #ddd; -webkit-box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); -webkit-box-sizing: border-box; @@ -137,12 +129,13 @@ display: block; overflow: hidden; position: relative; + -webkit-backface-visibility: hidden; /* Prevents flicker of the screenshot on hover. */ -webkit-transition: opacity 0.2s ease-in-out; transition: opacity 0.2s ease-in-out; } .theme-browser .theme .theme-screenshot:after { - content: ''; + content: ""; display: block; padding-top: 66.66666%; /* using a 3/2 aspect ratio */ } @@ -172,8 +165,8 @@ opacity: 0; position: absolute; top: 35%; - right: 25%; - left: 25%; + right: 20%; + left: 20%; background: #23282d; background: rgba(0,0,0,0.7); color: #fff; @@ -210,48 +203,11 @@ opacity: 1; } -/** - * Displays a theme update notice - * when an update is available. - */ -.theme-browser .theme .theme-update, -.theme-browser .theme .theme-installed { - background: #d54e21; - background: rgba(213, 78, 33, 0.95); - color: #fff; - display: block; - font-size: 13px; - font-weight: 400; - height: 48px; - line-height: 48px; - padding: 0 10px; - position: absolute; - top: 0; - right: 0; - left: 0; - border-bottom: 1px solid rgba(0,0,0,0.25); - overflow: hidden; -} - -.theme-browser .theme .theme-update:before, -.theme-browser .theme .theme-installed:before { - content: '\f463'; - display: inline-block; - font: normal 20px/1 'dashicons'; - margin: 0 6px 0 0; - opacity: 0.8; - position: relative; - top: 5px; - speak: none; - -webkit-font-smoothing: antialiased; -} - - /** * The currently active theme */ .theme-browser .theme.active .theme-name { - background: #2f2f2f; + background: #23282d; color: #fff; padding-right: 110px; font-weight: 300; @@ -307,7 +263,6 @@ } .theme-browser .theme.add-new-theme a { - color: #999; text-decoration: none; display: block; position: relative; @@ -316,7 +271,7 @@ .theme-browser .theme.add-new-theme a:after { display: block; - content: ''; + content: ""; background: transparent; background: rgba(0, 0, 0, 0); position: absolute; @@ -339,9 +294,9 @@ -webkit-border-radius: 50%; border-radius: 50%; display: inline-block; - content: '\f132'; + content: "\f132"; -webkit-font-smoothing: antialiased; - font: normal 74px/115px 'dashicons'; + font: normal 74px/115px dashicons; width: 100px; height: 100px; vertical-align: middle; @@ -377,7 +332,7 @@ border-color: transparent; color: #fff; background: #0073aa; - content: ''; + content: ""; } .theme-browser .theme.add-new-theme .theme-name { @@ -441,10 +396,10 @@ } .theme-overlay .theme-header .close:before { - font: normal 22px/50px 'dashicons' !important; - color: #777; + font: normal 22px/50px dashicons !important; + color: #72777c; display: inline-block; - content: '\f335'; + content: "\f335"; font-weight: 300; } @@ -452,7 +407,7 @@ .theme-overlay .theme-header .right, .theme-overlay .theme-header .left { cursor: pointer; - color: #777; + color: #72777c; background-color: transparent; height: 48px; width: 54px; @@ -499,7 +454,7 @@ .theme-overlay .theme-header .right:before, .theme-overlay .theme-header .left:before { - font: normal 20px/50px 'dashicons' !important; + font: normal 20px/50px dashicons !important; display: inline; font-weight: 300; } @@ -529,15 +484,7 @@ -webkit-overflow-scrolling: touch; } -.theme-overlay .theme-wrap:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -body.folded .theme-overlay .theme-wrap { +body.folded .theme-browser ~ .theme-overlay .theme-wrap { left: 70px; } @@ -550,13 +497,6 @@ body.folded .theme-overlay .theme-wrap { overflow: auto; padding: 2% 4%; } -.theme-overlay .theme-about:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} .theme-overlay .theme-actions { position: absolute; @@ -647,7 +587,7 @@ body.folded .theme-overlay .theme-wrap { } .theme-overlay .screenshot:after { - content: ''; + content: ""; display: block; padding-top: 75%; /* using a 4/3 aspect ratio */ } @@ -682,7 +622,7 @@ body.folded .theme-overlay .theme-wrap { } .theme-overlay .screenshot.thumb:after { - content: ''; + content: ""; display: block; padding-top: 100%; /* using a 1/1 aspect ratio */ } @@ -741,10 +681,12 @@ body.folded .theme-overlay .theme-wrap { font-weight: 100; margin: 10px 0 0; line-height: 1.3; + word-wrap: break-word; + overflow-wrap: break-word; } .theme-overlay .theme-version { - color: #999; + color: #72777c; font-size: 13px; font-weight: 400; float: none; @@ -753,10 +695,11 @@ body.folded .theme-overlay .theme-wrap { } .theme-overlay .theme-author { - color: #686868; + margin: 15px 0 25px; + color: #72777c; font-size: 16px; font-weight: 400; - margin: 15px 0 25px; + line-height: inherit; } .theme-overlay .theme-author a { @@ -782,34 +725,16 @@ body.folded .theme-overlay .theme-wrap { .theme-overlay .theme-tags span { color: #444; - font-weight: bold; + font-weight: 600; margin-right: 5px; } -/* Theme Updates info */ -.theme-overlay .theme-update-message { - background: #fef7f1; - border: 1px solid #eee; - border-left: 4px solid #d54e21; - -webkit-border-radius: 3px; - border-radius: 3px; - padding: 5px 20px 10px; -} - -.theme-overlay .theme-update { - color: #23282d; - font-size: 18px; - display: inline-block; - line-height: 40px; - margin: 0; -} - .theme-overlay .parent-theme { background: #f7fcfe; border: 1px solid #eee; border-left: 4px solid #00a0d2; font-size: 14px; - font-weight: normal; + font-weight: 400; margin-top: 30px; padding: 10px 10px 10px 20px; } @@ -988,7 +913,6 @@ body.folded .theme-overlay .theme-wrap { } @media only screen and (max-width: 650px) { - .theme-overlay .theme-update, .theme-overlay .theme-description { margin-left: 0; } @@ -1033,7 +957,7 @@ body.folded .theme-overlay .theme-wrap { } .theme-browser .theme.add-new-theme span:after { - font: normal 60px/90px 'dashicons'; + font: normal 60px/90px dashicons; width: 80px; height: 80px; top: 30%; @@ -1078,11 +1002,18 @@ body.folded .theme-overlay .theme-wrap { .theme-browser .theme .theme-installed { background: #0073aa; } -.theme-browser .theme .theme-installed:before { - content: '\f147'; +.theme-browser .theme .notice-success p:before { + color: #79ba49; + content: "\f147"; + display: inline-block; + font: normal 20px/1 'dashicons'; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + vertical-align: top; } -.theme-browser .theme.is-installed .theme-actions .button-primary { - display: none !important; + +.theme-install.updated-message:before { + content: ''; } .theme-install-php .wp-filter { @@ -1093,13 +1024,16 @@ body.folded .theme-overlay .theme-wrap { .theme-install-php a.browse-themes { cursor: pointer; } -.theme-install-php a.browse-themes, -.theme-install-php.show-upload-theme a.upload { + +.upload-view-toggle .browse, +.plugin-install-tab-upload .upload-view-toggle .upload { display: none; } -.theme-install-php.show-upload-theme a.browse-themes { + +.plugin-install-tab-upload .upload-view-toggle .browse { display: inline; } + .upload-theme, .upload-plugin { -webkit-box-sizing: border-box; @@ -1107,16 +1041,24 @@ body.folded .theme-overlay .theme-wrap { box-sizing: border-box; display: none; margin: 0; - padding: 0; + padding: 50px 0; width: 100%; overflow: hidden; position: relative; top: 10px; } -body.show-upload-theme .upload-theme, -.upload-plugin { + +.upload-plugin-wrap { + display: none; +} + +.show-upload-view .upload-theme, +.show-upload-view .upload-plugin, +.show-upload-view .upload-plugin-wrap, +.plugin-install-tab-upload .upload-plugin { display: block; } + .upload-theme .wp-upload-form, .upload-plugin .wp-upload-form { background: #fafafa; @@ -1127,17 +1069,13 @@ body.show-upload-theme .upload-theme, } .upload-theme .install-help, .upload-plugin .install-help { - color: #999; + color: #555d66; /* #f1f1f1 background */ font-size: 18px; font-style: normal; margin: 0; - padding: 40px 0 0; + padding: 0; text-align: center; } -body.show-upload-theme .upload-theme + .wp-filter, -body.show-upload-theme .upload-theme + .wp-filter + .theme-browser { - display: none; -} p.no-themes { clear: both; @@ -1145,16 +1083,14 @@ p.no-themes { font-size: 18px; font-style: normal; margin: 0; - padding: 0; + padding: 100px 0; text-align: center; display: none; } -body.no-results p.no-themes { + +.no-results p.no-themes { display: block; } -body.show-upload-theme p.no-themes { - display: none !important; -} .theme-install-php .add-new-theme { display: none !important; @@ -1172,57 +1108,23 @@ body.show-upload-theme p.no-themes { } } +.theme-details .theme-rating { + line-height: 23px; +} + .theme-details .star-rating { - margin: 15px 0 0; + display: inline; } -.theme-details .star-rating span:before { - color: #ffb900; - content: "\f154"; - display: inline-block; - -webkit-font-smoothing: antialiased; - font: normal 20px/1 'dashicons'; - vertical-align: top; +.theme-details .num-ratings, +.theme-details .no-rating { + font-size: 11px; + color: #72777c; } -/* Half stars */ -.star-rating.rating-10 span.one:before, -.star-rating.rating-30 span.two:before, -.star-rating.rating-50 span.three:before, -.star-rating.rating-70 span.four:before, -.star-rating.rating-90 span.five:before { - content: "\f459"; -} - -/* Full stars */ -.star-rating.rating-20 span.one:before, -.star-rating.rating-30 span.one:before, -.star-rating.rating-40 span.one:before, -.star-rating.rating-40 span.two:before, -.star-rating.rating-50 span.one:before, -.star-rating.rating-50 span.two:before, -.star-rating.rating-60 span.one:before, -.star-rating.rating-60 span.two:before, -.star-rating.rating-60 span.three:before, -.star-rating.rating-70 span.one:before, -.star-rating.rating-70 span.two:before, -.star-rating.rating-70 span.three:before, -.star-rating.rating-80 span.one:before, -.star-rating.rating-80 span.two:before, -.star-rating.rating-80 span.three:before, -.star-rating.rating-80 span.four:before, -.star-rating.rating-90 span.one:before, -.star-rating.rating-90 span.two:before, -.star-rating.rating-90 span.three:before, -.star-rating.rating-90 span.four:before, -.star-rating.rating-100 > span:before { - content: "\f155"; -} - -.theme-details .star-rating .ratings { +.theme-details .no-rating { display: block; line-height: 20px; - color: #999; } /*------------------------------------------------------------------------------ @@ -1230,7 +1132,7 @@ body.show-upload-theme p.no-themes { ------------------------------------------------------------------------------*/ .appearance_page_custom-header #headimg { - border: 1px solid #DFDFDF; + border: 1px solid #ddd; overflow: hidden; width: 100%; } @@ -1266,7 +1168,7 @@ body.show-upload-theme p.no-themes { div#custom-background-image { min-height: 100px; - border: 1px solid #dfdfdf; + border: 1px solid #ddd; } div#custom-background-image img { @@ -1330,7 +1232,7 @@ body.full-overlay-active { } .wp-full-overlay-sidebar:after { - content: ''; + content: ""; display: block; position: absolute; top: 0; @@ -1349,16 +1251,6 @@ body.full-overlay-active { height: 100%; } -#customize-preview.wp-full-overlay-main { - background: url(../images/spinner.gif) no-repeat center center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; -} - -#customize-preview.wp-full-overlay-main.iframe-ready { - background: none; -} - .wp-full-overlay-sidebar .wp-full-overlay-header { position: absolute; left: 0; @@ -1467,12 +1359,28 @@ body.full-overlay-active { pointer-events: none; } +.theme-install-overlay .close-full-overlay, +.theme-install-overlay .previous-theme, +.theme-install-overlay .next-theme { + border-left: 0; + border-top: 0; + border-bottom: 0; +} + +.theme-install-overlay .close-full-overlay:before, +.theme-install-overlay .previous-theme:before, +.theme-install-overlay .next-theme:before { + top: 2px; + left: 0; +} + /* Collapse Button */ .wp-core-ui .wp-full-overlay .collapse-sidebar { position: fixed; - bottom: 8px; - left: 10px; - padding: 0; + bottom: 0; + left: 0; + padding: 9px 0 9px 10px; + height: 45px; color: #656a6f; outline: 0; line-height: 1; @@ -1527,13 +1435,17 @@ body.full-overlay-active { display: block; content: "\f148"; background: #eee; - font: normal 20px/1 'dashicons'; + font: normal 20px/1 dashicons; speak: none; padding: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } +.wp-core-ui .wp-full-overlay.collapsed .collapse-sidebar { + padding: 9px 10px; +} + /* rtl:ignore */ .wp-full-overlay.collapsed .collapse-sidebar-arrow:before, .rtl .wp-full-overlay .collapse-sidebar-arrow:before { @@ -1559,6 +1471,122 @@ body.full-overlay-active { transition-duration: 0.2s; } +/* Device/preview size toggles */ + +.wp-full-overlay { + background: #191e23; +} + +.wp-full-overlay-main { + background-color: #f1f1f1; +} + +.expanded .wp-full-overlay-footer { + position: fixed; + bottom: 0; + left: 0; + width: 300px; + height: 45px; + border-top: 1px solid #ddd; + background: #eee; +} + +.wp-full-overlay-footer .devices { + float: right; +} + +.wp-full-overlay-footer .devices button { + cursor: pointer; + background: transparent; + border: none; + height: 45px; + padding: 0 3px; + margin: 0 0 0 -4px; + -webkit-box-shadow: none; + box-shadow: none; + border-top: 1px solid transparent; + border-bottom: 4px solid transparent; + -webkit-transition: background .1s ease-in-out; + transition: background .1s ease-in-out; +} + +.wp-full-overlay-footer .devices button:focus { + -webkit-box-shadow: none; + box-shadow: none; + outline: none; +} + +.wp-full-overlay-footer .devices button:before { + display: inline-block; + -webkit-font-smoothing: antialiased; + font: normal 20px/30px "dashicons"; + vertical-align: top; + margin: 3px 0; + padding: 4px 8px; + color: #656a6f; +} + +.wp-full-overlay-footer .devices button.active { + border-bottom-color: #191e23; +} + +.wp-full-overlay-footer .devices button:hover, +.wp-full-overlay-footer .devices button:focus { + background-color: #fff; +} + +.wp-full-overlay-footer .devices button:focus { + background-color: #fff; + border-bottom-color: #0073aa; +} + +.wp-full-overlay-footer .devices button.active:before, +.wp-full-overlay-footer .devices button:hover:before, +.wp-full-overlay-footer .devices button:focus:before { + color: #191e23; +} + +.wp-full-overlay-footer .devices .preview-desktop:before { + content: "\f472"; +} + +.wp-full-overlay-footer .devices .preview-tablet:before { + content: "\f471"; +} + +.wp-full-overlay-footer .devices .preview-mobile:before { + content: "\f470"; +} + +@media screen and (max-width:1024px) { + .wp-full-overlay-footer .devices { + display: none; + } +} + +.collapsed .wp-full-overlay-footer .devices button:before { + display: none; +} + +.preview-mobile .wp-full-overlay-main { + margin: auto 0 auto -160px; + width: 320px; + height: 480px; + max-height: 100%; + max-width: 100%; + left: 50%; +} + +.preview-tablet .wp-full-overlay-main { + margin: auto 0 auto -360px; + width: 720px; /* Size is loosely based on a typical "tablet" device size. Intentionally ambiguous - this does not represent any particular device precisely. */ + height: 1080px; + max-height: 100%; + max-width: 100%; + left: 50%; +} + + /*------------------------------------------------------------------------------ 24.0 - Customize Loader ------------------------------------------------------------------------------*/ @@ -1593,12 +1621,6 @@ body.full-overlay-active { opacity: 0; } -.customize-loading #customize-container { - background: #fff url(../images/spinner.gif) no-repeat fixed center center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; -} - #customize-container iframe, .theme-install-overlay iframe { height: 100%; @@ -1646,7 +1668,7 @@ body.full-overlay-active { } .install-theme-info .theme-screenshot { - margin-top: 15px; + margin: 15px 0; width: 258px; border: 1px solid #ccc; } @@ -1657,17 +1679,16 @@ body.full-overlay-active { .theme-details .theme-version { margin: 15px 0; - float: left; } .theme-details .theme-description { float: left; - color: #777; + color: #72777c; line-height: 20px; max-width: 100%; } -.theme-install-overlay .wp-full-overlay-header .theme-install { +.theme-install-overlay .wp-full-overlay-header .button { float: right; margin: 8px 10px 0 0; /* For when .theme-install is a span rather than a.button-primary (already installed theme) */ @@ -1686,11 +1707,39 @@ body.full-overlay-active { } .theme-install-overlay .wp-full-overlay-main { - background: #fff url(../images/spinner.gif) no-repeat center center; + position: absolute; + z-index: 0; + background-color: #f1f1f1; +} + +.customize-loading #customize-container { + background-color: #f1f1f1; +} + +#customize-preview.wp-full-overlay-main:before, +.customize-loading #customize-container:before, +.theme-install-overlay .wp-full-overlay-main:before { + content: ""; + display: block; + width: 20px; + height: 20px; + position: absolute; + left: 50%; + top: 50%; + z-index: -1; + margin: -10px 0 0 -10px; + -webkit-transform: translateZ(0); + transform: translateZ(0); + background: transparent url(../images/spinner.gif) no-repeat center center; -webkit-background-size: 20px 20px; background-size: 20px 20px; } +#customize-preview.wp-full-overlay-main.iframe-ready:before, +.theme-install-overlay.iframe-ready .wp-full-overlay-main:before { + background-image: none; +} + /* =Media Queries -------------------------------------------------------------- */ @@ -1706,15 +1755,11 @@ body.full-overlay-active { background-size: 15px 123px; } - #customize-preview.wp-full-overlay-main, - .customize-loading #customize-container, - .theme-install-overlay .wp-full-overlay-main { + #customize-preview.wp-full-overlay-main:before, + .customize-loading #customize-container:before, + .theme-install-overlay .wp-full-overlay-main:before { background-image: url(../images/spinner-2x.gif); } - - .theme-install-overlay .wp-full-overlay-header .theme-install { - margin-top: 2px; - } } @media screen and ( max-width: 782px ) { @@ -1738,3 +1783,12 @@ body.full-overlay-active { line-height: normal; } } + +@media aural { + .theme .notice:before, + .theme-info .updating-message:before, + .theme-info .updated-message:before, + .theme-install.updating-message:before { + speak: none; + } +}