Skip to content

Commit 4d5fccf

Browse files
committed
Login styling updates from mt. fixes WordPress#5929
git-svn-id: https://develop.svn.wordpress.org/trunk@6922 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7e4dea2 commit 4d5fccf

3 files changed

Lines changed: 35 additions & 13 deletions

File tree

wp-admin/css/login.css

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,37 @@ body {
1010
form {
1111
background-color: #eaf3fa;
1212
margin-left: 8px;
13-
-moz-border-radius: 3px;
14-
padding: 16px;
13+
padding: 16px 16px 40px 16px;
1514
font-weight: bold;
15+
-moz-border-radius: 5px;
16+
-khtml-border-radius: 5px;
17+
-webkit-border-radius: 5px;
18+
border-radius: 5px;
1619
}
1720

18-
form .forgetmenot { font-weight: normal; float: left; }
21+
form .forgetmenot { font-weight: normal; float: left; margin-bottom: 0;}
1922

20-
form .submit { float: right; }
23+
form .submit input {
24+
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
25+
font-size: 14px;
26+
color: #246;
27+
padding: 4px 6px;
28+
background: #cee1ef;
29+
border: none;
30+
margin-top: -6px;
31+
-moz-border-radius: 2px;
32+
-khtml-border-radius: 2px;
33+
-webkit-border-radius: 2px;
34+
border-radius: 2px;
35+
}
36+
37+
form .submit input:hover {
38+
color: #d54e21;
39+
}
2140

22-
form .submit input { padding: 2px; }
41+
form .submit { float: right; }
2342

24-
form input { color: #246; }
43+
form input { color: #555; }
2544

2645
form p { margin-bottom: 24px; }
2746

@@ -54,6 +73,12 @@ h1 a {
5473
padding: 12px;
5574
}
5675

76+
#login_error {
77+
background-color: #f00;
78+
border-color: #800;
79+
color: #fff;
80+
}
81+
5782
#nav { margin: 0 0 0 8px; padding: 16px; }
5883

5984
#nav a { color: #777; }
@@ -63,4 +88,4 @@ h1 a {
6388
width: 97%;
6489
padding: 3px;
6590
margin-right: 6px;
66-
}
91+
}

wp-admin/images/logo-login.gif

-2 KB
Loading

wp-login.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,7 @@ function register_new_user($user_login, $user_email) {
236236
<input type="text" name="user_login" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes($_POST['user_login'])); ?>" size="20" tabindex="10" /></label>
237237
</p>
238238
<?php do_action('lostpassword_form'); ?>
239-
<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Get New Password &raquo;'); ?>" tabindex="100" /></p>
240-
<div><br clear="all" /></div>
239+
<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Get New Password'); ?>" tabindex="100" /></p>
241240
</form>
242241

243242
<p id="nav">
@@ -306,8 +305,7 @@ function register_new_user($user_login, $user_email) {
306305
</p>
307306
<?php do_action('register_form'); ?>
308307
<p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p>
309-
<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Register &raquo;'); ?>" tabindex="100" /></p>
310-
<div><br clear="all" /></div>
308+
<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Register'); ?>" tabindex="100" /></p>
311309
</form>
312310

313311
<p id="nav">
@@ -373,10 +371,9 @@ function register_new_user($user_login, $user_email) {
373371
<?php do_action('login_form'); ?>
374372
<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php _e('Remember Me'); ?></label></p>
375373
<p class="submit">
376-
<input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Log in'); ?> &raquo;" tabindex="100" />
374+
<input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Log in'); ?>" tabindex="100" />
377375
<input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" />
378376
<input type="hidden" name="testcookie" value="1" />
379-
<div><br clear="all" /></div>
380377
</p>
381378
<?php else : ?>
382379
<p>&nbsp;</p>

0 commit comments

Comments
 (0)