Making WordPress.org

Changeset 6671


Ignore:
Timestamp:
02/17/2018 11:25:37 AM (7 years ago)
Author:
ocean90
Message:

Login: Add RTL styles and improve alignment of checkbox label for mailing list.

See #1673.
Fixes #3462.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/register.php

    r6660 r6671  
    7777
    7878    <p class="login-mailinglist">
    79         <label>
     79        <label for="user_mailinglist">
    8080            <input name="user_mailinglist" type="checkbox" id="user_mailinglist" value="true" <?php checked( $user_mailinglist, true ); ?>>
    8181            <?php _e( 'Subscribe to WordPress Announcements mailing list (a few messages a year)', 'wporg' ); ?>
     
    8989
    9090    <p class="login-submit">
    91         <input data-sitekey="<?php echo esc_attr( RECAPTCHA_INVIS_PUBKEY  ); ?>" data-callback='onSubmit' type="submit" name="wp-submit" id="wp-submit" class="g-recaptcha button button-primary" value="<?php esc_attr_e( 'Create Account', 'wporg' ); ?>" />
     91        <input data-sitekey="<?php echo esc_attr( RECAPTCHA_INVIS_PUBKEY  ); ?>" data-callback='onSubmit' type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Create Account', 'wporg' ); ?>" />
    9292    </p>
    9393
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/stylesheets/login.css

    r6396 r6671  
    225225
    226226#login #login_error {
    227     border-left: 4px solid #00a0d2;
     227    border-left: 4px solid #dc3232;
    228228    padding: 12px;
    229229    margin: -24px 0 24px -24px;
     
    235235}
    236236
    237 #login #login_error {
    238     border-left-color: #dc3232;
     237.rtl #login #login_error {
     238    border-left: 0;
     239    border-right: 4px solid #dc3232;
     240    margin: -24px -24px 24px 0;
    239241}
    240242
     
    399401}
    400402
     403body.rtl.route-register #login .message.error,
     404body.rtl.route-register-profile #login .message.error,
     405body.rtl.route-register-confirm #login .message.error {
     406    border-right-color: #dc3232;
     407}
     408
    401409body.route-register .message.error .avatar {
    402410    border-radius: 50%;
     
    406414}
    407415
     416body.rtl.route-register .message.error .avatar {
     417    margin-right: 0;
     418    margin-left: 1em;
     419}
     420
    408421body.route-register-profile #login .message.info {
    409422    margin-top: -24px;
     
    417430
    418431form .login-mailinglist label {
     432    position: relative;
     433    display: block;
     434    padding-left: 24px;
    419435    font-size: 12px;
    420     cursor: pointer;
     436    line-height: 19px;
     437}
     438
     439.rtl form .login-mailinglist label {
     440    padding-left: 0;
     441    padding-right: 24px;
     442}
     443
     444@media screen and (max-width: 782px) {
     445    form .login-mailinglist label {
     446        padding-left: 33px;
     447    }
     448
     449    .rtl form .login-mailinglist label {
     450        padding-left: 0;
     451        padding-right: 33px;
     452    }
    421453}
    422454
    423455form .login-mailinglist label input {
    424     float: left;
    425     margin: 0.5em 0.5em 0 0;
     456    position: absolute;
     457    top: 0;
     458    left: 0;
     459    margin: 2px 0 0;
     460}
     461
     462.rtl form .login-mailinglist label input {
     463    left: auto;
     464    right: 0;
    426465}
    427466
     
    465504    }
    466505
     506    .rtl #login #login_error {
     507        margin-right: 0;
     508    }
     509
    467510    #login {
    468511        margin-top: 52px;
     
    482525    }
    483526
    484     #rc-imageselect, .g-recaptcha {
     527    #rc-imageselect {
    485528        margin: 0 auto;
    486529        transform: scale(0.8);
Note: See TracChangeset for help on using the changeset viewer.