From e76f0d6cc0bf3931c73ea209804eb332683f3643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 2 Oct 2020 16:08:22 +0200 Subject: [PATCH 1/2] MOBILE-3523 login: Fix and simplify login style personalization --- src/core/login/login.scss | 33 ++++++++++++++++--- .../login/pages/credentials/credentials.html | 2 +- src/core/login/pages/reconnect/reconnect.html | 2 +- src/core/login/pages/reconnect/reconnect.scss | 25 +++++--------- src/core/login/pages/site/site.html | 4 +-- src/core/login/pages/site/site.scss | 20 ++++++++++- 6 files changed, 60 insertions(+), 26 deletions(-) diff --git a/src/core/login/login.scss b/src/core/login/login.scss index 8206b3750..a91ae89c3 100644 --- a/src/core/login/login.scss +++ b/src/core/login/login.scss @@ -2,16 +2,16 @@ $core-login-page-background-color: $white !default; $core-login-page-text-color: $text-color !default; $core-login-button-outline: false !default; $core-login-loading-color: false !default; -$core-login-item-inner-background-color: $white !default; -$core-login-item-background-color: $white !default; +$core-login-input-item-background-color: $core-login-page-background-color !default; +$core-login-input-item-text-color: $core-login-page-text-color !default; // Dark. $core-dark-login-page-background-color: $black !default; $core-dark-login-page-text-color: $core-dark-text-color !default; -$core-dark-login-item-inner-background-color: $core-dark-login-page-background-color !default; -$core-dark-login-item-background-color: $core-dark-login-page-background-color !default; $core-dark-login-button-outline: $core-login-button-outline !default; $core-dark-login-loading-color: $core-dark-text-color !default; +$core-dark-input-login-item-background-color: $core-dark-login-page-background-color !default; +$core-dark-input-login-item-text-color: $core-dark-login-page-text-color !default; ion-app.app-root page-core-login-credentials, ion-app.app-root page-core-login-reconnect, @@ -26,6 +26,13 @@ ion-app.app-root page-core-login-site { } } + .item p, .item h2, .item h3, .list .item.core-oauth-icon .label, .text-input { + color: $core-login-page-text-color; + @include darkmode() { + color: $core-dark-login-page-text-color; + } + } + img { max-width: 100%; } @@ -78,6 +85,22 @@ ion-app.app-root page-core-login-site { margin-bottom: 20px; } + + .core-login-form .item, + .core-login-form .item-inner { + background-color: $core-login-input-item-background-color; + @include darkmode() { + background-color: $core-dark-input-login-item-background-color; + } + + p, input { + color: $core-login-input-item-text-color; + @include darkmode() { + color: $core-dark-input-login-item-text-color; + } + } + } + ion-list.core-login-forgotten-password { margin-top: 0; margin-bottom: 0; @@ -89,6 +112,8 @@ ion-app.app-root page-core-login-site { @include darkmode() { background: transparent; } + + color: $core-login-page-text-color; } } diff --git a/src/core/login/pages/credentials/credentials.html b/src/core/login/pages/credentials/credentials.html index 690b3d93b..1d501a496 100644 --- a/src/core/login/pages/credentials/credentials.html +++ b/src/core/login/pages/credentials/credentials.html @@ -47,7 +47,7 @@ - +