X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/b925718b4bf2dd47a8429f844d0a255ca6e35bd1..b22765f41bf0b2021b9beb9120ee0ac91fa89292:/wp-admin/css/common.css diff --git a/wp-admin/css/common.css b/wp-admin/css/common.css index e98e87ea..42c4c7be 100644 --- a/wp-admin/css/common.css +++ b/wp-admin/css/common.css @@ -71,26 +71,22 @@ /* 2 columns main area */ -#col-container, -#col-left, -#col-right { - overflow: hidden; - padding: 0; - margin: 0; -} - #col-left { + float: left; width: 35%; } #col-right { float: right; - clear: right; width: 65%; } -.col-wrap { - padding: 0 7px; +#col-left .col-wrap { + padding: 0 6px 0 0; +} + +#col-right .col-wrap { + padding: 0 0 0 6px; } /* utility classes */ @@ -212,13 +208,10 @@ body { padding: 0; } -html { - background: #f1f1f1; -} - body { + background: #f1f1f1; color: #444; - font-family: "Open Sans", sans-serif; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; line-height: 1.4em; min-width: 600px; @@ -444,7 +437,7 @@ code { .subsubsub a .count, .subsubsub a.current .count { color: #555d66; /* #f1f1f1 background */ - font-weight: normal; + font-weight: 400; } .subsubsub a.current { @@ -588,7 +581,8 @@ code { padding-left: 25px; color: #555d66; font-size: 14px; - font-weight: normal; + font-weight: 400; + line-height: 1; } .wrap .add-new-h2, /* deprecated */ @@ -608,6 +602,10 @@ code { text-shadow: none; font-weight: 600; font-size: 13px; + line-height: normal; /* IE8-IE11 need this for buttons */ + color: #0073aa; /* some of these controls are button elements and don't inherit from links */ + cursor: pointer; + outline: 0; } .wrap .add-new-h2:hover, /* deprecated */ @@ -617,6 +615,11 @@ code { color: #fff; } +/* lower specificity: color needs to be overridden by :hover and :active */ +.page-title-action:focus { + color: #124964; +} + .wrap .page-title-action:focus { border-color: #5b9dd9; -webkit-box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); @@ -1063,7 +1066,7 @@ th.action-links { line-height: 1; text-align: center; text-decoration: inherit; - font-weight: normal; + font-weight: 400; font-style: normal; -webkit-font-smoothing: antialiased; } @@ -1305,6 +1308,10 @@ div.error { padding: 1px 12px; } +div[class="update-message"] { /* back-compat for pre-4.6 */ + padding: 0.5em 12px 0.5em 0; +} + .notice p, .notice-title, div.updated p, @@ -1404,6 +1411,21 @@ div.error { background-color: #e5f5fa; } +.update-message p:before, +.updating-message p:before, +.updated-message p:before, +.import-php .updating-message:before, +.button.updating-message:before, +.button.updated-message:before, +.button.installed:before, +.button.installing:before { + display: inline-block; + font: normal 20px/1 'dashicons'; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + vertical-align: top; +} + .wrap .notice, .wrap div.updated, .wrap div.error, @@ -1412,6 +1434,45 @@ div.error { margin: 5px 0 15px; } +/* Update icon. */ +.update-message p:before, +.updating-message p:before, +.import-php .updating-message:before, +.button.updating-message:before, +.button.installing:before { + color: #f56e28; + content: "\f463"; +} + +/* Spins the update icon. */ +.updating-message p:before, +.import-php .updating-message:before, +.button.updating-message:before, +.button.installing:before { + -webkit-animation: rotation 2s infinite linear; + animation: rotation 2s infinite linear; +} + +/* Updated icon (check mark). */ +.updated-message p:before, +.installed p:before, +.button.updated-message:before { + color: #79ba49; + content: '\f147'; +} + +/* Error icon. */ +.update-message.notice-error p:before { + color: #dc3232; + content: "\f534"; +} + +.wrap .notice p:before, +.import-php .updating-message:before { + margin-right: 6px; + vertical-align: bottom; +} + #update-nag, .update-nag { display: inline-block; @@ -1426,10 +1487,6 @@ div.error { box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); } -.update-message { - color: #000; -} - ul#dismissed-updates { display: none; } @@ -1461,6 +1518,50 @@ form.upgrade .hint { margin-left: 2em; } +.button.updating-message:before, +.button.updated-message:before, +.button.installed:before, +.button.installing:before { + margin: 3px 5px 0 -2px; +} + +.button-primary.updating-message:before { + color: #fff; +} + +.button-primary.updated-message:before { + color: #66c6e4; +} + +.button.updated-message, +.notice .button-link { + -webkit-transition-property: border, background, color; + transition-property: border, background, color; + -webkit-transition-duration: .05s; + transition-duration: .05s; + -webkit-transition-timing-function: ease-in-out; + transition-timing-function: ease-in-out; +} + +.notice .button-link { + color: #0073aa; +} + +.notice .button-link:hover, +.notice .button-link:active { + color: #00a0d2; +} + +@media aural { + .wrap .notice p:before, + .button.installing:before, + .button.installed:before, + .update-message p:before { + speak: none; + } +} + + /* @todo: this does not need its own section anymore */ /*------------------------------------------------------------------------------ 6.0 - Admin Header @@ -1774,7 +1875,7 @@ html.wp-toolbar { .widefat th, .widefat thead td, .widefat tfoot td { - font-weight: normal; + font-weight: 400; } .widefat thead tr th, @@ -1798,6 +1899,11 @@ html.wp-toolbar { margin: 0.6em 0; } +.widefat .column-comment ul { + list-style: initial; + margin-left: 2em; +} + /* Screens with postboxes */ .postbox-container { float: left; @@ -1876,7 +1982,7 @@ html.wp-toolbar { .hndle a { font-size: 11px; - font-weight: normal; + font-weight: 400; } .postbox .handlediv { @@ -2095,7 +2201,8 @@ h3.nav-tab-wrapper { margin: 4px 10px 0; } -.spinner.is-active { +.spinner.is-active, +.loading-content .spinner { visibility: visible; } @@ -2172,13 +2279,45 @@ body.iframe { display: block; } +.importers { + font-size: 16px; + width: auto; +} + .importers td { padding-right: 14px; + line-height: 1.5em; } -.importers { - font-size: 16px; - width: auto; +.importers .import-system { + max-width: 250px; +} + +.importers td.desc { + max-width: 500px; +} + +.importer-title, +.importer-desc, +.importer-action { + display: block; +} + +.importer-title { + color: #000; + font-size: 14px; + font-weight: 400; + margin-bottom: .2em; +} + +.importer-action { + line-height: 20px; /* Same as with .updating-message */ + color: #ddd; + margin-bottom: 1em; +} + +.not-installed-main-site .importer-action { + color: #555; } #post-body #post-body-content #namediv h3, /* Back-compat for pre-4.4 */ @@ -2286,7 +2425,7 @@ div.star-holder .star-rating { line-height: 1; font-family: dashicons; text-decoration: inherit; - font-weight: normal; + font-weight: 400; font-style: normal; vertical-align: top; -webkit-transition: color .1s ease-in 0; @@ -2314,7 +2453,7 @@ div.star-holder .star-rating { } div.action-links { - font-weight: normal; + font-weight: 400; margin: 6px 0 0; } @@ -2362,7 +2501,7 @@ div.action-links { #plugin-information-title h2 { font-size: 1em; - font-weight: bold; + font-weight: 600; padding: 0; margin: 0; max-width: 680px; @@ -2408,7 +2547,8 @@ div.action-links { position: relative; right: 0; left: 0; - height: 36px; + min-height: 36px; + font-size: 0; z-index: 1; border-bottom: 1px solid #ddd; background: #f3f3f3; @@ -2416,7 +2556,7 @@ div.action-links { #plugin-information-tabs a { position: relative; - float: left; + display: inline-block; padding: 9px 10px; margin: 0; height: 18px; @@ -2428,7 +2568,7 @@ div.action-links { } #plugin-information-tabs a.current { - margin: 0 -1px 0; + margin: 0 -1px -1px; background: #fff; border: 1px solid #ddd; border-bottom-color: #fff; @@ -2500,7 +2640,7 @@ div.action-links { } #plugin-information .fyi h3 { - font-weight: bold; + font-weight: 600; text-transform: uppercase; font-size: 12px; color: #666; @@ -2888,7 +3028,8 @@ img { /* Metabox collapse arrow indicators */ .js .sidebar-name .sidebar-name-arrow:before, -.js .meta-box-sortables .postbox .toggle-indicator:before { +.js .meta-box-sortables .postbox .toggle-indicator:before, +.bulk-action-notice .toggle-indicator:before { content: "\f142"; display: inline-block; font: normal 20px/1 dashicons; @@ -2899,7 +3040,8 @@ img { } .js .widgets-holder-wrap.closed .sidebar-name-arrow:before, -.js .meta-box-sortables .postbox.closed .handlediv .toggle-indicator:before { +.js .meta-box-sortables .postbox.closed .handlediv .toggle-indicator:before, +.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator:before { content: "\f140"; } @@ -2929,6 +3071,12 @@ img { text-indent: 1px; /* account for the dashicon alignment */ } +.bulk-action-notice .toggle-indicator:before { + line-height: 16px; + vertical-align: top; + color: #72777c; +} + .js .postbox .handlediv:focus { -webkit-box-shadow: none; box-shadow: none; @@ -3010,7 +3158,7 @@ img { #templateside .highlight { border: none; - font-weight: bold; + font-weight: 600; } .nonessential { @@ -3361,53 +3509,6 @@ img { /* =Media Queries -------------------------------------------------------------- */ -/* @todo: de-duplication */ -@media only screen and (min-width: 769px) { - /* categories */ - #col-left { - width: 35%; - } - - #col-right { - width: 65%; - } -} - -@media only screen and (max-width: 860px) { - - /* categories */ - #col-left { - width: 35%; - } - - #col-right { - width: 65%; - } -} - -@media only screen and (min-width: 980px) { - - /* categories */ - #col-left { - width: 35%; - } - - #col-right { - width: 65%; - } -} - -@media only screen and (max-width: 768px) { - /* categories */ - #col-left { - width: 100%; - } - - #col-right { - width: 100%; - } -} - /** * HiDPI Displays */ @@ -3476,7 +3577,15 @@ img { margin-left: 0; } - .col-wrap { + /* categories */ + #col-left, + #col-right { + float: none; + width: auto; + } + + #col-left .col-wrap, + #col-right .col-wrap { padding: 0; }