Skip to content

Build your personal knowledge base with Trilium Notes

chore(login): improve style for OAuth

Elian Dorane694188df2f8
diff --git a/apps/client/src/login_page.css b/apps/client/src/login_page.css
index 99869893ee..d375986740 100644
--- a/apps/client/src/login_page.css
+++ b/apps/client/src/login_page.css
@@ -1,5 +1,36 @@
body.setup .setup-container.login-container {
+ height: auto;
+ padding-block: 4em;
+
.illustration-logo {
--size: 162px;
}
+
+ .google-login-btn {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: var(--input-background-color);
+ color: var(--main-text-color);
+ border: 1px solid var(--main-border-color);
+ border-radius: 4px;
+ padding: 1.25em 4em;
+ font-size: 14px;
+ font-weight: 500;
+ cursor: pointer;
+ margin-bottom: 20px;
+ text-decoration: none;
+ transition: background-color 0.3s;
+ margin: auto;
+ }
+
+ .google-login-btn:hover {
+ background-color: var(--hover-item-background-color);
+ }
+
+ .google-login-btn img {
+ margin-inline-end: 10px;
+ width: 18px;
+ height: 18px;
+ }
}
diff --git a/apps/client/src/login_page.tsx b/apps/client/src/login_page.tsx
index cd09eb3540..19315783cf 100644
--- a/apps/client/src/login_page.tsx
+++ b/apps/client/src/login_page.tsx
@@ -42,17 +42,13 @@ function App() {
return (
<div class="setup-container login-container">
<SetupPage className="login" title={t("login.heading")} illustration={illustration} error={error} errorId={errorId}>
- <Card>
- <CardSection className="login-sso">
- {/* Server route that initiates the OpenID round-trip. */}
- <a href="/authenticate" class="google-login-btn">
- {config.ssoIssuerIcon
- ? <img src={config.ssoIssuerIcon} alt="" onError={(e) => (e.currentTarget as HTMLImageElement).remove()} />
- : null}
- {t("login.sign_in_with_sso", { ssoIssuerName: config.ssoIssuerName ?? "" })}
- </a>
- </CardSection>
- </Card>
+ {/* Server route that initiates the OpenID round-trip. */}
+ <a href="/authenticate" class="google-login-btn">
+ {config.ssoIssuerIcon
+ ? <img src={config.ssoIssuerIcon} alt="" onError={(e) => (e.currentTarget as HTMLImageElement).remove()} />
+ : null}
+ {t("login.sign_in_with_sso", { ssoIssuerName: config.ssoIssuerName ?? "" })}
+ </a>
</SetupPage>
</div>
);
diff --git a/apps/client/src/stylesheets/theme-next/pages.css b/apps/client/src/stylesheets/theme-next/pages.css
index dc0811b6da..b283053303 100644
--- a/apps/client/src/stylesheets/theme-next/pages.css
+++ b/apps/client/src/stylesheets/theme-next/pages.css
@@ -32,31 +32,6 @@
color: var(--dropdown-item-icon-destructive-color) !important;
}
-.google-login-btn {
- display: flex;
- align-items: center;
- justify-content: center;
- background-color: var(--main-background-color);
- color: var(--main-text-color);
- border: 1px solid var(--main-border-color);
- border-radius: 4px;
- padding: 10px 20px;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- margin-bottom: 20px;
- text-decoration: none;
- transition: background-color 0.3s;
-}
-.google-login-btn:hover {
- background-color: var(--hover-item-background-color);
-}
-.google-login-btn img {
- margin-inline-end: 10px;
- width: 18px;
- height: 18px;
-}
-
/*
* SEARCH PAGE
*/