Updates to the About page:

* A live color scheme preview
* Replace the hard-coded version number
* Copy edits
* New screenshots
* Size adjustments to the header and WP badge
* Capitalize 'Open Sans'

See #26387, props markoheijnen, ryelle, siobhan, melchoyce.



git-svn-id: https://develop.svn.wordpress.org/trunk@26737 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Thomas 2013-12-06 19:35:25 +00:00
parent 439c61a1ba
commit 79cb3cf3ce
6 changed files with 116 additions and 204 deletions

View File

@ -21,7 +21,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
<div class="about-text"><?php printf( __( 'Thank you for updating to WordPress 3.8! We&rsquo;re happy to bring you the most beautiful WordPress yet.' ), $display_version ); ?></div> <div class="about-text"><?php printf( __( 'Thank you for updating to WordPress %s, the most beautiful WordPress yet.' ), $display_version ); ?></div>
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
@ -36,40 +36,37 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
</h2> </h2>
<div class="changelog"> <div class="changelog">
<h2 class="about-headline-callout"><?php echo ( 'Introducing a new, modern admin design' ); ?></h2> <h2 class="about-headline-callout"><?php echo ( 'Introducing a modern new design' ); ?></h2>
<img class="about-overview-img" src="<?php echo admin_url( 'images/about-overview.png' ); ?>" /> <img class="about-overview-img" src="<?php echo admin_url( 'images/about-overview.png' ); ?>" />
<div class="feature-section col three-col about-updates"> <div class="feature-section col three-col about-updates">
<div class="col-1"> <div class="col-1">
<p style="margin-top: 20px; background-color: grey; padding: 1em; color: white; min-height: 150px;">Image</p> <img src="images/about-modern-aesthetics.png" />
<h3><?php echo ( 'Modern aesthetics' ); ?></h3> <h3><?php echo ( 'Modern aesthetic' ); ?></h3>
<p><?php echo ( 'Goodbye decoration, hello simplicity. We removed extraneous details, focusing on a cleaner, more streamlined admin design.' ); ?></p> <p><?php echo ( 'The new admin has a fresh, simple design that puts clarity and simplicity ahead of web design flourishes.' ); ?></p>
</div> </div>
<div class="col-2"> <div class="col-2">
<p style="margin-top: 20px; background-color: grey; padding: 1em; color: white; min-height: 150px;">Image</p> <img src="images/about-typography.png" />
<h3><?php echo ( 'Improved typography' ); ?></h3> <h3><?php echo ( 'Clean typography' ); ?></h3>
<p><?php echo ( 'You might notice the type is a little bit bigger. We improved the typography, crafting a better reading experience.' ); ?></p> <p><?php echo ( 'Open Sans meets open source. WordPress&#8217;s new typography is upright, friendly, and optimized for web and mobile interfaces.' ); ?></p>
</div> </div>
<div class="col-3 last-feature"> <div class="col-3 last-feature">
<p style="margin-top: 20px; background-color: grey; padding: 1em; color: white; min-height: 150px;">Image</p> <img src="images/about-contrast.png" />
<h3><?php echo ( 'Higher contrast' ); ?></h3> <h3><?php echo ( 'Refined contrast' ); ?></h3>
<p><?php echo ( 'With bigger typography and both high and low contrast color schemes, our new admin design is great for users of all ages.' ); ?></p> <p><?php echo ( 'What good is beautiful design if you can&#8217;t see it? Improved contrast gives you a better reading experience.' ); ?></p>
</div> </div>
</div> </div>
</div> </div>
<hr> <hr>
<!-- Image example -->
<!-- <img alt="" src="<?php echo admin_url( 'images/about-search-2x.png' ); ?>" /> -->
<div class="changelog"> <div class="changelog">
<div class="feature-section col two-col"> <div class="feature-section col two-col">
<div> <div>
<h3><?php echo ( 'Take WordPress with you anywhere with our responsive design' ); ?></h3> <h3><?php echo ( 'WordPress on every device' ); ?></h3>
<p><?php echo ( 'The WordPress admin is now completely responsive: you can work on your website easily from your smartphone or tablet. The full power of WordPress is at your fingertips, even when youre on the go.' ); ?></p> <p><?php echo ( 'Whether you&#8217;re on your smartphone or tablet, your notebook or desktop, WordPress looks beautiful on every device. Now you can update your website wherever you are.' ); ?></p>
<h4><?php echo ( 'Naturally HiDPI' ); ?></h4> <h4><?php echo ( 'High definition is here' ); ?></h4>
<p><?php echo ( 'No more blurry edges &#8212; with the inclusion of vector icons and graphics, the admin is now entirely HiDPI, so you get the best viewing experience no matter what kind of computer or mobile device you use.' ); ?></p> <p><?php echo ( 'WordPress is sharper than ever; vector icons and graphics mean no more blurry edges. You get the best viewing experience no matter what type of device you use.' ); ?></p>
</div> </div>
<div class="last-feature about-colors-img"> <div class="last-feature about-colors-img">
<img src="<?php echo admin_url( 'images/about-colors.png' ); ?>" /> <img src="<?php echo admin_url( 'images/about-colors.png' ); ?>" />
@ -82,11 +79,17 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<div class="changelog about-colors"> <div class="changelog about-colors">
<div class="feature-section col one-col"> <div class="feature-section col one-col">
<div> <div>
<h3><?php echo ( 'Now with more color' ); ?></h3> <h3><?php echo ( 'Pick a color' ); ?></h3>
<p><?php echo ( 'Your admin is not longer monochromatic &#8212; we&#8217;ve brought some more color to keep it looking fresh. You now have the option of four different default color schemes.' ); ?></p> <p><?php echo ( 'We&#8217;ve included four color schemes so that you can choose your favorite. Don&#8217;t like this striking new admin? Choose from any of the schemes below to change it in an instant.' ); ?></p>
<p><?php echo ( 'Try them out below:' ); ?></p> <?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) :?>
<img src="https://i.cloudup.com/NBlGusRk0H.png" style="border: 2px solid red; max-width: 99%; margin: 0;" /> <?php
<p><?php echo ( 'You can change your color scheme at any time from your profile page.' ); ?></p> /** This action is documented in wp-admin/user-edit.php */
do_action( 'admin_color_scheme_picker' );
?>
<?php else : ?>
<img src="<?php echo admin_url( 'images/about-color-schemes.png' ); ?>" />
<?php endif; ?>
<p><?php printf( ( 'To change your color scheme later, just <a href="%1$s">visit your profile settings</a>.' ), get_edit_profile_url( get_current_user_id() ) ); ?></p>
</div> </div>
</div> </div>
</div> </div>
@ -97,13 +100,13 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<div class="feature-section col two-col"> <div class="feature-section col two-col">
<div> <div>
<h3><?php echo ( 'A new theme experience' ); ?></h3> <h3><?php echo ( 'A new theme experience' ); ?></h3>
<p><?php echo ( 'A sleeker, faster, and more visual organization of your themes that is responsive.' ); ?></p> <p><?php echo ( 'Finding and installing the right theme has never been easier.' ); ?></p>
<h4><?php echo ( 'Browse better' ); ?></h4> <h4><?php echo ( 'Better browsing' ); ?></h4>
<p><?php echo ( 'Enjoy a focused experience with theme screenshots at the center. Quickly search through your themes or add new ones.' ); ?></p> <p><?php echo ( 'Focus is placed on what&#8217;s important - your theme&#8217;s design. Search through your themes at a glance and add new ones with a click.' ); ?></p>
<h4><?php echo ( 'Dive into the details' ); ?></h4> <h4><?php echo ( 'Dive into the details' ); ?></h4>
<p><?php echo ( 'Expand a theme to see more information and preview it. Use the arrow navigation to quickly swift through your themes.' ); ?></p> <p><?php echo ( 'If you need information about any of your themes just click to discover more. Sit back and use your keyboard&#8217;s navigation arrows to flip through every theme you&#8217;ve got.' ); ?></p>
<h4><?php echo ( 'Easier updates' ); ?></h4> <h4><?php echo ( 'Stay updated' ); ?></h4>
<p><?php echo ( 'Identify immediately when a theme update is available.' ); ?></p> <p><?php echo ( 'You can tell in an instant if a theme needs updated and, like so many things in WordPress, updating it takes just a second.' ); ?></p>
</div> </div>
<div class="last-feature about-themes-img"> <div class="last-feature about-themes-img">
<img src="<?php echo admin_url( 'images/about-themes.png' ); ?>" /> <img src="<?php echo admin_url( 'images/about-themes.png' ); ?>" />
@ -117,10 +120,10 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<h2 class="about-headline-callout"><?php echo ( 'Twenty Fourteen, a sleek new magazine theme' ); ?></h2> <h2 class="about-headline-callout"><?php echo ( 'Twenty Fourteen, a sleek new magazine theme' ); ?></h2>
<img src="<?php echo admin_url( 'images/about-twentyfourteen.png' ); ?>" /> <img src="<?php echo admin_url( 'images/about-twentyfourteen.png' ); ?>" />
<div class="feature-section col one-col"> <div class="feature-section col one-col center-col">
<div> <div>
<h3><?php echo ( 'Our new default theme lets you create a responsive magazine website with an elegant, modern design.' ); ?></h3> <h3><?php echo ( 'Turn your blog into a magazine' ); ?></h3>
<p><?php echo ( 'Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content&#8217;s layout with a full width page template and a contributor page to show of your authors.' ); ?></p> <p><?php echo ( 'With a striking design that does not comprise on our trademark simplicity, Twenty Fourteen is our boldest default theme. Choose a grid or a slider to display featured content on your homepage. Customize your homepage with three widget areas or change your layout with two page templates.' ); ?></p>
<p><?php echo ( 'Creating a magazine website with WordPress has never been easier.' ); ?></p> <p><?php echo ( 'Creating a magazine website with WordPress has never been easier.' ); ?></p>
</div> </div>
</div> </div>
@ -128,24 +131,6 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<hr> <hr>
<div class="changelog">
<h3><?php echo ( 'Under the Hood' ); ?></h3>
<div class="feature-section col three-col">
<div>
<h4><?php echo ( 'Meta query fixes' ); ?></h4>
<p><?php echo ( 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Vestibulum id ligula porta felis.' ); ?></p>
</div>
<div>
<h4><?php echo ( 'Automated RTL styles' ); ?></h4>
<p><?php echo ( 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Vestibulum id ligula porta felis.' ); ?></p>
</div>
<div class="last-feature">
<h4><?php echo ( 'Improved customizer' ); ?></h4>
<p><?php echo ( 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Vestibulum id ligula porta felis.' ); ?></p>
</div>
</div>
<div class="return-to-dashboard"> <div class="return-to-dashboard">
<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?> <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"><?php <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"><?php

View File

@ -7827,13 +7827,13 @@ body.press-this {
} }
.about-text { .about-text {
margin: 1em 200px 1.4em 0; margin: 1em 200px 0em 0;
min-height: 60px; min-height: 60px;
font-size: 24px; font-size: 24px;
} }
.about-wrap .changelog h2.about-headline-callout { .about-wrap .changelog h2.about-headline-callout {
margin: 1em 0 0; margin: 1.5em 0 0;
font-size: 2.2em; font-size: 2.2em;
font-weight: 300; font-weight: 300;
line-height: 1.3; line-height: 1.3;
@ -7862,11 +7862,14 @@ body.press-this {
/* 3.8 Images */ /* 3.8 Images */
.about-wrap .about-colors-img, .about-wrap .about-colors-img {
.about-wrap .about-themes-img {
bottom: -25px; bottom: -25px;
} }
.about-wrap .about-themes-img {
bottom: -32px;
}
.about-wrap .about-overview-img { .about-wrap .about-overview-img {
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} }
@ -7901,16 +7904,16 @@ body.press-this {
.wp-badge { .wp-badge {
background: url('../images/w-logo-white.png?ver=20131202') no-repeat; background: url('../images/w-logo-white.png?ver=20131202') no-repeat;
background: none, url('../images/wordpress-logo-white.svg?ver=20131110') no-repeat; background: none, url('../images/wordpress-logo-white.svg?ver=20131110') no-repeat;
background-position: center 30px; background-position: center 24px;
background-size: 110px 110px; background-size: 85px 85px;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
font-weight: 600; font-weight: 600;
margin: 5px 0 0; margin: 5px 0 0;
padding-top: 155px; padding-top: 120px;
height: 45px; height: 40px;
display: inline-block; display: inline-block;
width: 165px; width: 150px;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
} }
@ -7949,28 +7952,24 @@ body.press-this {
margin-bottom: 0; margin-bottom: 0;
} }
.about-wrap .feature-section.one-col div { .about-wrap .feature-section.center-col > div {
margin: auto; margin: auto;
width: 60%; width: 60%;
} }
.about-wrap .about-colors .one-col div { .about-wrap .about-colors .one-col > div {
width: 100%; width: 100%;
} }
.about-wrap .feature-section.two-col div { .about-wrap .feature-section.two-col > div {
position: relative; position: relative;
width: 50%; width: 50%;
float: left; float: left;
} }
.about-wrap .feature-section.two-col div p { .about-wrap .feature-section.three-col > div {
margin-right: 3%;
}
.about-wrap .feature-section.three-col div {
position: relative; position: relative;
width: 30%; width: 29.95%;
margin-right: 4.999999999%; margin-right: 4.999999999%;
float: left; float: left;
} }
@ -7979,49 +7978,32 @@ body.press-this {
margin-right: 0; margin-right: 0;
} }
.about-wrap .three-col.about-updates img { .about-wrap .about-updates img {
margin: 0; margin: 2em 0 0 0;
border: 1px solid #ddd;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
} }
.about-wrap .changelog .feature-section { .about-wrap .changelog .feature-section {
overflow: hidden; overflow: hidden;
} }
.about-wrap .about-passwords { .about-wrap .about-colors .scheme-list {
margin: 20px 0; margin-bottom: 1em;
padding: 1px 20px 10px;
background-color: #fff;
} }
.about-wrap .about-auto-update { .about-wrap .about-colors .color-option {
text-align: center; width: 24%;
background-color: #f9f9ef; padding-top: 10px;
clear: both; }
padding: 10px; .about-wrap .about-colors .color-option label {
display: inline-block;
margin: 0.25em 0 0.5em;
} }
.about-wrap .about-auto-update.cool { .about-wrap .feature-section.two-col div p {
background-color: #eff9ef; margin-right: 3%;
}
.about-wrap .about-password-meter input {
font-size: 250%;
line-height: 1;
width: 100%;
display: block;
padding: 5px;
}
.about-wrap .about-password-meter #pass-strength-result {
display: block !important;
font-size: 150%;
font-weight: normal !important;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
padding: 17px 0;
margin-bottom: 15px;
} }
.about-wrap .feature-section div p img { .about-wrap .feature-section div p img {
@ -12733,37 +12715,16 @@ li#wp-admin-bar-menu-toggle {
} }
/* About Page */ /* About Page */
.about-wrap .feature-section.two-col div { .about-wrap .feature-section.one-col > div,
.about-wrap .feature-section.two-col > div,
.about-wrap .three-col.about-updates > div {
width: 100%; width: 100%;
margin: 0; margin: 0;
float: none; float: none;
} }
.about-wrap .three-col.about-updates .col-1, .about-wrap .about-colors .color-option {
/*.about-wrap .three-col.about-updates .col-2,*/ width: 49%;
.about-wrap .three-col.about-updates .col-3 {
padding: 0;
}
.about-wrap .three-col.about-updates .col-1 {
width: 100%;
padding-right: 210px;
}
.about-wrap .three-col.about-updates .col-2 {
position: relative;
float: right;
width: 180px;
margin-left: -100%;
}
.about-wrap .three-col.about-updates .col-3 {
width: 100%;
}
.about-wrap .about-password-meter input,
.about-wrap .about-password-meter #pass-strength-result {
width: 99%;
} }
/* Moderate Comment */ /* Moderate Comment */
@ -12906,10 +12867,6 @@ li#wp-admin-bar-menu-toggle {
float: none; float: none;
} }
.about-wrap .about-passwords {
margin: 20px -20px;
}
/* Align Add Media + Visual + Text tabs */ /* Align Add Media + Visual + Text tabs */
#wp-content-media-buttons a { #wp-content-media-buttons a {
font-size: 14px; font-size: 14px;

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

