WordPress.org

Make WordPress Core

Changeset 4596


Ignore:
Timestamp:
12/04/2006 12:53:33 AM (11 years ago)
Author:
ryan
Message:

More i18n friendly login screen. Props bryanveloso. fixes #3348

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/wp-admin.css

    r4544 r4596  
    500500    margin: 0;
    501501    padding: 3px 2em 0 3em;
     502    height: 25px;
    502503}
    503504
     
    527528#submenu li {
    528529    line-height: 180%;
    529     height: 25px;
    530530}
    531531
     
    675675    background: url('images/login-bkg-tile.gif') no-repeat top center;
    676676    color: #fff;
    677     margin: 5em auto;
    678     padding: 20px 50px 0;
    679     width: 325px;
     677    margin: 5em auto 1em;
     678    padding: 20px 0 0;
     679    width: 425px;
     680    _width: 390px;
     681}
     682
     683#login form {
     684    background: url('images/login-bkg-bottom.gif') no-repeat bottom center;
     685    padding: 0 50px 25px;
     686    _width: 325px;
     687    _margin: 0 auto;
    680688}
    681689
     
    687695    font-weight: bold;
    688696    padding: .6em;
     697    width: 310px;
     698    margin: 0 auto;
    689699    text-align: center;
     700}
     701
     702#login p {
     703    font-size: 12px;
     704}
     705
     706#login p.message {
     707    width: 310px;
     708    margin: 0 auto 1em;
    690709}
    691710
     
    700719    font-weight: normal;
    701720    font-size: 1.1em;
     721    _width: 325px;
     722    _margin: 0 auto 15px;
    702723}
    703724
     
    727748}
    728749
    729 #login ul {
    730     background: url('images/login-bkg-bottom.gif') no-repeat bottom center;
     750.login ul, #protected #login .bottom {
    731751    list-style: none;
    732     margin: 0 -50px;
    733     padding: 10px 50px 25px;;
    734 }
    735 
    736 #login ul:after {
    737     content: ".";
    738     display: block;
    739     height: 0;
    740     clear: both;
    741     visibility: hidden;
    742 }
    743 
    744 #login ul li {
    745     float: left;
    746     font-size: 12px;
    747     padding: 5px 0;
    748     text-align: center;
    749 }
    750 
    751 #login ul li a {
    752     display: block;
    753     color: #84c4f0;
     752    width: 325px;
     753    margin: 0 auto;
     754    padding: 0;
     755    line-height: 1.2;
     756}
     757
     758.login ul li {
     759    font-size: 11px;
     760}
     761
     762.login ul li a {
     763    color: #0d324f;
    754764    border: none;
    755     padding: 4px 1px 5px;
    756     width: 160px;
    757765}
    758766
    759767#login ul li a:hover {
    760     background: #0e3350;
    761     border: 1px solid #2571ab;
    762     padding: 3px 0 4px;
    763768    color: #fff;
    764769}
     
    778783    font-size: 15px;
    779784}
     785
    780786.plugins p {
    781787}
  • trunk/wp-login.php

    r4589 r4596  
    4545<?php do_action('login_head'); ?>
    4646</head>
    47 <body>
     47<body class="login">
    4848
    4949<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>" title="<?php echo apply_filters('login_headertitle', __('Powered by WordPress')); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1>
     
    148148    <p class="submit"><input type="submit" name="submit" id="submit" value="<?php _e('Get New Password &raquo;'); ?>" tabindex="100" /></p>
    149149</form>
     150</div>
     151
    150152<ul>
    151153<?php if (get_option('users_can_register')) : ?>
    152154    <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php"><?php _e('Login') ?></a></li>
    153155    <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=register"><?php _e('Register') ?></a></li>
    154     <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>" class="fullwidth">&laquo; <?php _e('Back to blog') ?></a></li>
     156    <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>
    155157<?php else : ?>
    156     <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>">&laquo; <?php _e('Back to blog') ?></a></li>
     158    <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>
    157159    <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php"><?php _e('Login') ?></a></li>
    158160<?php endif; ?>
    159161</ul>
    160 </div>
     162
    161163</body>
    162164</html>
     
    266268    <p class="submit"><input type="submit" name="submit" id="submit" value="<?php _e('Register &raquo;'); ?>" tabindex="100" /></p>
    267269</form>
     270</div>
     271
    268272<ul>
    269273    <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php"><?php _e('Login') ?></a></li>
    270274    <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a></li>
    271     <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>" class="fullwidth">&laquo; <?php _e('Back to blog') ?></a></li>
     275    <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>"><?php _e('Back to') ?> <?php bloginfo('title'); ?></a></li>
    272276</ul>
    273 </div>
     277
    274278</body>
    275279</html>
     
    354358    </p>
    355359</form>
     360</div>
     361
    356362<ul>
    357363<?php if (get_option('users_can_register')) : ?>
    358364    <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=register"><?php _e('Register') ?></a></li>
    359365    <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a></li>
    360     <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>" class="fullwidth">&laquo; <?php _e('Back to blog') ?></a></li>
     366    <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>"><?php _e('Back to') ?> <?php bloginfo('title'); ?></a></li>
    361367<?php else : ?>
    362     <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>">&laquo; <?php _e('Back to blog') ?></a></li>
     368    <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>"><?php _e('Back to') ?> <?php bloginfo('title'); ?></a></li>
    363369    <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a></li>
    364370<?php endif; ?>
    365371</ul>
    366 </div>
     372
    367373
    368374</body>
Note: See TracChangeset for help on using the changeset viewer.