Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a310929e authored by Dhruv Puri's avatar Dhruv Puri
Browse files

fix(login): center Grant access button + apply white button text in both modes

Per @nicofonk review on MR 245.

Refs ecorp/b2b/apps/workspace#19
parent 30ad03bd
Loading
Loading
Loading
Loading
+14 −7
Original line number Diff line number Diff line
@@ -1806,6 +1806,20 @@ a.legal {
#body-login .guest-box.login-box .lost-password-container .notecard.notecard--success{
    color: var(--color-main-text) !important;
}
/* Primary action buttons on the body-login error pages need white text
   regardless of theme. Theming's --color-primary-element-text resolves to
   black in both light and dark, leaving the button text unreadable on the
   blue background. */
#body-login a.button.primary,
#body-login .body-login-container a.button.primary {
    color: #ffffff;
}

/* Center the "Grant access" submit button on the loginflowv2 grant page. */
#body-login #redirect-link {
    text-align: center;
}

@media(prefers-color-scheme: dark){
    /* loginflowv2 (authpicker.php) instruction text. Theming dark.css can
       resolve --color-main-text to a dimmed value, so pin a high-contrast
@@ -1814,13 +1828,6 @@ a.legal {
    #body-login .picker-window p.info {
        color: #EBEBEB;
    }
    /* Primary action buttons on the body-login error pages get black text
       from theming's --color-primary-element-text override, which leaves
       them unreadable on the blue background. */
    #body-login a.button.primary,
    #body-login .body-login-container a.button.primary {
        color: #ffffff;
    }
    #body-login .not_alt_login .picker-window h2 ,#body-login .not_alt_login .picker-window p.info {
        color:var(--color-main-text);
    }