Plugin Directory

Changeset 3290107


Ignore:
Timestamp:
05/08/2025 06:39:38 PM (7 months ago)
Author:
numeeja
Message:

correct 2-factor input form width on login if sg security is active

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cubecolour-caboodle/trunk/includes/modules/login-bg.php

    r3232146 r3290107  
    1616
    1717    $login_style = 'html, body {
    18 height: 101%; background: linear-gradient( to right, ' . sanitize_hex_color( $color_1 ) . ' calc( 50% - 190px ), ' . sanitize_hex_color( $color_2 ) . ' 0, ' . sanitize_hex_color( $color_2 ) . ' calc( 50% + 190px ), ' . sanitize_hex_color( $color_1 ) . ' 0 ); }
    19 #login h1 { margin-top: 3em; }';
     18    height: 101%;
     19    background: linear-gradient( to right, ' . sanitize_hex_color( $color_1 ) . ' calc( 50% - 190px ), ' . sanitize_hex_color( $color_2 ) . ' 0, ' . sanitize_hex_color( $color_2 ) . ' calc( 50% + 190px ), ' . sanitize_hex_color( $color_1 ) . ' 0 );
     20}
     21#login h1 {
     22    margin-top: 3em;
     23}
     24';
    2025
    21     $login_style .= '#loginform p label, .user-pass-wrap label,#nav a.wp-login-lost-password,#login #backtoblog a,#login .privacy-policy-page-link .privacy-policy-link {color: ' . sanitize_hex_color( $color_txt ) . '; text-decoration: none;}';
    22    
     26    $login_style .= '#loginform p label,
     27.user-pass-wrap label, #nav a.wp-login-lost-password, #login #backtoblog a, #login .privacy-policy-page-link .privacy-policy-link {
     28    color: ' . sanitize_hex_color( $color_txt ) . ';
     29    text-decoration: none;
     30}
     31';
    2332
    2433    if ( cc_caboodle( 'login_bg_borderless', false ) ) {   
    25         $login_style .= '#loginform { border: 0; background-color: transparent; box-shadow: none; } #nav, #backtoblog { text-align: center; } .login form {padding: 0;} #wp-submit{overflow: visible;margin: 0 3px 3px 0;}';
     34        $login_style .= '#loginform {
     35    border: 0;
     36    background-color: transparent;
     37    box-shadow: none;
     38} #nav, #backtoblog {
     39    text-align: center;
     40}
     41.login form {
     42    padding: 0;
     43} #wp-submit {
     44    overflow: visible;margin: 0 3px 3px 0;
     45}
     46';
    2647    } else {
    27         $login_style .= '#loginform { background-color: rgba(255,255,255,0.33);}';
     48        $login_style .= '#loginform {
     49    background-color: rgba( 255,255,255,0.33 ), margin: 0;
     50}
     51';
     52    }
     53
     54    if ( is_plugin_active( 'sg-security/sg-security.php' ) ) {
     55$login_style .= 'form[name=sgs2fa_form] {
     56    margin: 0 20px;
     57    overflow: visible;
     58}';
    2859    }
    2960
     
    5384        }
    5485   
    55         $login_style .= '.login h1 a {background-image: url(' . $logo_url . ');background-size: contain;width: 100%;height: ' . absint( $display_height ) . 'px;}';
     86        $login_style .= '.login h1 a {
     87    background-image: url(' . $logo_url . ');
     88    background-size: contain;width: 100%;
     89    height: ' . absint( $display_height ) . 'px;
     90}';
    5691    }   
    5792   
Note: See TracChangeset for help on using the changeset viewer.