View File

@ -1,81 +1,51 @@
/* global pwsL10n:true */ /* global isRtl */
(function($){ (function($){
var password = 'Gosh, WordPress is grand.',
$input = $('#pass'),
shouldAnimate = true,
timesForAnimation = [280, 300, 305, 310, 315, 325, 330, 345, 360, 370, 380, 400, 450, 500, 600],
resultsCache = {},
indicatorString = $('#pass-strength-result').text();
function updateResult(){ $(document).ready( function() {
var strength; var $colorpicker, $stylesheet;
if ( typeof( resultsCache[ $input.val() ]) === 'undefined') { $('.color-palette').click( function() {
strength = wp.passwordStrength.meter($input.val(), [], $input.val()); $(this).siblings('input[name="admin_color"]').prop('checked', true);
resultsCache[ $input.val() ] = strength; });
} else {
strength = resultsCache[ $input.val() ]; $colorpicker = $( '#color-picker' );
$stylesheet = $( '#colors-css' );
if ( isRtl ){
$stylesheet = $( '#colors-rtl-css' );
} }
$('#pass-strength-result').removeClass('short bad good strong'); $colorpicker.on( 'click.colorpicker', '.color-option', function() {
switch ( strength ) { var colors, css_url,
case 2: $this = $(this);
$('#pass-strength-result').addClass('bad').html( pwsL10n.bad );
break;
case 3:
$('#pass-strength-result').addClass('good').html( pwsL10n.good );
break;
case 4:
$('#pass-strength-result').addClass('strong').html( pwsL10n.strong );
break;
default:
$('#pass-strength-result').addClass('short').html( pwsL10n['short'] );
}
}
function resetMeter(){
$input.val('');
$('#pass-strength-result').text(indicatorString);
$('#pass-strength-result').removeClass('short bad good strong');
}
function animate(){ if ( $this.hasClass( 'selected' ) ) {
if (shouldAnimate === false)
return; return;
if ($input.val().length < password.length){
$input.val( password.substr(0, $input.val().length + 1) );
updateResult();
// Look like real typing by changing the speed new letters are added each time
setTimeout( animate, ( timesForAnimation[ Math.floor( Math.random() * timesForAnimation.length ) ] ) );
} else {
resetMeter();
// When we reset, let's wait a bit longer than normal to start again
setTimeout(animate, 700);
} }
$this.siblings( '.selected' ).removeClass( 'selected' );
$this.addClass( 'selected' ).find( 'input[type="radio"]' ).prop( 'checked', true );
// Set color scheme
// Load the colors stylesheet
css_url = $this.children( '.css_url' ).val();
if ( isRtl ){
css_url = css_url.replace('.min', '-rtl.min');
} }
function begin(){ $stylesheet.attr( 'href', css_url );
// we async load zxcvbn, so we need to make sure it's loaded before starting
if (typeof(zxcvbn) !== 'undefined')
animate();
else
setTimeout(begin,800);
}
// Turn off the animation on focus // repaint icons
$input.on('focus', function(){ if ( typeof wp !== 'undefined' && wp.svgPainter ) {
shouldAnimate = false; try {
resetMeter(); colors = $.parseJSON( $this.children( '.icon_colors' ).val() );
} catch ( error ) {}
if ( colors ) {
wp.svgPainter.setColors( colors );
wp.svgPainter.paint();
}
}
}); });
// Act like a normal password strength meter
$input.on('keyup', function(){
updateResult();
}); });
// Start the animation
begin();
})(jQuery); })(jQuery);