Make WordPress Core

Changeset 11514


Ignore:
Timestamp:
06/03/2009 10:15:22 PM (16 years ago)
Author:
azaozz
Message:

Give login screen proper iPhone viewport, props noel, fixes #10023

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r11513 r11514  
    4040 */
    4141function login_header($title = 'Log In', $message = '', $wp_error = '') {
    42     global $error;
     42    global $error, $is_iphone;
    4343
    4444    // Don't index any of these forms
     
    5757    wp_admin_css( 'login', true );
    5858    wp_admin_css( 'colors-fresh', true );
     59
     60    if ( $is_iphone ) {
     61    ?>
     62    <meta name="viewport" content="width=320; initial-scale=0.9; maximum-scale=1.0; user-scalable=0;" />
     63    <style type="text/css" media="screen">
     64    form { margin-left: 0px; }
     65    #login { margin-top: 20px; }
     66    </style>
     67    <?php
     68    }
     69
    5970    do_action('login_head'); ?>
    6071</head>
Note: See TracChangeset for help on using the changeset viewer.